mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 21:27:01 -04:00
implemented choice editor with drop down list, todo: submenus
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@93 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -56,11 +56,11 @@ class DropDownList : public wxPopupWindow {
|
||||
/// Draw an icon at the specified location
|
||||
virtual void drawIcon(DC& dc, int x, int y, size_t item, bool selected) const = 0;
|
||||
/// Is there a line below an item?
|
||||
virtual bool lineBelow(size_t item) const { return false; }
|
||||
virtual bool lineBelow(size_t item) const { return false; }
|
||||
/// Should the item be highlighted?
|
||||
virtual bool highlightItem(size_t item) const { return false; }
|
||||
// An extra menu that pops up from an item, or null if there is no popup menu
|
||||
virtual DropDownList* popup(size_t item) const { return nullptr; }
|
||||
virtual bool highlightItem(size_t item) const { return false; }
|
||||
// An extra submenu that pops up from an item, or null if there is no popup menu
|
||||
virtual DropDownList* submenu(size_t item) const { return nullptr; }
|
||||
|
||||
// --------------------------------------------------- : Layout
|
||||
|
||||
|
||||
Reference in New Issue
Block a user