Code

r10985@tres: ted | 2006-02-25 21:56:46 -0800
authorgouldtj <gouldtj@users.sourceforge.net>
Wed, 29 Mar 2006 05:42:00 +0000 (05:42 +0000)
committergouldtj <gouldtj@users.sourceforge.net>
Wed, 29 Mar 2006 05:42:00 +0000 (05:42 +0000)
 Adding in documentation

src/extension/prefdialog.cpp
src/extension/prefdialog.h

index 0006874f1cbebb3ae0e1986e5fafd26b35659e5f..c9d32c7e2c75f2ed204d0f63d216ac32cb639f81 100644 (file)
 namespace Inkscape {
 namespace Extension {
 
+/** \brief  Creates a new preference dialog for extension preferences
+    \param  name  Name of the Extension who's dialog this is
+    \param  help  The help string for the extension (NULL if none)
+    \param  controls  The extension specific widgets in the dialog
+    
+    This function initializes the dialog with the name of the extension
+    in the title.  It adds a few buttons and sets up handlers for
+    them.  It also places the passed in widgets into the dialog.
+*/
 PrefDialog::PrefDialog (Glib::ustring name, gchar const * help, Gtk::Widget * controls) :
     Gtk::Dialog::Dialog(name + _(" Preferences"), true, true), _help(help), _name(name)
 {
@@ -41,6 +50,15 @@ PrefDialog::PrefDialog (Glib::ustring name, gchar const * help, Gtk::Widget * co
     return;
 }
 
+/** \brief  Runs the dialog
+    \return The response to the dialog
+
+    This function overrides the run function in the GTKmm dialog
+    class, but basically it only calls it.  This function only
+    handles the \c Gtk::RESPONSE_HELP return, and in that case it
+    brings up the help window.  All other return values are returned
+    to the calling function.
+*/
 int
 PrefDialog::run (void) {
     int resp = Gtk::RESPONSE_HELP;
index 371f06376a677eb4263ff41d7a444b7596e6f82a..8092a83d9c1715409755f9ef50a95ece789184b9 100644 (file)
@@ -20,6 +20,7 @@
 namespace Inkscape {
 namespace Extension {
 
+/** \brief  A class to represent the preferences for an extension */
 class PrefDialog : public Gtk::Dialog {
     /** \brief  Help string if it exists */
     gchar const * _help;