summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fd5e7b5)
raw | patch | inline | side by side (parent: fd5e7b5)
author | johanengelen <johanengelen@users.sourceforge.net> | |
Wed, 16 Jan 2008 20:28:24 +0000 (20:28 +0000) | ||
committer | johanengelen <johanengelen@users.sourceforge.net> | |
Wed, 16 Jan 2008 20:28:24 +0000 (20:28 +0000) |
src/ui/widget/registered-widget.cpp | patch | blob | history | |
src/ui/widget/registered-widget.h | patch | blob | history |
index f471dc40d35d1d5f3caa5ec48be3861d3eed2965..4d0e05e98058b97ed73744b2258dc8f1a533b312 100644 (file)
namespace UI {
namespace Widget {
-//===================================================
-
void
RegisteredWdg::write_to_xml(const char * svgstr)
{
}
-//====================================================
+/*#########################################
+ * Registered CHECKBUTTON
+ */
RegisteredCheckButton::~RegisteredCheckButton()
{
_wr->setUpdating (false);
}
+
+/*#########################################
+ * Registered UNITMENU
+ */
+
RegisteredUnitMenu::RegisteredUnitMenu()
: _label(0), _sel(0)
{
}
+/*#########################################
+ * Registered SCALARUNIT
+ */
+
RegisteredScalarUnit::RegisteredScalarUnit()
: _widget(0), _um(0)
{
_wr->setUpdating (false);
}
+
+/*#########################################
+ * Registered SUFFIXEDINTEGER
+ */
+
RegisteredSuffixedInteger::RegisteredSuffixedInteger()
: _label(0),
setProgrammatically(false),
_wr->setUpdating (false);
}
+
+/*#########################################
+ * Registered RADIOBUTTONPAIR
+ */
+
RegisteredRadioButtonPair::RegisteredRadioButtonPair()
: _hbox(0),
setProgrammatically(false)
_wr->setUpdating (false);
}
+
/*#########################################
* Registered POINT
*/
_value_y_changed_connection.disconnect();
}
-RegisteredPoint::RegisteredPoint ( const Glib::ustring& label, const Glib::ustring& tip,
- const Glib::ustring& key, Registry& wr, Inkscape::XML::Node* repr_in,
+RegisteredPoint::RegisteredPoint ( const Glib::ustring& label, const Glib::ustring& tip,
+ const Glib::ustring& key, Registry& wr, Inkscape::XML::Node* repr_in,
SPDocument* doc_in )
: RegisteredWidget<Point> (label, tip)
{
_wr->setUpdating (false);
}
+
/*#########################################
* Registered RANDOM
*/
_reseeded_connection.disconnect();
}
-RegisteredRandom::RegisteredRandom ( const Glib::ustring& label, const Glib::ustring& tip,
+RegisteredRandom::RegisteredRandom ( const Glib::ustring& label, const Glib::ustring& tip,
const Glib::ustring& key, Registry& wr, Inkscape::XML::Node* repr_in,
SPDocument * doc_in )
: RegisteredWidget<Random> (label, tip)
@@ -559,7 +580,7 @@ RegisteredRandom::RegisteredRandom ( const Glib::ustring& label, const Glib::ust
void
RegisteredRandom::setValue (double val, long startseed)
{
- static_cast<Scalar*>(this)->setValue (val);
+ Scalar::setValue (val);
setStartSeed(startseed);
}
index 900eaafbb7b0ddd0e71c443d9698282e47c6d8da..3d99aec5b42a689714453f6361f5331fd611848a 100644 (file)
Registry& wr,
Inkscape::XML::Node* repr_in,
SPDocument *doc_in);
- inline void init ( const Glib::ustring& label,
- const Glib::ustring& key,
+ inline void init ( const Glib::ustring& label,
+ const Glib::ustring& key,
Registry& wr)
{ init(label, key, wr, NULL, NULL); };
public:
RegisteredColorPicker();
~RegisteredColorPicker();
- void init (const Glib::ustring& label,
- const Glib::ustring& title,
- const Glib::ustring& tip,
- const Glib::ustring& ckey,
+ void init (const Glib::ustring& label,
+ const Glib::ustring& title,
+ const Glib::ustring& tip,
+ const Glib::ustring& ckey,
const Glib::ustring& akey,
Registry& wr,
Inkscape::XML::Node* repr_in,
SPDocument *doc_in);
- inline void init ( const Glib::ustring& label,
- const Glib::ustring& title,
- const Glib::ustring& tip,
- const Glib::ustring& ckey,
- const Glib::ustring& akey,
+ inline void init ( const Glib::ustring& label,
+ const Glib::ustring& title,
+ const Glib::ustring& tip,
+ const Glib::ustring& ckey,
+ const Glib::ustring& akey,
Registry& wr)
{ init(label, title, tip, ckey, akey, wr, NULL, NULL); };
public:
RegisteredSuffixedInteger();
~RegisteredSuffixedInteger();
- void init (const Glib::ustring& label1,
- const Glib::ustring& label2,
+ void init (const Glib::ustring& label1,
+ const Glib::ustring& label2,
const Glib::ustring& key,
Registry& wr,
Inkscape::XML::Node* repr_in,
SPDocument *doc_in);
- inline void init ( const Glib::ustring& label1,
- const Glib::ustring& label2,
- const Glib::ustring& key,
+ inline void init ( const Glib::ustring& label1,
+ const Glib::ustring& label2,
+ const Glib::ustring& key,
Registry& wr)
{ init(label1, label2, key, wr, NULL, NULL); };
void setValue (int);
Gtk::Label *_label;
Gtk::HBox _hbox;
- bool setProgrammatically; // true if the value was set by setValue, not changed by the user;
+ bool setProgrammatically; // true if the value was set by setValue, not changed by the user;
// if a callback checks it, it must reset it back to false
protected:
public:
RegisteredRadioButtonPair();
~RegisteredRadioButtonPair();
- void init (const Glib::ustring& label,
- const Glib::ustring& label1,
- const Glib::ustring& label2,
- const Glib::ustring& tip1,
- const Glib::ustring& tip2,
+ void init (const Glib::ustring& label,
+ const Glib::ustring& label1,
+ const Glib::ustring& label2,
+ const Glib::ustring& tip1,
+ const Glib::ustring& tip2,
const Glib::ustring& key,
Registry& wr,
Inkscape::XML::Node* repr_in,
SPDocument *doc_in);
- inline void init ( const Glib::ustring& label,
- const Glib::ustring& label1,
- const Glib::ustring& label2,
- const Glib::ustring& tip1,
- const Glib::ustring& tip2,
- const Glib::ustring& key,
+ inline void init ( const Glib::ustring& label,
+ const Glib::ustring& label1,
+ const Glib::ustring& label2,
+ const Glib::ustring& tip1,
+ const Glib::ustring& tip2,
+ const Glib::ustring& key,
Registry& wr)
{ init(label, label1, label2, tip1, tip2, key, wr, NULL, NULL); };
void setValue (bool second);
Gtk::HBox *_hbox;
- bool setProgrammatically; // true if the value was set by setValue, not changed by the user;
+ bool setProgrammatically; // true if the value was set by setValue, not changed by the user;
// if a callback checks it, it must reset it back to false
protected:
Gtk::RadioButton *_rb1, *_rb2;
class RegisteredPoint : public RegisteredWidget<Point> {
public:
virtual ~RegisteredPoint();
- RegisteredPoint ( const Glib::ustring& label,
- const Glib::ustring& tip,
- const Glib::ustring& key,
+ RegisteredPoint ( const Glib::ustring& label,
+ const Glib::ustring& tip,
+ const Glib::ustring& key,
Registry& wr,
Inkscape::XML::Node* repr_in = NULL,
SPDocument *doc_in = NULL );
class RegisteredRandom : public RegisteredWidget<Random> {
public:
virtual ~RegisteredRandom();
- RegisteredRandom ( const Glib::ustring& label,
- const Glib::ustring& tip,
- const Glib::ustring& key,
+ RegisteredRandom ( const Glib::ustring& label,
+ const Glib::ustring& tip,
+ const Glib::ustring& key,
Registry& wr,
Inkscape::XML::Node* repr_in = NULL,
SPDocument *doc_in = NULL);