A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/seq__text__view_8cpp_source.html below:

NCBI C++ ToolKit: src/gui/packages/pkg_sequence/seq_text_view.cpp Source File

36 #include <wx/msgdlg.h> 54  "Sequence Text View"

,

56  "Sequence Text View"

,

57  "The Sequence Text View provides a text representation of sequence, " 58  "with color coding to highlight specific annotation types."

,

84  return

widget->GetEventHandler();

95  object

=

objects

[0].object.GetPointer();

96

scope =

objects

[0].scope.GetPointer();

106  string

title = view_name +

" - Invalid Data"

;

118  if

(!ws)

return false

;

187  if

( ! widget || ! ds)

195  if

( ! coll.

empty

()) {

258  static string

sid(

"seq_text_view_factory"

);

265  static string

slabel(

"Sequence Text View Factory"

);

300  const

type_info&

type

=

typeid

(object);

308  bool

found_good =

false

, found_bad =

false

;

310  for

(

size_t i

= 0;

i

<

objects

.size() && !(found_good&&found_bad);

i

++) {

320  else if

(found_bad) {

323  for

(

size_t i

= 0;

i

<

objects

.size(); ++

i

) {

350  const

type_info&

type

=

typeid

(object);

371  const CSeq_loc

* loc =

dynamic_cast<const CSeq_loc

*

>

(iter->object.GetPointer());

373  CScope

* scope =

const_cast<CScope

*

>

(iter->scope.GetPointer());

376

ranges[idh] += range;

379  if

(ranges.size() == 1) {

382

TRanges::iterator iter = ranges.begin();

383

loc->

SetInt

().SetFrom(iter->second.GetFrom());

384

loc->

SetInt

().SetTo(iter->second.GetTo());

385

loc->

SetId

(*iter->first.GetSeqId());

vector< TRangeWithFuzz > TRanges

User-defined methods of the data storage class.

CRangeCollection< TSeqPos > TRangeColl

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 OnProjectChanged()

virtual void x_UpdateContentLabel()

virtual objects::CScope * x_GetScope() const

virtual void x_AttachToProject(CGBDocument &doc)

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)

const objects::CHandleRangeMap & GetRangeSelection() const

bool HasObjectSelection()

Object Selection - represents select Objects (such as features, alignments, etc)

CSeqTextDataSource implements Adapter design pattern.

const objects::CSeq_loc * GetLoc() const

const CSeqTextDataSource * GetDataSource() const

bool InitObject(SConstScopedObject &object)

CSeqTextWidget * GetWidget() const

void ResetObjectSelection()

void SelectObject(const CObject *obj)

const TRangeColl & GetSelection() const

void SetRangeSelection(const TRangeColl &segs)

CViewTypeDescriptor - holds description of a view type.

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)

#define ITERATE(Type, Var, Cont)

ITERATE macro to sequence through container elements.

virtual const CObject * x_GetOrigObject() const

const string & GetMsg(void) const

Get message string.

CIRef< T > GetServiceByType()

retrieves a typed reference to a service, the name of C++ type is used as the name of the service.

static CRef< objects::CSeq_loc > CreateSeq_loc(const objects::CSeq_id &id, const CRangeCollection< TSeqPos > &ranges)

virtual int TestInputObjects(TConstScopedObjects &objects)

tests input objects (not using object conversion) and returns a combination of ETestResult flags bett...

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 x_OnSetSelection(CSelectionEvent &evt)

override in derived classes in order to handle selection broadcast

virtual void CreateViewWindow(wxWindow *parent)

create Window corresponding to the view

virtual string GetExtensionIdentifier() const

CSeqTextViewFactory.

bool x_NeedsConversion(const CObject &object, objects::CScope &scope)

virtual bool x_MergeObjects(TConstScopedObjects &objects)

virtual const CProjectViewTypeDescriptor & GetProjectViewTypeDescriptor() const

returns a Descriptor for the View Type supported by the Factory

virtual IView * CreateInstanceByFingerprint(const TFingerprint &fingerprint) const

if fingerprint is recognized - creates and returns a new instance

virtual void RegisterIconAliases(wxFileArtProvider &provider)

called by the framework to give Factory a chance to register images used by view

virtual wxWindow * GetWindow()

returns a pointer to the wxWindow representing the client

virtual const CViewTypeDescriptor & GetTypeDescriptor() const

return an object providing meta information about thei view type

virtual void DestroyViewWindow()

destroy Window corresponding to the view

virtual bool IsCompatibleWith(const CObject &object, objects::CScope &scope)

virtual void GetMainObject(TConstScopedObjects &objs) const

Adds the main data objects represented by the client to "objects".

CConstRef< CObject > m_OrigObj

virtual string GetExtensionLabel() const

returns a displayable label for this extension ( please capitalize the key words - "My Extension" )

virtual wxEvtHandler * GetCommandHandler()

IWMClient implementation.

virtual IView * CreateInstance() const

creates a view instance

virtual void GetSelection(CSelectionEvent &evt) const

get selection for broadcasting

vector< CConstRef< CObject > > TConstObjects

virtual const string & GetIconAlias() const

virtual void AddListener(CEventHandler *listener, int pool_name=ePool_Default)

Add a listener.

virtual const string & GetLabel() const

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,.

void Reset(void)

Reset reference object.

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

@ eSimilarObjectsAccepted

CProjectViewTypeDescriptor s_SeqTextViewTypeDescr("Sequence Text View", "seq_text_view", "Sequence Text View", "The Sequence Text View provides a text representation of sequence, " "with color coding to highlight specific annotation types.", "SEQ_TEXT_VIEW", "Generic", 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