##// END OF EJS Templates
Creates a interface that defines a variable container...
Creates a interface that defines a variable container - A variable container is an entity that can eventually accomodate a variable (for example, from a menu or d'n'd) - The interfaces declares canDrop() method, that will be used to create a menu for a variable containing only the containers available for it, or to enable/disable d'n'd of this variable on a container - Each visualization widget is a variable container, so it implements canDrop() method

File last commit:

r134:7b4ea0e1482b
r194:7ef1d04a5917
Show More
DataSourceWidget.h
38 lines | 943 B | text/x-c | CLexer
Alexandre Leroux
Creates the data source widget...
r81 #ifndef SCIQLOP_DATASOURCEWIDGET_H
#define SCIQLOP_DATASOURCEWIDGET_H
#include <QWidget>
Alexandre Leroux
(Minor) Extracts ui of DataSourceWidget
r104 namespace Ui {
class DataSourceWidget;
} // Ui
Alexandre Leroux
Creates the data source widget...
r81 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);
Alexandre Leroux
Implements method to add a data source in the widget...
r82 public slots:
/**
* Adds a data source. An item associated to the data source is created and then added to the
* representation tree
Alexandre Leroux
Change signal/slot signature for data source
r90 * @param dataSource the data source to add. The pointer has to be not null
Alexandre Leroux
Implements method to add a data source in the widget...
r82 */
Alexandre Leroux
Change signal/slot signature for data source
r90 void addDataSource(DataSourceItem *dataSource) noexcept;
Alexandre Leroux
Implements method to add a data source in the widget...
r82
Alexandre Leroux
Creates the data source widget...
r81 private:
Alexandre Leroux
(Minor) Extracts ui of DataSourceWidget
r104 Ui::DataSourceWidget *ui;
Alexandre Leroux
Handles right clicking on the tree of the data sources...
r134
private slots:
/// Slot called when right clicking on an item in the tree (displays a menu)
void onTreeMenuRequested(const QPoint &pos) noexcept;
Alexandre Leroux
Creates the data source widget...
r81 };
#endif // SCIQLOP_DATASOURCEWIDGET_H