i followed the pages i found at Qgis Wiki about plugin design and got it done. One issue i couldn't understand is no connections for OK and Cancel button are not specified in NorthArrow plugin code plugingui.cpp/plugin.cpp. Same i tried to do but i couldn't get desired output, connection for pbnOK_clicked() was not formed with click button event. I. For my code i have code that part myself. I couldn't understand this?  kindly guide me in it.
<br><br><div><span class="gmail_quote">On 5/30/06, <b class="gmail_sendername">Tim Sutton</b> &lt;<a href="mailto:tim@linfiniti.com">tim@linfiniti.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi<br><br>Note there is a script in src/plugins/plugin_builder.pl that will<br>generate a plugin template for you that is all ready for your own<br>customisations.<br><br>If you do folow the approach you took of cloning an existing plugin,
<br>be sure to modify <a href="http://configure.in">configure.in</a> too to make sure it gets built. The<br>plugin builder script does this all for you.<br><br>Regards<br><br>Tim<br><br>On 5/30/06, humarco &lt;<a href="mailto:marco.hugentobler@karto.baug.ethz.ch">
marco.hugentobler@karto.baug.ethz.ch</a>&gt; wrote:<br>&gt; Hi nitin,<br>&gt;<br>&gt; Am Montag 29 Mai 2006 10:18 schrieb nitin quick:<br>&gt; &gt; Hello Everybody,<br>&gt; &gt; I am currently using qgis0.7.9 downloaded from svn installed on FC4.
<br>&gt; &gt; I need to add plugin to qgis which will display direction of wind.<br>&gt; &gt; NorthArrow Plugin provides similar functionality. So i did make copy of<br>&gt; &gt; that code put my Cock.png file path in place of north_arrow in a new folder
<br>&gt; &gt; named Cock in src/plugins/. I changed the code a bit ( north_arrow to Cock<br>&gt; &gt; , just change of name). and addition in configure script similar o existing<br>&gt; &gt; code. Now my questions are:<br>
&gt; &gt; i). Am i doing correect for adding a new plugin? Is it good way or there is<br>&gt; &gt; scope of improvement which i think will be?<br>&gt; &gt; ii) Is it required to compile Qgis fully to make my plugin functionable .
<br>&gt; &gt; Is there any way where i can only compile new plugin code and link it<br>&gt; &gt; dynamiclly.<br>&gt;<br>&gt; There is nothing wrong in creating new plugins by looking how existing ones<br>&gt; work. If you also copied and adapted the auto* stuff of the NorthArrow
<br>&gt; plugin, then your plugin should be built together with qgis. But it is not<br>&gt; required to compile the whole qgis for your plugin. You may just compile the<br>&gt; sources of your plugin into a shared library without building qgis from
<br>&gt; source. All you need for it is the qt and qgis headers and of course you need<br>&gt; to link the plugin to the qgis libraries (libgui, libraster, ...).<br>&gt;<br>&gt; &gt; iii)For adding plugin menu to GUI we are using code ..
<br>&gt; &gt;<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; qGisInterface-&gt;addPluginMenu(tr(&quot;&amp;Decoration&quot;),myQActionPointer);<br>&gt; &gt;&nbsp;&nbsp; what does &quot;&amp;Decoration&quot; signify here.<br>&gt;<br>&gt; &quot;Decoration&quot; is the name of the menu entry (and Control-D the shortcut for it)
<br>&gt;<br>&gt; &gt; Any suggestions on any study material or tutorial which will help me in<br>&gt; &gt; designing plugin are welcome. I am currently reading&nbsp;&nbsp;source code to do so.<br>&gt;<br>&gt; On the qgis wiki, there are several articles about plugin programming:
<br>&gt;<br>&gt; <a href="http://wiki.qgis.org/qgiswiki/DevelopersCorner#head-3709e61959139ab8995e0542a9ad930c2d17090a">http://wiki.qgis.org/qgiswiki/DevelopersCorner#head-3709e61959139ab8995e0542a9ad930c2d17090a</a><br>&gt;
<br>&gt; section 'Help on writing plugins'<br>&gt;<br>&gt; Marco<br>&gt; _______________________________________________<br>&gt; Qgis-developer mailing list<br>&gt; <a href="mailto:Qgis-developer@lists.qgis.org">Qgis-developer@lists.qgis.org
</a><br>&gt; <a href="http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-developer">http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-developer</a><br>&gt;<br><br><br>--<br>Tim Sutton<br><br>Visit <a href="http://qgis.org">
http://qgis.org</a> for a great Open Source GIS<br>Skype: timlinux<br>MSN: <a href="mailto:tim_bdworld@msn.com">tim_bdworld@msn.com</a><br>Yahoo: <a href="mailto:tim_bdworld@yahoo.com">tim_bdworld@yahoo.com</a><br>Jabber: timlinux
<br>Irc: timlinux on #qgis at <a href="http://freenode.net">freenode.net</a><br></blockquote></div><br>