2011-03-03 18:29:20 +01:00
|
|
|
/* ============================================================
|
2017-01-21 18:38:19 +01:00
|
|
|
* QupZilla - Qt web browser
|
|
|
|
* Copyright (C) 2010-2017 David Rosca <nowrep@gmail.com>
|
2011-03-03 18:29:20 +01:00
|
|
|
*
|
|
|
|
* 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
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
* ============================================================ */
|
2011-03-02 16:57:41 +01:00
|
|
|
#ifndef PREFERENCES_H
|
|
|
|
#define PREFERENCES_H
|
|
|
|
|
2014-11-08 11:54:46 +01:00
|
|
|
#include <QUrl>
|
2015-09-25 22:31:04 +02:00
|
|
|
#include <QWidget>
|
2012-12-20 14:45:35 +01:00
|
|
|
#include <QPointer>
|
2011-03-02 16:57:41 +01:00
|
|
|
|
2014-02-26 20:03:20 +01:00
|
|
|
#include "qzcommon.h"
|
2012-02-29 18:33:50 +01:00
|
|
|
|
2011-11-06 17:01:23 +01:00
|
|
|
namespace Ui
|
|
|
|
{
|
|
|
|
class Preferences;
|
2011-03-02 16:57:41 +01:00
|
|
|
}
|
|
|
|
|
2012-02-29 18:33:50 +01:00
|
|
|
class QAbstractButton;
|
|
|
|
class QListWidgetItem;
|
|
|
|
|
2011-03-02 16:57:41 +01:00
|
|
|
class AutoFillManager;
|
2014-02-19 22:07:21 +01:00
|
|
|
class BrowserWindow;
|
2012-07-06 14:37:49 +02:00
|
|
|
class PluginsManager;
|
2011-04-27 09:49:41 +02:00
|
|
|
class DesktopNotification;
|
2011-09-11 19:15:06 +02:00
|
|
|
class ThemeManager;
|
2012-02-29 18:33:50 +01:00
|
|
|
|
2015-09-25 22:31:04 +02:00
|
|
|
class QUPZILLA_EXPORT Preferences : public QWidget
|
2011-03-02 16:57:41 +01:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2015-09-25 22:31:04 +02:00
|
|
|
explicit Preferences(BrowserWindow* window);
|
2011-03-02 16:57:41 +01:00
|
|
|
~Preferences();
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void saveSettings();
|
2012-03-29 20:02:21 +02:00
|
|
|
|
2011-03-02 16:57:41 +01:00
|
|
|
void buttonClicked(QAbstractButton* button);
|
|
|
|
void showStackedPage(QListWidgetItem* item);
|
2012-02-07 18:37:44 +01:00
|
|
|
|
2011-03-02 16:57:41 +01:00
|
|
|
void chooseDownPath();
|
|
|
|
void showCookieManager();
|
2013-01-28 18:20:36 +01:00
|
|
|
void showHtml5Permissions();
|
2011-03-02 16:57:41 +01:00
|
|
|
void useActualHomepage();
|
|
|
|
void useActualNewTab();
|
2011-10-18 17:39:51 +02:00
|
|
|
void showAcceptLanguage();
|
2011-05-10 21:25:31 +02:00
|
|
|
void chooseUserStyleClicked();
|
2012-01-27 23:01:17 +01:00
|
|
|
void deleteHtml5storage();
|
2015-09-30 18:43:58 +02:00
|
|
|
void chooseExternalDownloadManager();
|
2012-08-17 20:55:11 +02:00
|
|
|
void openUserAgentManager();
|
2012-12-28 01:17:01 +01:00
|
|
|
void openJsOptions();
|
2014-07-08 19:17:42 +02:00
|
|
|
void openSearchEnginesManager();
|
2011-03-02 16:57:41 +01:00
|
|
|
|
2016-01-14 03:29:47 +01:00
|
|
|
void searchFromAddressBarChanged(bool state);
|
2012-02-07 18:37:44 +01:00
|
|
|
void saveHistoryChanged(bool state);
|
|
|
|
void allowHtml5storageChanged(bool state);
|
2011-03-02 16:57:41 +01:00
|
|
|
void downLocChanged(bool state);
|
|
|
|
void allowCacheChanged(bool state);
|
|
|
|
void showPassManager(bool state);
|
2011-04-26 19:47:12 +02:00
|
|
|
void setManualProxyConfigurationEnabled(bool state);
|
2015-09-30 18:43:58 +02:00
|
|
|
void useExternalDownManagerChanged(bool state);
|
2013-02-10 14:50:18 +01:00
|
|
|
void changeCachePathClicked();
|
2012-02-07 18:37:44 +01:00
|
|
|
|
2012-03-29 20:02:21 +02:00
|
|
|
void newTabChanged(int value);
|
|
|
|
void afterLaunchChanged(int value);
|
2011-03-02 16:57:41 +01:00
|
|
|
|
2011-04-04 19:29:03 +02:00
|
|
|
void createProfile();
|
|
|
|
void deleteProfile();
|
2014-03-09 21:51:42 +01:00
|
|
|
void startProfileIndexChanged(int index);
|
2011-04-04 19:29:03 +02:00
|
|
|
|
2012-09-19 10:08:30 +02:00
|
|
|
void setProgressBarColorIcon(QColor col = QColor());
|
|
|
|
void selectCustomProgressBarColor();
|
|
|
|
|
2017-01-21 18:38:19 +01:00
|
|
|
void showNotificationPreview();
|
2011-12-16 19:07:36 +01:00
|
|
|
|
2012-12-01 07:50:31 +01:00
|
|
|
void makeQupZillaDefault();
|
|
|
|
|
2011-03-02 16:57:41 +01:00
|
|
|
private:
|
2012-08-17 20:55:11 +02:00
|
|
|
void closeEvent(QCloseEvent* event);
|
|
|
|
|
2011-03-17 17:03:04 +01:00
|
|
|
Ui::Preferences* ui;
|
2014-02-19 22:07:21 +01:00
|
|
|
BrowserWindow* m_window;
|
2011-03-02 16:57:41 +01:00
|
|
|
AutoFillManager* m_autoFillManager;
|
2012-07-06 14:37:49 +02:00
|
|
|
PluginsManager* m_pluginsList;
|
2011-09-11 19:15:06 +02:00
|
|
|
ThemeManager* m_themesManager;
|
2012-12-20 14:45:35 +01:00
|
|
|
QPointer<DesktopNotification> m_notification;
|
2011-03-02 16:57:41 +01:00
|
|
|
|
2014-11-08 11:54:46 +01:00
|
|
|
QUrl m_homepage;
|
|
|
|
QUrl m_newTabUrl;
|
2011-04-04 19:29:03 +02:00
|
|
|
QString m_actProfileName;
|
2011-03-02 16:57:41 +01:00
|
|
|
int m_afterLaunch;
|
|
|
|
int m_onNewTab;
|
2011-04-27 09:49:41 +02:00
|
|
|
QPoint m_notifPosition;
|
2013-07-14 22:29:47 +02:00
|
|
|
bool m_autoFillEnabled;
|
2011-03-02 16:57:41 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // PREFERENCES_H
|