;
125: m_SrvLocator(srvLocator), m_Managers(managers), m_RecentTools(3)
132 bool CRunToolDlg::Create( wxWindow* parent, wxWindowID
id,
constwxString& caption,
constwxPoint& pos,
constwxSize&
size,
longstyle )
135SetExtraStyle(wxWS_EX_BLOCK_EVENTS);
136CDialog::Create( parent,
id, caption, pos,
size, style );
141GetSizer()->SetSizeHints(
this);
176wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
177itemCDialog1->SetSizer(itemBoxSizer2);
179 m_Panel=
newwxPanel( itemCDialog1,
ID_PANEL, wxDefaultPosition, wxSize(400, 300), wxFULL_REPAINT_ON_RESIZE|wxTAB_TRAVERSAL );
180itemBoxSizer2->Add(
m_Panel, 1, wxGROW, 5);
182wxBoxSizer* itemBoxSizer4 =
newwxBoxSizer(wxVERTICAL);
183 m_Panel->SetSizer(itemBoxSizer4);
185wxStaticLine* itemStaticLine5 =
newwxStaticLine( itemCDialog1, wxID_STATIC, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
186itemBoxSizer2->Add(itemStaticLine5, 0, wxGROW|wxALL, 5);
188wxBoxSizer* itemBoxSizer6 =
newwxBoxSizer(wxHORIZONTAL);
189itemBoxSizer2->Add(itemBoxSizer6, 0, wxGROW|wxLEFT|wxRIGHT, 5);
191 m_HelpLink=
newwxHyperlinkCtrl( itemCDialog1,
ID_HYPERLINKCTRL,
_(
"Help"), wxEmptyString, wxDefaultPosition, wxDefaultSize, wxHL_DEFAULT_STYLE );
192 m_HelpLink->SetForegroundColour(wxColour(128, 128, 128));
193itemBoxSizer6->Add(
m_HelpLink, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
200itemBoxSizer6->Add(5, 5, 1, wxALIGN_CENTER_VERTICAL|wxALL, 5);
202wxBoxSizer* itemBoxSizer10 =
newwxBoxSizer(wxHORIZONTAL);
203itemBoxSizer6->Add(itemBoxSizer10, 0, wxALIGN_CENTER_VERTICAL, 5);
205 m_QuickLaunch=
newwxButton( itemCDialog1,
ID_BUTTON,
_(
"Add Quick Launch..."), wxDefaultPosition, wxDefaultSize, 0 );
206itemBoxSizer10->Add(
m_QuickLaunch, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
208 m_BackBtn=
newwxButton( itemCDialog1, wxID_BACKWARD,
_(
"< &Back"), wxDefaultPosition, wxDefaultSize, 0 );
209itemBoxSizer10->Add(
m_BackBtn, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxTOP|wxBOTTOM, 5);
214 boolspacer_code_included =
true;
215 #ifdef __WXOSX_COCOA__ 216itemBoxSizer10->AddSpacer(6);
219 m_NextBtn=
newwxButton( itemCDialog1, wxID_FORWARD,
_(
"&Next >"), wxDefaultPosition, wxDefaultSize, 0 );
221itemBoxSizer10->Add(
m_NextBtn, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxTOP|wxBOTTOM, 5);
223wxButton* itemButton14 =
newwxButton( itemCDialog1, wxID_CANCEL,
_(
"&Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
224itemBoxSizer6->Add(itemButton14, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
228 if(!spacer_code_included) {
247manager->SetParentWindow(
m_Panel);
277 return(tool->GetDescriptor().GetLabel() ==
m_ToolLabel);
287vector<TItemRef> items;
289 boolhave_recent_tool =
false;
292vector<TManagerRef>::iterator it_tool =
296have_recent_tool =
true;
305items.push_back(item);
310 if(have_recent_tool) {
321 const IUIObject& ui_obj = item->GetDescriptor();
322wxString help_url = ui_obj.
GetHelpId();
342 if( !err_str.empty() ){
345wxOK | wxICON_ERROR,
this 354 returnCDialog::ShowModal();
370wxSizer* sizer =
m_Panel->GetSizer();
371wxSize minSize(0, 0);
377sizer->Add(panel, 1, wxEXPAND | wxALL, 5);
378minSize.IncTo(sizer->GetMinSize());
379sizer->Detach(panel);
386wxPanel* panel = manager->GetMaxPanel();
387 if(!panel)
continue;
389sizer->Add(panel, 1, wxEXPAND | wxALL, 5);
390minSize.IncTo(sizer->GetMinSize());
391sizer->Detach(panel);
397minSize.IncTo(sizer->GetMinSize());
403 m_Panel->SetClientSize(minSize);
406GetSizer()->SetSizeHints(
this);
422 if( panel->GetContainingSizer() !=
m_Panel->GetSizer()) {
423 m_Panel->GetSizer()->Add(panel, 1, wxEXPAND | wxALL, 5);
445 const string& log_event = descriptor.
GetLogEvent();
446 if(!log_event.empty()) {
451 stringtoolLabel =
m_CurrManager->GetDescriptor().GetLabel();
452recentTool.
AddItem(toolLabel);
456menu_srv->ResetMenuBar();
468 if(new_panel ==
NULL) {
473title +=
wxT(
" - ");
488 catch(std::exception& ex)
505 const IUIObject&ui_obj = item->GetDescriptor();
506wxString help_url = ui_obj.
GetHelpId();
515 if( !err_str.empty() ){
518wxOK | wxICON_ERROR,
this 531wxMessageBox(
wxT(
"Please select a tool!"),
wxT(
"Run Tool"),
532wxOK | wxICON_EXCLAMATION,
this);
538 boolcan_back =
false;
539 boolcan_next =
true;
540 bool final=
false, quickLaunch =
false;;
598 stringsub_section = manager->GetDescriptor().GetLabel();
599 stringmgr_path =
m_RegPath+
"."+ sub_section;
697 if(dlg.ShowModal() != wxID_OK)
700 stringtoolLabel =
m_CurrManager->GetDescriptor().GetLabel();
701 stringentry = toolLabel +
" ("+ dlg.
GetDescr() +
")";
718menu_srv->ResetMenuBar();
virtual void EndModal(int retCode)
virtual void SetRegistryPath(const string &path)
static CGuiRegistry & GetInstance()
access the application-wide singleton
void Set(const string &key, int val)
set specific values
const TItems & GetItems() const
void SetItems(const TItems &items)
SProperties & GetProperties()
static CQuickLaunchList & GetInstance()
void AddItem(const string &item)
string GetItemPath(const string &item) const
class CRegistryReadView provides a nested hierarchical view at a particular key.
void GetStringList(const string &key, list< string > &val) const
void Set(const string &key, int val)
access a named key at this level, with no recursion
virtual TIndex GetSelectedIndex() const
virtual void SelectItem(TIndex index, bool select=true)
IRegSettings An interface for objects that save / restore settings using CGuiRegistry.
virtual void SaveSettings() const =0
virtual void LoadSettings()=0
virtual void SetRegistryPath(const string &path)=0
IServiceLocator - an abstract mechanism for locating services.
IUIObject - object that provides basic properties often required in a UI object.
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
#define ERR_POST(message)
Error posting with file, line number information but without error codes.
#define LOG_POST(message)
This macro is deprecated and it's strongly recomended to move in all projects (except tests) to macro...
const string & GetMsg(void) const
Get message string.
string ReportAll(TDiagPostFlags flags=eDPF_Exception) const
Report all exceptions.
virtual const char * what(void) const noexcept
Standard report (includes full backlog).
void Info(CExceptionArgs_Base &args)
CIRef< T > GetServiceByType()
retrieves a typed reference to a service, the name of C++ type is used as the name of the service.
void SetItemTypeLabel(const string &label)
virtual void LoadSettings()
TItemRef GetSelectedItemRef()
virtual void SetRegistryPath(const string &path)
virtual void SaveSettings() const
void SetItems(vector< TItemRef > &items)
CGroupMapWidget * m_MapWidget
virtual const string & GetLogEvent() const =0
void NcbiErrorBox(const string &message, const string &title="Error")
specialized Message Box function for reporting critical errors
virtual const string & GetLabel() const =0
virtual const string & GetHelpId() const =0
TObjectType * GetPointer(void) THROWS_NONE
Get pointer,.
void Reset(void)
Reset reference object.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static const char label[]
const struct ncbi::grid::netcache::search::fields::SIZE size
static void SetTitle(CRef< CSeq_entry > entry, string title)
#define REPORT_USAGE(event, args)
Convenience macro to log usage statisitics.
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