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__editor_8cpp_source.html below:

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

39 #include <wx/button.h> 41 #include <wx/statbox.h> 42 #include <wx/stattext.h> 44 #include <wx/evtloop.h> 45 #include <wx/notifmsg.h> 46 #include <wx/generic/notifmsg.h> 48 #include <wx/display.h> 78

wxWindowID

id

,

const

wxString& caption,

const

wxPoint& pos,

const

wxSize&

size

,

long

style )

79

: m_width(w), m_height(h), m_pos_x(x), m_pos_y(y), m_EditedMacro(macro_rep)

82

wxString new_caption(caption);

86  Create

( parent,

id

, new_caption, pos,

size

, style );

96 bool CMacroEditor::Create

( wxWindow* parent, wxWindowID

id

,

const

wxString& caption,

const

wxPoint& pos,

const

wxSize&

size

,

long

style )

99 

wxFrame::Create( parent,

id

, caption, pos,

size

, style );

104

GetSizer()->SetSizeHints(

this

);

106

Centre(wxBOTH | wxCENTRE_ON_SCREEN);

118

wxWindow* win = this->GetParent();

140  for

(

unsigned int i

= 0;

i

< wxDisplay::GetCount();

i

++)

142

wxDisplay display(

i

);

143

max_x += display.GetGeometry().GetWidth();

145  if

(

m_pos_x

+ width > max_x)

m_pos_x

= wxGetDisplaySize().GetWidth()-width-5;

146  if

(

m_pos_y

+ height > wxGetDisplaySize().GetHeight())

m_pos_y

= wxGetDisplaySize().GetHeight()-height-5;

176

wxBoxSizer* itemBoxSizer2 =

new

wxBoxSizer(wxVERTICAL);

177

itemFrame1->SetSizer(itemBoxSizer2);

179

wxPanel* itemPanel3 =

new

wxPanel( itemFrame1,

wxID_ANY

);

180

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

182

wxBoxSizer* itemBoxSizer4 =

new

wxBoxSizer(wxVERTICAL);

183

itemPanel3->SetSizer(itemBoxSizer4);

189

wxStaticBox* itemStaticBoxSizer5Static =

new

wxStaticBox(itemPanel3,

wxID_ANY

,

_

(

"Validation"

));

190

wxStaticBoxSizer* itemStaticBoxSizer6 =

new

wxStaticBoxSizer(itemStaticBoxSizer5Static, wxHORIZONTAL);

191

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

193  m_Status

=

new

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

194

itemStaticBoxSizer6->Add(

m_Status

, 0, wxALIGN_CENTER_VERTICAL | wxALL, 3);

196

wxBoxSizer* itemBoxSizer12 =

new

wxBoxSizer(wxHORIZONTAL);

197

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

199

itemBoxSizer12->AddStretchSpacer();

201  m_Accept

=

new

wxButton(itemPanel3, wxID_OK,

_

(

"Accept"

), wxDefaultPosition, wxDefaultSize, 0);

202

itemBoxSizer12->Add(

m_Accept

, 0, wxALL, 5);

205

wxButton* itemButton15 =

new

wxButton( itemPanel3, wxID_CANCEL,

_

(

"Close"

), wxDefaultPosition, wxDefaultSize, 0 );

206

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

262  m_Status

->SetForegroundColour(wxColor(*wxRED));

271  m_Status

->SetForegroundColour(wxColour(0, 128, 0));

276  m_Status

->SetForegroundColour(wxColour(255, 165, 0));

297

wxWindow* w = this->GetParent();

311

wxWindow* w = this->GetParent();

343

HideWithEffect(wxSHOW_EFFECT_BLEND);

344  if

(wxTheApp && wxTheApp->GetMainLoop()) {

345  if

(!wxTheApp->GetMainLoop()->IsYielding())

346

wxTheApp->Yield(

true

);

347

wxTheApp->ProcessPendingEvents();

349

ShowWithEffect(wxSHOW_EFFECT_BLEND);

356

wxGenericNotificationMessage notice(wxEmptyString,

wxT

(

"Macro added"

));

357 #if wxCHECK_VERSION(3, 1, 0) 358

wxWindow* w = GetParent();

363

notice.SetIcon(icon);

const string & GetWarning() const

void SetParentFrame(CMacroEditor *parent)

macro::CMacroEngine m_MEngine

CMacroEditor()

Constructors.

void Init()

Initialises member variables.

void SetPositionAndSize()

CMacroEditingActionPanel * m_ActionPanel

CRef< macro::CMacroRep > m_MacroRep

void OnAcceptClick(wxCommandEvent &event)

wxIcon GetIconResource(const wxString &name)

Retrieves icon resources.

~CMacroEditor()

Destructor.

wxBitmap GetBitmapResource(const wxString &name)

Retrieves bitmap resources.

bool Create(wxWindow *parent, wxWindowID id=ID_CMACROEDITOR, const wxString &caption=_("Add New Macro"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCAPTION|wxSYSTEM_MENU|wxMINIMIZE_BOX|wxCLOSE_BOX)

static bool ShowToolTips()

Should we show tooltips?

void OnCloseClick(wxCommandEvent &event)

CRef< macro::CMacroRep > m_EditedMacro

void CreateControls()

Creates the controls and sizers.

void RemoveEditor(bool scroll_to_end)

void SaveAddMacroSizeAndPosition(int w, int h, int x, int y)

void AddNewMacro(CRef< macro::CMacroRep > macro_rep)

void UpdateEditedMacro(CRef< macro::CMacroRep > macro_rep)

IMPLEMENT_CLASS(CFloatingFrame, CFloatingFrameBaseClass) const static long kFloatFrameStyle

CFloatingFrame.

#define LOG_POST(message)

This macro is deprecated and it's strongly recomended to move in all projects (except tests) to macro...

#define NCBI_THROW(exception_class, err_code, message)

Generic macro to throw an exception, given the exception class, error code and message string.

const string & GetMsg(void) const

Get message string.

void Info(CExceptionArgs_Base &args)

EDialogReturnValue NcbiMessageBox(const string &message, TDialogType type=eDialog_Ok, EDialogIcon icon=eIcon_Exclamation, const string &title="Error", EDialogTextMode text_mode=eRaw)

string GetLabel(const CSeq_id &id)

void Reset(void)

Reset reference object.

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

void ReportUsage(const wxString &dialog_name, const string &action_name)

Report events in the macro_flow_editor and in the macro_editor.

void SaveScriptCreated(const string &macro)

Save macro created by the editor.

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)

wxString ToWxString(const string &s)

wxRect GetScreenRect(const wxWindow &win)


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