Свойство | Type | Description | |
---|---|---|---|
m_activeMainWindow | |||
m_debugProcs | DebugProcs | ||
m_findPattern | IVwPattern | ||
m_findReplaceDlg | |||
m_fwManager | IFieldWorksManager | ||
m_rgMainWindows | List |
Свойство | Type | Description | |
---|---|---|---|
Application_EnterThreadModal | void | ||
Application_LeaveThreadModal | void | ||
BeginUpdate | void | ||
CalcTileSizeAndSpacing | void | ||
CloseRootBoxes | void | ||
CollectMovableFilesFromFolder | void | ||
EndUpdate | void | ||
ExpandToFullPath | void | ||
IApp | string | ||
OnWindowClosed | void | ||
RestartSpellChecking | void | ||
UpdateAppRuntimeCounter | void | ||
fwMainWindow_Activated | void | ||
fwMainWindow_HandleDestroyed | void |
Méthode | Description | |
---|---|---|
ActivateWindow ( int iMainWnd ) : void |
Activate the given window.
|
|
CalcTileSizeAndSpacing ( |
This method can be used to do the size and spacing calculations when tiling either side-by-side or stacked. It calculates two things: 1) The desired width or height of tiled windows. 2) how many pixels between the left or top edges of tiled windows. If the calculated width or height of a window is less than the allowable minimum, then tiled windows will be overlapped.
|
|
CascadeSize ( int screenSize, int minSize ) : int |
Calculate a size (width or height) which is 2/3 of the screen area or the minimum allowable size.
|
|
CascadeWindows ( |
Cascade the windows from top left and resize them to fill 2/3 of the screen area (or the minimum allowable size).
|
|
CheckDisposed ( ) : void |
Check to see if the object has been disposed. All public Properties and Methods should call this before doing anything else.
|
|
Dispose ( ) : void |
Must not be virtual. |
|
DoApplicationInitialization ( IProgress progressDlg ) : void |
Use this for slow operations that should happen during the splash screen instead of during app construction
|
|
EnableMainWindows ( bool fEnable ) : void |
Enable or disable all top-level windows. This allows nesting. In other words, calling EnableMainWindows(false) twice requires 2 calls to EnableMainWindows(true) before the top level windows are actually enabled. An example of where not allowing nesting was a problem was the Tools/Options dialog, which could open a PossListChooser dialog. Before, when you closed the PossListChooser, you could select the main window.
|
|
ExitAppplication ( ) : void |
Close all windows (which will shut down the application)
|
|
GetAppFeatures ( ) : SIL.FieldWorks.FDO.Feature[] |
Returns the features available for the application
|
|
GetHelpString ( string stid ) : string |
Gets a URL identifying a Help topic.
|
|
GetResourceString ( string stid ) : string |
Return a string from a resource ID.
|
|
HandleIncomingLink ( SIL.FieldWorks.Common.FwUtils.FwLinkArgs link ) : void |
Applications should override this method to handle incoming links. This method is called from FieldWorks when a link is requested. It is guaranteed to be on the correct thread (the thread this application is on) so invoking should not be needed. Overridden in FwXApp. See the class comment on FwLinkArgs for details on how all the parts of hyperlinking work.
|
|
HandleOutgoingLink ( SIL.FieldWorks.Common.FwUtils.FwAppArgs link ) : void |
Handles an outgoing link request from this application.
|
|
InitAndShowMainWindow ( |
Registers events for the main window and adds the main window to the list of windows. Then shows the window.
|
|
InitCacheForApp ( IThreadedProgress progressDlg ) : bool |
Provides a hook for initializing the cache in application-specific ways.
|
|
LoadSettings ( ) : void |
Called just after DoApplicationInitialization(). Allows a separate overide of loading settings. If you override this you probably also want to override SaveSettings.
|
|
NewMainAppWnd ( IProgress progressDlg, bool fNewCache, |
Creates a new instance of the main window
|
|
PreFilterMessage ( |
Filters out a message before it is dispatched.
|
|
RefreshAllViews ( ) : void |
Refreshes all the views in all of the Main Windows of the app.
|
|
RemoveFindReplaceDialog ( ) : void |
Close and remove the Find/Replace modeless dialog (result of LT-5702)
|
|
RemoveWindow ( IFwMainWnd fwMainWindow ) : void |
Removes the specified IFwMainWnd from the list of windows. If it is ok to close down the application and the count of main windows is zero, then this method will also shut down the application.
|
|
RestartSpellChecking ( ) : void |
Restart the spell-checking process (e.g. when dictionary changed)
|
|
ResumePaint ( ) : void |
Resumes painting in every view and every main window.
|
|
ResumeSynchronize ( ) : void |
Resume execution of synchronize messages. If there are any messages in the queue execute them now.
|
|
SaveSettings ( ) : void |
Triggered by shutting down the app, this is a possible override point for saving any settings to be loaded by LoadSettings. This is the real place to save settings, as opposed to SaveSettingsNow, which is a dummy implementation required because (for the sake of the SettingsKey method) we implement ISettings.
|
|
SaveSettingsNow ( ) : void |
For now, app has no settings to save. This method is required as part of ISettings implementation. Note that the SaveSettings() method is the appropriate one to modify or override if you really want to save settings. This one is NEVER called!
|
|
ShowFindReplaceDialog ( bool fReplace, SIL.FieldWorks.Common.RootSites.RootSite rootsite ) : bool |
Display the Find/Replace modeless dialog
|
|
ShowFirstTimeMessageDlg ( string suggestedProject ) : string |
Displays a message box asking the user whether or not he wants to open a sample DB.
|
|
SuppressPaint ( ) : void |
Suppresses painting in every view and every main window.
|
|
SuppressSynchronize ( ) : void |
Suppress execution of all synchronize messages and store them in a queue instead.
|
|
Synchronize ( SyncMsg sync ) : bool |
Cycle through the applications main windows and synchronize them with database changes.
|
|
TileWindows ( |
Arrange the windows top to bottom or left to right.
|
|
TileWindows ( |
Arrange the windows top to bottom or left to right.
|
|
UpdateExternalLinks ( string sOldLinkedFilesRootDir ) : bool |
Handle changes to the LinkedFiles root directory for a language project. This may not be the best place for this method, but I'm not sure there is a "best place". |
Méthode | Description | |
---|---|---|
AdjustNewWindowPosition ( |
Adjust the new window position - offset right and down from the original. Also copy the window size, state, and set the StartPosition mode to manual.
|
|
ConfigureFindReplacedialog ( ) : void |
This provides a hook for any kind of app that wants to configure the dialog in some special way. TE wants to disable regular expressions for replace.
|
|
Dispose ( bool disposing ) : void |
Executes in two distinct scenarios. 1. If disposing is true, the method has been called directly or indirectly by a user's code via the Dispose method. Both managed and unmanaged resources can be disposed. 2. If disposing is false, the method has been called by the runtime from inside the finalizer and you should not reference (access) other managed objects, as they already have been garbage collected. Only unmanaged resources can be disposed. If any exceptions are thrown, that is fine. If the method is being done in a finalizer, it will be ignored. If it is thrown by client code calling Dispose, it needs to be handled by fixing the bug. If subclasses override this method, they should call the base implementation. |
|
FwApp ( IFieldWorksManager fwManager, IHelpTopicProvider helpTopicProvider ) : System |
Constructor for FwApp
|
|
OnClosingWindow ( object sender, CancelEventArgs e ) : void |
The active main window is closing, so try to find some other main window that can "own" the find/replace dialog, so it can stay alive. If we can't find one, then all main windows are going away and we're going to have to close, too.
|
Méthode | Description | |
---|---|---|
Application_EnterThreadModal ( object sender, |
Handles the EnterThreadModal event of the Application control.
|
|
Application_LeaveThreadModal ( object sender, |
Handles the LeaveThreadModal event of the Application control.
|
|
BeginUpdate ( ) : void |
Suppress all calls to T:RefreshAllViews() until T:EndUpdate is called. Used by T:ResumeSynchronize to do only one refresh of the view. |
|
CalcTileSizeAndSpacing ( |
This method can be used to do the size and spacing calculations when tiling either side-by-side or stacked. It calculates two things: 1) The desired width or height of tiled windows. 2) how many pixels between the left or top edges of tiled windows. If the calculated width or height of a window is less than the allowable minimum, then tiled windows will be overlapped.
|
|
CloseRootBoxes ( |
Recursively look at all the controls belonging to the specified control and save the settings for each root box for controls of type ISettings. Then close the root box for controls of type IRootSite. Ideally IRootSite controls should close their root boxes in the OnHandleDestroyed event, but since sometimes IRootSite controls are created but never shown (which means their handle is never created), we have to close the rootboxes here instead.
|
|
CollectMovableFilesFromFolder ( ICmFolder folder, List |
Build a list of files that can be moved (or copied) to the new LinkedFiles root directory.
|
|
EndUpdate ( ) : void |
Do a T:RefreshAllViews() if it was called at least once after T:BeginUpdate
|
|
ExpandToFullPath ( ICmFolder folder, string sOldRootDir, string sNewRootDir ) : void |
Expand the internal paths from relative to absolute as needed, since the user doesn't want to move (or copy) them.
|
|
IApp ( string stid ) : string |
Return a string from a resource ID. This should normally not be called directly. Use FwApp.GetResourceString() instead.
|
|
OnWindowClosed ( object sender, |
When a window is closed, we need to make sure we close any root boxes that may be on the window.
|
|
RestartSpellChecking ( |
||
UpdateAppRuntimeCounter ( ) : void | ||
fwMainWindow_Activated ( object sender, |
Note the most recent of our main windows to become active.
|
|
fwMainWindow_HandleDestroyed ( object sender, |
Make sure a window that's no longer valid isn't considered active.
|
public ActivateWindow ( int iMainWnd ) : void | ||
iMainWnd | int | Index (in the internal list of main windows) of the window to /// activate |
Résultat | void |
protected AdjustNewWindowPosition ( |
||
wndNew | ||
wndCopyFrom | ||
Résultat | void |
public CalcTileSizeAndSpacing ( |
||
scrn | The screen where the tiling will take place (only windows on this /// screen will actually get tiled). | |
screenDimension | int | The width or height, in pixels, of the display on /// which tiling will be performed. |
minWindowDimension | int | The minimum allowable width or height, in pixels, /// of tiled windows. |
desiredWindowDimension | int | The desired width or height, in pixels, of /// tiled windows. |
windowSpacing | int | The distance, in pixels, between the left or top edge /// of each tiled window. If there is only one window, this is undefined. |
Résultat | void |
public CascadeSize ( int screenSize, int minSize ) : int | ||
screenSize | int | Total available width or height (for the screen) |
minSize | int | Minimum width or height for the window |
Résultat | int |
public CascadeWindows ( |
||
wndCurr | Current Window (i.e. window whose menu was used to issue the /// Cascaede command. | |
Résultat | void |
protected ConfigureFindReplacedialog ( ) : void | ||
Résultat | void |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | |
Résultat | void |
public DoApplicationInitialization ( IProgress progressDlg ) : void | ||
progressDlg | IProgress | The progress dialog to use. |
Résultat | void |
public EnableMainWindows ( bool fEnable ) : void | ||
fEnable | bool | Enable (true) or disable (false). |
Résultat | void |
protected FwApp ( IFieldWorksManager fwManager, IHelpTopicProvider helpTopicProvider ) : System | ||
fwManager | IFieldWorksManager | The FieldWorks manager for dealing with FieldWorks-level /// stuff. |
helpTopicProvider | IHelpTopicProvider | An application-specific help topic provider. |
Résultat | System |
public GetAppFeatures ( ) : SIL.FieldWorks.FDO.Feature[] | ||
Résultat | SIL.FieldWorks.FDO.Feature[] |
public GetHelpString ( string stid ) : string | ||
stid | string | An identifier for the desired Help topic |
Résultat | string |
public GetResourceString ( string stid ) : string | ||
stid | string | String resource id |
Résultat | string |
public HandleIncomingLink ( SIL.FieldWorks.Common.FwUtils.FwLinkArgs link ) : void | ||
link | SIL.FieldWorks.Common.FwUtils.FwLinkArgs | The link to handle. |
Résultat | void |
public HandleOutgoingLink ( SIL.FieldWorks.Common.FwUtils.FwAppArgs link ) : void | ||
link | SIL.FieldWorks.Common.FwUtils.FwAppArgs | The link. |
Résultat | void |
public InitAndShowMainWindow ( |
||
fwMainWindow | The new main window. | |
wndCopyFrom | Form to copy from, or |
|
Résultat | void |
public abstract InitCacheForApp ( IThreadedProgress progressDlg ) : bool | ||
progressDlg | IThreadedProgress | The progress dialog. |
Résultat | bool |
public abstract NewMainAppWnd ( IProgress progressDlg, bool fNewCache, |
||
progressDlg | IProgress | The progress dialog to use, if needed (can be null). |
fNewCache | bool | Flag indicating whether one-time, application-specific /// initialization should be done for this cache. |
wndCopyFrom | Must be null for creating the original app window. /// Otherwise, a reference to the main window whose settings we are copying. | |
fOpeningNewProject | bool | |
Résultat |
protected OnClosingWindow ( object sender, CancelEventArgs e ) : void | ||
sender | object | |
e | CancelEventArgs | |
Résultat | void |
public PreFilterMessage ( |
||
m | The message to be dispatched. You cannot modify this message. | |
Résultat | bool |
public RemoveWindow ( IFwMainWnd fwMainWindow ) : void | ||
fwMainWindow | IFwMainWnd | The IFwMainWnd to remove |
Résultat | void |
public ShowFindReplaceDialog ( bool fReplace, SIL.FieldWorks.Common.RootSites.RootSite rootsite ) : bool | ||
fReplace | bool | |
rootsite | SIL.FieldWorks.Common.RootSites.RootSite | The view where the find will be conducted |
Résultat | bool |
public ShowFirstTimeMessageDlg ( string suggestedProject ) : string | ||
suggestedProject | string | |
Résultat | string |
public Synchronize ( SyncMsg sync ) : bool | ||
sync | SyncMsg | synchronization information record |
Résultat | bool |
public TileWindows ( |
||
wndCurr | Current Window (i.e. window whose menu was used to issue a /// tile vertical or horizontal command. | |
windowsToTile | List |
A list of all the windows to tile (including the /// current window) |
orientation | WindowTiling | The value indicating whether to tile side by side or /// stacked. |
Résultat | void |
public TileWindows ( |
||
wndCurr | Current Window (i.e. window whose menu was used to issue a /// tile vertical or horizontal command. | |
orientation | WindowTiling | The value indicating whether to tile side by side or /// stacked. |
Résultat | void |
public UpdateExternalLinks ( string sOldLinkedFilesRootDir ) : bool | ||
sOldLinkedFilesRootDir | string | The old LinkedFiles root directory. |
Résultat | bool |
protected Form,System.Windows.Forms m_activeMainWindow | ||
Résultat |
protected FwFindReplaceDlg,SIL.FieldWorks.FwCoreDlgs m_findReplaceDlg | ||
Résultat |
protected IFieldWorksManager m_fwManager | ||
Résultat | IFieldWorksManager |