wxString& caption,
constwxPoint& pos,
constwxSize&
size,
longstyle )
73: m_MacroRep(¯o_rep)
76 Create(parent,
id, caption, pos,
size, style);
84 bool CVarResolverDlg::Create( wxWindow* parent, wxWindowID
id,
constwxString& caption,
constwxPoint& pos,
constwxSize&
size,
longstyle )
87SetExtraStyle(wxWS_EX_BLOCK_EVENTS);
88CDialog::Create( parent,
id, caption, pos,
size, style );
92GetSizer()->SetSizeHints(
this);
137wxBoxSizer* bs_vertical =
newwxBoxSizer(wxVERTICAL);
138SetSizer(bs_vertical);
140 const intwidth = 350;
141 string msg=
"Please choose values for variables for the macro:\n";
143wxStaticText*
label=
newwxStaticText(
this, wxID_STATIC,
ToWxString(
msg), wxDefaultPosition, wxDefaultSize, wxALIGN_LEFT);
145bs_vertical->Add(
label, 0, wxALL, 5);
148wxBoxSizer* bs_horizontal =
newwxBoxSizer(wxHORIZONTAL);
151bs_vertical->Add(bs_horizontal, 0, wxALIGN_CENTER | wxALL, 5);
153wxButton* ResetButton =
newwxButton(
this,
ID_BUTTON_RESET,
_(
"Reset"), wxDefaultPosition, wxDefaultSize, 0 );
154bs_horizontal->Add(ResetButton, 0, wxALIGN_CENTER_VERTICAL | wxALL, 5);
156wxButton* CancelButton =
newwxButton(
this,
ID_BUTTON_CANCEL,
_(
"Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
157bs_horizontal->Add(CancelButton, 0, wxALIGN_CENTER_VERTICAL | wxALL, 5);
159wxButton* DoneButton =
newwxButton(
this,
ID_BUTTON_DONE,
_(
"Done"), wxDefaultPosition, wxDefaultSize, 0 );
160bs_horizontal->Add(DoneButton, 0, wxALIGN_CENTER_VERTICAL | wxALL, 5);
166wxPGProperty* property;
175wxArrayString tchoices;
177 while(stored_value) {
181 property=
newwxEnumProperty (
ToWxString(pChoice->
GetName()), wxPG_LABEL, tchoices );
184wxVariant variant =
property->GetValue();
virtual void SetRegistryPath(const string &path)
Class for parsed macro representation.
Class for "ask" variable representation (i.e.
Class for "choice" variable representation (i.e.
wxPropertyGrid * m_PropGridCtrl
void OnButtonCancelClick(wxCommandEvent &event)
bool Create(wxWindow *parent, wxWindowID id=ID_CVARRESOLVERDLG, const wxString &caption=_("Variable Resolver"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
Creation.
CVarResolverDlg()
Constructor for DYNAMIC CLASS.
CRef< macro::CMacroRep > m_MacroRep
void OnButtonResetClick(wxCommandEvent &event)
void CreateControls()
Creates the controls and sizers.
~CVarResolverDlg()
Destructor.
TPropPairsList m_PropPairsList
void OnButtonDoneClick(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON
void Init()
Initialises member variables.
Abstract interface for variable representation.
const string & GetName() const
Get the name of stored variable.
virtual bool IsGUIResolvable() const =0
Returns true is the variable can be resolved via GUI.
const string * GetFirstChoice()
Get functions for stored choices.
const string & GetDefaultValue() const
Get default value.
const string * GetNextChoice()
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static const char label[]
const struct ncbi::grid::netcache::search::fields::SIZE size
static SLJIT_INLINE sljit_ins msg(sljit_gpr r, sljit_s32 d, sljit_gpr x, sljit_gpr b)
Private types and data members.
macro::IMacroVar * m_MacroVar
wxString m_DefaultVisible
wxString ToWxString(const string &s)
string ToStdString(const wxString &s)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4