C# Class Praeclarum.UI.DocumentAppDelegate

Inheritance: UIApplicationDelegate
Afficher le fichier Open project: praeclarum/Praeclarum

Méthodes publiques

Свойство Type Description
CurrentCulture System.Globalization.CultureInfo

Protected Properties

Свойство Type Description
DropboxAppFolder bool
DropboxSyncKey string
DropboxSyncSecret string
detailNav UINavigationController
docListNav UINavigationController
lastOpenTime System.DateTime
mru MRU
window UIWindow

Private Properties

Свойство Type Description
AddDocRef void
AddFolder void
CloseOpenedDoc System.Threading.Tasks.Task
CreateDocListHierarchy System.Threading.Tasks.Task
DeleteDocs System.Threading.Tasks.Task
DescribeFiles string
DuplicateFile System.Threading.Tasks.Task
GenerateDocumentThumbnailAsync Task
GetDirectoryDepth int
GetPasteboardText string
HandleDropboxUrl bool
HandleFilesChanged void
HandleShortcutItemAsync System.Threading.Tasks.Task
InitFileSystem System.Threading.Tasks.Task
InitializeFileSystemAsync System.Threading.Tasks.Task
InvalidateThumbnail void
MoveDoc System.Threading.Tasks.Task
OpenLastDocument System.Threading.Tasks.Task
OpenPendingUrl void
OpenPendingUrlAsync System.Threading.Tasks.Task
ShouldRestoreDocs bool
ShowErrorAndExit void
UpdateCurrentCulture void

Méthodes publiques

Méthode Description
AddAndOpenDocRef ( DocumentReference dr ) : System.Threading.Tasks.Task
AddAndOpenNewDocument ( ) : System.Threading.Tasks.Task
Alert ( string title, Exception ex ) : void
CanOpen ( int docIndex ) : bool
CloseDocumentEditor ( IDocumentEditor editor, bool unbindUI, bool deleteThumbnail, bool reloadThumbnail ) : System.Threading.Tasks.Task
DeleteDocuments ( IFile files, UIBarButtonItem deleteButton ) : Task
DeleteOpenedDocument ( UIBarButtonItem deleteButton ) : void
DidEnterBackground ( UIApplication application ) : void
DismissSheetsAndPopovers ( bool animated = true ) : bool
DuplicateDocuments ( IFile files, UIBarButtonItem duplicateButton ) : Task
FinishedLaunching ( UIApplication application, NSDictionary launchOptions ) : bool
GenerateThumbnailAsync ( DocumentReference docRef, Praeclarum size, Theme theme ) : Task
GetPatronMonthlyPrices ( ) : string>>.IEnumerable
GetThumbnailKey ( IFile file, Theme theme ) : string
MoveDocuments ( IFile files, UIBarButtonItem duplicateButton, UIViewController fromViewController ) : Task
OpenDirectory ( int docIndex, bool animated ) : void
OpenDocument ( int docIndex, bool animated ) : System.Threading.Tasks.Task
OpenDocument ( string path, bool animated ) : Task
OpenUrl ( UIApplication application, NSUrl url, string sourceApplication, NSObject annotation ) : bool
PerformActionForShortcutItem ( UIApplication application, UIApplicationShortcutItem shortcutItem, UIOperationHandler completionHandler ) : void
PerformActionOnDocument ( DocumentReference docRef, UIViewController fromController, UIBarButtonItem fromButton ) : System.Threading.Tasks.Task
RestoreDocumentation ( ) : System.Threading.Tasks.Task
SetFileSystemAsync ( IFileSystem newFileSystem, bool animated ) : System.Threading.Tasks.Task
ShowAddUI ( UIBarButtonItem addButton, bool dup, bool folder ) : void
ShowPatronAsync ( ) : System.Threading.Tasks.Task
ShowSettings ( UIViewController controller ) : void
ShowStorage ( UIViewController controller ) : void
UpdateDocListAsync ( ) : System.Threading.Tasks.Task
UpdateDocListName ( int docIndex ) : void
UpdateTheme ( ) : void
ValidateNewName ( string dir, string t, string existingName ) : Task
WillEnterForeground ( UIApplication application ) : void
WillTerminate ( UIApplication application ) : void

Méthodes protégées

Méthode Description
CreateDirectoryViewController ( string path ) : DocumentsViewController
CreateDocumentsNavigationController ( DocumentsViewController docList ) : UINavigationController
CreateSettings ( ) : IDocumentAppSettings
CreateSettingsForm ( ) : PForm
GetNewDocumentText ( ) : string
GetPathFromRawPath ( string rawPath ) : string
GetPathFromTitle ( string rawTitle ) : string
OpenPath ( string path ) : System.Threading.Tasks.Task
OpenUrlAsync ( NSUrl url ) : System.Threading.Tasks.Task
SetRootViewController ( ) : void
SetTheme ( Theme newTheme ) : void
ShowEditor ( int docIndex, bool advance, bool animated, UIViewController newEditorVC ) : void
UpdateFonts ( ) : void

Private Methods

Méthode Description
AddDocRef ( DocumentReference dr ) : void
AddFolder ( ) : void
CloseOpenedDoc ( bool reloadThumbnail = true ) : System.Threading.Tasks.Task
CreateDocListHierarchy ( string dir, bool animated ) : System.Threading.Tasks.Task
DeleteDocs ( string paths ) : System.Threading.Tasks.Task
DescribeFiles ( IFile files ) : string
DuplicateFile ( IFile file ) : System.Threading.Tasks.Task
GenerateDocumentThumbnailAsync ( IDocument s, Praeclarum size, Theme theme ) : Task
GetDirectoryDepth ( string directory ) : int
GetPasteboardText ( ) : string
HandleDropboxUrl ( NSUrl url ) : bool
HandleFilesChanged ( object sender, EventArgs e ) : void
HandleShortcutItemAsync ( UIApplicationShortcutItem scitem ) : System.Threading.Tasks.Task
InitFileSystem ( ) : System.Threading.Tasks.Task
InitializeFileSystemAsync ( IFileSystem fs ) : System.Threading.Tasks.Task
InvalidateThumbnail ( IFile file, bool deleteThumbnail, bool reloadThumbnail ) : void
MoveDoc ( IFile file, DocumentsViewController listC, IFileSystem dest, string destDir, bool animated ) : System.Threading.Tasks.Task
OpenLastDocument ( ) : System.Threading.Tasks.Task
OpenPendingUrl ( NSTimer obj ) : void
OpenPendingUrlAsync ( ) : System.Threading.Tasks.Task
ShouldRestoreDocs ( ) : bool
ShowErrorAndExit ( Exception exception ) : void
UpdateCurrentCulture ( ) : void

Method Details

AddAndOpenDocRef() public méthode

public AddAndOpenDocRef ( DocumentReference dr ) : System.Threading.Tasks.Task
dr Praeclarum.App.DocumentReference
Résultat System.Threading.Tasks.Task

AddAndOpenNewDocument() public méthode

public AddAndOpenNewDocument ( ) : System.Threading.Tasks.Task
Résultat System.Threading.Tasks.Task

Alert() public static méthode

public static Alert ( string title, Exception ex ) : void
title string
ex System.Exception
Résultat void

CanOpen() public méthode

public CanOpen ( int docIndex ) : bool
docIndex int
Résultat bool

CloseDocumentEditor() public méthode

public CloseDocumentEditor ( IDocumentEditor editor, bool unbindUI, bool deleteThumbnail, bool reloadThumbnail ) : System.Threading.Tasks.Task
editor IDocumentEditor
unbindUI bool
deleteThumbnail bool
reloadThumbnail bool
Résultat System.Threading.Tasks.Task

CreateDirectoryViewController() protected méthode

protected CreateDirectoryViewController ( string path ) : DocumentsViewController
path string
Résultat DocumentsViewController

CreateDocumentsNavigationController() protected méthode

protected CreateDocumentsNavigationController ( DocumentsViewController docList ) : UINavigationController
docList DocumentsViewController
Résultat UINavigationController

CreateSettings() protected méthode

protected CreateSettings ( ) : IDocumentAppSettings
Résultat IDocumentAppSettings

CreateSettingsForm() protected méthode

protected CreateSettingsForm ( ) : PForm
Résultat PForm

DeleteDocuments() public méthode

public DeleteDocuments ( IFile files, UIBarButtonItem deleteButton ) : Task
files IFile
deleteButton UIBarButtonItem
Résultat Task

DeleteOpenedDocument() public méthode

public DeleteOpenedDocument ( UIBarButtonItem deleteButton ) : void
deleteButton UIBarButtonItem
Résultat void

DidEnterBackground() public méthode

public DidEnterBackground ( UIApplication application ) : void
application UIApplication
Résultat void

DismissSheetsAndPopovers() public méthode

public DismissSheetsAndPopovers ( bool animated = true ) : bool
animated bool
Résultat bool

DuplicateDocuments() public méthode

public DuplicateDocuments ( IFile files, UIBarButtonItem duplicateButton ) : Task
files IFile
duplicateButton UIBarButtonItem
Résultat Task

FinishedLaunching() public méthode

public FinishedLaunching ( UIApplication application, NSDictionary launchOptions ) : bool
application UIApplication
launchOptions NSDictionary
Résultat bool

GenerateThumbnailAsync() public méthode

public GenerateThumbnailAsync ( DocumentReference docRef, Praeclarum size, Theme theme ) : Task
docRef Praeclarum.App.DocumentReference
size Praeclarum
theme Theme
Résultat Task

GetNewDocumentText() protected méthode

protected GetNewDocumentText ( ) : string
Résultat string

GetPathFromRawPath() protected static méthode

protected static GetPathFromRawPath ( string rawPath ) : string
rawPath string
Résultat string

GetPathFromTitle() protected méthode

protected GetPathFromTitle ( string rawTitle ) : string
rawTitle string
Résultat string

GetPatronMonthlyPrices() public méthode

public GetPatronMonthlyPrices ( ) : string>>.IEnumerable
Résultat string>>.IEnumerable

GetThumbnailKey() public méthode

public GetThumbnailKey ( IFile file, Theme theme ) : string
file IFile
theme Theme
Résultat string

MoveDocuments() public méthode

public MoveDocuments ( IFile files, UIBarButtonItem duplicateButton, UIViewController fromViewController ) : Task
files IFile
duplicateButton UIBarButtonItem
fromViewController UIViewController
Résultat Task

OpenDirectory() public méthode

public OpenDirectory ( int docIndex, bool animated ) : void
docIndex int
animated bool
Résultat void

OpenDocument() public méthode

public OpenDocument ( int docIndex, bool animated ) : System.Threading.Tasks.Task
docIndex int
animated bool
Résultat System.Threading.Tasks.Task

OpenDocument() public méthode

public OpenDocument ( string path, bool animated ) : Task
path string
animated bool
Résultat Task

OpenPath() protected méthode

protected OpenPath ( string path ) : System.Threading.Tasks.Task
path string
Résultat System.Threading.Tasks.Task

OpenUrl() public méthode

public OpenUrl ( UIApplication application, NSUrl url, string sourceApplication, NSObject annotation ) : bool
application UIApplication
url NSUrl
sourceApplication string
annotation NSObject
Résultat bool

OpenUrlAsync() protected méthode

protected OpenUrlAsync ( NSUrl url ) : System.Threading.Tasks.Task
url NSUrl
Résultat System.Threading.Tasks.Task

PerformActionForShortcutItem() public méthode

public PerformActionForShortcutItem ( UIApplication application, UIApplicationShortcutItem shortcutItem, UIOperationHandler completionHandler ) : void
application UIApplication
shortcutItem UIApplicationShortcutItem
completionHandler UIOperationHandler
Résultat void

PerformActionOnDocument() public méthode

public PerformActionOnDocument ( DocumentReference docRef, UIViewController fromController, UIBarButtonItem fromButton ) : System.Threading.Tasks.Task
docRef Praeclarum.App.DocumentReference
fromController UIViewController
fromButton UIBarButtonItem
Résultat System.Threading.Tasks.Task

RestoreDocumentation() public méthode

public RestoreDocumentation ( ) : System.Threading.Tasks.Task
Résultat System.Threading.Tasks.Task

SetFileSystemAsync() public méthode

public SetFileSystemAsync ( IFileSystem newFileSystem, bool animated ) : System.Threading.Tasks.Task
newFileSystem IFileSystem
animated bool
Résultat System.Threading.Tasks.Task

SetRootViewController() protected méthode

protected SetRootViewController ( ) : void
Résultat void

SetTheme() protected méthode

protected SetTheme ( Theme newTheme ) : void
newTheme Theme
Résultat void

ShowAddUI() public méthode

public ShowAddUI ( UIBarButtonItem addButton, bool dup, bool folder ) : void
addButton UIBarButtonItem
dup bool
folder bool
Résultat void

ShowEditor() protected méthode

protected ShowEditor ( int docIndex, bool advance, bool animated, UIViewController newEditorVC ) : void
docIndex int
advance bool
animated bool
newEditorVC UIViewController
Résultat void

ShowPatronAsync() public méthode

public ShowPatronAsync ( ) : System.Threading.Tasks.Task
Résultat System.Threading.Tasks.Task

ShowSettings() public méthode

public ShowSettings ( UIViewController controller ) : void
controller UIViewController
Résultat void

ShowStorage() public méthode

public ShowStorage ( UIViewController controller ) : void
controller UIViewController
Résultat void

UpdateDocListAsync() public méthode

public UpdateDocListAsync ( ) : System.Threading.Tasks.Task
Résultat System.Threading.Tasks.Task

UpdateDocListName() public méthode

public UpdateDocListName ( int docIndex ) : void
docIndex int
Résultat void

UpdateFonts() protected méthode

protected UpdateFonts ( ) : void
Résultat void

UpdateTheme() public méthode

public UpdateTheme ( ) : void
Résultat void

ValidateNewName() public static méthode

public static ValidateNewName ( string dir, string t, string existingName ) : Task
dir string
t string
existingName string
Résultat Task

WillEnterForeground() public méthode

public WillEnterForeground ( UIApplication application ) : void
application UIApplication
Résultat void

WillTerminate() public méthode

public WillTerminate ( UIApplication application ) : void
application UIApplication
Résultat void

Property Details

CurrentCulture public_oe static_oe property

public static CultureInfo,System.Globalization CurrentCulture
Résultat System.Globalization.CultureInfo

DropboxAppFolder protected_oe property

protected bool DropboxAppFolder
Résultat bool

DropboxSyncKey protected_oe property

protected string DropboxSyncKey
Résultat string

DropboxSyncSecret protected_oe property

protected string DropboxSyncSecret
Résultat string

detailNav protected_oe property

protected UINavigationController detailNav
Résultat UINavigationController

docListNav protected_oe property

protected UINavigationController docListNav
Résultat UINavigationController

lastOpenTime protected_oe property

protected DateTime,System lastOpenTime
Résultat System.DateTime

mru protected_oe property

protected MRU mru
Résultat MRU

window protected_oe property

protected UIWindow window
Résultat UIWindow