##// END OF EJS Templates
Implements method to add a data source in the widget...
Implements method to add a data source in the widget The method is a slot that will be connected with data source controller in the aim to create the data source representation in the widget when a new data source is set in the contoller

File last commit:

r83:49b6273d9035
r83:49b6273d9035
Show More
DataSourceWidget.h
33 lines | 800 B | text/x-c | CLexer
#ifndef SCIQLOP_DATASOURCEWIDGET_H
#define SCIQLOP_DATASOURCEWIDGET_H
#include <Common/spimpl.h>
#include <QWidget>
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);
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
*/
void addDataSource(DataSourceItem &dataSource) noexcept;
private:
class DataSourceWidgetPrivate;
spimpl::unique_impl_ptr<DataSourceWidgetPrivate> impl;
};
#endif // SCIQLOP_DATASOURCEWIDGET_H