10#include "anpcpp/pairwise.hpp"
46 void onCellChanged(
int row,
int col);
47 void onViewModeChanged();
48 void onQuestionnaireAnswered(
int row,
int col,
double value);
52 void rebuildMatrix(
const anpcpp::PairwiseJudgments* pw);
53 void rebuildQuestionnaire(
const anpcpp::PairwiseJudgments* pw);
54 void updateInfo(
const anpcpp::PairwiseJudgments* pw);
55 [[nodiscard]]
const anpcpp::PairwiseJudgments* currentPairwise()
const;
56 void applyComparison(
const QString& a,
const QString& b,
double value);
57 [[nodiscard]]
bool nodeMode()
const {
return nodeMode_; }
60 bool nodeMode_ =
true;
64 QPushButton* matrixBtn_ =
nullptr;
65 QPushButton* questionnaireBtn_ =
nullptr;
66 QButtonGroup* viewGroup_ =
nullptr;
67 QStackedWidget* views_ =
nullptr;
68 QTableWidget* table_ =
nullptr;
69 QScrollArea* questionnaireScroll_ =
nullptr;
70 QWidget* questionnaireHost_ =
nullptr;
71 QVBoxLayout* questionnaireLay_ =
nullptr;
72 QLabel* info_ =
nullptr;
73 bool updating_ =
false;
Owns the root anpcpp::AnpNetwork, undo stack, file path, and dirty flag.
Definition document.hpp:23
Pairwise judgment editor with Matrix and Questionnaire views.
Definition pairwise_panel.hpp:26
PairwisePanel(Document *doc, QWidget *parent=nullptr)
void selectClusterParent(const QString &name)
Selects a cluster as the comparison parent (w.r.t.
void selectNodeParent(const QString &name)
Selects a node as the comparison parent (w.r.t.
void refresh()
Rebuilds the active view for the current selection.
void selectNodeLink(const QString &parent, const QString &destCluster)
Selects node parent and destination cluster.