A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/macro__simple_8cpp_source.html below:

NCBI C++ ToolKit: src/gui/widgets/edit/macro_simple.cpp Source File

37 #include <wx/button.h> 39 #include <wx/statbox.h> 40 #include <wx/stattext.h> 41 #include <wx/textctrl.h> 72  Create

( parent,

id

, caption, pos,

size

, style );

80 bool CMacroSimple::Create

( wxWindow* parent, wxWindowID

id

,

const

wxString& caption,

const

wxPoint& pos,

const

wxSize&

size

,

long

style )

83 

wxDialog::Create( parent,

id

, caption, pos,

size

, style );

88

GetSizer()->SetSizeHints(

this

);

90

Centre(wxBOTH | wxCENTRE_ON_SCREEN);

128

wxBoxSizer* itemBoxSizer2 =

new

wxBoxSizer(wxVERTICAL);

129

itemFrame1->SetSizer(itemBoxSizer2);

131

wxPanel* itemPanel3 =

new

wxPanel( itemFrame1,

wxID_ANY

);

132

itemBoxSizer2->Add(itemPanel3, 1, wxGROW|wxALL, 0);

134

wxBoxSizer* itemBoxSizer4 =

new

wxBoxSizer(wxVERTICAL);

135

itemPanel3->SetSizer(itemBoxSizer4);

141

wxStaticBox* itemStaticBoxSizer5Static =

new

wxStaticBox(itemPanel3,

wxID_ANY

,

_

(

"Validation"

));

142

wxStaticBoxSizer* itemStaticBoxSizer6 =

new

wxStaticBoxSizer(itemStaticBoxSizer5Static, wxHORIZONTAL);

143

itemBoxSizer4->Add(itemStaticBoxSizer6, 0, wxEXPAND | wxALL, 5);

145  m_Status

=

new

wxStaticText(itemPanel3, wxID_STATIC, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0);

146

itemStaticBoxSizer6->Add(

m_Status

, 0, wxALIGN_CENTER_VERTICAL | wxALL, 3);

148

wxBoxSizer* itemBoxSizer12 =

new

wxBoxSizer(wxHORIZONTAL);

149

itemBoxSizer4->Add(itemBoxSizer12, 0, wxEXPAND | wxALL, 0);

151

itemBoxSizer12->AddStretchSpacer();

153  m_AddToScript

=

new

wxButton(itemPanel3, wxID_OK,

_

(

"Accept"

), wxDefaultPosition, wxDefaultSize, 0);

157

wxButton* itemButton15 =

new

wxButton( itemPanel3, wxID_CANCEL,

_

(

"Cancel"

), wxDefaultPosition, wxDefaultSize, 0 );

158

itemBoxSizer12->Add(itemButton15, 0, wxALL, 5);

204  const string

macro_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 string

macro_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