|
QList< QWidget * > | configurationWidgets () const override |
|
tlp::GlMainWidget * | getGlMainWidget () const |
|
OverviewPosition | overviewPosition () const |
|
bool | overviewVisible () const |
|
void | setOverviewPosition (const OverviewPosition &position) |
|
void | setState (const tlp::DataSet &) override |
|
void | setUpdateOverview (bool updateOverview) |
|
QPixmap | snapshot (const QSize &outputSize=QSize()) const override |
|
tlp::DataSet | state () const override |
|
bool | updateOverview () const |
|
QGraphicsView * | graphicsView () const override |
|
void | resetGraphicsScene () override |
|
| View () |
|
| ~View () override |
|
std::string | category () const override |
|
virtual QString | configurationWidgetsStyleSheet () const |
|
tlp::Interactor * | currentInteractor () const |
|
tlp::Graph * | graph () const |
|
std::string | icon () const override |
|
QList< tlp::Interactor * > | interactors () const |
|
void | treatEvents (const std::vector< Event > &events) override |
|
QSet< tlp::Observable * > | triggers () const |
|
virtual std::string | author () const =0 |
|
virtual std::string | date () const =0 |
|
void | declareDeprecatedName (const std::string &oldName) |
|
std::string | deprecatedName () |
|
virtual std::string | group () const =0 |
|
virtual int | id () const |
|
virtual std::string | info () const =0 |
|
virtual std::string | major () const |
|
virtual std::string | minor () const |
|
virtual std::string | name () const =0 |
|
virtual std::string | programmingLanguage () const |
|
virtual std::string | release () const =0 |
|
virtual std::string | tulipMajor () const |
|
virtual std::string | tulipMinor () const |
|
virtual std::string | tulipRelease () const =0 |
|
template<typename T > |
void | addInOutParameter (const std::string &name, const std::string &help=std::string(), const std::string &defaultValue=std::string(), bool isMandatory=true, const std::string &valuesDescription=std::string()) |
|
template<typename T > |
void | addInParameter (const std::string &name, const std::string &help, const std::string &defaultValue, bool isMandatory=true, const std::string &valuesDescription=std::string()) |
|
template<typename T > |
void | addOutParameter (const std::string &name, const std::string &help=std::string(), const std::string &defaultValue=std::string(), bool isMandatory=true, const std::string &valuesDescription=std::string()) |
|
template<typename T > |
void | addParameter (const std::string &name, const std::string &help=std::string(), const std::string &defaultValue=std::string(), bool isMandatory=true) |
|
const tlp::ParameterDescriptionList & | getParameters () const |
|
bool | inputRequired () const |
|
void | addDependency (const char *name, const char *release) |
|
const std::list< Dependency > & | dependencies () const |
|
void | addListener (Observable *const listener) const |
|
void | addObserver (Observable *const observer) const |
|
unsigned int | countListeners () const |
|
unsigned int | countObservers () const |
|
unsigned int | getReceived () const |
|
unsigned int | getSent () const |
|
void | removeListener (Observable *const listener) const |
|
void | removeObserver (Observable *const observerver) const |
|
|
void | assignNewGlMainWidget (GlMainWidget *glMainWidget, bool deleteOldGlMainWidget=true) |
|
bool | eventFilter (QObject *obj, QEvent *event) override |
|
virtual QuickAccessBar * | getQuickAccessBarImpl () |
|
tlp::GlOverviewGraphicsItem * | overviewItem () const |
|
bool | quickAccessBarVisible () const |
|
void | setupWidget () override |
|
void | updateShowOverviewButton () |
|
void | updateShowQuickAccessBarButton () |
|
void | addToScene (QGraphicsItem *item) |
|
QGraphicsItem * | centralItem () const override |
|
void | removeFromScene (QGraphicsItem *item) |
|
void | setCentralWidget (QWidget *, bool deleteOldCentralWidget=true) |
|
QPixmap | snapshot (const QSize &outputSize=QSize()) const override |
|
| Observable (const Observable &) |
|
bool | hasOnlookers () const |
|
void | observableDeleted () |
|
Observable & | operator= (const Observable &) |
|
void | sendEvent (const Event &message) |
|
virtual void | treatEvent (const Event &message) |
|
An abstract view that displays a GlMainWidget as its central widget.
The GlMainView subclasses ViewWidget and always uses a GlMainWidget as the central widget of the panel. It also adds the following features:
- An overview of the scene that can be toggled on or off.
- Some configuration widgets that modify the rendering parameters.
- A quick access bar widget that allows the user to quickly modify some of the most used rendering parameters and graph properties (nodes color, edges display, etc)
- The possibility to make snapshots of the current scene
Subclassing GlMainView means you will only want to display graphs in a single GlMainWidget. Switching the central widget can only be achieved from the ViewWidget class.
- Warning
- It is strongly unadvised to re-implement methods already implemented into tlp::View or tlp::ViewWidget. If you have to add custom behavior to those method, make sure to call the upper-class methods first:
void MyView::setupWidget() {
}
- See also
- tlp::ViewWidget
- Examples:
- interactor_plugin/interactor_plugin.cpp.
Definition at line 68 of file GlMainView.h.