x4Trace Documentation v1.0
Loading...
Searching...
No Matches
Ix4Trace.Desktop.Plugins.ExtendedPlugin Class Reference

Represents an extension of plugin. This extension has exit and popout button, menus, etc. More...

Inheritance diagram for Ix4Trace.Desktop.Plugins.ExtendedPlugin:
Ix4Trace.Desktop.Plugins.DesktopPlugin

Public Member Functions

 ExtendedPlugin ()
 Constructor.
 
void AddMenu (PluginMenu pluginMenu, string text)
 Adds new menu to plugin.
 
void AddMenu (int index, PluginMenu pluginMenu, string text)
 Adds new menu to plugin.
 
override void OnClosePlugin ()
 Runs when plugin closes.
 
override void HideNavigation ()
 Hides the navigation buttons.
 
override void ShowNavigation ()
 Shows the navigation buttons.
 
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 OnPluginInitialized ()
 Fires plugin initialised event.
 
virtual void OnPluginLoaded ()
 Fires plugin loaded event.
 
virtual void ClosePlugin ()
 Closes the plugin.
 
void Invoke (Action method)
 Invoke the method.
 
virtual void SetToFront ()
 Sets the controls Z-index to front.
 

Public Attributes

List< PluginMenumenuList = new List<PluginMenu>()
 List of menus.
 

Protected Member Functions

virtual void Print ()
 Prints the content of plugin.
 
virtual void Print (PrinterSettings settings)
 Runs when print is started.
 
override void Dispose (bool disposing)
 Clean up any resources being used.
 
virtual void Initialize ()
 Initializes the plugin.
 
virtual void SetLanguage ()
 Sets the labguage of plugin.
 
void SetLanguage (Control c)
 Sets the language of controls.
 
void ShowMessagesFromParameters (object[] parameters)
 Shows messages when the parameters conains any messages.
 
void CopyControlProperties (Control cOriginal, Control cCopy)
 Copies the properties of the control.
 

Protected Attributes

System.Windows.Forms.TabControl tcMenu
 
WControls.Input.WButton btExit
 
WControls.Input.WButton btPopOut
 
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 btPopOut_Click (object sender, EventArgs e)
 Click of popout button.
 
void btExit_Click (object sender, EventArgs e)
 Click of exit button.
 
void InitializeComponent ()
 Required method for Designer support - do not modify the contents of this method with the code editor.
 
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.
 

Private Attributes

System.ComponentModel.IContainer components = null
 Required designer variable.
 
Ix4Trace.GraphicsController.Controls.GraphicsController graphicsController
 The graphics controller of plugin.
 
System.Windows.Forms.ToolTip toolTip
 

Detailed Description

Represents an extension of plugin. This extension has exit and popout button, menus, etc.

Member Function Documentation

◆ AddMenu() [1/2]

void Ix4Trace.Desktop.Plugins.ExtendedPlugin.AddMenu ( int index,
PluginMenu pluginMenu,
string text )

Adds new menu to plugin.

Parameters
indexIndex of menu.
pluginMenuThe menu.
textText of menu.

◆ AddMenu() [2/2]

void Ix4Trace.Desktop.Plugins.ExtendedPlugin.AddMenu ( PluginMenu pluginMenu,
string text )

Adds new menu to plugin.

Parameters
pluginMenuThe menu.
textText of menu.

◆ btExit_Click()

void Ix4Trace.Desktop.Plugins.ExtendedPlugin.btExit_Click ( object sender,
EventArgs e )
private

Click of exit button.

Parameters
senderSender button.
eEvent arguments.

◆ btPopOut_Click()

void Ix4Trace.Desktop.Plugins.ExtendedPlugin.btPopOut_Click ( object sender,
EventArgs e )
private

Click of popout button.

Parameters
senderSender button.
eEvent arguments.

◆ CopyControlProperties()

void Ix4Trace.Desktop.Plugins.DesktopPlugin.CopyControlProperties ( Control cOriginal,
Control cCopy )
protectedinherited

Copies the properties of the control.

Parameters
cOriginalOriginal control.
cCopyCopied control.

◆ DesktopPlugin_ExceptionEVT()

void Ix4Trace.Desktop.Plugins.DesktopPlugin.DesktopPlugin_ExceptionEVT ( Exception ex)
privateinherited

Exception was thrown on the plugin.

Parameters
exThrowed exception.

◆ DesktopPlugin_MouseDown()

void Ix4Trace.Desktop.Plugins.DesktopPlugin.DesktopPlugin_MouseDown ( object sender,
MouseEventArgs e )
privateinherited

Mouse down of plugin.

Parameters
senderThe control.
eEvent arguments.

◆ Dispose()

override void Ix4Trace.Desktop.Plugins.ExtendedPlugin.Dispose ( bool disposing)
protected

Clean up any resources being used.

Parameters
disposingtrue if managed resources should be disposed; otherwise, false.

◆ GraphicsController_CloseEvent()

void Ix4Trace.Desktop.Plugins.DesktopPlugin.GraphicsController_CloseEvent ( GraphicsController.Controls.GraphicsController gc)
privateinherited

Event of close request of graphics controller.

Parameters
gcThe graphics controller.

◆ GraphicsController_InvokeMethod()

void Ix4Trace.Desktop.Plugins.DesktopPlugin.GraphicsController_InvokeMethod ( Action action)
privateinherited

Event of invoke request of graphics controller.

Parameters
actionThe action to invoke.

◆ GraphicsController_ShowYesNoDialogEVT()

void Ix4Trace.Desktop.Plugins.DesktopPlugin.GraphicsController_ShowYesNoDialogEVT ( string message,
out bool result )
privateinherited

Event of yes no dialog request of graphics controller.

Parameters
messageMessage to show.
resultResult of dialog.

◆ HideNavigation()

override void Ix4Trace.Desktop.Plugins.ExtendedPlugin.HideNavigation ( )
virtual

Hides the navigation buttons.

Reimplemented from Ix4Trace.Desktop.Plugins.DesktopPlugin.

◆ Initialize()

virtual void Ix4Trace.Desktop.Plugins.DesktopPlugin.Initialize ( Ix4Trace.Engine.Controller controller,
DesktopPluginManager pluginManager )
virtualinherited

Initializes the plugin.

Parameters
controllerThe controller.
pluginManagerThe plugin manager.

◆ Invoke()

void Ix4Trace.Desktop.Plugins.DesktopPlugin.Invoke ( Action method)
inherited

Invoke the method.

Parameters
methodThe method to invoke.

◆ OnClosePlugin()

override void Ix4Trace.Desktop.Plugins.ExtendedPlugin.OnClosePlugin ( )
virtual

Runs when plugin closes.

Reimplemented from Ix4Trace.Desktop.Plugins.DesktopPlugin.

◆ Print()

virtual void Ix4Trace.Desktop.Plugins.ExtendedPlugin.Print ( PrinterSettings settings)
protectedvirtual

Runs when print is started.

Parameters
settingsPrinter settings.

◆ RunAction()

void Ix4Trace.Desktop.Plugins.DesktopPlugin.RunAction ( Action method)
privateinherited

Runs action. Shows exceptions in messagebox.

Parameters
methodMethod to run.

◆ SetLanguage()

void Ix4Trace.Desktop.Plugins.DesktopPlugin.SetLanguage ( Control c)
protectedinherited

Sets the language of controls.

Parameters
cThe control to set.

◆ SetParameters()

virtual void Ix4Trace.Desktop.Plugins.DesktopPlugin.SetParameters ( object[] parameters)
virtualinherited

Sets the parameters of the plugin.

Parameters
parametersArray of parameters.

◆ SetPluginToIControls()

void Ix4Trace.Desktop.Plugins.DesktopPlugin.SetPluginToIControls ( ControlCollection controlCollection)
inherited

Initializes the controls of plugin.

Parameters
controlCollectionCollection of controls.

◆ ShowMessage()

void Ix4Trace.Desktop.Plugins.DesktopPlugin.ShowMessage ( string message)
inherited

Show message on plugin.

Parameters
messageThe message.

◆ ShowMessagesFromParameters()

void Ix4Trace.Desktop.Plugins.DesktopPlugin.ShowMessagesFromParameters ( object[] parameters)
protectedinherited

Shows messages when the parameters conains any messages.

Parameters
parameters

◆ ShowNavigation()

override void Ix4Trace.Desktop.Plugins.ExtendedPlugin.ShowNavigation ( )
virtual

Shows the navigation buttons.

Reimplemented from Ix4Trace.Desktop.Plugins.DesktopPlugin.

◆ ShowProgressBar()

ProgressBar.ProgressBar Ix4Trace.Desktop.Plugins.DesktopPlugin.ShowProgressBar ( string message,
int max )
inherited

Shows the progress bar with text.

Parameters
messageText of message.
maxMaximum steps of progress bar.
Returns
The progressbar.

The documentation for this class was generated from the following files: