##// END OF EJS Templates
Adds actions for items in the DataSourceWidget...
Adds actions for items in the DataSourceWidget For each item will be associated actions (generated from the model of the item) that will be displayed in the menu when right clicking on the item in the tree

File last commit:

r109:9e9399294f6e
r142:11579fae1cc2
Show More
DataSourceWidget.h
34 lines | 788 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);
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;
};
#endif // SCIQLOP_DATASOURCEWIDGET_H