##// END OF EJS Templates
Auto copy test plugin to right output folder...
Auto copy test plugin to right output folder Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>

File last commit:

r1423:31110df2feb2
r1487:07c3e5db5351
Show More
VisualizationTabWidget.h
90 lines | 2.9 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)
Ported MockPlugin to new Variable2 impl and added dummy python plugin...
r1423 class Variable2;
Add the visualization gui classes
r118 class VisualizationZoneWidget;
Switched to new TS impl but quite broken!...
r1420 namespace Ui
{
Creation of VisualizationWidget, VizualizationTabWidget, VisualizationZoneWidget, VisualizationGraphWidget
r58 class VisualizationTabWidget;
} // namespace Ui
Switched to new TS impl but quite broken!...
r1420 class VisualizationTabWidget : public QWidget, public IVisualizationWidget
{
Creation of VisualizationWidget, VizualizationTabWidget, VisualizationZoneWidget, VisualizationGraphWidget
r58 Q_OBJECT
public:
Switched to new TS impl but quite broken!...
r1420 explicit VisualizationTabWidget(const QString& name = {}, QWidget* parent = 0);
Creation of VisualizationWidget, VizualizationTabWidget, VisualizationZoneWidget, VisualizationGraphWidget
r58 virtual ~VisualizationTabWidget();
Retrieves zone names from the visualization
r1136 /// Adds a zone widget
Switched to new TS impl but quite broken!...
r1420 void addZone(VisualizationZoneWidget* zoneWidget);
Add the visualization gui classes
r118
Retrieves zone names from the visualization
r1136 /// Inserts a zone widget at the specified position
Switched to new TS impl but quite broken!...
r1420 void insertZone(int index, VisualizationZoneWidget* zoneWidget);
Integrates the drag&drop classes into the existing visualization classes.
r839
Retrieves zone names from the visualization
r1136 /// Returns the list of zone widget names in the order they are displayed
QStringList availableZoneWidgets() const;
Time Zone Mode + prepare graph mode
r1138 /// Returns the zone with the specified name.
/// If multiple zone with the same name exist, the first one is returned.
Switched to new TS impl but quite broken!...
r1420 VisualizationZoneWidget* getZoneWithName(const QString& zoneName);
Time Zone Mode + prepare graph mode
r1138
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
*/
Switched to new TS impl but quite broken!...
r1420 VisualizationZoneWidget* createZone(std::shared_ptr<Variable2> 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
*/
Switched to new TS impl but quite broken!...
r1420 VisualizationZoneWidget* createZone(
const std::vector<std::shared_ptr<Variable2>>& 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
*/
Switched to new TS impl but quite broken!...
r1420 VisualizationZoneWidget* createEmptyZone(int index);
Manage drag&drop of empty graphs
r841
Add the visualization gui classes
r118 // IVisualizationWidget interface
Switched to new TS impl but quite broken!...
r1420 void accept(IVisualizationWidgetVisitor* visitor) override;
bool canDrop(Variable2& variable) const override;
bool contains(Variable2& 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:
Switched to new TS impl but quite broken!...
r1420 void closeEvent(QCloseEvent* event) override;
Alexandre Leroux
Handles desynchronisation when removing variable from a graph (2)...
r738
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
Switched to new TS impl but quite broken!...
r1420 QLayout& tabLayout() const noexcept;
Alexandre Leroux
Adds scrollbar to tabs
r307
Switched to new TS impl but quite broken!...
r1420 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:
Switched to new TS impl but quite broken!...
r1420 void dropMimeData(int index, const QMimeData* mimeData);
Creation of VisualizationWidget, VizualizationTabWidget, VisualizationZoneWidget, VisualizationGraphWidget
r58 };
#endif // SCIQLOP_VISUALIZATIONTABWIDGET_H