mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 13:17:00 -04:00
- Added SetWindow::setControlStatusText function for setting the status text of child controls, since wx lacks a feature for doing it automatically.
- RandomPackPanel's spin controls are cleaned up when the set is reloaded
- to_int script function now converts empty string: to_int("") == 0
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1042 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
+11
-2
@@ -35,7 +35,7 @@ class SetWindow : public wxFrame, public SetView {
|
||||
DECLARE_EVENT_TABLE();
|
||||
|
||||
// --------------------------------------------------- : Data
|
||||
|
||||
|
||||
// gui items
|
||||
vector<SetWindowPanel*> panels; ///< All panels on this window
|
||||
SetWindowPanel* current_panel;
|
||||
@@ -62,13 +62,22 @@ class SetWindow : public wxFrame, public SetView {
|
||||
|
||||
/// All opened set windows
|
||||
static vector<SetWindow*> set_windows;
|
||||
|
||||
|
||||
/// Is this the only window that has this set?
|
||||
bool isOnlyWithSet();
|
||||
|
||||
/// Switch this window to the new set, or open another window for it (depending on the settings)
|
||||
void switchSet(const SetP& new_set);
|
||||
|
||||
// --------------------------------------------------- : Status text for controls
|
||||
public:
|
||||
/// Set the status text of a control
|
||||
void setControlStatusText(wxWindow* control, const String& text);
|
||||
private:
|
||||
vector<pair<wxWindow*,String> > control_status_texts;
|
||||
void onControlEnter(wxMouseEvent&);
|
||||
void onControlLeave(wxMouseEvent&);
|
||||
|
||||
// --------------------------------------------------- : Action related
|
||||
protected:
|
||||
/// We want to respond to set changes
|
||||
|
||||
Reference in New Issue
Block a user