VisualizationWidget.h
43 lines
| 1.1 KiB
| text/x-c
|
CLexer
r58 | #ifndef SCIQLOP_VISUALIZATIONWIDGET_H | |||
#define SCIQLOP_VISUALIZATIONWIDGET_H | ||||
r111 | #include "Visualization/IVisualizationWidget.h" | |||
r87 | #include <QLoggingCategory> | |||
r58 | #include <QWidget> | |||
Alexandre Leroux
|
r204 | Q_DECLARE_LOGGING_CATEGORY(LOG_VisualizationWidget) | ||
Alexandre Leroux
|
r231 | class QMenu; | ||
Alexandre Leroux
|
r162 | class Variable; | ||
r111 | class VisualizationTabWidget; | |||
r58 | namespace Ui { | |||
class VisualizationWidget; | ||||
} // namespace Ui | ||||
r111 | class VisualizationWidget : public QWidget, public IVisualizationWidget { | |||
r58 | Q_OBJECT | |||
public: | ||||
explicit VisualizationWidget(QWidget *parent = 0); | ||||
virtual ~VisualizationWidget(); | ||||
r111 | // IVisualizationWidget interface | |||
Alexandre Leroux
|
r192 | void accept(IVisualizationWidgetVisitor *visitor) override; | ||
Alexandre Leroux
|
r194 | bool canDrop(const Variable &variable) const override; | ||
Alexandre Leroux
|
r203 | QString name() const override; | ||
r111 | ||||
Alexandre Leroux
|
r162 | public slots: | ||
/** | ||||
Alexandre Leroux
|
r231 | * Attaches to a menu the menu relating to the visualization of a variable | ||
* @param menu the parent menu of the generated menu | ||||
* @param variable the variable for which to generate the menu | ||||
Alexandre Leroux
|
r162 | */ | ||
Alexandre Leroux
|
r231 | void attachVariableMenu(QMenu *menu, std::shared_ptr<Variable> variable) noexcept; | ||
Alexandre Leroux
|
r162 | |||
r58 | private: | |||
Ui::VisualizationWidget *ui; | ||||
}; | ||||
#endif // VISUALIZATIONWIDGET_H | ||||