( parent,
id, caption, pos,
size, style );
80 bool CMacroSimple::Create( wxWindow* parent, wxWindowID
id,
constwxString& caption,
constwxPoint& pos,
constwxSize&
size,
longstyle )
83wxDialog::Create( parent,
id, caption, pos,
size, style );
88GetSizer()->SetSizeHints(
this);
90Centre(wxBOTH | wxCENTRE_ON_SCREEN);
128wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
129itemFrame1->SetSizer(itemBoxSizer2);
131wxPanel* itemPanel3 =
newwxPanel( itemFrame1,
wxID_ANY);
132itemBoxSizer2->Add(itemPanel3, 1, wxGROW|wxALL, 0);
134wxBoxSizer* itemBoxSizer4 =
newwxBoxSizer(wxVERTICAL);
135itemPanel3->SetSizer(itemBoxSizer4);
141wxStaticBox* itemStaticBoxSizer5Static =
newwxStaticBox(itemPanel3,
wxID_ANY,
_(
"Validation"));
142wxStaticBoxSizer* itemStaticBoxSizer6 =
newwxStaticBoxSizer(itemStaticBoxSizer5Static, wxHORIZONTAL);
143itemBoxSizer4->Add(itemStaticBoxSizer6, 0, wxEXPAND | wxALL, 5);
145 m_Status=
newwxStaticText(itemPanel3, wxID_STATIC, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0);
146itemStaticBoxSizer6->Add(
m_Status, 0, wxALIGN_CENTER_VERTICAL | wxALL, 3);
148wxBoxSizer* itemBoxSizer12 =
newwxBoxSizer(wxHORIZONTAL);
149itemBoxSizer4->Add(itemBoxSizer12, 0, wxEXPAND | wxALL, 0);
151itemBoxSizer12->AddStretchSpacer();
153 m_AddToScript=
newwxButton(itemPanel3, wxID_OK,
_(
"Accept"), wxDefaultPosition, wxDefaultSize, 0);
157wxButton* itemButton15 =
newwxButton( itemPanel3, wxID_CANCEL,
_(
"Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
158itemBoxSizer12->Add(itemButton15, 0, wxALL, 5);
204 const stringmacro_script =
m_ActionPanel->GetValue().ToStdString();
208 m_Status->SetForegroundColour(wxColor(*wxRED));
209 m_Status->SetLabel(
_(
"Validation failed"));
215 m_Status->SetForegroundColour(wxColour(0, 128, 0));
227 const stringmacro_script =
m_ActionPanel->GetValue().ToStdString();
237 switch(event.GetKeyCode())
241 if(event.ControlDown()) {
void OnKey(wxKeyEvent &event)
wxTextCtrl * m_ActionPanel
void OnUpdateText(wxCommandEvent &event)
bool Create(wxWindow *parent, wxWindowID id=ID_MACRO_SIMPLE, const wxString &caption=_("Simple Macro Editor"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(600, 400), long style=wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|wxRESIZE_BORDER)
macro::CMacroEngine m_MEngine
~CMacroSimple()
Destructor.
void CreateControls()
Creates the controls and sizers.
void Init()
Initialises member variables.
CRef< macro::CMacroRep > GetMacro()
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
CMacroSimple()
Constructors.
static bool ShowToolTips()
Should we show tooltips?
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
IMPLEMENT_CLASS(CFloatingFrame, CFloatingFrameBaseClass) const static long kFloatFrameStyle
CFloatingFrame.
void Reset(void)
Reset reference object.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static void text(MDB_val *v)
const struct ncbi::grid::netcache::search::fields::SIZE size
wxString ToWxString(const string &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