X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fdesigner%2Ftoolbar.h;h=25eab21e717b841eb701b8fadd94d44b995ea277;hb=d2dfed1a38c5e8487532e9055fad464cf54efd83;hp=2a935d365fc686c7c7bbfc4d5bf88f95ffaf2e6f;hpb=707a611dae600333f3a9bd6421176f242fe49907;p=r2c2.git diff --git a/source/designer/toolbar.h b/source/designer/toolbar.h index 2a935d3..25eab21 100644 --- a/source/designer/toolbar.h +++ b/source/designer/toolbar.h @@ -1,33 +1,31 @@ -/* $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 -#include +#include +#include #include -#include "libmarklin/route.h" -class Designer; - -class Toolbar: public Msp::GLtk::Panel, public sigc::trackable +class Toolbar: public Msp::GLtk::Panel { +public: + sigc::signal signal_expanded; + private: - Designer &designer; - Msp::GLtk::Dropdown *drp_routes; + unsigned content_width; + Msp::GLtk::Label *lbl_title; + Msp::GLtk::Button *btn_expand; + bool expanded; +protected: + Msp::GLtk::Panel *pnl_content; + + Toolbar(const std::string &, unsigned); 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(); + virtual void on_style_change(); }; #endif