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

NCBI C++ ToolKit: src/gui/core/run_tool_dlg.cpp Source File

48 #include <wx/button.h> 50 #include <wx/msgdlg.h> 96  return "Recent Tools"

;

125

: m_SrvLocator(srvLocator), m_Managers(managers), m_RecentTools(3)

132 bool CRunToolDlg::Create

( wxWindow* parent, wxWindowID

id

,

const

wxString& caption,

const

wxPoint& pos,

const

wxSize&

size

,

long

style )

135 

SetExtraStyle(wxWS_EX_BLOCK_EVENTS);

136

CDialog::Create( parent,

id

, caption, pos,

size

, style );

141

GetSizer()->SetSizeHints(

this

);

176

wxBoxSizer* itemBoxSizer2 =

new

wxBoxSizer(wxVERTICAL);

177

itemCDialog1->SetSizer(itemBoxSizer2);

179  m_Panel

=

new

wxPanel( itemCDialog1,

ID_PANEL

, wxDefaultPosition, wxSize(400, 300), wxFULL_REPAINT_ON_RESIZE|wxTAB_TRAVERSAL );

180

itemBoxSizer2->Add(

m_Panel

, 1, wxGROW, 5);

182

wxBoxSizer* itemBoxSizer4 =

new

wxBoxSizer(wxVERTICAL);

183  m_Panel

->SetSizer(itemBoxSizer4);

185

wxStaticLine* itemStaticLine5 =

new

wxStaticLine( itemCDialog1, wxID_STATIC, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );

186

itemBoxSizer2->Add(itemStaticLine5, 0, wxGROW|wxALL, 5);

188

wxBoxSizer* itemBoxSizer6 =

new

wxBoxSizer(wxHORIZONTAL);

189

itemBoxSizer2->Add(itemBoxSizer6, 0, wxGROW|wxLEFT|wxRIGHT, 5);

191  m_HelpLink

=

new

wxHyperlinkCtrl( itemCDialog1,

ID_HYPERLINKCTRL

,

_

(

"Help"

), wxEmptyString, wxDefaultPosition, wxDefaultSize, wxHL_DEFAULT_STYLE );

192  m_HelpLink

->SetForegroundColour(wxColour(128, 128, 128));

193

itemBoxSizer6->Add(

m_HelpLink

, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

200

itemBoxSizer6->Add(5, 5, 1, wxALIGN_CENTER_VERTICAL|wxALL, 5);

202

wxBoxSizer* itemBoxSizer10 =

new

wxBoxSizer(wxHORIZONTAL);

203

itemBoxSizer6->Add(itemBoxSizer10, 0, wxALIGN_CENTER_VERTICAL, 5);

205  m_QuickLaunch

=

new

wxButton( itemCDialog1,

ID_BUTTON

,

_

(

"Add Quick Launch..."

), wxDefaultPosition, wxDefaultSize, 0 );

206

itemBoxSizer10->Add(

m_QuickLaunch

, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

208  m_BackBtn

=

new

wxButton( itemCDialog1, wxID_BACKWARD,

_

(

"< &Back"

), wxDefaultPosition, wxDefaultSize, 0 );

209

itemBoxSizer10->Add(

m_BackBtn

, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxTOP|wxBOTTOM, 5);

214  bool

spacer_code_included =

true

;

215 #ifdef __WXOSX_COCOA__ 216

itemBoxSizer10->AddSpacer(6);

219  m_NextBtn

=

new

wxButton( itemCDialog1, wxID_FORWARD,

_

(

"&Next >"

), wxDefaultPosition, wxDefaultSize, 0 );

221

itemBoxSizer10->Add(

m_NextBtn

, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxTOP|wxBOTTOM, 5);

223

wxButton* itemButton14 =

new

wxButton( itemCDialog1, wxID_CANCEL,

_

(

"&Cancel"

), wxDefaultPosition, wxDefaultSize, 0 );

224

itemBoxSizer6->Add(itemButton14, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

228  if

(!spacer_code_included) {

247

manager->SetParentWindow(

m_Panel

);

277  return

(tool->GetDescriptor().GetLabel() ==

m_ToolLabel

);

287

vector<TItemRef> items;

289  bool

have_recent_tool =

false

;

292

vector<TManagerRef>::iterator it_tool =

296

have_recent_tool =

true

;

305

items.push_back(item);

310  if

(have_recent_tool) {

321  const IUIObject

& ui_obj = item->GetDescriptor();

322

wxString help_url = ui_obj.

GetHelpId

();

342  if

( !err_str.empty() ){

345

wxOK | wxICON_ERROR,

this 354  return

CDialog::ShowModal();

370

wxSizer* sizer =

m_Panel

->GetSizer();

371

wxSize minSize(0, 0);

377

sizer->Add(panel, 1, wxEXPAND | wxALL, 5);

378

minSize.IncTo(sizer->GetMinSize());

379

sizer->Detach(panel);

386

wxPanel* panel = manager->GetMaxPanel();

387  if

(!panel)

continue

;

389

sizer->Add(panel, 1, wxEXPAND | wxALL, 5);

390

minSize.IncTo(sizer->GetMinSize());

391

sizer->Detach(panel);

397

minSize.IncTo(sizer->GetMinSize());

403  m_Panel

->SetClientSize(minSize);

406

GetSizer()->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  string

toolLabel =

m_CurrManager

->GetDescriptor().GetLabel();

452

recentTool.

AddItem

(toolLabel);

456

menu_srv->ResetMenuBar();

468  if

(new_panel ==

NULL

) {

473

title +=

wxT

(

" - "

);

488  catch

(std::exception& ex)

505  const IUIObject

&ui_obj = item->GetDescriptor();

506

wxString help_url = ui_obj.

GetHelpId

();

515  if

( !err_str.empty() ){

518

wxOK | wxICON_ERROR,

this 531

wxMessageBox(

wxT

(

"Please select a tool!"

),

wxT

(

"Run Tool"

),

532

wxOK | wxICON_EXCLAMATION,

this

);

538  bool

can_back =

false

;

539  bool

can_next =

true

;

540  bool final

=

false

, quickLaunch =

false

;;

598  string

sub_section = manager->GetDescriptor().GetLabel();

599  string

mgr_path =

m_RegPath

+

"."

+ sub_section;

697  if

(dlg.ShowModal() != wxID_OK)

700  string

toolLabel =

m_CurrManager

->GetDescriptor().GetLabel();

701  string

entry = toolLabel +

" ("

+ dlg.

GetDescr

() +

")"

;

718

menu_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