Update UI

This commit is contained in:
2026-08-20 13:27:31 +02:00
parent ecbd8bf8a9
commit cb41ac2aa2
40 changed files with 773 additions and 1436 deletions
+3 -21
View File
@@ -22,41 +22,23 @@ class UI_stacked_widget : public UI_item
* @param current_tab The currently selected tab
* @param parent The parent QObject
*/
UI_stacked_widget(size_t tab_count, size_t current_tab, QObject *parent = nullptr);
UI_stacked_widget(qsizetype tab_count, qsizetype current_tab, QObject *parent = nullptr);
/**
* @brief Set the selected tab by index
*
* @param selected The index of the tab to select
*/
void set_selected(size_t selected) override;
void set_selected(qsizetype selected) override;
/**
* @brief Get the index of the selected tab
*
* @return size_t The index of the selected tab
*/
size_t selected() const;
qsizetype selected() const;
/**
* @brief Advance to the next tab
*
*/
void advance_tab();
/**
* @brief Deserialize the stacked widget from JSON
*
* @param j The JSON object
*/
void from_json(const json &j) override;
/**
* @brief Serialize the stacked widget to JSON
*
* @param id The id of the stacked widget
* @return json The JSON representation of the stacked widget
*/
json to_json(size_t id) const override;
private:
size_t m_tab_count;
size_t m_current_tab;
};