##// END OF EJS Templates
Parser refactoring (1)...
Parser refactoring (1) Creates a helper that will be used to read the properties and values of an AMDA file, to generate the dataset. The helper is intended to replace the current implementation of the parser, to be more generic and thus manage the spectrograms more easily

File last commit:

r844:90e991aec5fa
r944:e1494a5194f1
Show More
VisualizationTabWidget.h
80 lines | 2.6 KiB | text/x-c | CLexer
/ gui / include / Visualization / VisualizationTabWidget.h
Creation of VisualizationWidget, VizualizationTabWidget, VisualizationZoneWidget, VisualizationGraphWidget
r58 #ifndef SCIQLOP_VISUALIZATIONTABWIDGET_H
#define SCIQLOP_VISUALIZATIONTABWIDGET_H
Add the visualization gui classes
r118 #include "Visualization/IVisualizationWidget.h"
Alexandre Leroux
Adds a name for a tab...
r198 #include <Common/spimpl.h>
Alexandre Leroux
Adds logs for null visitors
r219 #include <QLoggingCategory>
Integrates the drag&drop classes into the existing visualization classes.
r839 #include <QMimeData>
Format changes
r844 #include <QWidget>
Creation of VisualizationWidget, VizualizationTabWidget, VisualizationZoneWidget, VisualizationGraphWidget
r58
Alexandre Leroux
Adds logs for null visitors
r219 Q_DECLARE_LOGGING_CATEGORY(LOG_VisualizationTabWidget)
Alexandre Leroux
Minor fixes...
r203 class Variable;
Add the visualization gui classes
r118 class VisualizationZoneWidget;
Creation of VisualizationWidget, VizualizationTabWidget, VisualizationZoneWidget, VisualizationGraphWidget
r58 namespace Ui {
class VisualizationTabWidget;
} // namespace Ui
Add the visualization gui classes
r118 class VisualizationTabWidget : public QWidget, public IVisualizationWidget {
Creation of VisualizationWidget, VizualizationTabWidget, VisualizationZoneWidget, VisualizationGraphWidget
r58 Q_OBJECT
public:
Alexandre Leroux
Adds a name for a tab...
r198 explicit VisualizationTabWidget(const QString &name = {}, QWidget *parent = 0);
Creation of VisualizationWidget, VizualizationTabWidget, VisualizationZoneWidget, VisualizationGraphWidget
r58 virtual ~VisualizationTabWidget();
Add the visualization gui classes
r118 /// Add a zone widget
void addZone(VisualizationZoneWidget *zoneWidget);
Integrates the drag&drop classes into the existing visualization classes.
r839 void insertZone(int index, VisualizationZoneWidget *zoneWidget);
Alexandre Leroux
Completes the method of creating a zone from a variable
r201 /**
* Creates a zone using a variable. The variable will be displayed in a new graph of the new
Integrates the drag&drop classes into the existing visualization classes.
r839 * zone. The zone is added at the end.
Alexandre Leroux
Completes the method of creating a zone from a variable
r201 * @param variable the variable for which to create the zone
* @return the pointer to the created zone
*/
VisualizationZoneWidget *createZone(std::shared_ptr<Variable> variable);
Add the visualization gui classes
r118
Integrates the drag&drop classes into the existing visualization classes.
r839 /**
Format changes
r844 * Creates a zone using a list of variables. The variables will be displayed in a new graph of
* the new zone. The zone is inserted at the specified index.
Integrates the drag&drop classes into the existing visualization classes.
r839 * @param variables the variables for which to create the zone
* @param index The index where the zone should be inserted in the layout
* @return the pointer to the created zone
*/
Format changes
r844 VisualizationZoneWidget *createZone(const QList<std::shared_ptr<Variable> > &variables,
int index);
Integrates the drag&drop classes into the existing visualization classes.
r839
Manage drag&drop of empty graphs
r841 /**
* Creates a zone which is empty (no variables). The zone is inserted at the specified index.
* @param index The index where the zone should be inserted in the layout
* @return the pointer to the created zone
*/
VisualizationZoneWidget *createEmptyZone(int index);
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
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:
Alexandre Leroux
Adds scrollbar to tabs
r307 /// @return the layout of tab in which zones are added
QLayout &tabLayout() const noexcept;
Creation of VisualizationWidget, VizualizationTabWidget, VisualizationZoneWidget, VisualizationGraphWidget
r58 Ui::VisualizationTabWidget *ui;
Alexandre Leroux
Adds a name for a tab...
r198
class VisualizationTabWidgetPrivate;
spimpl::unique_impl_ptr<VisualizationTabWidgetPrivate> impl;
Integrates the drag&drop classes into the existing visualization classes.
r839
private slots:
void dropMimeData(int index, const QMimeData *mimeData);
Creation of VisualizationWidget, VizualizationTabWidget, VisualizationZoneWidget, VisualizationGraphWidget
r58 };
#endif // SCIQLOP_VISUALIZATIONTABWIDGET_H