Sophie

Sophie

distrib > Mandriva > 10.0 > i586 > media > contrib > by-pkgid > e42466f081a63a01cff2cdde695034f3 > files > 41

kmovisto-0.7.0-1mdk.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
 <META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
 <TITLE>The KMovisto Handbook: Plugin Interface</TITLE>
 <LINK HREF="index-7.html" REL=next>
 <LINK HREF="index-5.html" REL=previous>
 <LINK HREF="index.html#toc5" REL=contents>
</HEAD>
<BODY>
<A HREF="index-7.html">Next</A>
<A HREF="index-5.html">Previous</A>
<A HREF="index.html#toc6">Contents</A>
<HR>
<H2><A NAME="s6">6. Plugin Interface</A></H2>
<P>
<H2><A NAME="ss6.1">6.1 Introduction</A>
</H2>
<P>
Since release 0.6.0 you have the ability to extend KMovisto by plugins. KMovisto plugins are
shared objects which could be loaded or unloaded dynamicly at runtime via plugin manager.
The well documented interface version 1.0.0 provides file import and export routines which
could be used to extend KMovisto capabilities to work with common molecule file formats. Plugins
are fully integrated in the program window, so they are used by toolbar button or import menu.
The user has also the ability to define working directories if this is supported by the plugin.
<P>
Plugin libraries are programed in standard c++, so developers who are familiar with c++ will
have no problems to create own plugins. For further informations how to write KMovisto plugins
see <A HREF="index-6.html#ss6.3">chapter 6.3</A>.
<P>
<H2><A NAME="ss6.2">6.2 Plugin Manager</A>
</H2>
<P>
The plugin manager (<B>Fig. 24</B>, menu <I>Preferences</I>) is the central unit to activate or
deactivate plugins. Since plugins are libraries they are handled like other shared object (*.so) files,
so by default they should be located in <I>/user/lib</I>. The user can select the plugin file by
clicking <I>Add</I>.
<P>
<DIV align="center"><img src="./images/dialog_pluginmanager.jpg"></DIV>
<P>
<BLOCKQUOTE><CODE>
<PRE>
<B>Fig. 24:</B> Plugin manager
</PRE>
</CODE></BLOCKQUOTE>
<P>
If the selected library is a valid KMovisto plugin file, the plugin description, properties and legacy
informations are displayed and the plugin funtions are usable immediately after leaving the Plugin
manager. Plugins can also excluded from the program by pressing the <I>Delete</I> button after highlighting the
plugin in the listbox.
<P>
<H2><A NAME="ss6.3">6.3 Plugin Interface development</A>
</H2>
<P>
As described above KMovisto plugins are common shared libraries. For detailed informations see
<A HREF="kmpi_index.html">The KMovisto Plugin Development Handbook</A>
<P>
<HR>
<A HREF="index-7.html">Next</A>
<A HREF="index-5.html">Previous</A>
<A HREF="index.html#toc6">Contents</A>
</BODY>
</HTML>