Code

Add default grid settings to Inkscape preferences.
[inkscape.git] / src / ui / widget / entry.h
index 3ed4d661e483781279c476fc12869ed1bcd2b0d8..bb6c1321a63b60c63ffa89a77af06c73f4eb1661 100644 (file)
@@ -1,42 +1,44 @@
-/** \file \r
- *\r
- * \brief Helperclass for Gtk::Entry widgets\r
- *\r
- * Authors:\r
- *   Johan Engelen <goejendaagh@zonnet.nl>\r
- *\r
- * Copyright (C) 2006 Authors\r
- *\r
- * Released under GNU GPL.  Read the file 'COPYING' for more information.\r
- */\r
-\r
-#ifndef INKSCAPE_UI_WIDGET_ENTRY__H\r
-#define INKSCAPE_UI_WIDGET_ENTRY__H\r
-\r
-#include <gtkmm/entry.h>\r
-#include <gtkmm/tooltips.h>\r
-#include <gtkmm/label.h>\r
-#include <gtkmm/box.h>\r
-\r
-namespace Inkscape {\r
-namespace UI {\r
-namespace Widget {\r
-\r
-class Entry : public Gtk::HBox\r
-{\r
-public:\r
-    Entry(Glib::ustring const &label, Glib::ustring const &tooltip);\r
-        \r
-    // TO DO: add methods to access _entry    \r
-        \r
-protected:\r
-    Gtk::Tooltips _tooltips;\r
-    Gtk::Label    _label;\r
-    Gtk::Entry    _entry;\r
-};\r
-\r
-} // namespace Widget\r
-} // namespace UI\r
-} // namespace Inkscape\r
-\r
-#endif // INKSCAPE_UI_WIDGET_ENTRY__H\r
+/** \file 
+ *
+ * \brief Helperclass for Gtk::Entry widgets
+ *
+ * Authors:
+ *   Johan Engelen <goejendaagh@zonnet.nl>
+ *
+ * Copyright (C) 2006 Authors
+ *
+ * Released under GNU GPL.  Read the file 'COPYING' for more information.
+ */
+
+#ifndef INKSCAPE_UI_WIDGET_ENTRY__H
+#define INKSCAPE_UI_WIDGET_ENTRY__H
+
+#include <gtkmm/entry.h>
+#include <gtkmm/tooltips.h>
+#include <gtkmm/label.h>
+#include <gtkmm/box.h>
+#include "labelled.h"
+
+namespace Inkscape {
+namespace UI {
+namespace Widget {
+
+class Entry : public Labelled
+{
+public:
+    Entry( Glib::ustring const &label,
+           Glib::ustring const &tooltip,
+           Glib::ustring const &suffix = "",
+           Glib::ustring const &icon = "",
+           bool mnemonic = true);
+
+    // TO DO: add methods to access Gtk::Entry widget
+    
+    Gtk::Entry*  getEntry() {return (Gtk::Entry*)(_widget);};    
+};
+
+} // namespace Widget
+} // namespace UI
+} // namespace Inkscape
+
+#endif // INKSCAPE_UI_WIDGET_ENTRY__H