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/text__view_8cpp_source.html below:

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

63  "Create an interactive text representation of data."

,

64  "The Text View shows data in a variety of formats, including GenBank FlatFile, " 65  "NCBI ASN.1, and FastA format."

,

84

sb_srv->RemoveSlot(1);

112  return

contributor->GetMenu();

124  object

=

objects

[0].object.GetPointer();

125

scope =

objects

[0].scope.GetPointer();

133  if

(!ws)

return false

;

142  string

viewType, initialSequence;

143  bool

expandAll =

false

, trackSelection =

false

;

146  if

(

type

.IsStr() &&

type

.GetStr() ==

"TextViewParams"

) {

148  const CObject_id

& field_id = (*it)->GetLabel();

149  if

(!field_id.

IsStr

())

155  if

(

label

==

"TextViewType"

) {

157

viewType =

data

.GetStr();

159  else if

(

label

==

"ExpandAll"

) {

161

expandAll =

data

.GetBool();

163  else if

(

label

==

"TrackSelection"

) {

164  if

(

data

.IsBool()) {

165

trackSelection =

data

.GetBool();

168  else if

(

label

==

"InitialSequence"

) {

169  if

(

data

.IsStr()) {

170

initialSequence =

data

.GetStr();

176  if

(!viewType.empty())

182  if

(!initialSequence.empty())

238  return

s_ViewTypeDescr;

275

vector<TConstScopedObjects> widgetObjects;

277  ITERATE

(vector<TConstScopedObjects>, it, widgetObjects)

310  return

ctrl ? ctrl->

SetPosition

(seq,

object

) :

false

;

316  return

ctrl ? ctrl->

SetPosition

(h,

object

) :

false

;

341

sel_srv->GetCurrentSelection(scopedObjects);

343  objects

.push_back(it->object);

352  if

(

objects

.empty())

return

;

354

prjSrv->ShowView(viewName, widgetFactory,

objects

, bFloat);

363

sb_srv->InsertSlot(1,

NULL

, 120);

372

sb_srv->RemoveSlot(1);

380

ostr <<

" Ln "

<<

row

+ 1 <<

" Col "

<< col + 1;

391  static string

sid(

"text_view_factory"

);

398  static string

slabel(

"Text View Factory"

);

416  return

s_ViewTypeDescr;

434  bool

found_good =

false

;

435  bool

found_bad =

false

;

437  for

(

size_t i

= 0;

i

<

objects

.size();

i

++) {

CUndoManager & GetUndoManager()

CNcbiOstrstreamToString class helps convert CNcbiOstrstream to a string Sample usage:

CProjectService - a service providing API for operations with Workspaces and Projects.

void RemoveProjectView(IProjectView &view)

removes the view from View manager Service and disconnects it from the project

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)

ISelectionService * m_SelectionService

virtual bool x_HasProject() const

EEventSubtype GetSubtype() const

CProjectViewTypeDescriptor - holds description of a project view type.

CSelectionEvent CSelectionEvent is used for broadcasting selection between views.

void GetAllObjects(TConstObjects &objs) const

void GetOther(TConstObjects &objs) const

bool AddObjectSelection(const CObject &obj)

Base class for all serializable objects.

void SetTrackSelection(bool trackSelection)

void SetHost(ITextWidgetHost *host)

virtual void SetHost(IGuiWidgetHost *host)

IGuiWidgetHost implementation.

virtual void SetSelectedObjects(const TConstObjects &objects)

void SetInitialViewType(const string &type)

virtual void DataChanging()

void GetMainObjects(TConstScopedObjects &objs)

static void RegisterCommands(CUICommandRegistry &cmd_reg, wxFileArtProvider &provider)

virtual void GetSelectedObjects(TConstObjects &objects) const

CTextItemPanel * GetWidget() const

void SetInitialSequence(const string &sequence)

virtual void GetActiveObjects(vector< TConstScopedObjects > &objects)

virtual void SetUndoManager(ICommandProccessor *cmdProccessor)

virtual bool InitWidget(TConstScopedObjects &objects)

void SetOpenExpanded(bool value)

CIRef< IMenuContributor > GetMenuContributor()

virtual void DataChanged()

virtual const CObject * GetOrigObject() const

CUICommandRegistry is a centralized registry where all application commands should be registered.

CViewTypeDescriptor - holds description of a view type.

virtual bool SetPosition(const string &seq, const CObject *object)=0

virtual const CViewTypeDescriptor & GetViewTypeDescriptor() const

returns a Descriptor for the View Type supported by the Factory

virtual void OnSelectionChanged(ISelectionClient *source)=0

notifies Service and its observers about changes in selection

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 void GetCompatibleToolBars(vector< string > &names)

returns the names of toolbars compatible with this class (toolbars that are relevant and useful in th...

virtual const CObject * x_GetOrigObject() const

CIRef< T > GetServiceByType()

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

virtual string GetExtensionIdentifier() const

CTextViewFactory.

virtual void GetMainObject(TConstScopedObjects &objs) const

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

virtual void OnTextPositionChanged(int row, int col)

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 const wxMenu * GetMenu()

returns a menu (must be deleted by the caller) menu injections should follow a separator named "Contr...

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 RegisterCommands(CUICommandRegistry &cmd_reg, wxFileArtProvider &provider)

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

virtual const CViewTypeDescriptor & GetTypeDescriptor() const

return an object providing meta information about thei view type

virtual void CreateViewWindow(wxWindow *parent)

create Window corresponding to the view

virtual bool SetPosition(const string &seq, const CObject *object)

IFlatFileCtrl implementation.

virtual void x_OnSetSelection(CSelectionEvent &evt)

override in derived classes in order to handle selection broadcast

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

get selection for broadcasting

virtual void OnWidgetCommand(const string &command)

virtual void GetActiveObjects(TConstScopedObjects &objects) const

virtual void GetAppSelection(TConstObjects &objects)

virtual wxEvtHandler * GetCommandHandler()

IWMClient implementation.

virtual void ShowView(const string &viewName, FWindowFactory widgetFactory, TConstScopedObjects &objects, bool bFloat)

virtual void WidgetSelectionChanged()

virtual void WidgetActivated()

virtual const CProjectViewTypeDescriptor & GetProjectViewTypeDescriptor() const

returns a Descriptor for the View Type supported by the Factory

virtual void OnTextGotFocus()

ITextWidgetHost implementation.

virtual void CloseWidget()

IGuiWidgetHost implementation.

virtual void DestroyViewWindow()

destroy Window corresponding to the view

virtual wxWindow * GetWindow()

returns a pointer to the wxWindow representing the client

virtual void OnTextLostFocus()

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

vector< SConstScopedObject > TConstScopedObjects

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

static const char label[]

bool IsStr(void) const

Check if variant Str is selected.

const TStr & GetStr(void) const

Get the variant data.

const TData & GetData(void) const

Get the Data member data.

const TType & GetType(void) const

Get the Type member data.

vector< CRef< CUser_field > > TData

static void text(MDB_val *v)

#define row(bind, expected)

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