]> git.tdb.fi Git - r2c2.git/blobdiff - source/designer/routebar.h
Split the single large toolbar into a few smaller collapsible ones
[r2c2.git] / source / designer / routebar.h
diff --git a/source/designer/routebar.h b/source/designer/routebar.h
new file mode 100644 (file)
index 0000000..005b004
--- /dev/null
@@ -0,0 +1,30 @@
+/* $Id$
+
+This file is part of R²C²
+Copyright © 2010 Mikkosoft Productions, Mikko Rasa
+Distributed under the GPL
+*/
+
+#ifndef ROUTEBAR_H_
+#define ROUTEBAR_H_
+
+#include <msp/gltk/dropdown.h>
+#include "toolbar.h"
+
+class Routebar: public Toolbar
+{
+private:
+       Designer &designer;
+       Msp::GLtk::Dropdown *drp_routes;
+
+public:
+       Routebar(Designer &);
+
+private:
+       void route_selected(unsigned, const std::string &);
+       void delete_route_clicked();
+       void route_added(R2C2::Route &);
+       void update_routes();
+};
+
+#endif