,
67 "feature_table_view",
68 "Show tabular information about features",
69 "The Feature Table View provides a tabular break-down of features for the sequence",
165 static boolinitialized =
false;
168 if( ! initialized ){
220 m_Panel=
newwxPanel( parent );
223wxBoxSizer* main_sizer =
newwxBoxSizer( wxVERTICAL );
224 m_Panel->SetSizer( main_sizer );
248 m_Panel->PopEventHandler(
true);
305loc->
SetId( *seq_id );
378 if( evt.HasObjectSelection() ){
379m_FTblWidget->ClearSelection();
382evt.GetAllObjects( sel_objs );
384 CScope& scope = *m_DataSource->GetScope();
387 const CObject& obj = **it_obj;
390m_ObjectIndex.GetMatches( obj, scope,
results);
400x_UpdateStatusMessage();
424 m_StatusBar->SetStatusText(
wxT(
"Searching for features...") );
441 if( total_feats != 1 ){
446 if( visible_feats != total_feats ){
448status_msg +=
" filtered";
454status_msg +=
" selected";
567 static stringsid(
"feature_table_view_factory");
573 static stringslabel(
"Feature Table View Factory");
606 consttype_info&
type=
typeid(object);
626 consttype_info&
type=
typeid(object);
629 returnseq_entry.
IsSet();
645 boolfound_good =
false;
646 boolfound_bad =
false;
647 for(
size_t i= 0;
i<
objects.size();
i++ ){
658 else if(found_bad) {
661 for(
size_t i= 0;
i<
objects.size(); ++
i) {
690 const CSeq_loc* loc =
dynamic_cast<const CSeq_loc*
>(iter->object.GetPointer());
692 CScope* scope =
const_cast<CScope*
>(iter->scope.GetPointer());
695ranges[idh] += range;
698 if(ranges.size() == 1) {
701TRanges::iterator iter = ranges.begin();
702loc->
SetInt().SetFrom(iter->second.GetFrom());
703loc->
SetInt().SetTo (iter->second.GetTo());
704loc->
SetId(*iter->first.GetSeqId());
vector< TRangeWithFuzz > TRanges
CEvent - generic event implementation TODO TODO - Attachments.
CFeatTableDS Data source for Feature Table widget.
virtual int GetNumRows() const
Returns the number of rows in the model.
CRef< objects::CScope > GetScope() const
void Init(const CSerialObject &obj, objects::CScope &scope, const objects::SAnnotSelector *sel=0)
CRegistryWriteView GetWriteView(const string §ion)
get a read-write view at a particular level.
static CGuiRegistry & GetInstance()
access the application-wide singleton
CRegistryReadView GetReadView(const string §ion) const
get a read-only view at a particular level.
void Clear(objects::CScope *scope)
void Add(ISelObjectHandle *obj_handle, CObject &obj)
virtual void x_UpdateContentLabel()
virtual objects::CScope * x_GetScope() const
virtual bool x_HasProject() const
EEventSubtype GetSubtype() const
CProjectViewTypeDescriptor - holds description of a project view type.
virtual void OnWidgetSelChanged()
virtual bool InitView(TConstScopedObjects &objects, const objects::CUser_object *params)
initialize view with data, inside this function the view must call CProjectService::AttachView to con...
class CRegistryReadView provides a nested hierarchical view at a particular key.
const CFeatTableDS::SFeatureRow & m_FeatRow
const CFeatTableDS::SFeatureRow & GetFeatureRow() const
CSelFeatHandle(const CFeatTableDS::SFeatureRow &feat_row)
CSelectionEvent CSelectionEvent is used for broadcasting selection between views.
bool AddObjectSelection(const CObject &obj)
bool IsFtable(void) const
namespace ncbi::objects::
CViewTypeDescriptor - holds description of a view type.
void LoadTableSettings(const CRegistryReadView &view, bool byName=false)
void SaveTableSettings(CRegistryWriteView &view, bool saveSorting=true) const
int GetNumRowsVisible() const
virtual const CViewTypeDescriptor & GetViewTypeDescriptor() const
returns a Descriptor for the View Type supported by the Factory
IView - represents a standard visual part of Workbench UI.
CFingerprint identifies an instance of IWMClient and is used for labeling layout positions.
virtual void RegisterFileAlias(const wxArtID &anId, const wxArtClient &aClient, const wxSize &aSize, const wxString &aName, long aType=wxBITMAP_TYPE_ANY, int anIndex=-1)
static const struct name_t names[]
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
virtual const CViewTypeDescriptor & GetTypeDescriptor() const
return an object providing meta information about thei view type
virtual bool InitView(TConstScopedObjects &objects, const objects::CUser_object *params)
initialize view with data, inside this function the view must call CProjectService::AttachView to con...
virtual void CreateViewWindow(wxWindow *parent)
create Window corresponding to the view
wxStatusBar * m_StatusBar
void x_OnFeatTableEvent(CEvent *)
virtual string GetExtensionIdentifier() const
CFeatTableViewFactory.
bool x_NeedsConversion(const CObject &object, objects::CScope &scope)
virtual IView * CreateInstanceByFingerprint(const TFingerprint &fingerprint) const
if fingerprint is recognized - creates and returns a new instance
virtual int TestInputObjects(TConstScopedObjects &objects)
tests input objects (not using object conversion) and returns a combination of ETestResult flags bett...
virtual bool x_MergeObjects(TConstScopedObjects &objects)
CRef< objects::CScope > m_Scope
virtual void LoadSettings()
CRef< CFeatTableDS > m_DataSource
void x_InitMenuResources()
virtual void SetRegistryPath(const string ®_path)
CObjectIndex m_ObjectIndex
CFeatTableView()
CFeatTableView.
virtual void OnProjectChanged()
virtual void RegisterIconAliases(wxFileArtProvider &provider)
called by the framework to give Factory a chance to register images used by view
virtual void GetSelection(CSelectionEvent &evt) const
get selection for broadcasting
virtual bool IsCompatibleWith(const CObject &object, objects::CScope &scope)
CFeatTableWidget * m_FTblWidget
virtual void DestroyViewWindow()
destroy Window corresponding to the view
void x_PostAttachToProject()
virtual void x_SetVisibleRange(const objects::CSeq_loc &loc)
virtual void x_UpdateStatusMessage()
virtual const CProjectViewTypeDescriptor & GetProjectViewTypeDescriptor() const
returns a Descriptor for the View Type supported by the Factory
virtual void x_RebuildObjectIndex()
virtual void GetVisibleRanges(CVisibleRange &vrange) const
populate a visible range event for broadcasting
virtual void OnWidgetRangeChanged()
virtual IView * CreateInstance() const
creates a view instance
virtual string GetExtensionLabel() const
returns a displayable label for this extension ( please capitalize the key words - "My Extension" )
virtual void x_CreateMenuBarMenu()
initializes m_MenuBarMenu; override in derived classes
virtual void SaveSettings() const
CConstRef< CSerialObject > m_OrigObject
original data object passed to the view
virtual wxWindow * GetWindow()
returns a pointer to the wxWindow representing the client
objects::CScope * x_PreAttachToProject(TConstScopedObjects &objects)
virtual const CObject * x_GetOrigObject() const
virtual void GetCompatibleToolBars(vector< string > &names)
returns the names of toolbars compatible with this class (toolbars that are relevant and useful in th...
virtual void OnWidgetSelChanged()
virtual void RemoveListener(CEventHandler *listener)
Remove a listener.
vector< CConstRef< CObject > > TConstObjects
virtual const string & GetIconAlias() const
#define ON_EVENT(type, id, handler)
#define END_EVENT_MAP()
Ends definition of Command Map.
#define BEGIN_EVENT_MAP(thisClass, baseClass)
Begins definition of Command Map for CEventHandler-derived class.
virtual void AddListener(CEventHandler *listener, int pool_name=ePool_Default)
Add a listener.
vector< SConstScopedObject > TConstScopedObjects
void SetId(CSeq_id &id)
set the 'id' field in all parts of this location
TRange GetTotalRange(void) const
CSeq_id_Handle GetIdHandle(const CSeq_loc &loc, CScope *scope)
TObjectType * GetPointer(void) const THROWS_NONE
Get pointer,.
bool IsNull(void) const THROWS_NONE
Check if pointer is null â same effect as Empty().
void Reset(void)
Reset reference object.
void Reset(void)
Reset reference object.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static string IntToString(int value, TNumToStringFlags flags=0, int base=10)
Convert int to string.
bool IsSet(void) const
Check if variant Set is selected.
NCBI C++ stream class wrappers for triggering between "new" and "old" C++ stream libraries.
@ eSimilarObjectsAccepted
#define row(bind, expected)
@ eCmdSelectActiveColumns
CProjectViewTypeDescriptor s_FeatTableViewTypeDescr("Feature Table View", "feature_table_view", "Show tabular information about features", "The Feature Table View provides a tabular break-down of features for the sequence", "FEAT_TABLE_VIEW", "Sequence", false, "Seq-loc", eSimilarObjectsAccepted)
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