,
63 "mp_cross_align_view",
64 "Multi-pane Cross Alignment View",
65 "The Multi-pane Cross Alignment View shows a multi-pane cross alignment",
66 "MP_CROSS_ALIGN_VIEW",
116(*it)->DestroyView();
117(*it)->SetWorkbench(
NULL);
218 static const char* view_names[] = {
220 "Graphical Sequence View",
221 "Graphical Sequence View" 225 for(
size_tix = 0; ix <
sizeof(view_names)/
sizeof(
const char*); ix++ ){
228 if( !prj_view )
return false;
236 if(wnd) wnd->Reparent(parent);
244splitter->SplitHorizontally( views[1]->
GetWindow(), views[2]->GetWindow() );
247splitter->SetMinimumPaneSize( 40 );
249vector<CSeq_id_Handle> ids;
257 for( ; id_iter && ids.size() < 2; ++id_iter ){
259 if( std::find( ids.begin(), ids.end(), idh ) == ids.end() ){
260ids.push_back( idh );
266views[0]->InitView(
objects, 0 );
272seq1_objs.push_back( seq1 );
273views[1]->InitView( seq1_objs, 0 );
279seq2_objs.push_back( seq2 );
280views[2]->InitView( seq2_objs, 0 );
285 for(
size_t i= 0;
i<
m_Views.size(); ++
i)
295 if(!ws)
return false;
307views[0]->GetWindow()->Hide();
308views[0]->GetWindow()->Show();
328(*it)->SetSelection( evt );
336(*it)->GetSelection(objs);
357(*it)->GetSelection(evt);
406 static stringsid(
"mp_cross_align_view_factory");
413 static stringslabel(
"Multi-pane Cross Alignment View Factory");
451 consttype_info&
type=
typeid(object);
461 boolfound_good =
false;
462 boolfound_bad =
false;
463 for(
size_t i= 0;
i<
objects.size();
i++ ){
User-defined methods of the data storage class.
CProjectService - a service providing API for operations with Workspaces and Projects.
virtual void x_ReportInvalidInputData(TConstScopedObjects &objects)
use this function to report incompatible data in InitView()
virtual void x_UpdateContentLabel()
virtual void SetWorkbench(IWorkbench *workbench)
IView implementation.
virtual void DestroyView()
disconnects view from the project and associated data
virtual objects::CScope * x_GetScope() const
virtual void x_AttachToProject(CGBDocument &doc)
virtual void CreateViewWindow(wxWindow *parent)=0
create Window corresponding to the view
virtual wxWindow * GetWindow()=0
returns a pointer to the wxWindow representing the client
virtual bool x_HasProject() const
CProjectViewTypeDescriptor - holds description of a project view type.
void SetVisibleRangeService(IVisibleRangeService *service)
CSelectionEvent CSelectionEvent is used for broadcasting selection between views.
Base class for all serializable objects.
Template class for iteration on objects of class C (non-medifiable version)
CUICommandRegistry is a centralized registry where all application commands should be registered.
CViewTypeDescriptor - holds description of a view type.
void SetVisibleRangePolicy(EBasicPolicy policy)
virtual const CViewTypeDescriptor & GetViewTypeDescriptor() const
returns a Descriptor for the View Type supported by the Factory
IViewManagerService IViewManagerService manages views in Workbench.
IView - represents a standard visual part of Workbench UI.
IVisibleRangeClient - represents an object that wants notifications about visible range changes.
virtual void OnVisibleRangeChanged(const CVisibleRange &vrange, IVisibleRangeClient *source)=0
CFingerprint identifies an instance of IWMClient and is used for labeling layout positions.
IWindowManagerService Window Manager Service provides access to Window Manager functionality.
IWorkbench is the central interface in the application framework.
virtual void RegisterFileAlias(const wxArtID &anId, const wxArtClient &aClient, const wxSize &aSize, const wxString &aName, long aType=wxBITMAP_TYPE_ANY, int anIndex=-1)
#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.
virtual CIRef< IView > CreateViewInstance(const string &type_ui_name)=0
create a view instance of the specified type
virtual IViewManagerService * GetViewManagerService()=0
virtual IWindowManagerService * GetWindowManagerService()=0
virtual void ActivateClient(IWMClient &client)=0
makes client visible and focused
virtual void UnRegisterActiveClient(IWMClient &client)=0
virtual void RegisterActiveClient(IWMClient &client)=0
virtual void GetMainObject(TConstScopedObjects &objs) const
Adds the main data objects represented by the client to "objects".
virtual IView * CreateInstance() const
creates a view instance
virtual void GetSelection(CSelectionEvent &evt) const
get selection for broadcasting
virtual bool IsCompatibleWith(const CObject &object, objects::CScope &scope)
virtual void OnProjectChanged()
virtual wxWindow * GetWindow()
returns a pointer to the wxWindow representing the client
virtual void BroadcastVisibleRange(const CVisibleRange &vrange, IVisibleRangeClient *source)
virtual void GetVisibleRanges(CVisibleRange &vrange) const
populate a visible range event for broadcasting
virtual void RegisterCommands(CUICommandRegistry &cmd_reg, wxFileArtProvider &provider)
called by the framework to give Factory a chance to register commands used by view
virtual void RegisterIconAliases(wxFileArtProvider &provider)
called by the framework to give Factory a chance to register images used by view
const CObject * x_GetOrigObject() const
CConstRef< CSeq_align > m_OrigAlign
virtual void x_CreateMenuBarMenu()
initializes m_MenuBarMenu; override in derived classes
virtual void SetSelection(CSelectionEvent &evt)
handles selection broadcast received from Selection Service this function acts as a shell,...
virtual string GetExtensionLabel() const
returns a displayable label for this extension ( please capitalize the key words - "My Extension" )
wxSplitterWindow * m_MainSplitter
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 const CViewTypeDescriptor & GetTypeDescriptor() const
return an object providing meta information about thei view type
virtual int TestInputObjects(TConstScopedObjects &objects)
tests input objects (not using object conversion) and returns a combination of ETestResult flags bett...
virtual void DestroyView()
disconnects view from the project and associated data
vector< CIRef< IProjectView > > TViews
virtual void x_OnSetSelection(CSelectionEvent &evt)
override in derived classes in order to handle selection broadcast
virtual void SetWorkbench(IWorkbench *workbench)
IView implementation.
virtual const CProjectViewTypeDescriptor & GetProjectViewTypeDescriptor() const
returns a Descriptor for the View Type supported by the Factory
virtual string GetExtensionIdentifier() const
CMPCrossAlignViewFactory.
virtual void DestroyViewWindow()
destroy Window corresponding to the view
CConstRef< CSeq_annot > m_OrigAnnot
original data object passed to the view
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 void OnVisibleRangeChanged(const CVisibleRange &vrange, IVisibleRangeClient *source)
virtual const string & GetIconAlias() const
vector< SConstScopedObject > TConstScopedObjects
static CSeq_id_Handle GetHandle(const CSeq_id &id)
Normal way of getting a handle, works for any seq-id.
TObjectType * GetPointer(void) const THROWS_NONE
Get pointer,.
void Reset(void)
Reset reference object.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
CProjectViewTypeDescriptor s_MPCrossAlignViewTypeDescr("Multi-pane Cross Alignment View", "mp_cross_align_view", "Multi-pane Cross Alignment View", "The Multi-pane Cross Alignment View shows a multi-pane cross alignment", "MP_CROSS_ALIGN_VIEW", "Alignment", false, "Seq-align", eSimilarObjectsAccepted)
const CharType(& source)[N]
@ 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