qTox  Version: nightly | Commit: bc751c8e1cac455f9690654fcfe0f560d2d7dfdd
userinterfaceform.h
Go to the documentation of this file.
1 /*
2  Copyright © 2014-2019 by The qTox Project Contributors
3 
4  This file is part of qTox, a Qt-based graphical interface for Tox.
5 
6  qTox is libre software: you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  qTox is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with qTox. If not, see <http://www.gnu.org/licenses/>.
18 */
19 
20 #pragma once
21 
22 #include "genericsettings.h"
24 
25 #include <memory>
26 
27 namespace Ui {
28 class UserInterfaceSettings;
29 }
30 
32 {
33  Q_OBJECT
34 public:
35  explicit UserInterfaceForm(SettingsWidget* myParent);
37  QString getFormName() final
38  {
39  return tr("User Interface");
40  }
41 
42 private slots:
45  void on_styleBrowser_currentIndexChanged(QString style);
46  void on_timestamp_editTextChanged(const QString& format);
47  void on_dateFormats_editTextChanged(const QString& format);
63  void on_txtChatFont_currentFontChanged(const QFont& f);
64  void on_txtChatFontSize_valueChanged(int arg1);
65  void on_useNameColors_stateChanged(int value);
66 
67 private:
68  void retranslateUi();
69  void reloadSmileys();
70 
71 private:
75  Ui::UserInterfaceSettings* bodyUI;
76  const int MAX_FORMAT_LENGTH = 128;
77 };
UserInterfaceForm::on_busySound_stateChanged
void on_busySound_stateChanged()
Definition: userinterfaceform.cpp:295
UserInterfaceForm::on_cbGroupchatPosition_stateChanged
void on_cbGroupchatPosition_stateChanged()
Definition: userinterfaceform.cpp:328
UserInterfaceForm::on_themeColorCBox_currentIndexChanged
void on_themeColorCBox_currentIndexChanged(int)
Definition: userinterfaceform.cpp:338
UserInterfaceForm::on_cbCompactLayout_stateChanged
void on_cbCompactLayout_stateChanged()
Definition: userinterfaceform.cpp:311
UserInterfaceForm::on_smileyPackBrowser_currentIndexChanged
void on_smileyPackBrowser_currentIndexChanged(int index)
Definition: userinterfaceform.cpp:228
UserInterfaceForm::on_notifyHide_stateChanged
void on_notifyHide_stateChanged(int)
Definition: userinterfaceform.cpp:396
UserInterfaceForm::getFormName
QString getFormName() final
Definition: userinterfaceform.h:37
UserInterfaceForm::smileLabels
QList< QLabel * > smileLabels
Definition: userinterfaceform.h:72
UserInterfaceForm::on_notifySound_stateChanged
void on_notifySound_stateChanged()
Definition: userinterfaceform.cpp:282
UserInterfaceForm::on_cbDontGroupWindows_stateChanged
void on_cbDontGroupWindows_stateChanged()
Definition: userinterfaceform.cpp:323
UserInterfaceForm::on_txtChatFont_currentFontChanged
void on_txtChatFont_currentFontChanged(const QFont &f)
Definition: userinterfaceform.cpp:368
UserInterfaceForm::UserInterfaceForm
UserInterfaceForm(SettingsWidget *myParent)
Constructor of UserInterfaceForm.
Definition: userinterfaceform.cpp:57
UserInterfaceForm
Definition: userinterfaceform.h:31
QList< QLabel * >
UserInterfaceForm::emoticonsIcons
QList< std::shared_ptr< QIcon > > emoticonsIcons
Definition: userinterfaceform.h:73
UserInterfaceForm::bodyUI
Ui::UserInterfaceSettings * bodyUI
Definition: userinterfaceform.h:75
SettingsWidget
Definition: settingswidget.h:42
UserInterfaceForm::on_cbShowIdenticons_stateChanged
void on_cbShowIdenticons_stateChanged()
Definition: userinterfaceform.cpp:333
genericsettings.h
UserInterfaceForm::on_styleBrowser_currentIndexChanged
void on_styleBrowser_currentIndexChanged(QString style)
Definition: userinterfaceform.cpp:179
Ui
Definition: filetransferwidget.h:30
UserInterfaceForm::on_emoticonSize_editingFinished
void on_emoticonSize_editingFinished()
Definition: userinterfaceform.cpp:190
UserInterfaceForm::on_textStyleComboBox_currentTextChanged
void on_textStyleComboBox_currentTextChanged()
Definition: userinterfaceform.cpp:221
UserInterfaceForm::on_cbSeparateWindow_stateChanged
void on_cbSeparateWindow_stateChanged()
Definition: userinterfaceform.cpp:316
UserInterfaceForm::retranslateUi
void retranslateUi()
Retranslate all elements in the form.
Definition: userinterfaceform.cpp:349
UserInterfaceForm::reloadSmileys
void reloadSmileys()
Reload smileys and size information.
Definition: userinterfaceform.cpp:238
UserInterfaceForm::on_txtChatFontSize_valueChanged
void on_txtChatFontSize_valueChanged(int arg1)
Definition: userinterfaceform.cpp:379
UserInterfaceForm::on_desktopNotify_stateChanged
void on_desktopNotify_stateChanged()
Definition: userinterfaceform.cpp:289
UserInterfaceForm::on_dateFormats_editTextChanged
void on_dateFormats_editTextChanged(const QString &format)
Definition: userinterfaceform.cpp:205
UserInterfaceForm::on_groupOnlyNotfiyWhenMentioned_stateChanged
void on_groupOnlyNotfiyWhenMentioned_stateChanged()
Definition: userinterfaceform.cpp:305
UserInterfaceForm::on_timestamp_editTextChanged
void on_timestamp_editTextChanged(const QString &format)
Definition: userinterfaceform.cpp:195
settingswidget.h
UserInterfaceForm::on_useEmoticons_stateChanged
void on_useEmoticons_stateChanged()
Definition: userinterfaceform.cpp:215
UserInterfaceForm::MAX_FORMAT_LENGTH
const int MAX_FORMAT_LENGTH
Definition: userinterfaceform.h:76
UserInterfaceForm::on_showWindow_stateChanged
void on_showWindow_stateChanged()
Definition: userinterfaceform.cpp:300
UserInterfaceForm::on_notify_stateChanged
void on_notify_stateChanged()
Definition: userinterfaceform.cpp:272
GenericForm
Definition: genericsettings.h:24
UserInterfaceForm::~UserInterfaceForm
~UserInterfaceForm()
Definition: userinterfaceform.cpp:173
UserInterfaceForm::parent
SettingsWidget * parent
Definition: userinterfaceform.h:74
UserInterfaceForm::on_useNameColors_stateChanged
void on_useNameColors_stateChanged(int value)
Definition: userinterfaceform.cpp:391