C# Class Praeclarum.UI.DocumentAppDelegate

Inheritance: UIApplicationDelegate
Datei anzeigen Open project: praeclarum/Praeclarum

Public Properties

Property Type Description
CurrentCulture System.Globalization.CultureInfo

Protected Properties

Property Type Description
DropboxAppFolder bool
DropboxSyncKey string
DropboxSyncSecret string
detailNav UINavigationController
docListNav UINavigationController
lastOpenTime System.DateTime
mru MRU
window UIWindow

Private Properties

Property 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

Public Methods

Method 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

Protected Methods

Method 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

Method 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 method

public AddAndOpenDocRef ( DocumentReference dr ) : System.Threading.Tasks.Task
dr Praeclarum.App.DocumentReference
return System.Threading.Tasks.Task

AddAndOpenNewDocument() public method

public AddAndOpenNewDocument ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

Alert() public static method

public static Alert ( string title, Exception ex ) : void
title string
ex System.Exception
return void

CanOpen() public method

public CanOpen ( int docIndex ) : bool
docIndex int
return bool

CloseDocumentEditor() public method

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

CreateDirectoryViewController() protected method

protected CreateDirectoryViewController ( string path ) : DocumentsViewController
path string
return DocumentsViewController

CreateDocumentsNavigationController() protected method

protected CreateDocumentsNavigationController ( DocumentsViewController docList ) : UINavigationController
docList DocumentsViewController
return UINavigationController

CreateSettings() protected method

protected CreateSettings ( ) : IDocumentAppSettings
return IDocumentAppSettings

CreateSettingsForm() protected method

protected CreateSettingsForm ( ) : PForm
return PForm

DeleteDocuments() public method

public DeleteDocuments ( IFile files, UIBarButtonItem deleteButton ) : Task
files IFile
deleteButton UIBarButtonItem
return Task

DeleteOpenedDocument() public method

public DeleteOpenedDocument ( UIBarButtonItem deleteButton ) : void
deleteButton UIBarButtonItem
return void

DidEnterBackground() public method

public DidEnterBackground ( UIApplication application ) : void
application UIApplication
return void

DismissSheetsAndPopovers() public method

public DismissSheetsAndPopovers ( bool animated = true ) : bool
animated bool
return bool

DuplicateDocuments() public method

public DuplicateDocuments ( IFile files, UIBarButtonItem duplicateButton ) : Task
files IFile
duplicateButton UIBarButtonItem
return Task

FinishedLaunching() public method

public FinishedLaunching ( UIApplication application, NSDictionary launchOptions ) : bool
application UIApplication
launchOptions NSDictionary
return bool

GenerateThumbnailAsync() public method

public GenerateThumbnailAsync ( DocumentReference docRef, Praeclarum size, Theme theme ) : Task
docRef Praeclarum.App.DocumentReference
size Praeclarum
theme Theme
return Task

GetNewDocumentText() protected method

protected GetNewDocumentText ( ) : string
return string

GetPathFromRawPath() protected static method

protected static GetPathFromRawPath ( string rawPath ) : string
rawPath string
return string

GetPathFromTitle() protected method

protected GetPathFromTitle ( string rawTitle ) : string
rawTitle string
return string

GetPatronMonthlyPrices() public method

public GetPatronMonthlyPrices ( ) : string>>.IEnumerable
return string>>.IEnumerable

GetThumbnailKey() public method

public GetThumbnailKey ( IFile file, Theme theme ) : string
file IFile
theme Theme
return string

MoveDocuments() public method

public MoveDocuments ( IFile files, UIBarButtonItem duplicateButton, UIViewController fromViewController ) : Task
files IFile
duplicateButton UIBarButtonItem
fromViewController UIViewController
return Task

OpenDirectory() public method

public OpenDirectory ( int docIndex, bool animated ) : void
docIndex int
animated bool
return void

OpenDocument() public method

public OpenDocument ( int docIndex, bool animated ) : System.Threading.Tasks.Task
docIndex int
animated bool
return System.Threading.Tasks.Task

OpenDocument() public method

public OpenDocument ( string path, bool animated ) : Task
path string
animated bool
return Task

OpenPath() protected method

protected OpenPath ( string path ) : System.Threading.Tasks.Task
path string
return System.Threading.Tasks.Task

OpenUrl() public method

public OpenUrl ( UIApplication application, NSUrl url, string sourceApplication, NSObject annotation ) : bool
application UIApplication
url NSUrl
sourceApplication string
annotation NSObject
return bool

OpenUrlAsync() protected method

protected OpenUrlAsync ( NSUrl url ) : System.Threading.Tasks.Task
url NSUrl
return System.Threading.Tasks.Task

PerformActionForShortcutItem() public method

public PerformActionForShortcutItem ( UIApplication application, UIApplicationShortcutItem shortcutItem, UIOperationHandler completionHandler ) : void
application UIApplication
shortcutItem UIApplicationShortcutItem
completionHandler UIOperationHandler
return void

PerformActionOnDocument() public method

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

RestoreDocumentation() public method

public RestoreDocumentation ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

SetFileSystemAsync() public method

public SetFileSystemAsync ( IFileSystem newFileSystem, bool animated ) : System.Threading.Tasks.Task
newFileSystem IFileSystem
animated bool
return System.Threading.Tasks.Task

SetRootViewController() protected method

protected SetRootViewController ( ) : void
return void

SetTheme() protected method

protected SetTheme ( Theme newTheme ) : void
newTheme Theme
return void

ShowAddUI() public method

public ShowAddUI ( UIBarButtonItem addButton, bool dup, bool folder ) : void
addButton UIBarButtonItem
dup bool
folder bool
return void

ShowEditor() protected method

protected ShowEditor ( int docIndex, bool advance, bool animated, UIViewController newEditorVC ) : void
docIndex int
advance bool
animated bool
newEditorVC UIViewController
return void

ShowPatronAsync() public method

public ShowPatronAsync ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

ShowSettings() public method

public ShowSettings ( UIViewController controller ) : void
controller UIViewController
return void

ShowStorage() public method

public ShowStorage ( UIViewController controller ) : void
controller UIViewController
return void

UpdateDocListAsync() public method

public UpdateDocListAsync ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

UpdateDocListName() public method

public UpdateDocListName ( int docIndex ) : void
docIndex int
return void

UpdateFonts() protected method

protected UpdateFonts ( ) : void
return void

UpdateTheme() public method

public UpdateTheme ( ) : void
return void

ValidateNewName() public static method

public static ValidateNewName ( string dir, string t, string existingName ) : Task
dir string
t string
existingName string
return Task

WillEnterForeground() public method

public WillEnterForeground ( UIApplication application ) : void
application UIApplication
return void

WillTerminate() public method

public WillTerminate ( UIApplication application ) : void
application UIApplication
return void

Property Details

CurrentCulture public_oe static_oe property

public static CultureInfo,System.Globalization CurrentCulture
return System.Globalization.CultureInfo

DropboxAppFolder protected_oe property

protected bool DropboxAppFolder
return bool

DropboxSyncKey protected_oe property

protected string DropboxSyncKey
return string

DropboxSyncSecret protected_oe property

protected string DropboxSyncSecret
return string

detailNav protected_oe property

protected UINavigationController detailNav
return UINavigationController

docListNav protected_oe property

protected UINavigationController docListNav
return UINavigationController

lastOpenTime protected_oe property

protected DateTime,System lastOpenTime
return System.DateTime

mru protected_oe property

protected MRU mru
return MRU

window protected_oe property

protected UIWindow window
return UIWindow