mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-12 05:36:59 -04:00
Added value actions for common value types; drop down list is now correctly aligned
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@92 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
#include <wx/popupwin.h> // undocumented: wxPopupWindow
|
||||
|
||||
class ValueViewer;
|
||||
class DropDownHider;
|
||||
|
||||
// ----------------------------------------------------------------------------- : DropDownList
|
||||
|
||||
@@ -21,6 +22,7 @@ class ValueViewer;
|
||||
/** This class is an abstract base for various drop down lists */
|
||||
class DropDownList : public wxPopupWindow {
|
||||
public:
|
||||
~DropDownList();
|
||||
/// Create a drop down list, possibly a sub menu
|
||||
/** the viewer will be notified to redraw its drop down icon */
|
||||
DropDownList(Window* parent, bool is_submenu = false, ValueViewer* viewer = nullptr);
|
||||
@@ -78,6 +80,7 @@ class DropDownList : public wxPopupWindow {
|
||||
DropDownList* open_sub_menu; ///< The sub menu that is currently shown, if any
|
||||
DropDownList* parent_menu; ///< The parent menu, only applies to sub menus
|
||||
ValueViewer* viewer; ///< The parent viewer object (optional)
|
||||
DropDownHider* hider; ///< Class to hide this window when we lose focus
|
||||
|
||||
// --------------------------------------------------- : Events
|
||||
DECLARE_EVENT_TABLE();
|
||||
|
||||
Reference in New Issue
Block a user