X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftoggle.h;h=bdb1b31c42808e2a2bb6e4b4bc3b67912a125837;hb=30780ba31be92c977a68a2a9103eeba87747d530;hp=f01f84bd0ba632c8596f80d1fdbce5f66b0c2907;hpb=50bf1ef2e2c3c38de20f6996a6c5ed0066111177;p=libs%2Fgltk.git diff --git a/source/toggle.h b/source/toggle.h index f01f84b..bdb1b31 100644 --- a/source/toggle.h +++ b/source/toggle.h @@ -33,12 +33,16 @@ private: std::string text; bool pressed; bool value; + bool exclusive; public: sigc::signal signal_toggled; Toggle(const Resources &); + void set_text(const std::string &); + void set_exclusive(bool); + bool get_exclusive() const { return exclusive; } void set_value(bool); bool get_value() const { return value; } @@ -47,6 +51,8 @@ public: private: virtual const char *get_class() const { return "toggle"; } virtual void render_special(const Part &) const; + + void exclude_siblings(); }; } // namespace GLtk