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

NCBI C++ ToolKit: src/gui/framework/diag_panel.cpp Source File

44 #include <wx/statline.h> 45 #include <wx/settings.h> 48 #include <wx/choice.h> 51 #include <wx/sstream.h> 52 #include <wx/txtstrm.h> 53 #include <wx/clipbrd.h> 54 #include <wx/dataobj.h> 84 #ifdef __WXOSX_COCOA__ 85

SetBackgroundStyle(wxBG_STYLE_COLOUR);

86

SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_FRAMEBK));

89

wxPanel::Create( parent,

id

, pos, wxSize(0,0), style );

126

wxBoxSizer* main_sizer =

new

wxBoxSizer(wxVERTICAL);

127

itemPanel1->SetSizer(main_sizer);

129

wxBoxSizer* itemBoxSizer3 =

new

wxBoxSizer(wxVERTICAL);

130

main_sizer->Add(itemBoxSizer3, 0, wxGROW|wxALL, 0);

132

wxBitmap bmp_error = wxArtProvider::GetBitmap(

wxT

(

"menu::error16x16"

));

133

wxBitmap bmp_warning = wxArtProvider::GetBitmap(

wxT

(

"menu::warning16x16"

));

134

wxBitmap bmp_info = wxArtProvider::GetBitmap(

wxT

(

"menu::info16x16"

));

135

wxBitmap bmp_other = wxArtProvider::GetBitmap(

wxT

(

"menu::htmpage16x16"

));

137

wxToolBar* tool_bar =

new

wxToolBar( itemPanel1,

ID_TOOLBAR2

, wxDefaultPosition, wxDefaultSize, wxTB_FLAT|wxTB_HORIZONTAL|wxTB_TEXT|wxTB_HORZ_LAYOUT );

138

tool_bar->SetToolBitmapSize(wxSize(16, 16));

140

tool_bar->AddTool(

ID_TOOL_ERRORS

,

wxT

(

"Errors"

), bmp_error, wxNullBitmap, wxITEM_CHECK,

wxT

(

""

), wxEmptyString);

141

tool_bar->AddTool(

ID_TOOL_WARNINGS

,

wxT

(

"Warnings"

), bmp_warning, wxNullBitmap, wxITEM_CHECK,

wxT

(

""

), wxEmptyString);

142

tool_bar->AddTool(

ID_TOOL_INFO

,

wxT

(

"Info"

), bmp_info, wxNullBitmap, wxITEM_CHECK,

wxT

(

""

), wxEmptyString);

143

tool_bar->AddTool(

ID_TOOL_OTHER

,

wxT

(

"Other"

), bmp_other, wxNullBitmap, wxITEM_CHECK,

wxT

(

""

), wxEmptyString);

144

tool_bar->AddSeparator();

146

wxArrayString itemChoice10Strings;

147

itemChoice10Strings.Add(

wxT

(

"All"

));

148

itemChoice10Strings.Add(

wxT

(

"NCBI"

));

149

itemChoice10Strings.Add(

wxT

(

"wxWidgets"

));

150

wxChoice* itemChoice10 =

new

wxChoice( tool_bar,

ID_CHOICE3

, wxDefaultPosition, wxDefaultSize, itemChoice10Strings, 0 );

151

itemChoice10->SetStringSelection(

wxT

(

"All"

));

152

tool_bar->AddControl(itemChoice10);

154

itemBoxSizer3->Add(tool_bar, 0, wxGROW|wxALL, 0);

157

wxStaticLine* line =

new

wxStaticLine(

this

, wxID_STATIC, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );

158

main_sizer->Add(line, 0, wxEXPAND);

162

main_sizer->Add(

m_MsgList

, 1, wxGROW | wxALL, 0);

168

wxBitmap bmp_transp = wxArtProvider::GetBitmap(

wxT

(

"menu:transp16x16.xpm"

));

205

wxListCtrl* listCtrl = (wxListCtrl*)FindWindow(

ID_LISTCTRL1

);

206

listCtrl->DeleteAllItems();

212

wxToolBar* itemToolBar12 = (wxToolBar*)FindWindow(

ID_TOOLBAR2

);

213

wxChoice* itemChoice18 = (wxChoice*)itemToolBar12->FindControl(

ID_CHOICE3

);

225

itemChoice18->Select(1);

228

itemChoice18->Select(2);

231

itemChoice18->Select(0);

239  if

(event.IsChecked())

249  if

(event.IsChecked())

259  if

(event.IsChecked())

269  if

(event.IsChecked())

279  switch

(event.GetSelection()) {

295

wxStringOutputStream stream;

296

wxTextOutputStream os(stream);

298  long

item =

m_MsgList

->GetNextItem(-1, wxLIST_NEXT_ALL,

299

wxLIST_STATE_SELECTED);

303

item =

m_MsgList

->GetNextItem(item, wxLIST_NEXT_ALL,

304

wxLIST_STATE_SELECTED);

307

wxClipboardLocker locker;

308  if

( !locker )

return

;

309

wxTheClipboard->SetData(

new

wxTextDataObject(stream.GetString()));

314  event

.Enable(

m_MsgList

->GetSelectedItemCount() > 0);

321  "Diagnostic Console"

,

322  "diag_console_view"

,

323  "Diagnostic Console displays technical information that can be used for troubleshooting and debugging."

,

324  "Diagnostic Console displays technical information that can be used for troubleshooting and debugging."

,

325  "DIAG_CONSOLE_VIEW"

,

464  if

(print == fingerprint) {

473  static string

sid(

"diag_console_view_factory"

);

480  static string

slabel(

"Diagnostic Console Factory"

);

CExtensionDeclaration - static declaration helper.

class CRgbaColor provides a simple abstraction for managing colors.

CViewTypeDescriptor - holds description of a view type.

IView - represents a standard visual part of Workbench UI.

CFingerprint identifies an instance of IWMClient and is used for labeling layout positions.

ELabel

Different flavors of label types for different GUI aspects.

IWorkbench is the central interface in the application framework.

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

static CExtensionDeclaration decl("view_manager_service::view_factory", new CDiagConsoleViewFactory())

register the factory

virtual ~CDiagConsolePanel()

void OnToolOtherClick(wxCommandEvent &event)

virtual string GetExtensionLabel() const

returns a displayable label for this extension ( please capitalize the key words - "My Extension" )

virtual void LoadSettings()

virtual IView * CreateInstanceByFingerprint(const TFingerprint &fingerprint) const

if fingerprint is recognized - creates and returns a new instance

wxString GetItemRawMsg(long item) const

virtual wxWindow * GetWindow()

returns a pointer to the wxWindow representing the client

virtual void SetWorkbench(IWorkbench *workbench)

connect / disconnect this view with / from Workbench

virtual void LoadSettings()

virtual const CViewTypeDescriptor & GetViewTypeDescriptor() const

returns a Descriptor for the View Type supported by the Factory

virtual const wxMenu * GetMenu()

returns a menu (must be deleted by the caller) menu injections should follow a separator named "Contr...

bool Create(wxWindow *parent, wxWindowID id=10030, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=0)

Creation.

virtual void CreateViewWindow(wxWindow *parent)

create Window corresponding to the view

virtual string GetIconAlias() const

returns an icon alias that can be used to retrieve the client's icon

virtual string GetClientLabel(IWMClient::ELabel ltype=IWMClient::eDefault) const

returns the client label (name) to be displayed in UI

virtual IView * CreateInstance() const

creates a view instance

virtual void UpdateMenu(wxMenu &root_menu)

virtual string GetExtensionIdentifier() const

returns the unique human-readable identifier for the extension the id should use lowercase letters se...

virtual const CRgbaColor * GetColor() const

returns a color associated with the client, n/a if NULL

virtual void SaveSettings() const

virtual const CViewTypeDescriptor & GetTypeDescriptor() const

return an object providing meta information about thei view type

virtual void SetRegistryPath(const string &path)

void OnToolErrorsClick(wxCommandEvent &event)

virtual void LoadSettings()

wxBitmap GetBitmapResource(const wxString &name)

virtual void SetRegistryPath(const string &path)

virtual void SetColor(const CRgbaColor &color)

returns a color associated with the client

static bool m_IconsInitialized

CDiagConsolePanel.

virtual void SaveSettings() const

void OnChoice3Selected(wxCommandEvent &event)

virtual void RegisterIconAliases(wxFileArtProvider &provider)

CDiagConsoleViewFactory.

virtual ~CDiagConsoleView()

virtual void SetRegistryPath(const string &path)

#define SYMBOL_CWXDIAGPANEL_IDNAME

void SetFilter(size_t filter)

void x_LoadMessages()

command callback for listener

void OnToolWarningsClick(wxCommandEvent &event)

virtual void SaveSettings() const

void OnToolInfoClick(wxCommandEvent &event)

CDiagConsolePanel * m_Panel

void OnCopy(wxCommandEvent &event)

CDiagConsoleList * m_MsgList

void OnCopyUpdateUI(wxUpdateUIEvent &event)

virtual void DestroyViewWindow()

destroy Window corresponding to the view

static CViewTypeDescriptor m_TypeDescr

CDiagConsoleView.

virtual CFingerprint GetFingerprint() const

returns a fingerprint identifying the client

virtual const string & GetIconAlias() const

virtual const string & GetLabel() const

string GetLabel(const CSeq_id &id)

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

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

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

wxFileArtProvider * GetDefaultFileArtProvider()


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