(parent,
id, caption, pos,
size, style);
108SetExtraStyle(wxWS_EX_BLOCK_EVENTS);
109wxDialog::Create( parent,
id, caption, pos,
size, style );
114GetSizer()->SetSizeHints(
this);
155wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
156itemDialog1->SetSizer(itemBoxSizer2);
158 m_Text=
newwxTextCtrl( itemDialog1,
ID_TEXTCTRL13, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
159itemBoxSizer2->Add(
m_Text, 0, wxGROW|wxALL, 5);
161wxBoxSizer* itemBoxSizer4 =
newwxBoxSizer(wxHORIZONTAL);
162itemBoxSizer2->Add(itemBoxSizer4, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
164wxButton* itemButton5 =
newwxButton( itemDialog1,
ID_SEL_TARGET_ACCEPT,
_(
"Accept"), wxDefaultPosition, wxDefaultSize, 0 );
165itemBoxSizer4->Add(itemButton5, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
167wxButton* itemButton6 =
newwxButton( itemDialog1,
ID_SEL_TARGET_CLEAR,
_(
"Clear"), wxDefaultPosition, wxDefaultSize, 0 );
168itemBoxSizer4->Add(itemButton6, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
170wxButton* itemButton7 =
newwxButton( itemDialog1,
ID_SEL_TARGET_CANCEL,
_(
"Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
171itemBoxSizer4->Add(itemButton7, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
226 if(!sel_srv)
return;
227sel_srv->GetActiveObjects(
objects);
240 constobjects::CSeq_submit* seqsubmit =
dynamic_cast<constobjects::CSeq_submit*
>(it->object.GetPointer());
241 constobjects::CSeq_entry* seqEntry =
dynamic_cast<constobjects::CSeq_entry*
>(it->object.GetPointer());
242 constobjects::CBioseq_set* bioseqset =
dynamic_cast<constobjects::CBioseq_set*
>(it->object.GetPointer());
245main_object = (*it).object;
247}
else if(seqEntry) {
249main_object = (*it).object;
250}
else if(bioseqset) {
252main_object = (*it).object;
256 if(!seh || !main_object)
return;
262wxMessageBox(
_(
"Target not found"),
wxT(
"Info"), wxOK | wxICON_INFORMATION);
271 if(!FlatFileCtrl)
return;
274sel_srv->OnSelectionChanged(textView);
285edit::CSeqIdGuesser guesser(seh);
294 for(
CBioseq_CIb_iter(seh); b_iter; ++b_iter)
330 m_Text->SetValue(wxEmptyString);
User-defined methods of the data storage class.
CProjectService - a service providing API for operations with Workspaces and Projects.
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
static bool ShowToolTips()
Should we show tooltips?
void CreateControls()
Creates the controls and sizers.
CBioseq_Handle FindBioseq(CSeq_entry_Handle seh, const string &acc_text)
void Init()
Initialises member variables.
void OnSelTargetAcceptClick(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_SEL_TARGET_ACCEPT
~CSelectTargetDlg()
Destructor.
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
void OnSelTargetCancelClick(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_SEL_TARGET_CANCEL
CSelectTargetDlg()
Constructors.
bool Create(wxWindow *parent, wxWindowID id=10409, const wxString &caption=_("Select Target"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
Creation.
void OnSelTargetClearClick(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_SEL_TARGET_CLEAR
IWorkbench is the central interface in the application framework.
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
#define NON_CONST_ITERATE(Type, Var, Cont)
Non constant version of ITERATE macro.
CIRef< T > GetServiceByType()
retrieves a typed reference to a service, the name of C++ type is used as the name of the service.
objects::CSeq_entry_Handle GetTopSeqEntryFromScopedObject(SConstScopedObject &obj)
vector< SConstScopedObject > TConstScopedObjects
void GetLabel(string *label, ELabelType type=eDefault, TLabelFlags flags=fLabel_Default) const
Append a label for this Seq-id to the supplied string.
@ eContent
Untagged human-readable accession or the like.
CBioseq_Handle GetBioseqHandle(const CSeq_id &id)
Get bioseq handle by seq-id.
vector< CSeq_id_Handle > TId
TBioseqCore GetBioseqCore(void) const
Get bioseq core structure.
CScope & GetScope(void) const
Get scope this handle belongs to.
TObjectType * GetPointer(void) const THROWS_NONE
Get pointer,.
TObjectType * GetPointer(void) THROWS_NONE
Get pointer,.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static bool IsBlank(const CTempString str, SIZE_TYPE pos=0)
Check if a string is blank (has no text).
static void TruncateSpacesInPlace(string &str, ETrunc where=eTrunc_Both)
Truncate whitespace in a string (in-place)
static SIZE_TYPE Find(const CTempString str, const CTempString pattern, ECase use_case=eCase, EDirection direction=eForwardSearch, SIZE_TYPE occurrence=0)
Find the pattern in the string.
static const char label[]
void GetViewObjects(IWorkbench *workbench, TConstScopedObjects &objects)
const struct ncbi::grid::netcache::search::fields::SIZE size
#define ID_SEL_TARGET_ACCEPT
#define ID_SEL_TARGET_CANCEL
#define ID_SEL_TARGET_CLEAR
string ToStdString(const wxString &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