cee::app::Views Class Reference

Class to manage the list of views in the application. More...

Public Member Functions

size_t count () const
 Returns number of views. More...
 
cee::vis::Viewcurrent ()
 Returns current view. More...
 
ViewInfo currentViewInfo () const
 Returns current view info. More...
 
SelectioncurrentViewSelection ()
 Returns the current selection. More...
 
void setCurrent (cee::vis::View *view)
 Sets current view. More...
 
size_t currentIndex () const
 Returns index of current view. More...
 
void setCurrentIndex (size_t index)
 Sets current view by index. More...
 
size_t indexOf (const cee::vis::View *view) const
 Returns the index of the specified view. More...
 
cee::vis::Viewget (size_t index)
 Returns the view at the given index. More...
 
ViewInfo viewInfo (size_t viewIndex) const
 Returns the view info for the specified viewIndex. More...
 
ViewInfo viewInfo (cee::vis::View *view) const
 Returns the view info for the specified view. More...
 
SelectionviewSelection (size_t viewIndex)
 Returns the selection at given index. More...
 
SelectionviewSelection (cee::vis::View *view)
 Returns the selection for the five view. More...
 
cee::PtrRef< cee::vis::Viewadd ()
 Adds a new view and returns it. More...
 
bool remove (size_t index)
 Removes the view at the specified index. More...
 
bool remove (cee::vis::View *view)
 Removes the specified view. More...
 
bool removeCurrent ()
 Removes the current view. More...
 
- Public Member Functions inherited from cee::RefCountedObject
void addRef () const
 Increments the reference count for this object. More...
 
void release () const
 Decrements the reference count for this object. More...
 
int refCount () const
 Returns the reference count for this object. More...
 
void setRefCountZero () const
 Sets the ref count to zero, but DOES NOT delete the object. More...
 

Static Public Member Functions

static Viewsinstance ()
 Views is a singleton. Always access Views using this instance() More...
 
Inheritance diagram for cee::app::Views:
cee::RefCountedObject

Detailed Description

Class to manage the list of views in the application.

Member Function Documentation

PtrRef< View > cee::app::Views::add ( )

Adds a new view and returns it.

size_t cee::app::Views::count ( ) const

Returns number of views.

View * cee::app::Views::current ( )

Returns current view.

size_t cee::app::Views::currentIndex ( ) const

Returns index of current view.

ViewInfo cee::app::Views::currentViewInfo ( ) const

Returns current view info.

Selection * cee::app::Views::currentViewSelection ( )

Returns the current selection.

View * cee::app::Views::get ( size_t  index)

Returns the view at the given index.

size_t cee::app::Views::indexOf ( const cee::vis::View view) const

Returns the index of the specified view.

Views * cee::app::Views::instance ( )
static

Views is a singleton. Always access Views using this instance()

bool cee::app::Views::remove ( size_t  index)

Removes the view at the specified index.

bool cee::app::Views::remove ( cee::vis::View view)

Removes the specified view.

bool cee::app::Views::removeCurrent ( )

Removes the current view.

void cee::app::Views::setCurrent ( cee::vis::View view)

Sets current view.

void cee::app::Views::setCurrentIndex ( size_t  index)

Sets current view by index.

ViewInfo cee::app::Views::viewInfo ( size_t  viewIndex) const

Returns the view info for the specified viewIndex.

ViewInfo cee::app::Views::viewInfo ( cee::vis::View view) const

Returns the view info for the specified view.

cee::app::Selection * cee::app::Views::viewSelection ( size_t  viewIndex)

Returns the selection at given index.

cee::app::Selection * cee::app::Views::viewSelection ( cee::vis::View view)

Returns the selection for the five view.