Code

switch SPStyle to using SPFilterReference for filters; sp_style_new now requires...
[inkscape.git] / src / ui / widget / panel.h
index 8fb4b517a79978f1d21cd8ada31c2505708926fd..e091c82a12b65c87560207381aba6cc8127bc3ce 100644 (file)
@@ -14,6 +14,7 @@
 #ifndef SEEN_INKSCAPE_UI_WIDGET_PANEL_H
 #define SEEN_INKSCAPE_UI_WIDGET_PANEL_H
 
+#include <vector>
 #include <gtkmm/arrow.h>
 #include <gtkmm/box.h>
 #include <gtkmm/eventbox.h>
@@ -34,8 +35,7 @@ class Panel : public Gtk::VBox
 public:
     Panel();
     virtual ~Panel();
-    Panel(Glib::ustring const &label);
-    Panel(const gchar *prefs_path);
+    Panel(Glib::ustring const &label, gchar const *prefs_path = 0, bool menuDesired = false );
 
     void setLabel(Glib::ustring const &label);
     Glib::ustring const &getLabel() const;
@@ -51,6 +51,7 @@ protected:
     void _regItem( Gtk::MenuItem* item, int group, int id );
 
     virtual void _handleAction( int setId, int itemId );
+    bool _menuDesired;
 
     Gtk::AnchorType _anchor;
 
@@ -59,6 +60,7 @@ private:
     void bounceCall(int i, int j);
 
     void _popper(GdkEventButton* btn);
+    void _wrapToggled(Gtk::CheckMenuItem* toggler);
 
     Glib::ustring   label;
 
@@ -70,6 +72,8 @@ private:
     Gtk::EventBox   menuPopper;
     Gtk::Button     closeButton;
     Gtk::Menu*       menu;
+    std::vector<Gtk::Widget*> nonHorizontal;
+    std::vector<Gtk::Widget*> nonVertical;
     PreviewFillable *_fillable;
 };