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 {
|
|
|
|
class GeneralSettings;
|
|
|
|
}
|
|
|
|
|
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:
|
|
|
|
explicit GeneralSettings(QWidget *parent = 0);
|
|
|
|
~GeneralSettings();
|
2015-07-20 19:15:45 +03:00
|
|
|
QSize sizeHint() const;
|
2013-07-04 21:59:40 +04:00
|
|
|
|
|
|
|
private slots:
|
|
|
|
void saveMiscSettings();
|
2013-07-05 02:25:19 +04:00
|
|
|
void slotToggleLaunchOnStartup(bool);
|
2013-07-05 03:01:23 +04:00
|
|
|
void slotToggleOptionalDesktopNotifications(bool);
|
2014-01-15 14:08:42 +04:00
|
|
|
void slotUpdateInfo();
|
2015-03-27 13:46:03 +03:00
|
|
|
void slotIgnoreFilesEditor();
|
2017-01-26 12:00:19 +03:00
|
|
|
void loadMiscSettings();
|
2013-07-04 21:59:40 +04:00
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
Ui::GeneralSettings *_ui;
|
2015-03-27 13:46:03 +03:00
|
|
|
QPointer<IgnoreListEditor> _ignoreEditor;
|
2015-10-01 17:57:37 +03:00
|
|
|
QPointer<SyncLogDialog> _syncLogDialog;
|
2017-02-08 13:14:31 +03:00
|
|
|
bool _currentlyLoading;
|
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
|