##// END OF EJS Templates
Implements visit of graph...
Implements visit of graph When a graph is visited, we check if it can contains the variable, and if it's the case, we add an action to the current menu to open the variable in this graph.

File last commit:

r134:7b4ea0e1482b
r198:946a2291304e
Show More
DataSourceWidget.h
38 lines | 943 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;
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