Overview     Modules     Class Hierarchy     Classes     Members  

tlp::AbstractView Class Reference

Abstract view provide interactors' functions. More...

#include <AbstractView.h>

Inheritance diagram for tlp::AbstractView:
Collaboration diagram for tlp::AbstractView:

List of all members.

Public Slots

Public Member Functions

Protected Member Functions

Protected Attributes


Detailed Description

Abstract view provide interactors' functions.

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


Constructor & Destructor Documentation

tlp::AbstractView::AbstractView (  ) 

Basic constructor

virtual tlp::AbstractView::~AbstractView (  )  [virtual]

Basic destructor


Member Function Documentation

virtual void tlp::AbstractView::buildContextMenu ( QObject *  ,
QContextMenuEvent *  ,
QMenu *  contextMenu 
) [protected, virtual]

empty function : implement this function if you want a context menu when you right click the mouse

Reimplemented in tlp::GlMainView, and tlp::NodeLinkDiagramComponent.

virtual void tlp::AbstractView::buildOutputImagesFormatsList ( std::set< std::string > &  outputFormats  )  [protected, virtual]
virtual void tlp::AbstractView::computeContextMenuAction ( QAction *   )  [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 the abstract view

Warning:
If you want to inherit from it, you must call AbstractView::construct(QWidget *) in your new construct function

Implements tlp::View.

Reimplemented in tlp::BaseGraphicsViewComponent, tlp::GlMainView, and 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 void tlp::AbstractView::exportImage ( QAction *  action  )  [virtual, slot]
Interactor* tlp::AbstractView::getActiveInteractor (  )  [inline, virtual]

return current interactor

Implements tlp::View.

QWidget* tlp::AbstractView::getCentralWidget (  )  const [inline]
Returns:
the central widget of the abstract view
virtual std::list<Interactor *> tlp::AbstractView::getInteractors (  )  [virtual]

Return interactors of this view

Implements tlp::View.

Reimplemented in tlp::BaseGraphicsViewComponent.

QWidget* tlp::AbstractView::getWidget (  )  [inline, virtual]

get the widget who will be add to workspace by the controller

Returns:
the widget of the abstract view

Implements tlp::View.

virtual void tlp::AbstractView::setActiveInteractor ( Interactor interactor  )  [virtual]

Set active interactor on this view

Implements tlp::View.

Reimplemented in tlp::BaseGraphicsViewComponent.

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::setInteractors ( const std::list< Interactor * > &  interactorsList  )  [virtual]

Set all interactors available forthis view Interactors are create (allocate) but now view have responsibility of her destruction

Implements tlp::View.

Reimplemented in tlp::BaseGraphicsViewComponent.

virtual void tlp::AbstractView::specificEventFilter ( QObject *  ,
QEvent *   
) [inline, protected, virtual]

empty function : implement this function if you want a specific event filter in your view

Reimplemented in tlp::NodeLinkDiagramComponent.


Member Data Documentation

QWidget* tlp::AbstractView::centralWidget [protected]
std::list<Interactor *> tlp::AbstractView::interactors [protected]
QVBoxLayout* tlp::AbstractView::mainLayout [protected]
QWidget* tlp::AbstractView::widget [protected]


Tulip Software by LaBRI Visualization Team    2001 - 2011