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

NCBI C++ ToolKit: src/gui/wx_demo/wx_main_frame.cpp Source File

36 #include <wx/artprov.h> 37 #include <wx/imaglist.h> 39 #include <wx/msgdlg.h> 41 #include <wx/notebook.h> 42 #include <wx/button.h> 43 #include <wx/stattext.h> 68 #define ID_LAUNCH_JOBS 10101 69 #define ID_CHECK_JOBS_STATUS 10101 70 #define ID_CHECK_JOBS_PROGRESS 10101 71 #define ID_CANCEL_JOBS 10101 115

:

CEvent

(eEvent_Message, 0,

NULL

), m_Str(name) {}

124

: m_SequenceGotoDlg()

131

: m_SequenceGotoDlg()

134  Create

( parent,

id

, caption, pos,

size

, style );

138 bool CwxMainFrame::Create

( wxWindow* parent, wxWindowID

id

,

const

wxString& caption,

const

wxPoint& pos,

const

wxSize&

size

,

long

style )

140

wxFrame::Create( parent,

id

, caption, pos,

size

, style );

179

wxMenuBar* menuBar =

new

wxMenuBar;

180

wxMenu* itemMenu3 =

new

wxMenu;

181

itemMenu3->AppendSeparator();

182

itemMenu3->Append(wxID_EXIT,

_

(

"E&xit\tAlt+X"

), wxEmptyString, wxITEM_NORMAL);

183

menuBar->Append(itemMenu3,

_

(

"File"

));

184

wxMenu* itemMenu6 =

new

wxMenu;

185

itemMenu6->Append(wxID_CUT,

_

(

"Cu&t"

), wxEmptyString, wxITEM_NORMAL);

186

itemMenu6->Append(wxID_COPY,

_

(

"&Copy"

), wxEmptyString, wxITEM_NORMAL);

187

itemMenu6->Append(wxID_PASTE,

_

(

"&Paste"

), wxEmptyString, wxITEM_NORMAL);

188

itemMenu6->AppendSeparator();

189

itemMenu6->Append(wxID_SELECTALL,

_

(

"Select All"

), wxEmptyString, wxITEM_NORMAL);

190

menuBar->Append(itemMenu6,

_

(

"Edit"

));

191

wxMenu* itemMenu12 =

new

wxMenu;

192

itemMenu12->Append(

ID_TEST_MSG_BOXES

,

_

(

"Message Boxes"

), wxEmptyString, wxITEM_NORMAL);

193

itemMenu12->Append(

ID_POST_EVENTS

,

_

(

"Post Events"

), wxEmptyString, wxITEM_NORMAL);

194

itemMenu12->Append(

ID_MENUITEM1

,

_

(

"Go to sequence"

), wxEmptyString, wxITEM_NORMAL);

195

itemMenu12->Append(

ID_TEST_DIAG_PANEL

,

_

(

"Test Diagnostics Console"

), wxEmptyString, wxITEM_NORMAL);

196

menuBar->Append(itemMenu12,

_

(

"Test"

));

197

wxMenu* itemMenu17 =

new

wxMenu;

198

itemMenu17->Append(

ID_CREATE_MAP_CONTROL

,

_

(

"Create Map Control\tF1"

), wxEmptyString, wxITEM_NORMAL);

201

menuBar->Append(itemMenu17,

_

(

"Test Controls"

));

202

wxMenu* itemMenu21 =

new

wxMenu;

204

wxMenuItem* menuItem =

new

wxMenuItem(itemMenu21, wxID_ABOUT,

_

(

"About"

), wxEmptyString, wxITEM_NORMAL);

206

menuItem->SetBitmap(bitmap);

207

itemMenu21->Append(menuItem);

209

menuBar->Append(itemMenu21,

_

(

"Help"

));

210

itemFrame1->SetMenuBar(menuBar);

214

itemFrame1->SetStatusBar(itemStatusBar23);

219

wxMenu* open_sub_menu =

new

wxMenu;

220

open_sub_menu->Append(

ID_OPEN_DATA

,

_

(

"&Data"

), wxEmptyString, wxITEM_NORMAL);

221

open_sub_menu->Append(

ID_OPEN_PROJECT

,

_

(

"&Project"

), wxEmptyString, wxITEM_NORMAL);

222

open_sub_menu->Append(

ID_OPEN_WORKSPACE

,

_

(

"&Workspace"

), wxEmptyString, wxITEM_NORMAL);

224

itemMenu3->Insert(0,

ID_MENU_OPEN

,

_

(

"&Open"

), open_sub_menu);

227

wxMenu* itemMenuApp =

new

wxMenu;

228

itemMenuApp->Append(

ID_LAUNCH_JOBS

,

_

(

"Launch Jobs"

), wxEmptyString, wxITEM_NORMAL);

231

itemMenuApp->Append(

ID_CANCEL_JOBS

,

_

(

"Cancel Jobs"

), wxEmptyString, wxITEM_NORMAL);

232

menuBar->Append(itemMenuApp,

_

(

"App Jobs Test"

));

235  entries

[0].Set(wxACCEL_CTRL, (

int

)

'X'

, wxID_CUT);

236  entries

[1].Set(wxACCEL_CTRL, (

int

)

'C'

, wxID_COPY);

237  entries

[2].Set(wxACCEL_CTRL, (

int

)

'V'

, wxID_PASTE);

239

wxAcceleratorTable s_accel(3,

entries

);

241

SetAcceleratorTable(s_accel);

253  int

w[6] = { -4, 50, 50, -1, 50, 20 };

260

wxGauge* gauge =

new

wxGauge(

this

,

wxID_ANY

, 100);

295

wxArtProvider::Push(art_prov);

307  return

wxArtProvider::GetBitmap( name );

329

wxFrame::Close(

true

);

334

wxMessageDialog dlg(

NULL

,

_

(

"Yes No Cancel dialog."

),

_

(

"Question"

),

335

wxYES_NO | wxCANCEL | wxICON_QUESTION);

338

wxMessageDialog dlg_2(

NULL

,

_

(

"Ok Cancel dialog."

),

_

(

"Error"

),

339

wxOK | wxCANCEL | wxICON_ERROR);

349  for

(

int i

= 0;

i

< 10 ;

i

++) {

406  msg

.Printf(

_

(

"Range:\nFrom:\t%ld\nTo:\t%ld"

), from, to);

407

wxMessageBox(

msg

,

_

(

"Goto"

),wxOK | wxICON_EXCLAMATION,

this

);

439  event

.Enable(

true

);

463  for

(

int i

= 0;

i

< 20;

i

++) {

523  string label

, icon, descr;

527  label

=

"The First Item"

;

528

icon =

"menu::zoom_in"

;

531  label

=

"The Second Item - with a description"

;

532

icon =

"map::arrow_open"

;

535  label

=

"The Third Item - with a description that is much longer"

;

536

icon =

"menu::arrow_close"

;

541

icon =

"menu::about"

;

543

descr =

"Description is"

;

CEvent - generic event implementation TODO TODO - Attachments.

CRegistryWriteView GetWriteView(const string &section)

get a read-write view at a particular level.

static CGuiRegistry & GetInstance()

access the application-wide singleton

CRegistryReadView GetReadView(const string &section) const

get a read-only view at a particular level.

CMapControl owns all its items.

virtual void AddItem(IwxMapItem *item)

virtual void DeleteAllItems()

SProperties & GetProperties()

virtual void LockUpdates(bool lock=true)

block layout and repainting until control is unlocked

CMapItem This is a base class for IwxMapItem implementations.

class CRegistryReadView provides a nested hierarchical view at a particular key.

bool GetRange(long &from, long &to) const

virtual bool Show(bool show=true)

CStatusBar CStatusBar provides basic support for adding windows to status bar slots when status bar i...

virtual void SetFieldsCount(int number=1, const int *widths=NULL)

virtual void SetFieldWindow(int index, wxWindow *window)

static wxString ResolvePath(const wxString &path, const wxString &rel_name)

Utility function to hide the platform specifics of locating our standard directories and files.

CTestEvent(const string &name)

void OnTestEvent(CEvent *evt)

void OnCreateMapControlClick(wxCommandEvent &event)

wxEVT_COMMAND_MENU_SELECTED event handler for ID_CREATE_MAP_CONTROL

CSequenceGotoData m_SequenceGotoData

bool m_DiagnosticsTesting

CwxMainFrame()

Constructors.

void OnCreateGroupMapWidgetClick(wxCommandEvent &event)

wxEVT_COMMAND_MENU_SELECTED event handler for ID_CREATE_GROUP_MAP_WIDGET

void OnEXITClick(wxCommandEvent &event)

wxEVT_COMMAND_MENU_SELECTED event handler for wxID_EXIT

void OnSeqGotoClose(CSequenceGotoEvent &event)

bool Create(wxWindow *parent, wxWindowID id=10000, const wxString &caption=_("wx Demo App"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(800, 600), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxMINIMIZE_BOX|wxMAXIMIZE_BOX|0x1000)

void OnCreateTableControlClick(wxCommandEvent &event)

wxEVT_COMMAND_MENU_SELECTED event handler for ID_CREATE_TABLE_CONTROL

CGroupMapWidget * m_GroupMapWidget

void OnABOUTClick(wxCommandEvent &event)

wxEVT_COMMAND_MENU_SELECTED event handler for wxID_ABOUT

~CwxMainFrame()

Destructor.

void OnCreateTableControlItems()

void OnCheckJobsProgress(wxCommandEvent &event)

void OnCreateMapControlItems()

void OnSeqGoto(CSequenceGotoEvent &event)

void OnTestDiagPanelUpdate(wxUpdateUIEvent &event)

wxEVT_UPDATE_UI event handler for ID_TEST_DIAG_PANEL

void CreateControls()

Creates the controls and sizers.

unique_ptr< CPrimeNumberClient > m_PrimeClient

CwxTableListCtrl * m_TableControl

void OnTestDiagPanelClick(wxCommandEvent &event)

wxEVT_COMMAND_MENU_SELECTED event handler for ID_TEST_DIAG_PANEL

void OnGoToSequence(wxCommandEvent &event)

wxEVT_COMMAND_MENU_SELECTED event handler for ID_MENUITEM1

void Init()

Initialises member variables.

CMapControl * m_MapControl

void OnPostEventsClick(wxCommandEvent &event)

wxEVT_COMMAND_MENU_SELECTED event handler for ID_POST_EVENTS

void OnCheckJobsStatus(wxCommandEvent &event)

CSequenceGotoDlg * m_SequenceGotoDlg

wxBitmap GetBitmapResource(const wxString &name)

Retrieves bitmap resources.

void OnLaunchJobs(wxCommandEvent &event)

void OnCloseWindow(wxCloseEvent &event)

wxEVT_CLOSE_WINDOW event handler for ID_CWXMAINFRAME

static bool ShowToolTips()

Should we show tooltips?

wxIcon GetIconResource(const wxString &name)

Retrieves icon resources.

void OnCancelJobs(wxCommandEvent &event)

void OnTestMsgBoxesClick(wxCommandEvent &event)

wxEVT_COMMAND_MENU_SELECTED event handler for ID_TEST_MSG_BOXES

CwxSplittingArtProvider - an adapter for old-style image aliases.

CwxTableListCtrl - generic wxListCtrl-based Table Control.

void LoadTableSettings(const CRegistryReadView &view, bool byName=false)

void SaveTableSettings(CRegistryWriteView &view, bool saveSorting=true) const

void SetModel(IwxTableModel *data_model, bool own=false)

virtual void RegisterFileAlias(const wxArtID &anId, const wxArtClient &aClient, const wxSize &aSize, const wxString &aName, long aType=wxBITMAP_TYPE_ANY, int anIndex=-1)

int AddDirectory(wxString aDirName)

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...

static CAppJobDispatcher & GetInstance()

void Post(CRef< CEvent > evt, EDispatch disp_how=eDispatch_Default, int pool_name=ePool_Default)

Handles an event asynchronously (process and/or dispatch).

#define ON_EVENT(type, id, handler)

#define END_EVENT_MAP()

Ends definition of Command Map.

#define BEGIN_EVENT_MAP(thisClass, baseClass)

Begins definition of Command Map for CEventHandler-derived class.

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

static string IntToString(int value, TNumToStringFlags flags=0, int base=10)

Convert int to string.

static const char label[]

const struct ncbi::grid::netcache::search::fields::SIZE size

#define EVT_SEQ_GOTO_CLOSE(id, fn)

#define EVT_SEQ_GOTO(id, fn)

ViewerWindowBase::OnEditMenu ViewerWindowBase::OnJustification EVT_MENU(MID_SHOW_GEOM_VLTNS, ViewerWindowBase::OnShowGeomVltns) EVT_MENU(MID_FIND_PATTERN

static SLJIT_INLINE sljit_ins msg(sljit_gpr r, sljit_s32 d, sljit_gpr x, sljit_gpr b)

#define ID_CHECK_JOBS_PROGRESS

#define ID_CHECK_JOBS_STATUS

static wxAcceleratorEntry entries[3]

#define ID_OPEN_WORKSPACE

#define ID_CREATE_MAP_CONTROL

#define ID_CREATE_GROUP_MAP_WIDGET

#define ID_CREATE_TABLE_CONTROL

#define ID_TEST_MSG_BOXES

#define ID_TEST_DIAG_PANEL


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