]> git.tdb.fi Git - r2c2.git/blob - source/designer/toolbar.h
Rename the project to R²C²
[r2c2.git] / source / designer / toolbar.h
1 /* $Id$
2
3 This file is part of R²C²
4 Copyright © 2009  Mikkosoft Productions, Mikko Rasa
5 Distributed under the GPL
6 */
7
8 #ifndef TOOLBAR_H_
9 #define TOOLBAR_H_
10
11 #include <sigc++/trackable.h>
12 #include <msp/gltk/dropdown.h>
13 #include <msp/gltk/panel.h>
14 #include "libr2c2/route.h"
15
16 class Designer;
17
18 class Toolbar: public Msp::GLtk::Panel, public sigc::trackable
19 {
20 private:
21         Designer &designer;
22         Msp::GLtk::Dropdown *drp_routes;
23
24 public:
25         Toolbar(Designer &);
26 private:
27         void route_selected(unsigned, const std::string &);
28         void delete_route_clicked();
29         void route_added(R2C2::Route &);
30         void update_routes();
31 };
32
33 #endif