mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
72 lines
2.3 KiB
C++
72 lines
2.3 KiB
C++
/*
|
|
Copyright © 2014-2015 by The qTox Project
|
|
|
|
This file is part of qTox, a Qt-based graphical interface for Tox.
|
|
|
|
qTox is libre software: you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
qTox is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with qTox. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef USERINTERFACEFORM_H
|
|
#define USERINTERFACEFORM_H
|
|
|
|
#include "genericsettings.h"
|
|
#include "src/widget/form/settingswidget.h"
|
|
|
|
namespace Ui {
|
|
class UserInterfaceSettings;
|
|
}
|
|
|
|
class UserInterfaceForm : public GenericForm
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit UserInterfaceForm(SettingsWidget* myParent);
|
|
~UserInterfaceForm();
|
|
virtual QString getFormName() final override {return tr("User Interface");}
|
|
|
|
private slots:
|
|
void on_smileyPackBrowser_currentIndexChanged(int index);
|
|
void on_emoticonSize_editingFinished();
|
|
void on_styleBrowser_currentIndexChanged(QString style);
|
|
void on_timestamp_currentIndexChanged(int index);
|
|
void on_timestamp_editTextChanged(const QString& format);
|
|
void on_dateFormats_currentIndexChanged();
|
|
void on_dateFormats_editTextChanged();
|
|
void on_textStyleComboBox_currentTextChanged();
|
|
void on_useEmoticons_stateChanged();
|
|
void on_showWindow_stateChanged();
|
|
void on_showInFront_stateChanged();
|
|
void on_groupAlwaysNotify_stateChanged();
|
|
void on_cbCompactLayout_stateChanged();
|
|
void on_cbSeparateWindow_stateChanged();
|
|
void on_cbDontGroupWindows_stateChanged();
|
|
void on_cbGroupchatPosition_stateChanged();
|
|
void on_themeColorCBox_currentIndexChanged(int);
|
|
|
|
void on_txtChatFont_currentFontChanged(const QFont& f);
|
|
void on_txtChatFontSize_valueChanged(int arg1);
|
|
|
|
|
|
private:
|
|
void retranslateUi();
|
|
void reloadSmileys();
|
|
|
|
private:
|
|
QList<QLabel*> smileLabels;
|
|
SettingsWidget* parent;
|
|
Ui::UserInterfaceSettings *bodyUI;
|
|
};
|
|
|
|
#endif
|