summaryrefslogtreecommitdiffstats
path: root/src/extension/paramenum.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/extension/param/enum.cpp (renamed from src/extension/paramenum.cpp)16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/extension/paramenum.cpp b/src/extension/param/enum.cpp
index 336b4fd66..274220699 100644
--- a/src/extension/paramenum.cpp
+++ b/src/extension/param/enum.cpp
@@ -27,12 +27,12 @@
#include <xml/node.h>
-#include "extension.h"
-#include "prefs-utils.h"
-#include "document-private.h"
-#include "sp-object.h"
+#include <extension/extension.h>
+#include <prefs-utils.h>
+#include <document-private.h>
+#include <sp-object.h>
-#include "paramenum.h"
+#include "enum.h"
/** \brief The root directory in the preferences database for extension
related parameters. */
@@ -59,8 +59,8 @@ public:
};
-ParamComboBox::ParamComboBox (const gchar * name, const gchar * guitext, const gchar * desc, const Parameter::_scope_t scope, Inkscape::Extension::Extension * ext, Inkscape::XML::Node * xml) :
- Parameter(name, guitext, desc, scope, ext)
+ParamComboBox::ParamComboBox (const gchar * name, const gchar * guitext, const gchar * desc, const Parameter::_scope_t scope, bool gui_hidden, const gchar * gui_tip, Inkscape::Extension::Extension * ext, Inkscape::XML::Node * xml) :
+ Parameter(name, guitext, desc, scope, gui_hidden, gui_tip, ext)
{
choices = NULL;
_value = NULL;
@@ -224,6 +224,8 @@ ParamComboBoxEntry::changed (void)
Gtk::Widget *
ParamComboBox::get_widget (SPDocument * doc, Inkscape::XML::Node * node, sigc::signal<void> * changeSignal)
{
+ if (_gui_hidden) return NULL;
+
Gtk::HBox * hbox = Gtk::manage(new Gtk::HBox(false, 4));
Gtk::Label * label = Gtk::manage(new Gtk::Label(_(_text), Gtk::ALIGN_LEFT));