]> git.tdb.fi Git - r2c2.git/blobdiff - source/designer/toolbar.h
Ignore the click that causes manipulator to finish
[r2c2.git] / source / designer / toolbar.h
index fe2357ad130b44cdb994c7d3eb7aca85cfbe38c4..2a935d365fc686c7c7bbfc4d5bf88f95ffaf2e6f 100644 (file)
@@ -8,12 +8,14 @@ Distributed under the GPL
 #ifndef TOOLBAR_H_
 #define TOOLBAR_H_
 
+#include <sigc++/trackable.h>
 #include <msp/gltk/dropdown.h>
 #include <msp/gltk/panel.h>
+#include "libmarklin/route.h"
 
 class Designer;
 
-class Toolbar: public Msp::GLtk::Panel
+class Toolbar: public Msp::GLtk::Panel, public sigc::trackable
 {
 private:
        Designer &designer;
@@ -23,6 +25,8 @@ public:
        Toolbar(Designer &);
 private:
        void route_selected(unsigned, const std::string &);
+       void delete_route_clicked();
+       void route_added(Marklin::Route &);
        void update_routes();
 };