##// END OF EJS Templates
Implements filter function for data source...
Implements filter function for data source An item is valid if one of its metadata matches the text in the seach box

File last commit:

r475:72f279351624
r477:eab21078feec
Show More
DataSourceWidget.h
42 lines | 1.1 KiB | text/x-c | CLexer
Alexandre Leroux
Creates the data source widget...
r82 #ifndef SCIQLOP_DATASOURCEWIDGET_H
#define SCIQLOP_DATASOURCEWIDGET_H
#include <QWidget>
Alexandre Leroux
(Minor) Extracts ui of DataSourceWidget
r109 namespace Ui {
class DataSourceWidget;
} // Ui
Alexandre Leroux
Creates the data source widget...
r82 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);
The mock plugin can now create data with view operation
r235 virtual ~DataSourceWidget() noexcept;
Alexandre Leroux
Creates the data source widget...
r82
Alexandre Leroux
Implements method to add a data source in the widget...
r83 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
r92 * @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...
r83 */
Alexandre Leroux
Change signal/slot signature for data source
r92 void addDataSource(DataSourceItem *dataSource) noexcept;
Alexandre Leroux
Implements method to add a data source in the widget...
r83
Alexandre Leroux
Creates the data source widget...
r82 private:
Alexandre Leroux
(Minor) Extracts ui of DataSourceWidget
r109 Ui::DataSourceWidget *ui;
Alexandre Leroux
Handles right clicking on the tree of the data sources...
r143
private slots:
Alexandre Leroux
Adds line edit as a search box above data source tree
r475 /// Slot called when the filtering text has changed
void filterChanged(const QString &text) noexcept;
Alexandre Leroux
Handles right clicking on the tree of the data sources...
r143 /// 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...
r82 };
#endif // SCIQLOP_DATASOURCEWIDGET_H