x4Trace Documentation v1.0
|
Represents a desktop plugin. More...
Public Member Functions | |
DesktopPlugin () | |
Constructor. | |
virtual void | Initialize (Ix4Trace.Engine.Controller controller, DesktopPluginManager pluginManager) |
Initializes the plugin. | |
void | SetPluginToIControls () |
Initializes the controls of plugin. | |
void | SetPluginToIControls (ControlCollection controlCollection) |
Initializes the controls of plugin. | |
void | ShowMessage (string message) |
Show message on plugin. | |
ProgressBar.ProgressBar | ShowProgressBar (string message, int max) |
Shows the progress bar with text. | |
virtual void | SetParameters (object[] parameters) |
Sets the parameters of the plugin. | |
virtual void | ExecuteMessages () |
Executes messages in parameters. | |
virtual void | OnLoadPlugin () |
Runs when plugin loads. | |
virtual void | OnAfterPluginShown () |
Runs when plugin was shown. | |
virtual void | OnClosePlugin () |
Runs when plugin closed. Fires plugin closed event. | |
virtual void | OnPluginInitialized () |
Fires plugin initialised event. | |
virtual void | OnPluginLoaded () |
Fires plugin loaded event. | |
virtual void | ClosePlugin () |
Closes the plugin. | |
virtual void | HideNavigation () |
Hides the navigation bar. | |
virtual void | ShowNavigation () |
Shows the navigation bar. | |
void | Invoke (Action method) |
Invoke the method. | |
virtual void | SetToFront () |
Sets the controls Z-index to front. | |
Protected Member Functions | |
virtual void | SetLanguage () |
Sets the labguage of plugin. | |
void | SetLanguage (Control c) |
Sets the language of controls. | |
virtual void | Initialize () |
Initializes the plugin. | |
void | ShowMessagesFromParameters (object[] parameters) |
Shows messages when the parameters conains any messages. | |
void | CopyControlProperties (Control cOriginal, Control cCopy) |
Copies the properties of the control. | |
override void | Dispose (bool disposing) |
Clean up any resources being used. | |
Protected Attributes | |
FormStyle | formStyle |
Style of from. | |
FormAdjustment | formAdjustment |
Adjustment of form. | |
Ix4Trace.Engine.Controller | controller |
The controller. | |
DesktopPluginManager | pluginManager |
Desktop plugin manager. | |
string | pluginName = "" |
Name of plugin. | |
string | pluginText = "" |
Text of plugin. | |
string | pluginFolder = "" |
Folder of plugin on main control. | |
string | backPageName = "" |
Previous plugin name. | |
int | userRight = 0 |
Right of user. Plugin will be listed whe the user has the right. | |
int | autoLoadRight = 0 |
Plugin will be automatically loaded when the user has the right. | |
bool | isVisibleInMenu = true |
Plugin is visible in the menu. | |
bool | isVisibleInTaskBar = true |
Plugin is visible in the taskbar. | |
Image | treeViewImage |
Image of plugin in the treeview. | |
Image | taskBarImage |
Image of plugin in the taskbar. | |
Image | folderImage |
Image of folder. | |
int | menuIndex = 0 |
Index of the plugin in the treeview. | |
object[] | parameters |
Current parameters of the plugin. Plugins get parameters when they shown. | |
Properties | |
Ix4Trace.GraphicsController.Controls.GraphicsController | GraphicsController [get, set] |
The graphics corntroller of plugin. | |
Ix4Trace.Engine.Controller | Controller [get] |
The controller. | |
string | PluginName [get] |
Name of the plugin. | |
string | PluginFolder [get] |
Folder of plugin on main control. | |
string | BackPageName [get, set] |
Previous plugin name. | |
DesktopPluginManager | PageManager [get] |
Desktop plugin manager. | |
string | PluginText [get] |
Text of plugin. | |
int | UserRight [get] |
Right of user. Plugin will be listed whe the user has the right. | |
bool | IsVisibleInMenu [get] |
Plugin is visible in the menu. | |
bool | IsVisibleInTaskBar [get] |
Plugin is visible in the taskbar. | |
Image | TreeViewImage [get, set] |
Image of plugin in the treeview. | |
Image | TaskBarImage [get, set] |
Image of plugin in the taskbar. | |
Image | FolderImage [get, set] |
Image of folder. | |
int | MenuIndex [get] |
Index of the plugin in the treeview. | |
FormStyle | FormStyle [get, set] |
Style of from. | |
FormAdjustment | FormAdjustment [get, set] |
Adjustment of form. | |
int | AutoLoadRight [get] |
Plugin will be automatically loaded when the user has the right. | |
Events | |
PluginClosed | PluginClosed = null |
Event of plugin closed. | |
PluginInitialized | PluginInitialized = null |
Event of plugin initialized. | |
PluginLoaded | PluginLoaded = null |
Event of plugin loaded. | |
Private Member Functions | |
void | DesktopPlugin_MouseDown (object sender, MouseEventArgs e) |
Mouse down of plugin. | |
void | DesktopPlugin_ExceptionEVT (Exception ex) |
Exception was thrown on the plugin. | |
void | RunAction (Action method) |
Runs action. Shows exceptions in messagebox. | |
void | GraphicsController_ShowYesNoDialogEVT (string message, out bool result) |
Event of yes no dialog request of graphics controller. | |
void | GraphicsController_InvokeMethod (Action action) |
Event of invoke request of graphics controller. | |
void | GraphicsController_CloseEvent (GraphicsController.Controls.GraphicsController gc) |
Event of close request of graphics controller. | |
void | InitializeComponent () |
Required method for Designer support - do not modify the contents of this method with the code editor. | |
Private Attributes | |
Ix4Trace.GraphicsController.Controls.GraphicsController | graphicsController |
The graphics controller of plugin. | |
System.ComponentModel.IContainer | components = null |
Required designer variable. | |
System.Windows.Forms.ToolTip | toolTip |
Represents a desktop plugin.
|
protected |
Copies the properties of the control.
cOriginal | Original control. |
cCopy | Copied control. |
|
private |
Exception was thrown on the plugin.
ex | Throwed exception. |
|
private |
Mouse down of plugin.
sender | The control. |
e | Event arguments. |
|
protected |
Clean up any resources being used.
disposing | true if managed resources should be disposed; otherwise, false. |
|
private |
Event of close request of graphics controller.
gc | The graphics controller. |
|
private |
Event of invoke request of graphics controller.
action | The action to invoke. |
|
private |
Event of yes no dialog request of graphics controller.
message | Message to show. |
result | Result of dialog. |
|
virtual |
Hides the navigation bar.
Reimplemented in Ix4Trace.Desktop.Plugins.ExtendedPlugin.
|
virtual |
Initializes the plugin.
controller | The controller. |
pluginManager | The plugin manager. |
void Ix4Trace.Desktop.Plugins.DesktopPlugin.Invoke | ( | Action | method | ) |
Invoke the method.
method | The method to invoke. |
|
virtual |
Runs when plugin closed. Fires plugin closed event.
Reimplemented in Ix4Trace.Desktop.Plugins.ExtendedPlugin.
|
private |
Runs action. Shows exceptions in messagebox.
method | Method to run. |
|
protected |
Sets the language of controls.
c | The control to set. |
|
virtual |
Sets the parameters of the plugin.
parameters | Array of parameters. |
void Ix4Trace.Desktop.Plugins.DesktopPlugin.SetPluginToIControls | ( | ControlCollection | controlCollection | ) |
Initializes the controls of plugin.
controlCollection | Collection of controls. |
void Ix4Trace.Desktop.Plugins.DesktopPlugin.ShowMessage | ( | string | message | ) |
Show message on plugin.
message | The message. |
|
protected |
Shows messages when the parameters conains any messages.
parameters |
|
virtual |
Shows the navigation bar.
Reimplemented in Ix4Trace.Desktop.Plugins.ExtendedPlugin.
ProgressBar.ProgressBar Ix4Trace.Desktop.Plugins.DesktopPlugin.ShowProgressBar | ( | string | message, |
int | max ) |
Shows the progress bar with text.
message | Text of message. |
max | Maximum steps of progress bar. |