gui
Loading...
Searching...
No Matches
physicsView.h
Go to the documentation of this file.
1#pragma once
2
3#include <gemc/goptions/goptions.h>
4#include <QWidget>
5#include <map>
6#include <memory>
7
8class QComboBox;
9class QDoubleSpinBox;
10class QLabel;
11class QTabWidget;
12class QTreeWidget;
13
15class PhysicsView : public QWidget {
16 Q_OBJECT
17public:
18 explicit PhysicsView(std::shared_ptr<GOptions> options, QWidget* parent = nullptr);
19 bool applyPending();
20 void refreshProcesses();
21
22private:
23 void addConstructor(const QString& name = {});
24 QString selection() const;
25 void markPending();
26
27 std::shared_ptr<GOptions> options;
28 QComboBox* reference = nullptr;
29 QDoubleSpinBox* cut = nullptr;
30 QTabWidget* additions = nullptr;
31 QTreeWidget* processTree = nullptr;
32 QLabel* status = nullptr;
33 std::map<std::string, bool> pendingActivation;
34 bool pending = false;
35 bool refreshing = false;
36};
void refreshProcesses()
bool applyPending()
PhysicsView(std::shared_ptr< GOptions > options, QWidget *parent=nullptr)