]> git.tdb.fi Git - r2c2.git/blobdiff - source/designer/toolbar.h
Penalize running against the preferred direction when planning routes
[r2c2.git] / source / designer / toolbar.h
index 2a935d365fc686c7c7bbfc4d5bf88f95ffaf2e6f..49412b6f1ae2a8c22af0c21080c863705aceb62d 100644 (file)
@@ -1,33 +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 <sigc++/trackable.h>
-#include <msp/gltk/dropdown.h>
+#include <msp/gltk/button.h>
+#include <msp/gltk/label.h>
 #include <msp/gltk/panel.h>
-#include "libmarklin/route.h"
 
-class Designer;
-
-class Toolbar: public Msp::GLtk::Panel, public sigc::trackable
+class Toolbar: public Msp::GLtk::Panel
 {
+public:
+       sigc::signal<void, bool> signal_expanded;
+
 private:
-       Designer &designer;
-       Msp::GLtk::Dropdown *drp_routes;
+       Msp::GLtk::Label *lbl_title;
+       Msp::GLtk::Button *btn_expand;
+       bool expanded;
+protected:
+       Msp::GLtk::Panel *pnl_content;
+
+       Toolbar(const std::string &);
 
 public:
-       Toolbar(Designer &);
+       void expand(bool);
+
 private:
-       void route_selected(unsigned, const std::string &);
-       void delete_route_clicked();
-       void route_added(Marklin::Route &);
-       void update_routes();
+       void expand_clicked();
 };
 
 #endif