xide_plugin_system
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | xide_plugin_system [2018/01/26 05:05] (current) – created wolfgangriedmann | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== The XIDE plugin system ====== | ||
+ | |||
+ | XIDE comes with a possibility to easily enhance it. [[xide_plugin_sample|Here]] you can find a complete sample (binaries and source) to use and maybe to enhance. | ||
+ | |||
+ | The core of a plugin is to define a class that inherits from Xide.PluginSystem.Plugin and implements the '' | ||
+ | After you have built your plugin dll, simply copy it in the plugin subdirectory of the XIDE directory, and it will be loaded on the next start of XIDE. | ||
+ | |||
+ | And this is a sample code by Chris Pyrgas, the author of XIDE: | ||
+ | |||
+ | < | ||
+ | using System.Windows.Forms | ||
+ | |||
+ | class TestPlugin inherit Xide.PluginSystem.Plugin | ||
+ | protect oService as PluginService | ||
+ | |||
+ | virtual method Initialize(_oService as PluginService) as void | ||
+ | |||
+ | self: | ||
+ | |||
+ | local oMenuItem as MenuItem | ||
+ | |||
+ | oMenuItem := MenuItem{" | ||
+ | self: | ||
+ | |||
+ | oMenuItem := MenuItem{" | ||
+ | self: | ||
+ | |||
+ | return | ||
+ | |||
+ | method PluginMenuItem_Edit_clicked(o as object,e as EventArgs) as void | ||
+ | local oFilePad as FilePad | ||
+ | local oEditor as Editor | ||
+ | |||
+ | oFilePad := self: | ||
+ | if oFilePad == null | ||
+ | return | ||
+ | end if | ||
+ | oEditor := oFilePad: | ||
+ | oEditor: | ||
+ | oEditor: | ||
+ | oEditor: | ||
+ | oEditor: | ||
+ | | ||
+ | return | ||
+ | |||
+ | method PluginMenuItem_Window_clicked(o as object,e as EventArgs) as void | ||
+ | local oProject as Project | ||
+ | |||
+ | oProject := self: | ||
+ | if oProject == null | ||
+ | return | ||
+ | end if | ||
+ | MessageBox.Show(" | ||
+ | return | ||
+ | |||
+ | virtual property Name as string get "A test plugin" | ||
+ | |||
+ | end class</ | ||
xide_plugin_system.txt · Last modified: 2018/01/26 05:05 by wolfgangriedmann