##// END OF EJS Templates
Replaces QString unit by a new struct...
Replaces QString unit by a new struct The Unit struct contains a flag that indicates if it's a time unit or not. It will be used to set the correct ticker for axes on a graph (default ticker or datetime ticker)

File last commit:

r175:81ea5016bbcd
r177:4c64b786fec1
Show More
VisualizationWidget.h
52 lines | 1.3 KiB | text/x-c | CLexer
#ifndef SCIQLOP_VISUALIZATIONWIDGET_H
#define SCIQLOP_VISUALIZATIONWIDGET_H
#include "Visualization/IVisualizationWidget.h"
#include <QLoggingCategory>
#include <QWidget>
class Variable;
class VisualizationTabWidget;
Q_DECLARE_LOGGING_CATEGORY(LOG_VisualizationWidget)
namespace Ui {
class VisualizationWidget;
} // namespace Ui
class VisualizationWidget : public QWidget, public IVisualizationWidget {
Q_OBJECT
public:
explicit VisualizationWidget(QWidget *parent = 0);
virtual ~VisualizationWidget();
/// Add a zone widget
virtual void addTab(VisualizationTabWidget *tabWidget);
/// Create a tab using a Variable
VisualizationTabWidget *createTab();
/// Remove a tab
void removeTab(VisualizationTabWidget *tab);
// IVisualizationWidget interface
void accept(IVisualizationWidget *visitor) override;
void close() override;
QString name() const;
public slots:
/**
* Displays a variable in a new graph of a new zone of the current tab
* @param variable the variable to display
* @todo this is a temporary method that will be replaced by own actions for each type of
* visualization widget
*/
void displayVariable(std::shared_ptr<Variable> variable) noexcept;
private:
Ui::VisualizationWidget *ui;
};
#endif // VISUALIZATIONWIDGET_H