OGS
ProcessView.h
Go to the documentation of this file.
1
14#pragma once
15
16#include <QContextMenuEvent>
17#include <QTreeView>
18
20
21class ConditionModel;
22
28class ProcessView final : public QTreeView
29{
30 Q_OBJECT
31
32public:
34 explicit ProcessView(QWidget* parent = nullptr);
35
37 void updateView();
38
39protected slots:
41 void selectionChanged(const QItemSelection& selected,
42 const QItemSelection& deselected) override;
43
44private:
47 void contextMenuEvent(QContextMenuEvent* e) override;
48 bool isProcessVarItem(const QModelIndex& idx) const;
49 bool isConditionItem(const QModelIndex& idx) const;
50
51private slots:
52 void on_Clicked(QModelIndex idx);
53 // void editCondition();
54 void removeCondition();
55 void removeProcessVar();
56 // void replaceCondition(std::vector<FEMCondition*> conditions);
57 // void saveConditions();
58
59signals:
60 void itemSelectionChanged(QItemSelection const& selected,
61 QItemSelection const& deselected);
62 void conditionRemoved(QString const&, QString const&);
63 void processVarRemoved(QString const&);
64 // void saveConditionsRequested();
68};
Base class for boundary conditions, initial conditions and source terms.
A view for FEM-Conditions (Initial- & Boundary Conditions / Source Terms) with a number of additional...
Definition ProcessView.h:29
void conditionSelected(DataHolderLib::FemCondition *cond)
void processVarRemoved(QString const &)
void on_Clicked(QModelIndex idx)
bool isProcessVarItem(const QModelIndex &idx) const
void conditionRemoved(QString const &, QString const &)
bool isConditionItem(const QModelIndex &idx) const
void updateView()
Update the view to visualise changes made to the underlying data.
void itemSelectionChanged(QItemSelection const &selected, QItemSelection const &deselected)
ProcessView(QWidget *parent=nullptr)
Constructor.
void removeProcessVar()
void processVarSelected(DataHolderLib::FemCondition *cond)
void contextMenuEvent(QContextMenuEvent *e) override
void removeCondition()
void clearConditionView()
void selectionChanged(const QItemSelection &selected, const QItemSelection &deselected) override
Instructions if the selection of items in the view has changed.