Code

Moved compass like display of angles from windows to steps in preferences
[inkscape.git] / src / ui / widget / panel.h
index 07225b8ce8d7e5bdd5c38705b310324dbf461a1b..8fb4b517a79978f1d21cd8ada31c2505708926fd 100644 (file)
@@ -14,7 +14,9 @@
 #ifndef SEEN_INKSCAPE_UI_WIDGET_PANEL_H
 #define SEEN_INKSCAPE_UI_WIDGET_PANEL_H
 
+#include <gtkmm/arrow.h>
 #include <gtkmm/box.h>
+#include <gtkmm/eventbox.h>
 #include <gtkmm/frame.h>
 #include <gtkmm/table.h>
 #include <gtkmm/button.h>
@@ -38,27 +40,36 @@ public:
     void setLabel(Glib::ustring const &label);
     Glib::ustring const &getLabel() const;
 
+    virtual void setOrientation( Gtk::AnchorType how );
+
     const gchar *_prefs_path;
     void restorePanelPrefs();
 
 protected:
+    Gtk::Box* _getContents() { return &contents; }
     void _setTargetFillable( PreviewFillable *target );
     void _regItem( Gtk::MenuItem* item, int group, int id );
 
     virtual void _handleAction( int setId, int itemId );
 
+    Gtk::AnchorType _anchor;
 
 private:
     void init();
     void bounceCall(int i, int j);
 
+    void _popper(GdkEventButton* btn);
+
     Glib::ustring   label;
 
     Gtk::HBox       topBar;
+    Gtk::VBox       rightBar;
+    Gtk::VBox       contents;
     Gtk::Label      tabTitle;
-    Gtk::OptionMenu tabButton;
-    Gtk::Menu       menu;
+    Gtk::Arrow      _tempArrow;
+    Gtk::EventBox   menuPopper;
     Gtk::Button     closeButton;
+    Gtk::Menu*       menu;
     PreviewFillable *_fillable;
 };