mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 21:27:01 -04:00
MultipleChoiceValueEditor: implemented drop down list
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@252 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
|
||||
#include <util/prec.hpp>
|
||||
#include <gui/value/editor.hpp>
|
||||
#include <gui/value/choice.hpp>
|
||||
#include <render/value/multiple_choice.hpp>
|
||||
|
||||
// ----------------------------------------------------------------------------- : MultipleChoiceValueEditor
|
||||
@@ -19,10 +20,22 @@
|
||||
class MultipleChoiceValueEditor : public MultipleChoiceValueViewer, public ValueEditor {
|
||||
public:
|
||||
DECLARE_VALUE_EDITOR(MultipleChoice);
|
||||
~MultipleChoiceValueEditor();
|
||||
|
||||
virtual void onValueChange();
|
||||
|
||||
virtual void determineSize(bool force_fit);
|
||||
|
||||
virtual bool onLeftDown (const RealPoint& pos, wxMouseEvent& ev);
|
||||
virtual bool onChar(wxKeyEvent& ev);
|
||||
virtual void onLoseFocus();
|
||||
|
||||
private:
|
||||
DropDownListP drop_down;
|
||||
vector<int> active; ///< Which choices are active? (note: vector<bool> is evil)
|
||||
friend class DropDownMultipleChoiceList;
|
||||
/// Initialize the drop down list
|
||||
DropDownList& initDropDown();
|
||||
/// Toggle a choice or on or off
|
||||
void toggle(int id);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user