X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fdesigner%2Ftoolbar.h;h=49412b6f1ae2a8c22af0c21080c863705aceb62d;hb=066170fbc56bb5bd33a5ce0b9b7b668a3f539ee6;hp=a41f968682de7f7dae0b45ce7719536041b8ee6a;hpb=ea06222ad70b8a627b11055677d961aa5f8cf9d1;p=r2c2.git diff --git a/source/designer/toolbar.h b/source/designer/toolbar.h index a41f968..49412b6 100644 --- a/source/designer/toolbar.h +++ b/source/designer/toolbar.h @@ -1,30 +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 -#include +#include +#include #include -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; + 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 update_routes(); + void expand_clicked(); }; #endif