X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fdropdown.h;h=51ba72434956d1c1728f1a6e021c73dfec73ad18;hb=2bdaf4955fdb94e73704adcdcf0adc2b353f0ff0;hp=2fe82d0a194c41421bfee2b057813b3d5cc01841;hpb=1c5148b7b63e1ba84073355702972caf6fe83b7e;p=libs%2Fgltk.git diff --git a/source/dropdown.h b/source/dropdown.h index 2fe82d0..51ba724 100644 --- a/source/dropdown.h +++ b/source/dropdown.h @@ -1,7 +1,7 @@ /* $Id$ This file is part of libmspgltk -Copyright © 2007-2009 Mikko Rasa, Mikkosoft Productions +Copyright © 2007-2011 Mikko Rasa, Mikkosoft Productions Distributed under the LGPL */ @@ -28,15 +28,17 @@ public: void item(const std::string &); }; + sigc::signal signal_item_selected; + private: List list; bool dropped; public: - sigc::signal signal_item_selected; - Dropdown(); + virtual const char *get_class() const { return "dropdown"; } + void append(const std::string &); void insert(unsigned, const std::string &); void remove(unsigned); @@ -47,16 +49,16 @@ public: const std::string &get_selected() const; int get_selected_index() const; - virtual void button_press(int, int, unsigned); - private: - virtual const char *get_class() const { return "dropdown"; } virtual void render_special(const Part &) const; +public: + virtual void button_press(int, int, unsigned); +private: virtual void on_geometry_change(); virtual void on_style_change(); - void resize_list(); + void resize_list(); void list_item_selected(unsigned, const std::string &); };