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::View * | current () |
Returns current view. More... | |
ViewInfo | currentViewInfo () const |
Returns current view info. More... | |
Selection * | currentViewSelection () |
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::View * | get (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... | |
Selection * | viewSelection (size_t viewIndex) |
Returns the selection at given index. More... | |
Selection * | viewSelection (cee::vis::View *view) |
Returns the selection for the five view. More... | |
cee::PtrRef< cee::vis::View > | add () |
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... | |
![]() | |
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 Views * | instance () |
Views is a singleton. Always access Views using this instance() More... | |
Class to manage the list of views in the application.
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.
|
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.