(parent,
id, caption, pos,
size, style);
121SetExtraStyle(wxWS_EX_BLOCK_EVENTS);
122wxDialog::Create( parent,
id, caption, pos,
size, style );
127GetSizer()->SetSizeHints(
this);
168wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
169itemDialog1->SetSizer(itemBoxSizer2);
171wxBoxSizer* itemBoxSizer3 =
newwxBoxSizer(wxHORIZONTAL);
172itemBoxSizer2->Add(itemBoxSizer3, 0, wxGROW|wxALL, 5);
174 m_Input=
newwxTextCtrl( itemDialog1,
ID_TEXTCTRL1, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
175itemBoxSizer3->Add(
m_Input, 1, wxALIGN_CENTER_VERTICAL|wxALL, 5);
177wxButton* itemButton5 =
newwxButton( itemDialog1,
ID_BUTTON1,
_(
"Submit Query"), wxDefaultPosition, wxDefaultSize, 0 );
178itemBoxSizer3->Add(itemButton5, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
180wxButton* itemButton6 =
newwxButton( itemDialog1,
ID_BUTTON2,
_(
"Show Related"), wxDefaultPosition, wxDefaultSize, 0 );
181itemBoxSizer3->Add(itemButton6, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
184itemBoxSizer2->Add(
m_Tree, 1, wxGROW|wxALL, 5);
186wxStaticLine* itemStaticLine8 =
newwxStaticLine( itemDialog1, wxID_STATIC, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
187itemBoxSizer2->Add(itemStaticLine8, 0, wxGROW|wxALL, 5);
189wxStdDialogButtonSizer* itemStdDialogButtonSizer9 =
newwxStdDialogButtonSizer;
191itemBoxSizer2->Add(itemStdDialogButtonSizer9, 0, wxALIGN_RIGHT|wxALL, 5);
192wxButton* itemButton10 =
newwxButton( itemDialog1, wxID_OK,
_(
"&OK"), wxDefaultPosition, wxDefaultSize, 0 );
193itemStdDialogButtonSizer9->AddButton(itemButton10);
195wxButton* itemButton11 =
newwxButton( itemDialog1, wxID_CANCEL,
_(
"&Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
196itemStdDialogButtonSizer9->AddButton(itemButton11);
198itemStdDialogButtonSizer9->Realize();
248 if(
query.empty()) {
260exp.
SetDb().Set(
"nucleotide");
264elem->SetStr(
query);
265exp.
SetExp().push_back(elem);
275uids.reserve(ids.
GetNum());
279seq_ids.reserve(uids.size());
282 for(
size_t i= 0;
i< ids.
GetNum(); ++
i, ++iter) {
283uids.push_back(*iter);
287seq_ids.push_back(
id);
318 if(gis.size() != 1) {
325 autogi = gis.front()->GetGi();
326vector <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