Adding a symbol to the pop up (toggle) button class. CMake you project.

This commit is contained in:
Hombre
2010-11-12 17:01:11 +01:00
parent 6aed6eae1c
commit 7a59240c50
9 changed files with 21 additions and 28 deletions

View File

@@ -32,7 +32,7 @@ public:
typedef sigc::signal<void, int> type_signal_changed;
type_signal_changed signal_changed();
PopUpCommon (Gtk::Button* button, const Glib::ustring& label = "", bool imgRight=false);
PopUpCommon (Gtk::Button* button, const Glib::ustring& label = "");
~PopUpCommon ();
bool addEntry (Glib::ustring imagePath, Glib::ustring label);
bool setSelected (int entryNum);
@@ -54,11 +54,11 @@ private:
std::vector<Gtk::ImageMenuItem*> items;
Glib::ustring buttonHint;
Gtk::Image* buttonImage;
Gtk::Image* menuSymbol;
Gtk::HBox* imageContainer;
Gtk::Menu* menu;
Gtk::Button* button;
int selected;
bool hasText;
bool imageRight;
bool hasMenu;
void showMenu(GdkEventButton* event);