Abstract view provide a View with interactors' basic functions like getInteractors, pushInteractor and popInteractor You can inherit from it if you want this functions In tulip-qt GlMainView inherit from it
virtual void tlp::AbstractView::buildContextMenu (QObject * object, QMouseEvent * event, QMenu * contextMenu) [inline, protected, virtual]empty function : implement this function if you want a context menu when you right click the mouse
Reimplemented in tlp::NodeLinkDiagramComponent.
virtual void tlp::AbstractView::computeContextMenuAction (QAction * action) [inline, protected, virtual]empty function : implement this function if you have implement buildContextMenu()
Reimplemented in tlp::NodeLinkDiagramComponent.
virtual QWidget* tlp::AbstractView::construct (QWidget * parent) [virtual]Construct GUI of the view
Returns:
QWidget is the main widget of the view (in MainController this widget will be add to workspace)
Implements tlp::View.
Reimplemented in tlp::GlMainView, and tlp::NodeLinkDiagramComponent.
virtual void tlp::AbstractView::constructInteractorsActionList () [inline, protected, virtual]construct the storage of interactors' action
Reimplemented in tlp::NodeLinkDiagramComponent.
virtual void tlp::AbstractView::constructInteractorsMap () [inline, protected, virtual]construct the storage of interactors
Reimplemented in tlp::NodeLinkDiagramComponent.
bool tlp::AbstractView::eventFilter (QObject * object, QEvent * event) [slot]this function is call by Qt this function call specificEventFilter, buildContextMenu and computeContextMenu
virtual tlp::Iterator<tlp::Interactor *>* tlp::AbstractView::getInteractors () const [virtual]get interactors of widget
Returns:
list of interactor installed on this widget
virtual std::list<QAction *>* tlp::AbstractView::getInteractorsActionList () [virtual]Get Interactors action (in MainController actions will be add to graphToolBar)
Warning:
: QAction* must be the same at each call
Implements tlp::View.
QWidget* tlp::AbstractView::getWidget () [inline]
void tlp::AbstractView::popInteractor ()remove the last added interactor from the event filters list and delete it
tlp::Interactor::ID tlp::AbstractView::pushInteractor (tlp::Interactor * interactor)install a clone of the interactor as event filter and assign the returned id
void tlp::AbstractView::removeInteractor (tlp::Interactor::ID id)remove the interactor with id from the event filters list and delete it
std::vector<tlp::Interactor::ID> tlp::AbstractView::resetInteractors (const std::vector< tlp::Interactor * > & interactors)remove all iteractors and delete them, then install clones of the interactors
tlp::Interactor::ID tlp::AbstractView::resetInteractors (tlp::Interactor * interactor = NULL)remove all interactors and delete them, push a new one if any
void tlp::AbstractView::setCentralWidget (QWidget * widget) [protected]set the central widget of the view call this function to set view's centralWidget
virtual void tlp::AbstractView::specificEventFilter (QObject * object, QEvent * event) [inline, protected, virtual]empty function : implement this function if you want a specific event filter in your view