SetBackgroundStyle(wxBG_STYLE_COLOUR);
86SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_FRAMEBK));
89wxPanel::Create( parent,
id, pos, wxSize(0,0), style );
126wxBoxSizer* main_sizer =
newwxBoxSizer(wxVERTICAL);
127itemPanel1->SetSizer(main_sizer);
129wxBoxSizer* itemBoxSizer3 =
newwxBoxSizer(wxVERTICAL);
130main_sizer->Add(itemBoxSizer3, 0, wxGROW|wxALL, 0);
132wxBitmap bmp_error = wxArtProvider::GetBitmap(
wxT(
"menu::error16x16"));
133wxBitmap bmp_warning = wxArtProvider::GetBitmap(
wxT(
"menu::warning16x16"));
134wxBitmap bmp_info = wxArtProvider::GetBitmap(
wxT(
"menu::info16x16"));
135wxBitmap bmp_other = wxArtProvider::GetBitmap(
wxT(
"menu::htmpage16x16"));
137wxToolBar* tool_bar =
newwxToolBar( itemPanel1,
ID_TOOLBAR2, wxDefaultPosition, wxDefaultSize, wxTB_FLAT|wxTB_HORIZONTAL|wxTB_TEXT|wxTB_HORZ_LAYOUT );
138tool_bar->SetToolBitmapSize(wxSize(16, 16));
140tool_bar->AddTool(
ID_TOOL_ERRORS,
wxT(
"Errors"), bmp_error, wxNullBitmap, wxITEM_CHECK,
wxT(
""), wxEmptyString);
141tool_bar->AddTool(
ID_TOOL_WARNINGS,
wxT(
"Warnings"), bmp_warning, wxNullBitmap, wxITEM_CHECK,
wxT(
""), wxEmptyString);
142tool_bar->AddTool(
ID_TOOL_INFO,
wxT(
"Info"), bmp_info, wxNullBitmap, wxITEM_CHECK,
wxT(
""), wxEmptyString);
143tool_bar->AddTool(
ID_TOOL_OTHER,
wxT(
"Other"), bmp_other, wxNullBitmap, wxITEM_CHECK,
wxT(
""), wxEmptyString);
144tool_bar->AddSeparator();
146wxArrayString itemChoice10Strings;
147itemChoice10Strings.Add(
wxT(
"All"));
148itemChoice10Strings.Add(
wxT(
"NCBI"));
149itemChoice10Strings.Add(
wxT(
"wxWidgets"));
150wxChoice* itemChoice10 =
newwxChoice( tool_bar,
ID_CHOICE3, wxDefaultPosition, wxDefaultSize, itemChoice10Strings, 0 );
151itemChoice10->SetStringSelection(
wxT(
"All"));
152tool_bar->AddControl(itemChoice10);
154itemBoxSizer3->Add(tool_bar, 0, wxGROW|wxALL, 0);
157wxStaticLine* line =
newwxStaticLine(
this, wxID_STATIC, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
158main_sizer->Add(line, 0, wxEXPAND);
162main_sizer->Add(
m_MsgList, 1, wxGROW | wxALL, 0);
168wxBitmap bmp_transp = wxArtProvider::GetBitmap(
wxT(
"menu:transp16x16.xpm"));
205wxListCtrl* listCtrl = (wxListCtrl*)FindWindow(
ID_LISTCTRL1);
206listCtrl->DeleteAllItems();
212wxToolBar* itemToolBar12 = (wxToolBar*)FindWindow(
ID_TOOLBAR2);
213wxChoice* itemChoice18 = (wxChoice*)itemToolBar12->FindControl(
ID_CHOICE3);
225itemChoice18->Select(1);
228itemChoice18->Select(2);
231itemChoice18->Select(0);
239 if(event.IsChecked())
249 if(event.IsChecked())
259 if(event.IsChecked())
269 if(event.IsChecked())
279 switch(event.GetSelection()) {
295wxStringOutputStream stream;
296wxTextOutputStream os(stream);
298 longitem =
m_MsgList->GetNextItem(-1, wxLIST_NEXT_ALL,
299wxLIST_STATE_SELECTED);
303item =
m_MsgList->GetNextItem(item, wxLIST_NEXT_ALL,
304wxLIST_STATE_SELECTED);
307wxClipboardLocker locker;
308 if( !locker )
return;
309wxTheClipboard->SetData(
newwxTextDataObject(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 stringsid(
"diag_console_view_factory");
480 static stringslabel(
"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