]> git.tdb.fi Git - r2c2.git/blob - source/designer/toolbar.h
Penalize running against the preferred direction when planning routes
[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         Msp::GLtk::Label *lbl_title;
15         Msp::GLtk::Button *btn_expand;
16         bool expanded;
17 protected:
18         Msp::GLtk::Panel *pnl_content;
19
20         Toolbar(const std::string &);
21
22 public:
23         void expand(bool);
24
25 private:
26         void expand_clicked();
27 };
28
29 #endif