: m_Timer(this), m_AssemblyLoaded(
false)
65Create(parent,
id, pos,
size, style);
102 if(event.IsCommandEvent()) {
103wxEventType
type=
event.GetEventType();
105wxEvtHandler* evtHandler = 0;
107 if(evtHandler && evtHandler->ProcessEventLocally(event))
111 returnwxPanel::ProcessEvent(event);
116 intselection =
event.GetSelection();
117 if(selection < 0 || selection >= (
int)
m_Assemblies.size())
136 if(!
fp)
return false;
148 static boolsImagesRegistered =
false;
149 if(!sImagesRegistered) {
152sImagesRegistered =
true;
156wxAuiToolBar* toolbar =
nullptr;
159toolbar = (wxAuiToolBar*)pane.window;
162 if(ctrl) ctrl->Destroy();
165 if(ctrl) ctrl->Destroy();
168 if(ctrl) ctrl->Destroy();
178toolbar->ClearTools();
181toolbar =
newwxAuiToolBar(
this,
wxID_ANY, wxDefaultPosition,
182wxDefaultSize, wxAUI_TB_HORIZONTAL | wxBORDER_NONE);
189toolbar->AddSeparator();
195toolbar->AddSeparator();
197toolbar->AddSeparator();
204 strings.Add(
_(
"Do not match case"));
212wxMenu* menu =
newwxMenu();
213menu->Append(wxID_COPY,
_(
"&Copy"));
214menu->Append(wxID_PASTE,
_(
"&Paste"));
219toolbar->AddTool(
ID_TB_SearchButton,
wxT(
"Search"), wxArtProvider::GetBitmap(
wxT(
"graphic_panel::search")),
wxT(
"Search"));
220toolbar->AddSeparator();
231 stringaccession =
i->GetAccession();
232 stringname =
i->GetName();
233 intindex = assListCtrl->Append(
ToWxString(name +
" (") + accession +
")");
242assListCtrl->SetSelection(selection);
243toolbar->AddControl(assListCtrl);
249 wxT(
"Querying..."));
252toolbar->AddStretchSpacer();
254wxArtProvider::GetBitmap(wxART_HELP, wxART_OTHER, wxSize(16, 16)),
255 wxT(
"Graphical View Help"));
270.LeftDockable(
false)
271.RightDockable(
false)
272.BottomDockable(
false)
277.DestroyOnClose(
true)
280pane.BestSize(toolbar->GetClientSize());
295 if(!pane.IsOk())
return;
297wxAuiToolBar* tb =
static_cast<wxAuiToolBar*
>(pane.window);
307wxRect rect = tb->GetToolRect(evt.GetId());
308wxPoint pt = tb->ClientToScreen(rect.GetBottomLeft());
309pt = ScreenToClient(pt);
311PopupMenu(&menuPopup, pt);
319 constwxString caption =
wxT(
"Find Text");
322 if(
text.empty()) {
324wxMessageBox(
wxT(
"Search string is empty."), caption, wxOK | wxICON_EXCLAMATION);
331 string tmp=
text.ToStdString();
337wxMessageBox(
wxT(
"Search string not found."), caption, wxOK | wxICON_EXCLAMATION);
wxChoice * m_FindModeCtrl
void OnAssemblySelected(wxCommandEvent &event)
void OnSearchTermCtrlEnter(wxCommandEvent &event)
virtual bool ProcessEvent(wxEvent &event)
void OnFindNextClick(wxCommandEvent &event)
CSeqGraphicWidget * m_SeqWidget
vector< CRef< objects::CGC_Assembly > > m_Assemblies
void OnTimer(wxTimerEvent &event)
wxAuiManager m_AuiManager
CRichTextCtrl * m_FindTextCtrl
void OnHelpClick(wxCommandEvent &event)
void OnConfigureTracks(wxCommandEvent &event)
CRichTextCtrl - a wrapper for wxRichTextCtrl that handles additional keyboard events (such as Clipboa...
void SetContextMenu(wxMenu *contextMenu)
CUICommandRegistry is a centralized registry where all application commands should be registered.
static CUICommandRegistry & GetInstance()
the main instance associated with the application
void AppendTool(wxToolBar &tool_bar, TCmdID cmd_id)
wxMenuItem * AppendMenuItem(wxMenu &menu, TCmdID cmd_id) const
virtual void RegisterFileAlias(const wxArtID &anId, const wxArtClient &aClient, const wxSize &aSize, const wxString &aName, long aType=wxBITMAP_TYPE_ANY, int anIndex=-1)
int Main(int argc, const char *argv[])
static const char *const strings[]
static const wxChar * pszMainToolbar
@ eCmdZoomIn
empty command
@ eCmdZoomSeq
Zoom to Selection.
@ eCmdWebHelpGSVInteractionGuide
@ eCmdBack
Navigation commands.
@ eCmdWebHelpGSVNavigation
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static void TruncateSpacesInPlace(string &str, ETrunc where=eTrunc_Both)
Truncate whitespace in a string (in-place)
static void text(MDB_val *v)
const struct ncbi::grid::netcache::search::fields::SIZE size
const CConstRef< CSeq_id > GetAccession(const CSeq_id_Handle &id_handle)
wxEVT_COMMAND_MENU_SELECTED
ViewerWindowBase::OnEditMenu ViewerWindowBase::OnJustification EVT_MENU(MID_SHOW_GEOM_VLTNS, ViewerWindowBase::OnShowGeomVltns) EVT_MENU(MID_FIND_PATTERN
wxFileArtProvider * GetDefaultFileArtProvider()
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