anpstudio 0.1.0
ANP Studio — Analytic Network Process desktop application
Loading...
Searching...
No Matches
judgment_nav_panel.hpp
Go to the documentation of this file.
1
6#pragma once
7
8#include <QWidget>
9
10class Document;
11class QComboBox;
12class QLabel;
13class QPushButton;
14class QButtonGroup;
15
22class JudgmentNavPanel : public QWidget {
23 Q_OBJECT
24public:
25 explicit JudgmentNavPanel(Document* doc, QWidget* parent = nullptr);
26
27public slots:
28 void refresh();
29
30signals:
32 void nodeJudgmentSelected(const QString& parent,
33 const QString& destCluster,
34 bool ratings);
36 void clusterJudgmentSelected(const QString& parent);
37
38private slots:
39 void onModeChanged();
40 void onWrtChanged();
41 void onOtherChanged();
42 void onSwitchToPairwise();
43 void onSwitchToRatings();
44
45private:
46 void emitCurrent();
47 void rebuildWrtList();
48 void rebuildOtherList();
49 [[nodiscard]] bool nodeMode() const;
50
51 Document* doc_ = nullptr;
52 QButtonGroup* modeGroup_ = nullptr;
53 QPushButton* nodeModeBtn_ = nullptr;
54 QPushButton* clusterModeBtn_ = nullptr;
55 QLabel* wrtLabel_ = nullptr;
56 QComboBox* wrtBox_ = nullptr;
57 QLabel* otherLabel_ = nullptr;
58 QComboBox* otherBox_ = nullptr;
59 QPushButton* toPairwise_ = nullptr;
60 QPushButton* toRatings_ = nullptr;
61 QLabel* coverageLabel_ = nullptr;
62 bool updating_ = false;
63 bool preferRatings_ = false;
64};
Owns the root anpcpp::AnpNetwork, undo stack, file path, and dirty flag.
Definition document.hpp:23
Horizontal judgment selector: Node|Cluster, Wrt, Other Cluster.
Definition judgment_nav_panel.hpp:22
void nodeJudgmentSelected(const QString &parent, const QString &destCluster, bool ratings)
Node parent selected (pairwise or ratings).
void clusterJudgmentSelected(const QString &parent)
Cluster parent selected (pairwise only).