mirror of https://github.com/qTox/qTox.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
1.3 KiB
64 lines
1.3 KiB
#ifndef SETTINGSDIALOG_H |
|
#define SETTINGSDIALOG_H |
|
|
|
#include <QWidget> |
|
#include <QDialog> |
|
|
|
class Widget; |
|
class SelfCamView; |
|
class Camera; |
|
class GeneralPage; |
|
class IdentityPage; |
|
class PrivacyPage; |
|
class AVPage; |
|
|
|
class QListWidget; |
|
class QListWidgetItem; |
|
class QStackedWidget; |
|
class QPushButton; |
|
class QCheckBox; |
|
class QLineEdit; |
|
|
|
// ======================================= |
|
// settings dialog |
|
//======================================== |
|
class SettingsDialog : public QDialog |
|
{ |
|
Q_OBJECT |
|
public: |
|
explicit SettingsDialog(Widget *parent); |
|
|
|
void readConfig(); |
|
void writeConfig(); |
|
Widget* getWidget(); |
|
void closeEvent(QCloseEvent *); |
|
|
|
public slots: |
|
void changePage(QListWidgetItem *current, QListWidgetItem *previous); |
|
void okPressed(); |
|
void cancelPressed(); |
|
void applyPressed(); |
|
|
|
private: |
|
void createPages(); |
|
void createButtons(); |
|
void createConnections(); |
|
void createLayout(); |
|
|
|
Widget* widget; |
|
|
|
// pages |
|
GeneralPage* generalPage; |
|
IdentityPage* identityPage; |
|
PrivacyPage* privacyPage; |
|
AVPage* avPage; |
|
QListWidget* contentsWidget; |
|
QStackedWidget* pagesWidget; |
|
|
|
// buttons |
|
QPushButton* okButton; |
|
QPushButton* cancelButton; |
|
QPushButton* applyButton; |
|
}; |
|
|
|
#endif // SETTINGSDIALOG_H
|
|
|