diff options
Diffstat (limited to 'doc/api/HowToAddPlugins.dox')
-rw-r--r-- | doc/api/HowToAddPlugins.dox | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/api/HowToAddPlugins.dox b/doc/api/HowToAddPlugins.dox index b0b282db..fa7f74e2 100644 --- a/doc/api/HowToAddPlugins.dox +++ b/doc/api/HowToAddPlugins.dox @@ -8,7 +8,7 @@ For a plugin <code>foo</code>, create a file <code>foo.desktop</code> which contains KDevelop/Part in its list of ServiceTypes. - - See <code>parts/doctreeview/tdevdoctreeview.desktop</code> for an example. + - See <code>parts/doctreeview/kdevdoctreeview.desktop</code> for an example. . If you install this file into <code>\$(kde_servicesdir)</code>, your plugin will automatically be loaded. @@ -80,9 +80,9 @@ See <code>parts/doctreeview/doctreeviewfactory.cpp</code> for an example. \section implementPart Step 3: Implement your part. -Your part must be derived from <code>TDevPlugin</code>. +Your part must be derived from <code>KDevPlugin</code>. - - TDevPlugin takes two arguments: + - KDevPlugin takes two arguments: - 1) A <i>parent</i> argument. This also comes from <code>createPartObject()</code>. - 2) A <i>name</i>, which in turn is given to the <code>QObject</code> @@ -93,7 +93,7 @@ Your part must be derived from <code>TDevPlugin</code>. \subsection accessIDE How to access other IDE components A part can access other components of the IDE via some accessors -of <code>TDevPlugin</code>: +of <code>KDevPlugin</code>: - The <i>application core</i> via <code>core()</code>, - the <i>build tools</i> via <code>project()</code>, @@ -155,7 +155,7 @@ to write it back. \subsection sessionAccess Project session file (*.kdevses) -The base class of all TDevelop plugins is TDevPlugin. It provides two virtual methods +The base class of all TDevelop plugins is KDevPlugin. It provides two virtual methods restorePartialProjectSession(..) and savePartialProjectSession(..) that you should reimplement in your special plugin to attach to session loading and saving. |