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

NCBI C++ ToolKit: src/gui/widgets/tax_tree/demo/taxtree_testdlg.cpp Source File

32 #include <wx/bitmap.h> 35 #include <wx/stattext.h> 36 #include <wx/button.h> 37 #include <wx/dialog.h> 38 #include <wx/textctrl.h> 62 #include "wx/imaglist.h" 110  Create

(parent,

id

, caption, pos,

size

, style);

121 

SetExtraStyle(wxWS_EX_BLOCK_EVENTS);

122

wxDialog::Create( parent,

id

, caption, pos,

size

, style );

127

GetSizer()->SetSizeHints(

this

);

168

wxBoxSizer* itemBoxSizer2 =

new

wxBoxSizer(wxVERTICAL);

169

itemDialog1->SetSizer(itemBoxSizer2);

171

wxBoxSizer* itemBoxSizer3 =

new

wxBoxSizer(wxHORIZONTAL);

172

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

174  m_Input

=

new

wxTextCtrl( itemDialog1,

ID_TEXTCTRL1

, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );

175

itemBoxSizer3->Add(

m_Input

, 1, wxALIGN_CENTER_VERTICAL|wxALL, 5);

177

wxButton* itemButton5 =

new

wxButton( itemDialog1,

ID_BUTTON1

,

_

(

"Submit Query"

), wxDefaultPosition, wxDefaultSize, 0 );

178

itemBoxSizer3->Add(itemButton5, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

180

wxButton* itemButton6 =

new

wxButton( itemDialog1,

ID_BUTTON2

,

_

(

"Show Related"

), wxDefaultPosition, wxDefaultSize, 0 );

181

itemBoxSizer3->Add(itemButton6, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

184

itemBoxSizer2->Add(

m_Tree

, 1, wxGROW|wxALL, 5);

186

wxStaticLine* itemStaticLine8 =

new

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

187

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

189

wxStdDialogButtonSizer* itemStdDialogButtonSizer9 =

new

wxStdDialogButtonSizer;

191

itemBoxSizer2->Add(itemStdDialogButtonSizer9, 0, wxALIGN_RIGHT|wxALL, 5);

192

wxButton* itemButton10 =

new

wxButton( itemDialog1, wxID_OK,

_

(

"&OK"

), wxDefaultPosition, wxDefaultSize, 0 );

193

itemStdDialogButtonSizer9->AddButton(itemButton10);

195

wxButton* itemButton11 =

new

wxButton( itemDialog1, wxID_CANCEL,

_

(

"&Cancel"

), wxDefaultPosition, wxDefaultSize, 0 );

196

itemStdDialogButtonSizer9->AddButton(itemButton11);

198

itemStdDialogButtonSizer9->Realize();

248  if

(

query

.empty()) {

260

exp.

SetDb

().Set(

"nucleotide"

);

264

elem->SetStr(

query

);

265

exp.

SetExp

().push_back(elem);

275

uids.reserve(ids.

GetNum

());

279

seq_ids.reserve(uids.size());

282  for

(

size_t i

= 0;

i

< ids.

GetNum

(); ++

i

, ++iter) {

283

uids.push_back(*iter);

287

seq_ids.push_back(

id

);

318  if

(gis.size() != 1) {

325  auto

gi = gis.front()->GetGi();

326

vector <CEntrez2Client::TUid> gis_n;

332  " related sequences"

);

User-defined methods of the data storage class.

User-defined methods of the data storage class.

User-defined methods of the data storage class.

User-defined methods of the data storage class.

CEntrez2_boolean_element –.

CEntrez2_boolean_exp –.

CEntrez2_eval_boolean –.

TConstUidIterator GetConstUidIterator() const

static TRegisterLoaderInfo RegisterInObjectManager(CObjectManager &om, CReader *reader=0, CObjectManager::EIsDefault is_default=CObjectManager::eDefault, CObjectManager::TPriority priority=CObjectManager::kPriority_NotSet)

class CTaxTreeBrowser implements a tree-based view of a taxonomic hierarchy.

void SetDataSource(CTaxTreeDataSource &ds)

set the data source for this widget

void GetSelectedUids(CTaxTreeDataSource::TUidVec &uids) const

retrieve the selected UIDs

void OnSubmitClick(wxCommandEvent &event)

wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON1

wxIcon GetIconResource(const wxString &name)

Retrieves icon resources.

CRef< objects::CEntrez2Client > m_Client

CTaxTreeTestDlg()

Constructors.

void Init()

Initialises member variables.

CRef< objects::CScope > m_Scope

void OnRelatedClick(wxCommandEvent &event)

wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON2

CRef< CTaxTreeDataSource > m_DataSource

void CreateControls()

Creates the controls and sizers.

static bool ShowToolTips()

Should we show tooltips?

bool Create(wxWindow *parent, wxWindowID id=ID_CTAXTREETESTDLG, const wxString &caption=_("Taxonomy Tree Test Dialog"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)

Creation.

objects::CEntrez2Client & x_GetClient()

CRef< objects::CObjectManager > m_ObjMgr

~CTaxTreeTestDlg()

Destructor.

wxBitmap GetBitmapResource(const wxString &name)

Retrieves bitmap resources.

#define GI_FROM(T, value)

#define LOG_POST(message)

This macro is deprecated and it's strongly recomended to move in all projects (except tests) to macro...

virtual const char * what(void) const noexcept

Standard report (includes full backlog).

void Info(CExceptionArgs_Base &args)

EDialogReturnValue NcbiMessageBox(const string &message, TDialogType type=eDialog_Ok, EDialogIcon icon=eIcon_Exclamation, const string &title="Error", EDialogTextMode text_mode=eRaw)

static CRef< CObjectManager > GetInstance(void)

Return the existing object manager or create one.

void Reset(void)

Reset reference object.

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

static enable_if< is_arithmetic< TNumeric >::value||is_convertible< TNumeric, Int8 >::value, string >::type NumericToString(TNumeric value, TNumToStringFlags flags=0, int base=10)

Convert numeric value to string.

void SetDb(const TDb &value)

Assign a value to Db data member.

TNum GetNum(void) const

Get the Num member data.

void SetReturn_UIDs(TReturn_UIDs value)

Assign a value to Return_UIDs data member.

TExp & SetExp(void)

Assign a value to Exp data member.

void SetQuery(TQuery &value)

Assign a value to Query data member.

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

USING_SCOPE(ncbi::objects)


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