2011-03-03 18:29:20 +01:00
|
|
|
/* ============================================================
|
|
|
|
* QupZilla - WebKit based browser
|
2014-01-11 16:11:42 +01:00
|
|
|
* Copyright (C) 2010-2014 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
|
|
|
|
|
|
|
|
#include <QDialog>
|
2012-12-20 14:45:35 +01:00
|
|
|
#include <QPointer>
|
2011-03-02 16:57:41 +01:00
|
|
|
|
2012-02-29 18:33:50 +01:00
|
|
|
#include "qz_namespace.h"
|
|
|
|
|
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
|
|
|
|
2014-02-19 22:12:32 +01:00
|
|
|
class QUPZILLA_EXPORT Preferences : public QDialog
|
2011-03-02 16:57:41 +01:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2014-02-19 22:07:21 +01:00
|
|
|
explicit Preferences(BrowserWindow* window, QWidget* parent = 0);
|
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-03-04 13:59:07 +01:00
|
|
|
void openSslManager();
|
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();
|
2012-01-28 15:37:11 +01:00
|
|
|
void chooseExternalDownloadManager();
|
2012-08-17 20:55:11 +02:00
|
|
|
void openUserAgentManager();
|
2012-12-28 01:17:01 +01:00
|
|
|
void openJsOptions();
|
2011-03-02 16:57:41 +01:00
|
|
|
|
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);
|
2013-03-29 19:22:55 +01:00
|
|
|
void setProxyAutoConfigEnabled(bool state);
|
2012-02-07 18:37:44 +01:00
|
|
|
void useExternalDownManagerChanged(bool state);
|
2012-03-21 15:05:04 +01:00
|
|
|
void useDifferentProxyForHttpsChanged(bool state);
|
2012-04-10 18:29:22 +02:00
|
|
|
void showTabPreviewsChanged(bool state);
|
2013-02-10 14:50:18 +01:00
|
|
|
void changeCachePathClicked();
|
2013-03-29 19:22:55 +01:00
|
|
|
void reloadPacFileClicked();
|
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
|
|
|
void cacheValueChanged(int value);
|
|
|
|
void pageCacheValueChanged(int value);
|
|
|
|
|
2011-04-04 19:29:03 +02:00
|
|
|
void createProfile();
|
|
|
|
void deleteProfile();
|
|
|
|
void startProfileIndexChanged(QString index);
|
|
|
|
|
2012-09-19 10:08:30 +02:00
|
|
|
void setProgressBarColorIcon(QColor col = QColor());
|
|
|
|
void selectCustomProgressBarColor();
|
|
|
|
|
2011-12-16 19:07:36 +01:00
|
|
|
void setNotificationPreviewVisible(bool state);
|
|
|
|
|
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
|
|
|
|
|
|
|
QString m_homepage;
|
|
|
|
QString 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
|