// Copyright 2005-2020 The Mumble Developers. All rights reserved. // Use of this source code is governed by a BSD-style license // that can be found in the LICENSE file at the root of the // Mumble source tree or at . #ifndef MUMBLE_MUMBLE_CONFIGDIALOG_H_ #define MUMBLE_MUMBLE_CONFIGDIALOG_H_ #include "ConfigWidget.h" #include "Settings.h" #include "ui_ConfigDialog.h" class ConfigDialog : public QDialog, public Ui::ConfigDialog { private: Q_OBJECT Q_DISABLE_COPY(ConfigDialog) protected: QHash qhPages; QMap qmWidgets; QMap qmIconWidgets; void updateListView(); void addPage(ConfigWidget *aw, unsigned int idx); Settings s; public: ConfigDialog(QWidget *p = NULL); ~ConfigDialog() Q_DECL_OVERRIDE; public slots: void on_pageButtonBox_clicked(QAbstractButton *); void on_dialogButtonBox_clicked(QAbstractButton *); void on_qlwIcons_currentItemChanged(QListWidgetItem *current, QListWidgetItem *previous); void apply(); void accept() Q_DECL_OVERRIDE; }; #endif