]> git.tdb.fi Git - r2c2.git/blobdiff - source/designer/toolbar.h
Convert designer to use mspgltk for UI
[r2c2.git] / source / designer / toolbar.h
diff --git a/source/designer/toolbar.h b/source/designer/toolbar.h
new file mode 100644 (file)
index 0000000..fe2357a
--- /dev/null
@@ -0,0 +1,29 @@
+/* $Id$
+
+This file is part of the MSP Märklin suite
+Copyright © 2009  Mikkosoft Productions, Mikko Rasa
+Distributed under the GPL
+*/
+
+#ifndef TOOLBAR_H_
+#define TOOLBAR_H_
+
+#include <msp/gltk/dropdown.h>
+#include <msp/gltk/panel.h>
+
+class Designer;
+
+class Toolbar: public Msp::GLtk::Panel
+{
+private:
+       Designer &designer;
+       Msp::GLtk::Dropdown *drp_routes;
+
+public:
+       Toolbar(Designer &);
+private:
+       void route_selected(unsigned, const std::string &);
+       void update_routes();
+};
+
+#endif