,
87wxMenu* view_menu =
newwxMenu();
88wxMenu* dm_menu =
newwxMenu();
93dm_menu->AppendSeparator();
97dm_menu->AppendSeparator();
100view_menu->Append(
wxID_ANY,
wxT(
"Cross Alignment"), dm_menu);
102wxMenu* bar_menu =
newwxMenu();
103bar_menu->Append(
wxID_ANY,
wxT(
"&View"), view_menu );
209 if(! s_coll.
empty()) {
218 if(! q_coll.
empty()) {
282vector<const CSeq_align*> sel_aligns;
286 ITERATE(THits, it_hit, hits) {
287 const IHit& hit = **it_hit;
291 if(evt.
Match(align, *scope, **it_obj, evt.
GetScope())) {
292sel_aligns.push_back(&align);
298 if(sel_aligns.size()) {
308 ERR_POST(
Error<<
"CCrossAlignView: no data source while trying to GetVisibleRanges()");
367 static stringsid(
"cross_align_view_factory");
374 static stringslabel(
"Cross Align View Factory");
413 boolfound_good =
false;
414 boolfound_bad =
false;
415 for(
size_t i= 0;
i<
objects.size();
i++) {
417 consttype_info&
type=
typeid(*obj);
CRangeCollection< TSeqPos > TRangeColl
CIRef< IHitMatrixDataSource > CreateDataSource()
void Init(objects::CScope &scope, const objects::CSeq_align &align)
initial data set from which an alignment will be build
virtual void OnProjectChanged()
virtual void x_UpdateContentLabel()
virtual CRef< objects::CScope > GetScope() const
unique_ptr< const wxMenu > m_MenuBarMenu
virtual objects::CScope * x_GetScope() const
virtual bool x_HasProject() const
CProjectViewTypeDescriptor - holds description of a project view type.
CSelectionEvent CSelectionEvent is used for broadcasting selection between views.
bool HasRangeSelection() const
Range Selection - represents a collection of selected segments.
void GetAllObjects(TConstObjects &objs) const
void AddRangeSelection(const objects::CSeq_id &id, const TRangeColl &segs)
static bool Match(const CObject &obj1, objects::CScope &scope1, const CObject &obj2, objects::CScope &scope2)
objects::CScope & GetScope()
const objects::CHandleRangeMap & GetRangeSelection() const
bool HasObjectSelection()
Object Selection - represents select Objects (such as features, alignments, etc)
bool AddObjectSelection(const CObject &obj)
CUICommandRegistry is a centralized registry where all application commands should be registered.
wxMenuItem * AppendMenuItem(wxMenu &menu, TCmdID cmd_id) const
CViewTypeDescriptor - holds description of a view type.
bool Clamp(const objects::CBioseq_Handle &handle, TSeqRange &range) const
Alter the supplied range according to the rules provided in the policy and the supplied new location.
bool Match(const objects::CSeq_id &id) const
See if we can match the supplied range.
void AddLocation(const objects::CSeq_loc &loc)
vector< IHit * > THitAdapterCont
virtual const objects::CSeq_align * GetSeqAlign() const =0
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.
IVisibleRangeClient - represents an object that wants notifications about visible range changes.
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 CProjectViewTypeDescriptor s_CrossAlignViewTypeDescr("Cross Align View", "cross_align_view", "Cross Align View", "The Cross Align View shows a cross alignment", "CROSS_ALIGN_VIEW", "Alignment", false, "Seq-align", eOneObjectAccepted)
unsigned int TSeqPos
Type for sequence locations and lengths.
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
#define ERR_POST(message)
Error posting with file, line number information but without error codes.
void Error(CExceptionArgs_Base &args)
virtual CUICommandRegistry & GetUICommandRegistry()=0
returns an instance of Command Registry associated with the Workbench
static CRef< objects::CSeq_loc > CreateSeq_loc(const objects::CSeq_id &id, const CRangeCollection< TSeqPos > &ranges)
TModelRect & GetVisibleRect(void)
virtual void CreateViewWindow(wxWindow *parent)
create Window corresponding to the view
virtual IView * CreateInstanceByFingerprint(const TFingerprint &fingerprint) const
if fingerprint is recognized - creates and returns a new instance
virtual const CProjectViewTypeDescriptor & GetProjectViewTypeDescriptor() const
returns a Descriptor for the View Type supported by the Factory
CConstRef< CSeq_annot > m_OrigAnnot
original data object passed to the view
virtual const CViewTypeDescriptor & GetTypeDescriptor() const
return an object providing meta information about thei view type
virtual void x_PostAttachToProject()
CIRef< ICrossAlnDataSource > m_DataSource
virtual IView * CreateInstance() const
creates a view instance
virtual objects::CScope * x_PreAttachToProject(TConstScopedObjects &objects)
virtual void x_CreateMenuBarMenu()
initializes m_MenuBarMenu; override in derived classes
virtual void x_OnSetSelection(CSelectionEvent &evt)
override in derived classes in order to handle selection broadcast
virtual void DestroyViewWindow()
destroy Window corresponding to the view
virtual void OnVisibleRangeChanged(const CVisibleRange &vrange, IVisibleRangeClient *source)
void GetSelection(CSelectionEvent &evt) const
get selection for broadcasting
virtual string GetExtensionLabel() const
returns a displayable label for this extension ( please capitalize the key words - "My Extension" )
virtual string GetExtensionIdentifier() const
CCrossAlignViewFactory.
virtual const CObject * x_GetOrigObject() const
virtual wxWindow * GetWindow()
returns a pointer to the wxWindow representing the client
virtual void GetVisibleRanges(CVisibleRange &vrange) const
populate a visible range event for broadcasting
CCrossAlnWidget * m_AlnWidget
virtual void RegisterCommands(CUICommandRegistry &cmd_reg, wxFileArtProvider &provider)
called by the framework to give Factory a chance to register commands used by view
CConstRef< CSeq_align > m_OrigAlign
virtual void RegisterIconAliases(wxFileArtProvider &provider)
called by the framework to give Factory a chance to register images used by view
virtual int TestInputObjects(TConstScopedObjects &objects)
tests input objects (not using object conversion) and returns a combination of ETestResult flags bett...
vector< CConstRef< CObject > > TConstObjects
virtual const string & GetIconAlias() const
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
TObjectType * GetPointer(void) const THROWS_NONE
Get pointer,.
TObjectType * GetPointer(void) THROWS_NONE
Get pointer,.
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.
void SetFrom(TFrom value)
Assign a value to From data member.
void SetTo(TTo value)
Assign a value to To data member.
const CharType(& source)[N]
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