]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/dropdown.h
Rearrange members
[libs/gltk.git] / source / dropdown.h
index 2fe82d0a194c41421bfee2b057813b3d5cc01841..51ba72434956d1c1728f1a6e021c73dfec73ad18 100644 (file)
@@ -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<void, int, const std::string &> signal_item_selected;
+
 private:
        List list;
        bool dropped;
 
 public:
-       sigc::signal<void, int, const std::string &> 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 &);
 };