]> git.tdb.fi Git - r2c2.git/blob - source/designer/toolbar.h
Make use of GL::Renderer in Overlay3D
[r2c2.git] / source / designer / toolbar.h
1 /* $Id$
2
3 This file is part of R²C²
4 Copyright © 2010 Mikkosoft Productions, Mikko Rasa
5 Distributed under the GPL
6 */
7
8 #ifndef TOOLBAR_H_
9 #define TOOLBAR_H_
10
11 #include <msp/gltk/button.h>
12 #include <msp/gltk/label.h>
13 #include <msp/gltk/panel.h>
14
15 class Toolbar: public Msp::GLtk::Panel
16 {
17 public:
18         sigc::signal<void, bool> signal_expanded;
19
20 private:
21         unsigned content_width;
22         Msp::GLtk::Label *lbl_title;
23         Msp::GLtk::Button *btn_expand;
24         bool expanded;
25 protected:
26         Msp::GLtk::Panel *pnl_content;
27
28         Toolbar(const std::string &, unsigned);
29
30 public:
31         void expand(bool);
32
33 private:
34         void expand_clicked();
35         virtual void on_style_change();
36 };
37
38 #endif