2013-07-04 21:59:40 +04:00
|
|
|
/*
|
|
|
|
* Copyright (C) by Daniel Molkentin <danimo@owncloud.com>
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
2016-10-25 12:00:07 +03:00
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
2013-07-04 21:59:40 +04:00
|
|
|
*
|
|
|
|
* This program 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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef MIRALL_GENERALSETTINGS_H
|
|
|
|
#define MIRALL_GENERALSETTINGS_H
|
|
|
|
|
|
|
|
#include <QWidget>
|
2015-03-27 13:46:03 +03:00
|
|
|
#include <QPointer>
|
2013-07-04 21:59:40 +04:00
|
|
|
|
2014-11-10 00:34:07 +03:00
|
|
|
namespace OCC {
|
2015-03-27 13:46:03 +03:00
|
|
|
class IgnoreListEditor;
|
2015-10-01 17:57:37 +03:00
|
|
|
class SyncLogDialog;
|
2013-07-04 21:59:40 +04:00
|
|
|
|
|
|
|
namespace Ui {
|
2017-05-17 11:55:42 +03:00
|
|
|
class GeneralSettings;
|
2013-07-04 21:59:40 +04:00
|
|
|
}
|
|
|
|
|
2015-06-29 19:56:09 +03:00
|
|
|
/**
|
|
|
|
* @brief The GeneralSettings class
|
|
|
|
* @ingroup gui
|
2015-06-26 18:07:47 +03:00
|
|
|
*/
|
2013-07-04 21:59:40 +04:00
|
|
|
class GeneralSettings : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2018-11-11 12:56:22 +03:00
|
|
|
explicit GeneralSettings(QWidget *parent = nullptr);
|
2021-08-17 13:39:31 +03:00
|
|
|
~GeneralSettings() override;
|
2018-11-11 13:08:03 +03:00
|
|
|
QSize sizeHint() const override;
|
2013-07-04 21:59:40 +04:00
|
|
|
|
2019-12-09 22:47:42 +03:00
|
|
|
public slots:
|
|
|
|
void slotStyleChanged();
|
|
|
|
|
2013-07-04 21:59:40 +04:00
|
|
|
private slots:
|
|
|
|
void saveMiscSettings();
|
2013-07-05 02:25:19 +04:00
|
|
|
void slotToggleLaunchOnStartup(bool);
|
2018-02-15 22:21:08 +03:00
|
|
|
void slotToggleOptionalServerNotifications(bool);
|
2017-10-19 17:37:51 +03:00
|
|
|
void slotShowInExplorerNavigationPane(bool);
|
2015-03-27 13:46:03 +03:00
|
|
|
void slotIgnoreFilesEditor();
|
2020-10-05 20:45:40 +03:00
|
|
|
void slotCreateDebugArchive();
|
2017-01-26 12:00:19 +03:00
|
|
|
void loadMiscSettings();
|
2018-08-02 09:36:03 +03:00
|
|
|
void slotShowLegalNotice();
|
2020-03-09 03:48:07 +03:00
|
|
|
#if defined(BUILD_UPDATER)
|
2020-03-09 03:17:02 +03:00
|
|
|
void slotUpdateInfo();
|
2018-04-26 12:24:30 +03:00
|
|
|
void slotUpdateChannelChanged(const QString &channel);
|
2020-03-09 03:17:02 +03:00
|
|
|
void slotUpdateCheckNow();
|
|
|
|
void slotToggleAutoUpdateCheck();
|
2020-03-09 03:48:07 +03:00
|
|
|
#endif
|
2013-07-04 21:59:40 +04:00
|
|
|
|
|
|
|
private:
|
2019-12-09 22:47:42 +03:00
|
|
|
void customizeStyle();
|
|
|
|
|
2013-07-04 21:59:40 +04:00
|
|
|
Ui::GeneralSettings *_ui;
|
2015-03-27 13:46:03 +03:00
|
|
|
QPointer<IgnoreListEditor> _ignoreEditor;
|
2020-05-28 17:59:24 +03:00
|
|
|
bool _currentlyLoading = false;
|
2013-07-04 21:59:40 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2014-11-10 00:34:07 +03:00
|
|
|
} // namespace OCC
|
2013-07-04 21:59:40 +04:00
|
|
|
#endif // MIRALL_GENERALSETTINGS_H
|