##// END OF EJS Templates
Merge branch 'feature/ThreadFix' of...
Merge branch 'feature/ThreadFix' of https://perrinel@hephaistos.lpp.polytechnique.fr/rhodecode/GIT_REPOSITORIES/LPP/Users/mperrinel/SCIQLOP-Initialisation into feature/ThreadFix Conflicts: core/src/Variable/Variable.cpp core/src/Variable/VariableCacheController.cpp core/src/Variable/VariableController.cpp gui/src/Visualization/VisualizationGraphHelper.cpp plugins/mockplugin/src/CosinusProvider.cpp

File last commit:

r235:746eaca503e3
r369:65d06a34f5f1 merge
Show More
DataSourceWidget.h
39 lines | 985 B | text/x-c | CLexer
#ifndef SCIQLOP_DATASOURCEWIDGET_H
#define SCIQLOP_DATASOURCEWIDGET_H
#include <QWidget>
namespace Ui {
class DataSourceWidget;
} // Ui
class DataSourceItem;
/**
* @brief The DataSourceWidget handles the graphical representation (as a tree) of the data sources
* attached to SciQlop.
*/
class DataSourceWidget : public QWidget {
Q_OBJECT
public:
explicit DataSourceWidget(QWidget *parent = 0);
virtual ~DataSourceWidget() noexcept;
public slots:
/**
* Adds a data source. An item associated to the data source is created and then added to the
* representation tree
* @param dataSource the data source to add. The pointer has to be not null
*/
void addDataSource(DataSourceItem *dataSource) noexcept;
private:
Ui::DataSourceWidget *ui;
private slots:
/// Slot called when right clicking on an item in the tree (displays a menu)
void onTreeMenuRequested(const QPoint &pos) noexcept;
};
#endif // SCIQLOP_DATASOURCEWIDGET_H