X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fdesigner%2Ftoolbar.h;h=5a2d86c64e2dd5bc59d9a0462b3e915839282b28;hb=7e27b311e33beda1746eb63e0945633f262427f6;hp=9029a9c1c726fd620be2361c7bc98faec48b0986;hpb=1ff06c5bc46a677fa389ef86c6b26664368f1653;p=r2c2.git diff --git a/source/designer/toolbar.h b/source/designer/toolbar.h index 9029a9c..5a2d86c 100644 --- a/source/designer/toolbar.h +++ b/source/designer/toolbar.h @@ -1,33 +1,38 @@ /* $Id$ This file is part of R²C² -Copyright © 2009 Mikkosoft Productions, Mikko Rasa +Copyright © 2010 Mikkosoft Productions, Mikko Rasa Distributed under the GPL */ #ifndef TOOLBAR_H_ #define TOOLBAR_H_ -#include -#include +#include +#include #include -#include "libr2c2/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(R2C2::Route &); - void update_routes(); + void expand_clicked(); + virtual void on_style_change(); }; #endif