##// END OF EJS Templates
Parser refactoring (5)...
Parser refactoring (5) Replaces the basic parser to use the helpers created

File last commit:

r881:0e9a8e47fcce
r989:64a6137ab3a2
Show More
VisualizationZoneWidget.h
91 lines | 3.1 KiB | text/x-c | CLexer
/ gui / include / Visualization / VisualizationZoneWidget.h
Creation of VisualizationWidget, VizualizationTabWidget, VisualizationZoneWidget, VisualizationGraphWidget
r58 #ifndef SCIQLOP_VISUALIZATIONZONEWIDGET_H
#define SCIQLOP_VISUALIZATIONZONEWIDGET_H
Add the visualization gui classes
r118 #include "Visualization/IVisualizationWidget.h"
Integrates the drag&drop classes into the existing visualization classes.
r842 #include "Visualization/VisualizationDragWidget.h"
Add the visualization gui classes
r118
Alexandre Leroux
Adds logs for null visitors
r219 #include <QLoggingCategory>
Creation of VisualizationWidget, VizualizationTabWidget, VisualizationZoneWidget, VisualizationGraphWidget
r58 #include <QWidget>
Implementation of V5 acquisition
r539 #include <memory>
#include <Common/spimpl.h>
Alexandre Leroux
Adds logs for null visitors
r219 Q_DECLARE_LOGGING_CATEGORY(LOG_VisualizationZoneWidget)
Creation of VisualizationWidget, VizualizationTabWidget, VisualizationZoneWidget, VisualizationGraphWidget
r58 namespace Ui {
class VisualizationZoneWidget;
Format changes
r847 } // namespace Ui
Creation of VisualizationWidget, VizualizationTabWidget, VisualizationZoneWidget, VisualizationGraphWidget
r58
Alexandre Leroux
Minor fixes...
r203 class Variable;
Alexandre Leroux
Adds a name for a zone...
r197 class VisualizationGraphWidget;
Integrates the drag&drop classes into the existing visualization classes.
r842 class VisualizationZoneWidget : public VisualizationDragWidget, public IVisualizationWidget {
Creation of VisualizationWidget, VizualizationTabWidget, VisualizationZoneWidget, VisualizationGraphWidget
r58 Q_OBJECT
public:
Alexandre Leroux
Adds a name for a zone...
r197 explicit VisualizationZoneWidget(const QString &name = {}, QWidget *parent = 0);
Creation of VisualizationWidget, VizualizationTabWidget, VisualizationZoneWidget, VisualizationGraphWidget
r58 virtual ~VisualizationZoneWidget();
Integrates the drag&drop classes into the existing visualization classes.
r842 /// Adds a graph widget
Add the visualization gui classes
r118 void addGraph(VisualizationGraphWidget *graphWidget);
Format changes
r847 /// Inserts a graph widget
Integrates the drag&drop classes into the existing visualization classes.
r842 void insertGraph(int index, VisualizationGraphWidget *graphWidget);
Alexandre Leroux
Completes the method of creating a zone from a variable
r200 /**
* Creates a graph using a variable. The variable will be displayed in the new graph.
Integrates the drag&drop classes into the existing visualization classes.
r842 * The graph is added at the end.
Alexandre Leroux
Completes the method of creating a zone from a variable
r200 * @param variable the variable for which to create the graph
* @return the pointer to the created graph
*/
VisualizationGraphWidget *createGraph(std::shared_ptr<Variable> variable);
Add the visualization gui classes
r118
Integrates the drag&drop classes into the existing visualization classes.
r842 /**
* Creates a graph using a variable. The variable will be displayed in the new graph.
* The graph is inserted at the specified index.
* @param variable the variable for which to create the graph
* @param index The index where the graph should be inserted in the layout
* @return the pointer to the created graph
*/
VisualizationGraphWidget *createGraph(std::shared_ptr<Variable> variable, int index);
/**
* Creates a graph using a list of variables. The variables will be displayed in the new graph.
* The graph is inserted at the specified index.
* @param variables List of variables to be added to the graph
* @param index The index where the graph should be inserted in the layout
* @return the pointer to the created graph
*/
Format changes
r847 VisualizationGraphWidget *createGraph(const QList<std::shared_ptr<Variable> > variables,
int index);
Integrates the drag&drop classes into the existing visualization classes.
r842
Add the visualization gui classes
r118 // IVisualizationWidget interface
Alexandre Leroux
Updates visitor interface...
r207 void accept(IVisualizationWidgetVisitor *visitor) override;
Alexandre Leroux
Creates a interface that defines a variable container...
r209 bool canDrop(const Variable &variable) const override;
Alexandre Leroux
Unplot menu (5): adds contains() method to an IVariableContainer...
r327 bool contains(const Variable &variable) const override;
Add const and override
r119 QString name() const override;
Add the visualization gui classes
r118
Integrates the drag&drop classes into the existing visualization classes.
r842 // VisualisationDragWidget
Format changes
r847 QMimeData *mimeData() const override;
Integrates the drag&drop classes into the existing visualization classes.
r842 bool isDragAllowed() const override;
Alexandre Leroux
Handles desynchronisation when removing variable from a graph (2)...
r738 protected:
void closeEvent(QCloseEvent *event) override;
Creation of VisualizationWidget, VizualizationTabWidget, VisualizationZoneWidget, VisualizationGraphWidget
r58 private:
Ui::VisualizationZoneWidget *ui;
Implementation of V5 acquisition
r539
class VisualizationZoneWidgetPrivate;
spimpl::unique_impl_ptr<VisualizationZoneWidgetPrivate> impl;
Alexandre Leroux
Vera corrections
r657
private slots:
void onVariableAdded(std::shared_ptr<Variable> variable);
Alexandre Leroux
Handles desynchronisation when removing variable from a graph (1)...
r737 /// Slot called when a variable is about to be removed from a graph contained in the zone
void onVariableAboutToBeRemoved(std::shared_ptr<Variable> variable);
Integrates the drag&drop classes into the existing visualization classes.
r842
Format changes
r847 void dropMimeData(int index, const QMimeData *mimeData);
drop of variable inside an existing graph
r881 void dropMimeDataOnGraph(VisualizationDragWidget *dragWidget, const QMimeData *mimeData);
Creation of VisualizationWidget, VizualizationTabWidget, VisualizationZoneWidget, VisualizationGraphWidget
r58 };
#endif // SCIQLOP_VISUALIZATIONZONEWIDGET_H