36 void selectLink(
const QString& parent,
const QString& destCluster);
39 void onScaleActivated(
int index);
40 void onAdvancedToggled(
bool on);
41 void onAdvModeChanged();
42 void onAdvInterpreterChanged();
45 void onVoteComboChanged(
int row);
46 void onVoteValueChanged(
int row,
int col);
48 void onManagePresets();
49 void onImportPresets();
50 void rebuildScaleMenu();
53 anpcpp::RatingsPrioritizer* activeRatings();
54 void setEnabledUi(
bool on);
56 void loadAdvancedFromActive();
57 void commitAdvancedIfNeeded();
58 void applyPreset(
const RatingPreset& preset);
59 void setScaleDisplay(
const QString& name,
const QString& presetId);
60 void showCustomScaleInCombo();
61 [[nodiscard]] RatingPreset draftPresetFromAdvanced()
const;
62 [[nodiscard]] std::vector<anpcpp::RatingCategory> readCategoryTable()
const;
63 [[nodiscard]] anpcpp::ScoreInterpreter readInterpreter()
const;
64 void updateNumericAdvancedVisibility();
67 RatingPresetStore* store_ =
nullptr;
71 QLabel* header_ =
nullptr;
72 QFrame* scaleBlock_ =
nullptr;
73 QComboBox* scaleBox_ =
nullptr;
74 QLabel* modeHint_ =
nullptr;
75 QToolButton* advancedBtn_ =
nullptr;
76 QWidget* advancedPanel_ =
nullptr;
78 QComboBox* advModeBox_ =
nullptr;
79 QStackedWidget* advStack_ =
nullptr;
80 QTableWidget* catTable_ =
nullptr;
81 QComboBox* interpreterBox_ =
nullptr;
82 QDoubleSpinBox* constantSpin_ =
nullptr;
83 QLabel* constantLabel_ =
nullptr;
84 QTableWidget* knotTable_ =
nullptr;
85 QLabel* knotLabel_ =
nullptr;
86 QPushButton* addKnotBtn_ =
nullptr;
88 QTableWidget* votesTable_ =
nullptr;
89 QLabel* votesLabel_ =
nullptr;
91 QString currentPresetId_;
92 int scaleBoxGuardIndex_ = 0;
93 bool updating_ =
false;
94 bool applyingScale_ =
false;
95 bool scaleIsCustom_ =
false;
96 bool advancedOpen_ =
false;
Owns the root anpcpp::AnpNetwork, undo stack, file path, and dirty flag.
Definition document.hpp:71