C# Class SIL.FieldWorks.TE.NotesMainWnd

NotesMainWnd is a main window for displaying annotations.
Inheritance: SIL.FieldWorks.Common.Framework.FwMainWnd
Afficher le fichier Open project: sillsdev/FieldWorks Class Usage Examples

Private Properties

Свойство Type Description
InitializeComponent void
NoteFilterChanged void
SetupSideBarInfoBar void
ShowStylesHelp void

Méthodes publiques

Méthode Description
InitAndShowClient ( ) : void

Create the client windows and add corresponding stuff to the sidebar, View menu, etc.

NotesMainWnd ( FwApp app, FwStyleSheet stylesheet, float zoomPercent ) : System

Initializes a new instance of the NotesMainWnd class.

OnEditDeleteNote ( object args ) : bool

Delete the current annotation.

OnFileExportOXESA ( object args ) : bool

Export an Open XML for Exchanging Scripture Annotations (OXESA) file.

OnFileImportOXESA ( object args ) : bool

Import an Open XML for Exchanging Scripture Annotations (OXESA) file.

OnFinishedInit ( ) : bool

When finished initializing, show the default view.

OnInsertResponse ( object args ) : bool

Adds a reponse to the current annotation. This really appends a response, it doesn't insert.

OnPasteHyperlink ( object args ) : bool

Paste what is in the clipboard as a URL

OnUpdateFileExportOXESA ( object args ) : bool

Determines whether it is valid to export an OXESA file.

OnUpdateInsertResponse ( object args ) : bool

OnUpdatePasteHyperlink ( object args ) : bool

Determines whether the Paste Hyperlink command is enabled

OnViewCollapseAllNotes ( object args ) : bool

Collapses all annotations.

PopulateParaStyleListOverride ( ) : bool

For the Notes view, we override the default behavior to make the para style combo only display the current paragraph style in the list.

PreSynchronize ( SyncMsg sync ) : void

Called just before a window synchronizes it's views with DB changes (e.g. when an undo or redo command is issued).

ScrollToReference ( object sender, SILUBS.SharedScrUtils.ScrReference scrRef, ITsString quotedText ) : void

Scroll any note(s) with the given reference into view

ScrollToScrEditingLocation ( object sender, SIL.FieldWorks.TE.TeEditingHelper editingHelper ) : void

Scrolls to SCR editing location.

SelectFilterButton ( IFilter filter ) : void

Select the button on the filter sidebar corresponding to the given filter (will not generate the events)

Synchronize ( SyncMsg sync ) : bool

Handle import sync messages.

Méthodes protégées

Méthode Description
AddFilters ( ) : void

Add filters to the side bar

AddNotesView ( string viewName, int wsUser ) : void

Adds the Notes Data Entry View

Dispose ( bool disposing ) : void

Clean up any resources being used.

GetAppSpecificMenuToolBarDefinition ( ) : string

Add Notes specific toolbars to the ones added by the framework's main window.

GetCurrentStyleNames ( string &paraStyleName, string &charStyleName ) : void

Gets the current style names from the selected text

GetDefaultItemForTab ( string tabName ) : string

Get the name of the default sidebar item for the given tab

OnHelpApplication ( object args ) : bool

Shows the help file for the application

OnLoad ( EventArgs e ) : void

OnUpdateSideBarConfigure ( object args ) : bool

This updates the given configure menu item. This configure menu item is on the sidebar tab's context menu or on one of the view menu item's sub-menus or one of the context menus that pops-up when the user clicks on an info. bar button.

OnUpdateStyleComboBox ( object args ) : bool

Enables/disables the styles combobox

OnUpdateWritingSystem ( object args ) : bool

Makes the Writing System Selector combobox enabled or disabled

SetPropsToFactorySettings ( SIL.FieldWorks.FwCoreDlgControls.StyleInfo styleInfo ) : void

Set the properties of a StyleInfo to the factory default settings

ShowApplyStyleDialog ( string paraStyleName, string charStyleName ) : void

Shows the Format Apply Style dialog

Private Methods

Méthode Description
InitializeComponent ( ) : void

Initialize stuff

NoteFilterChanged ( object sender, ICmFilter filter ) : void

Update the filter panel in the status bar.

SetupSideBarInfoBar ( ) : void

Setup the sidebar/info. bar adapter.

ShowStylesHelp ( SIL.FieldWorks.FwCoreDlgControls.StyleListItem item ) : void

Show help topic for currently selected style. (This method is also in TeMainWnd. I tried to move it out but the reference chain would have made it ugly).

Method Details

AddFilters() protected méthode

Add filters to the side bar
protected AddFilters ( ) : void
Résultat void

AddNotesView() protected méthode

Adds the Notes Data Entry View
protected AddNotesView ( string viewName, int wsUser ) : void
viewName string
wsUser int
Résultat void

Dispose() protected méthode

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

GetAppSpecificMenuToolBarDefinition() protected méthode

Add Notes specific toolbars to the ones added by the framework's main window.
protected GetAppSpecificMenuToolBarDefinition ( ) : string
Résultat string

GetCurrentStyleNames() protected méthode

Gets the current style names from the selected text
protected GetCurrentStyleNames ( string &paraStyleName, string &charStyleName ) : void
paraStyleName string Name of the para style.
charStyleName string Name of the char style.
Résultat void

GetDefaultItemForTab() protected méthode

Get the name of the default sidebar item for the given tab
protected GetDefaultItemForTab ( string tabName ) : string
tabName string Name of the sidebar tab
Résultat string

InitAndShowClient() public méthode

Create the client windows and add corresponding stuff to the sidebar, View menu, etc.
Invalid user view type in database
public InitAndShowClient ( ) : void
Résultat void

NotesMainWnd() public méthode

Initializes a new instance of the NotesMainWnd class.
public NotesMainWnd ( FwApp app, FwStyleSheet stylesheet, float zoomPercent ) : System
app SIL.FieldWorks.Common.Framework.FwApp The app
stylesheet FwStyleSheet The stylesheet
zoomPercent float The zoom percentage
Résultat System

OnEditDeleteNote() public méthode

Delete the current annotation.
public OnEditDeleteNote ( object args ) : bool
args object
Résultat bool

OnFileExportOXESA() public méthode

Export an Open XML for Exchanging Scripture Annotations (OXESA) file.
public OnFileExportOXESA ( object args ) : bool
args object
Résultat bool

OnFileImportOXESA() public méthode

Import an Open XML for Exchanging Scripture Annotations (OXESA) file.
public OnFileImportOXESA ( object args ) : bool
args object
Résultat bool

OnFinishedInit() public méthode

When finished initializing, show the default view.
public OnFinishedInit ( ) : bool
Résultat bool

OnHelpApplication() protected méthode

Shows the help file for the application
protected OnHelpApplication ( object args ) : bool
args object
Résultat bool

OnInsertResponse() public méthode

Adds a reponse to the current annotation. This really appends a response, it doesn't insert.
public OnInsertResponse ( object args ) : bool
args object
Résultat bool

OnLoad() protected méthode

protected OnLoad ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnPasteHyperlink() public méthode

Paste what is in the clipboard as a URL
public OnPasteHyperlink ( object args ) : bool
args object
Résultat bool

OnUpdateFileExportOXESA() public méthode

Determines whether it is valid to export an OXESA file.
public OnUpdateFileExportOXESA ( object args ) : bool
args object The toolbar/menu-item properties (we hope)
Résultat bool

OnUpdateInsertResponse() public méthode

public OnUpdateInsertResponse ( object args ) : bool
args object
Résultat bool

OnUpdatePasteHyperlink() public méthode

Determines whether the Paste Hyperlink command is enabled
public OnUpdatePasteHyperlink ( object args ) : bool
args object The toolbar/menu-item properties (we hope)
Résultat bool

OnUpdateSideBarConfigure() protected méthode

This updates the given configure menu item. This configure menu item is on the sidebar tab's context menu or on one of the view menu item's sub-menus or one of the context menus that pops-up when the user clicks on an info. bar button.
protected OnUpdateSideBarConfigure ( object args ) : bool
args object
Résultat bool

OnUpdateStyleComboBox() protected méthode

Enables/disables the styles combobox
protected OnUpdateStyleComboBox ( object args ) : bool
args object
Résultat bool

OnUpdateWritingSystem() protected méthode

Makes the Writing System Selector combobox enabled or disabled
protected OnUpdateWritingSystem ( object args ) : bool
args object
Résultat bool

OnViewCollapseAllNotes() public méthode

Collapses all annotations.
public OnViewCollapseAllNotes ( object args ) : bool
args object
Résultat bool

PopulateParaStyleListOverride() public méthode

For the Notes view, we override the default behavior to make the para style combo only display the current paragraph style in the list.
public PopulateParaStyleListOverride ( ) : bool
Résultat bool

PreSynchronize() public méthode

Called just before a window synchronizes it's views with DB changes (e.g. when an undo or redo command is issued).
public PreSynchronize ( SyncMsg sync ) : void
sync SyncMsg syncronization message
Résultat void

ScrollToReference() public méthode

Scroll any note(s) with the given reference into view
public ScrollToReference ( object sender, SILUBS.SharedScrUtils.ScrReference scrRef, ITsString quotedText ) : void
sender object The sender (can be null).
scrRef SILUBS.SharedScrUtils.ScrReference The Scripture reference.
quotedText ITsString The selected text (can be null).
Résultat void

ScrollToScrEditingLocation() public méthode

Scrolls to SCR editing location.
public ScrollToScrEditingLocation ( object sender, SIL.FieldWorks.TE.TeEditingHelper editingHelper ) : void
sender object The sender.
editingHelper SIL.FieldWorks.TE.TeEditingHelper The editing helper.
Résultat void

SelectFilterButton() public méthode

Select the button on the filter sidebar corresponding to the given filter (will not generate the events)
public SelectFilterButton ( IFilter filter ) : void
filter IFilter The filter whose corresponding button should be selected
Résultat void

SetPropsToFactorySettings() protected méthode

Set the properties of a StyleInfo to the factory default settings
protected SetPropsToFactorySettings ( SIL.FieldWorks.FwCoreDlgControls.StyleInfo styleInfo ) : void
styleInfo SIL.FieldWorks.FwCoreDlgControls.StyleInfo
Résultat void

ShowApplyStyleDialog() protected méthode

Shows the Format Apply Style dialog
protected ShowApplyStyleDialog ( string paraStyleName, string charStyleName ) : void
paraStyleName string The currently-selected Paragraph style name
charStyleName string The currently-selected Character style name
Résultat void

Synchronize() public méthode

Handle import sync messages.
public Synchronize ( SyncMsg sync ) : bool
sync SyncMsg
Résultat bool