summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4ea30e1)
raw | patch | inline | side by side (parent: 4ea30e1)
author | cilix42 <cilix42@users.sourceforge.net> | |
Wed, 30 Jul 2008 10:56:44 +0000 (10:56 +0000) | ||
committer | cilix42 <cilix42@users.sourceforge.net> | |
Wed, 30 Jul 2008 10:56:44 +0000 (10:56 +0000) |
src/live_effects/lpe-ruler.h | patch | blob | history | |
src/live_effects/parameter/text.cpp | patch | blob | history | |
src/live_effects/parameter/text.h | patch | blob | history |
index f19063271dde70f38dc519abd770c054ea05e418..7ebc62fdbae6f0ad37230cc8b0cf73f65b585f9c 100644 (file)
ScalarParam mark_distance;
ScalarParam mark_length;
ScalarParam scale;
- TextParam info_text;
+ TextParamInternal info_text;
LPERuler(const LPERuler&);
LPERuler& operator=(const LPERuler&);
};
index bf11192dd23cf5778947f4cf93260f310fb8595e..f55dca4d8826ecea2040e366da53d8e1b15482a8 100644 (file)
sp_canvastext_set_coords (canvas_text, 0, 0);
}
-TextParam::~TextParam()
-{
-}
-
void
TextParam::param_set_default()
{
index ee47f028f199513017d0f0f1f05084eadb4dd636..c3eddd9fa1a28e4808317ad35c171d7f01003c65 100644 (file)
Inkscape::UI::Widget::Registry* wr,
Effect* effect,
const Glib::ustring default_value = "");
- virtual ~TextParam();
+ virtual ~TextParam() {}
virtual Gtk::Widget * param_newWidget(Gtk::Tooltips * tooltips);
SPCanvasText *canvas_text;
};
+/*
+ * This parameter does not display a widget in the LPE dialog; LPEs can use it to display text that
+ * should not be settable by the user
+ */
+class TextParamInternal : public TextParam {
+public:
+ TextParamInternal(const Glib::ustring& label,
+ const Glib::ustring& tip,
+ const Glib::ustring& key,
+ Inkscape::UI::Widget::Registry* wr,
+ Effect* effect,
+ const Glib::ustring default_value = "") :
+ TextParam(label, tip, key, wr, effect, default_value) {}
+ //virtual ~TextParamInternal() {}
+
+ virtual Gtk::Widget * param_newWidget(Gtk::Tooltips * tooltips) { return NULL; }
+};
} //namespace LivePathEffect
} //namespace Inkscape
#endif
+
+/*
+ Local Variables:
+ mode:c++
+ c-file-style:"stroustrup"
+ c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
+ indent-tabs-mode:nil
+ fill-column:99
+ End:
+*/
+// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :