Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
InformationSelectDialog.h
Go to the documentation of this file.
1#pragma once
2#include <QDialog>
3#include <QSettings>
4#include <QShortcut>
5#include <QSortFilterProxyModel>
7#include <gii/qt/Namespace.h>
8
9namespace sf
10{
11
13class ConfigStore;
14
15namespace Ui
16{
17class InformationSelectDialog;
18}
19
23class _GII_CLASS InformationSelectDialog final : public QDialog
24{
25 public:
29 explicit InformationSelectDialog(QWidget* parent = nullptr);
30
37 InformationTypes::IdVector execute(gii::SelectionMode mode = gii::Single, gii::TypeId idType = gii::Variable);
38
44
45 private:
47 Ui::InformationSelectDialog* ui;
49 void storeState(bool rd);
51 void childrenExpandCollapse(bool expand, const QModelIndex& index = {});
53 void applyFilter(const QString& filter);
55 QSortFilterProxyModel* _proxyModel;
57 InformationItemModel* _itemModel{nullptr};
59 gii::SelectionMode _mode{gii::Single};
61 gii::IdType _selectedId{0};
63 QString _lastIndex;
64};
65
66}// namespace sf
Item model for viewing Variables in a tree view.
Definition InformationItemModel.h:15
Dialog for selecting single or multiple variable or result-data information id's.
Definition InformationSelectDialog.h:24
InformationSelectDialog(QWidget *parent=nullptr)
Default Qt constructor.
InformationTypes::IdVector getSelectedIds() const
Get the selected id's after execution.
InformationTypes::IdVector execute(gii::SelectionMode mode=gii::Single, gii::TypeId idType=gii::Variable)
Executes the dialog in the required mode.
#define _GII_CLASS
Definition gii/global.h:38
Definition ApplicationPropertyPage.h:7
TypeId
Types of id's.
Definition gii/qt/Namespace.h:22
SelectionMode
Mode of item selection.
Definition gii/qt/Namespace.h:35
Definition Application.h:10