mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 21:27:01 -04:00
Reader now warns about invalid UTF-8 files;
Fixed possible hang when reading multiline strings with incorrect indentation; Warnings from reading are shown also in NewSetWindow; Script parse errors get reported with the correct line number; Added support for showing multiple choice fields as a single image; Added 'line_below' to ChoiceField::Choice, for putting a line below menu items. git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@420 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -40,6 +40,10 @@ class DropDownList : public wxPopupWindow {
|
||||
bool onMouseInParent(wxMouseEvent&, bool open_in_place);
|
||||
|
||||
protected:
|
||||
|
||||
/// Prepare for showing the list
|
||||
virtual void onShow() {}
|
||||
|
||||
// --------------------------------------------------- : Selection
|
||||
static const size_t NO_SELECTION = (size_t)-1;
|
||||
|
||||
@@ -59,6 +63,8 @@ class DropDownList : public wxPopupWindow {
|
||||
virtual bool lineBelow(size_t item) const { return false; }
|
||||
/// Should the item be highlighted?
|
||||
virtual bool highlightItem(size_t item) const { return false; }
|
||||
/// Is the item enabled?
|
||||
virtual bool itemEnabled(size_t item) const { return true; }
|
||||
// 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; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user