#pragma once #include "widgets/BaseWidget.hpp" #include #include #include namespace chatterino { class SettingsPage; class SettingsDialog; class SettingsDialogTab : public BaseWidget { Q_OBJECT public: SettingsDialogTab(SettingsDialog *dialog, settingspages::SettingsPage *page, QString imageFileName); void setSelected(bool selected); settingspages::SettingsPage *getSettingsPage(); signals: void selectedChanged(bool); private: void paintEvent(QPaintEvent *); void mousePressEvent(QMouseEvent *event); struct { QString labelText; QIcon icon; } ui; // Parent settings dialog SettingsDialog *dialog; settingspages::SettingsPage *page; bool selected = false; }; } // namespace chatterino