'suffix' is no longer a safe global variable name in scripts;

Drop down list for word lists stay open after clicking on a prefix choice.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@663 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2007-09-02 18:18:04 +00:00
parent 0157f96f9a
commit 01de02b904
7 changed files with 42 additions and 34 deletions
+3 -1
View File
@@ -58,7 +58,7 @@ class DropDownList : public wxPopupWindow {
/// When the list is being opened, what should be selected?
virtual size_t selection() const = 0;
/** Should the list stay open after selecting something? */
virtual bool stayOpen() const { return false; }
virtual bool stayOpen(size_t selection) const { return false; }
// --------------------------------------------------- : Item information
/// Number of items
@@ -95,6 +95,7 @@ class DropDownList : public wxPopupWindow {
DropDownList* parent_menu; ///< The parent menu, only applies to sub menus
ValueViewer* viewer; ///< The parent viewer object (optional)
DropDownHider* hider, *hider2; ///< Class to hide this window when we lose focus
bool close_on_mouse_out; ///< Was the list kept open after selecting a choice, if so, be eager to close it
// --------------------------------------------------- : Events
DECLARE_EVENT_TABLE();
@@ -103,6 +104,7 @@ class DropDownList : public wxPopupWindow {
void onLeftDown(wxMouseEvent&);
void onLeftUp (wxMouseEvent&);
void onMotion(wxMouseEvent&);
void onMouseLeave(wxMouseEvent&);
// --------------------------------------------------- : Privates