X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Findicator.h;h=69e488f0656f8a19551da96cfb3c8781bbfa1a00;hb=0af3c2393bd00f39db3bfaf5b78a7a44f0fd5ff1;hp=c8ecbc53ecae34dad48458a3441b87fd94ddf294;hpb=c1f038acb91eb3bfaa34dfd4729d19ed3f871a42;p=libs%2Fgltk.git diff --git a/source/indicator.h b/source/indicator.h index c8ecbc5..69e488f 100644 --- a/source/indicator.h +++ b/source/indicator.h @@ -1,3 +1,10 @@ +/* $Id$ + +This file is part of libmspgltk +Copyright © 2007 Mikko Rasa, Mikkosoft Productions +Distributed under the LGPL +*/ + #ifndef MSP_GLTK_INDICATOR_H_ #define MSP_GLTK_INDICATOR_H_ @@ -6,13 +13,16 @@ namespace Msp { namespace GLtk { +/** +An Indicator visualizes a boolean state. It can be either active or inactive. +*/ class Indicator: public Widget { public: Indicator(const Resources &); void set_active(bool); private: - const char *get_class() const { return "indicator"; } + virtual const char *get_class() const { return "indicator"; } }; } // namespace GLtk