##// END OF EJS Templates
Updates format of AMDA json and uses it in Sciqlop...
Updates format of AMDA json and uses it in Sciqlop This new format: - adds a data used to determinate if we expect to retrieve a vector or a scalar (for parameters and components) - duplicates useful data (unit, mission name) directly in parameters and components

File last commit:

r476:becb718e8802
r522:328e3d1c7289
Show More
DataSourceTreeWidgetHelper.h
23 lines | 757 B | text/x-c | CLexer
/ gui / include / DataSource / DataSourceTreeWidgetHelper.h
#ifndef SCIQLOP_DATASOURCETREEWIDGETHELPER_H
#define SCIQLOP_DATASOURCETREEWIDGETHELPER_H
#include <functional>
class DataSourceTreeWidgetItem;
class QTreeWidget;
class DataSourceTreeWidgetHelper {
public:
/// Signature of the function associated to the filtering action
using FilterFunction = std::function<bool(const DataSourceTreeWidgetItem &dataSourceItem)>;
/**
* Filters a tree widget according to a function. If an item is valid according to this
* function, all of its ancestors and children are shown
* @param treeWidget the widget to filter
* @param fun the filter function
*/
static void filter(QTreeWidget &treeWidget, FilterFunction fun) noexcept;
};
#endif // SCIQLOP_DATASOURCETREEWIDGETHELPER_H