2014-09-15 18:45:59 +08:00
|
|
|
/*
|
2015-06-06 09:40:08 +08:00
|
|
|
Copyright © 2014-2015 by The qTox Project
|
|
|
|
|
2014-09-15 18:45:59 +08:00
|
|
|
This file is part of qTox, a Qt-based graphical interface for Tox.
|
|
|
|
|
2015-06-06 09:40:08 +08:00
|
|
|
qTox is libre software: you can redistribute it and/or modify
|
2014-09-15 18:45:59 +08:00
|
|
|
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.
|
2015-06-06 09:40:08 +08:00
|
|
|
|
|
|
|
qTox is distributed in the hope that it will be useful,
|
2014-09-15 18:45:59 +08:00
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2015-06-06 09:40:08 +08:00
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
2014-09-15 18:45:59 +08:00
|
|
|
|
2015-06-06 09:40:08 +08:00
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with qTox. If not, see <http://www.gnu.org/licenses/>.
|
2014-09-15 18:45:59 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef GENERALFORM_H
|
|
|
|
#define GENERALFORM_H
|
|
|
|
|
|
|
|
#include "genericsettings.h"
|
|
|
|
|
2014-10-06 00:17:01 +08:00
|
|
|
namespace Ui {
|
|
|
|
class GeneralSettings;
|
|
|
|
}
|
|
|
|
|
2015-05-14 10:46:28 +08:00
|
|
|
class SettingsWidget;
|
|
|
|
|
2015-06-26 21:12:45 +08:00
|
|
|
class GeneralForm : public GenericForm
|
2014-09-15 18:45:59 +08:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2014-10-17 00:17:25 +08:00
|
|
|
GeneralForm(SettingsWidget *parent);
|
2014-09-15 18:45:59 +08:00
|
|
|
~GeneralForm();
|
2015-06-09 02:08:24 +08:00
|
|
|
virtual QString getFormName() final override {return tr("General");}
|
2014-09-15 18:45:59 +08:00
|
|
|
|
2014-09-30 17:44:27 +08:00
|
|
|
private slots:
|
|
|
|
void onEnableIPv6Updated();
|
2014-10-18 07:06:30 +08:00
|
|
|
void onTranslationUpdated();
|
2014-12-17 21:44:23 +08:00
|
|
|
void onAutorunUpdated();
|
2014-11-14 04:33:11 +08:00
|
|
|
void onSetShowSystemTray();
|
2014-10-08 22:17:05 +08:00
|
|
|
void onSetAutostartInTray();
|
2014-11-05 23:20:32 +08:00
|
|
|
void onSetCloseToTray();
|
2014-12-12 03:34:12 +08:00
|
|
|
void onSetLightTrayIcon();
|
2014-09-30 17:44:27 +08:00
|
|
|
void onSmileyBrowserIndexChanged(int index);
|
2014-10-06 04:49:44 +08:00
|
|
|
void onUDPUpdated();
|
|
|
|
void onProxyAddrEdited();
|
2014-10-07 10:09:15 +08:00
|
|
|
void onProxyPortEdited(int port);
|
|
|
|
void onUseProxyUpdated();
|
2014-11-05 23:20:32 +08:00
|
|
|
void onEmoticonSizeChanged();
|
2015-06-06 09:40:08 +08:00
|
|
|
void onStyleSelected(QString style);
|
2014-11-05 23:20:32 +08:00
|
|
|
void onTimestampSelected(int index);
|
2015-03-15 04:15:56 +08:00
|
|
|
void onDateFormatSelected(int index);
|
2014-10-11 07:18:32 +08:00
|
|
|
void onSetStatusChange();
|
2014-10-17 01:49:50 +08:00
|
|
|
void onAutoAwayChanged();
|
2014-11-05 23:20:32 +08:00
|
|
|
void onUseEmoticonsChange();
|
2014-10-20 19:50:12 +08:00
|
|
|
void onSetMinimizeToTray();
|
2014-10-25 01:20:03 +08:00
|
|
|
void onReconnectClicked();
|
2014-11-05 23:20:32 +08:00
|
|
|
void onAutoAcceptFileChange();
|
|
|
|
void onAutoSaveDirChange();
|
2014-11-10 07:31:29 +08:00
|
|
|
void onCheckUpdateChanged();
|
2015-01-21 19:10:41 +08:00
|
|
|
void onShowWindowChanged();
|
2014-11-10 08:23:41 +08:00
|
|
|
void onSetShowInFront();
|
2015-03-22 08:57:28 +08:00
|
|
|
void onSetNotifySound();
|
2015-01-21 19:10:41 +08:00
|
|
|
void onSetGroupAlwaysNotify();
|
2014-11-10 21:06:35 +08:00
|
|
|
void onFauxOfflineMessaging();
|
2014-12-11 20:02:45 +08:00
|
|
|
void onCompactLayout();
|
2015-06-17 02:25:19 +08:00
|
|
|
void onSeparateWindowChanged();
|
2015-06-19 22:58:48 +08:00
|
|
|
void onDontGroupWindowsChanged();
|
2015-03-12 08:41:18 +08:00
|
|
|
void onGroupchatPositionChanged();
|
2014-11-16 04:30:20 +08:00
|
|
|
void onThemeColorChanged(int);
|
2014-09-30 17:44:27 +08:00
|
|
|
|
2015-06-06 03:37:01 +08:00
|
|
|
private:
|
|
|
|
void retranslateUi();
|
|
|
|
|
2014-09-15 18:45:59 +08:00
|
|
|
private:
|
2014-10-06 00:17:01 +08:00
|
|
|
Ui::GeneralSettings *bodyUI;
|
2014-10-08 23:10:57 +08:00
|
|
|
void reloadSmiles();
|
2014-10-17 00:17:25 +08:00
|
|
|
SettingsWidget *parent;
|
2015-03-15 01:01:59 +08:00
|
|
|
|
|
|
|
protected:
|
2015-09-14 05:20:54 +08:00
|
|
|
bool eventFilter(QObject *o, QEvent *e) override;
|
2014-09-15 18:45:59 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|