Merge with "Beep6581/dev" 2
This commit is contained in:
@@ -61,8 +61,8 @@ public:
|
||||
|
||||
explicit PopUpCommon (Gtk::Button* button, const Glib::ustring& label = "");
|
||||
virtual ~PopUpCommon ();
|
||||
bool addEntry (const Glib::ustring& fileName, const Glib::ustring& label, Gtk::RadioButtonGroup* radioGroup = nullptr);
|
||||
bool insertEntry(int position, const Glib::ustring& fileName, const Glib::ustring& label, Gtk::RadioButtonGroup* radioGroup = nullptr);
|
||||
bool addEntry (const Glib::ustring& iconName, const Glib::ustring& label, Gtk::RadioButtonGroup* radioGroup = nullptr);
|
||||
bool insertEntry(int position, const Glib::ustring& iconName, const Glib::ustring& label, Gtk::RadioButtonGroup* radioGroup = nullptr);
|
||||
bool insertEntry(int position, const Glib::RefPtr<const Gio::Icon>& gIcon, const Glib::ustring& label, Gtk::RadioButtonGroup* radioGroup = nullptr);
|
||||
int getEntryCount () const;
|
||||
bool setSelected (int entryNum);
|
||||
@@ -78,7 +78,7 @@ private:
|
||||
type_signal_item_selected messageItemSelected;
|
||||
|
||||
std::vector<Glib::RefPtr<const Gio::Icon>> imageIcons;
|
||||
std::vector<Glib::ustring> imageFilenames;
|
||||
std::vector<Glib::ustring> imageIconNames;
|
||||
std::vector<const RTImage*> images;
|
||||
Glib::ustring buttonHint;
|
||||
RTImage* buttonImage;
|
||||
@@ -90,15 +90,15 @@ private:
|
||||
bool hasMenu;
|
||||
|
||||
void changeImage(int position);
|
||||
void changeImage(const Glib::ustring& fileName, const Glib::RefPtr<const Gio::Icon>& gIcon);
|
||||
void changeImage(const Glib::ustring& iconName, const Glib::RefPtr<const Gio::Icon>& gIcon);
|
||||
void entrySelected(Gtk::Widget* menuItem);
|
||||
bool insertEntryImpl(int position, const Glib::ustring& fileName, const Glib::RefPtr<const Gio::Icon>& gIcon, RTImage* image, const Glib::ustring& label, Gtk::RadioButtonGroup* radioGroup);
|
||||
bool insertEntryImpl(int position, const Glib::ustring& iconName, const Glib::RefPtr<const Gio::Icon>& gIcon, RTImage* image, const Glib::ustring& label, Gtk::RadioButtonGroup* radioGroup);
|
||||
void showMenu(GdkEventButton* event);
|
||||
|
||||
protected:
|
||||
virtual int posToIndex(int p) const { return p; }
|
||||
virtual int indexToPos(int i) const { return i; }
|
||||
|
||||
|
||||
void entrySelected (int i);
|
||||
|
||||
};
|
||||
|
Reference in New Issue
Block a user