]> git.tdb.fi Git - r2c2.git/blob - source/designer/toolbar.h
The Root widget can now set matrices itself
[r2c2.git] / source / designer / toolbar.h
1 #ifndef TOOLBAR_H_
2 #define TOOLBAR_H_
3
4 #include <msp/gltk/button.h>
5 #include <msp/gltk/label.h>
6 #include <msp/gltk/panel.h>
7
8 class Toolbar: public Msp::GLtk::Panel
9 {
10 public:
11         sigc::signal<void, bool> signal_expanded;
12
13 private:
14         unsigned content_width;
15         Msp::GLtk::Label *lbl_title;
16         Msp::GLtk::Button *btn_expand;
17         bool expanded;
18 protected:
19         Msp::GLtk::Panel *pnl_content;
20
21         Toolbar(const std::string &, unsigned);
22
23 public:
24         void expand(bool);
25
26 private:
27         void expand_clicked();
28         virtual void on_style_change();
29 };
30
31 #endif