(parent,
id, caption, pos,
size, style);
107SetExtraStyle(wxWS_EX_BLOCK_EVENTS);
108wxDialog::Create( parent,
id, caption, pos,
size, style );
113GetSizer()->SetSizeHints(
this);
156wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
157itemDialog1->SetSizer(itemBoxSizer2);
160itemBoxSizer2->Add(
m_FeatureType, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
170wxBoxSizer* itemBoxSizer4 =
newwxBoxSizer(wxHORIZONTAL);
171itemBoxSizer2->Add(itemBoxSizer4, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
173wxButton* itemButton5 =
newwxButton( itemDialog1,
ID_SEL_FEAT_ACCEPT,
_(
"Accept"), wxDefaultPosition, wxDefaultSize, 0 );
174itemBoxSizer4->Add(itemButton5, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
176wxButton* itemButton7 =
newwxButton( itemDialog1,
ID_SEL_FEAT_CANCEL,
_(
"Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
177itemBoxSizer4->Add(itemButton7, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
234sel_srv->GetActiveObjects(
objects);
243 constobjects::CSeq_submit* seqsubmit =
dynamic_cast<constobjects::CSeq_submit*
>(it->object.GetPointer());
244 constobjects::CSeq_entry* seqEntry =
dynamic_cast<constobjects::CSeq_entry*
>(it->object.GetPointer());
247main_object = (*it).object;
249}
else if(seqEntry) {
251main_object = (*it).object;
264 stringfield_name =
"";
300wxSizerItemList& slist = sizer->GetChildren();
302 for(wxSizerItemList::iterator iter = slist.begin(); iter != slist.end(); ++iter, ++
n) {
303 if((*iter)->IsSizer()) {
305}
else if((*iter)->IsWindow()) {
306wxWindow* child = (*iter)->GetWindow();
312wxSizer* subsizer = child->GetSizer();
User-defined methods of the data storage class.
void PopulateFeatureListbox(void)
virtual string GetFieldName(const bool subfield=false)
Returns the name of the field as selected in the panel.
virtual string GetFieldName(const bool subfield=false)
Returns the name of the field as selected in the panel.
void ListPresentFeaturesFirst(const objects::CSeq_entry_Handle &entry, vector< const objects::CFeatListItem * > *featlist=nullptr)
vector< CConstRef< CObject > > GetObjects(objects::CBioseq_Handle bsh)
void OnCancel(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_SEL_TARGET_CANCEL
void ProcessUpdateFeatEvent(wxCommandEvent &event)
CSeq_entry_Handle m_TopSeqEntry
void OnAccept(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_SEL_TARGET_ACCEPT
void CreateControls()
Creates the controls and sizers.
CFeatureTypePanel * m_FeatureType
void Init()
Initialises member variables.
void UpdateChildrenFeaturePanels(wxSizer *sizer)
CSelectFeatures()
Constructors.
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
bool Create(wxWindow *parent, wxWindowID id=10409, const wxString &caption=_("Select Features"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
Creation.
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
CStringConstraintPanel * m_StringConstraintPanel
static bool ShowToolTips()
Should we show tooltips?
CFeatureFieldNamePanel * m_FeatureConstraint
~CSelectFeatures()
Destructor.
CConstRef< CObject > GetMainObject()
CSelectionEvent CSelectionEvent is used for broadcasting selection between views.
bool AddObjectSelection(const CObject &obj)
virtual void Broadcast(CSelectionEvent &evt, ISelectionClient *source)
request broadcasting of the given event, Broadcast() notifies observers about changes in selection (d...
CRef< edit::CStringConstraint > GetStringConstraint()
IWorkbench is the central interface in the application framework.
const string kPartialStart
#define EVT_UPDATE_FEATURE_LIST(id, fn)
#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
CScope & GetScope(void) const
Get scope this handle belongs to.
void Reset(void)
Reset handle and make it not to point to any seq-entry.
#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 bool EqualNocase(const CTempString s1, SIZE_TYPE pos, SIZE_TYPE n, const char *s2)
Case-insensitive equality of a substring with another string.
void GetViewObjects(IWorkbench *workbench, TConstScopedObjects &objects)
const struct ncbi::grid::netcache::search::fields::SIZE size
#define ID_SEL_FEAT_CANCEL
#define ID_SEL_FEAT_ACCEPT
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