##// 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:

r738:48ebbf123b7f
r985:e1494a5194f1
Show More
VisualizationWidget.h
54 lines | 1.5 KiB | text/x-c | CLexer
#ifndef SCIQLOP_VISUALIZATIONWIDGET_H
#define SCIQLOP_VISUALIZATIONWIDGET_H
#include "Visualization/IVisualizationWidget.h"
#include <Data/SqpRange.h>
#include <QLoggingCategory>
#include <QWidget>
Q_DECLARE_LOGGING_CATEGORY(LOG_VisualizationWidget)
class QMenu;
class Variable;
class VisualizationTabWidget;
namespace Ui {
class VisualizationWidget;
} // namespace Ui
class VisualizationWidget : public QWidget, public IVisualizationWidget {
Q_OBJECT
public:
explicit VisualizationWidget(QWidget *parent = 0);
virtual ~VisualizationWidget();
// IVisualizationWidget interface
void accept(IVisualizationWidgetVisitor *visitor) override;
bool canDrop(const Variable &variable) const override;
bool contains(const Variable &variable) const override;
QString name() const override;
public slots:
/**
* Attaches to a menu the menu relative to the visualization of variables
* @param menu the parent menu of the generated menu
* @param variables the variables for which to generate the menu
*/
void attachVariableMenu(QMenu *menu,
const QVector<std::shared_ptr<Variable> > &variables) noexcept;
/// Slot called when a variable is about to be deleted from SciQlop
void onVariableAboutToBeDeleted(std::shared_ptr<Variable> variable) noexcept;
void onRangeChanged(std::shared_ptr<Variable> variable, const SqpRange &range) noexcept;
protected:
void closeEvent(QCloseEvent *event) override;
private:
Ui::VisualizationWidget *ui;
};
#endif // VISUALIZATIONWIDGET_H