2012-04-02 19:33:05 +02:00
|
|
|
/* ============================================================
|
|
|
|
* QupZilla - WebKit based browser
|
|
|
|
* Copyright (C) 2010-2012 David Rosca <nowrep@gmail.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
|
|
|
|
* 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/>.
|
|
|
|
* ============================================================ */
|
2012-08-10 21:16:43 +02:00
|
|
|
#ifndef QZSETTINGS_H
|
|
|
|
#define QZSETTINGS_H
|
2012-01-24 19:58:20 +01:00
|
|
|
|
2012-02-29 18:33:50 +01:00
|
|
|
#include "qz_namespace.h"
|
2012-08-10 21:16:43 +02:00
|
|
|
#include "settings.h"
|
2012-02-29 18:33:50 +01:00
|
|
|
|
2012-04-13 13:26:32 +02:00
|
|
|
#include <QStringList>
|
|
|
|
|
2012-08-10 21:16:43 +02:00
|
|
|
class QT_QUPZILLA_EXPORT QzSettings
|
2012-01-24 19:58:20 +01:00
|
|
|
{
|
|
|
|
public:
|
2012-08-10 21:16:43 +02:00
|
|
|
QzSettings();
|
2012-01-24 19:58:20 +01:00
|
|
|
|
2012-08-10 21:16:43 +02:00
|
|
|
void loadSettings();
|
|
|
|
void saveSettings();
|
2012-01-24 19:58:20 +01:00
|
|
|
|
2012-08-10 21:16:43 +02:00
|
|
|
// AddressBar
|
|
|
|
bool selectAllOnDoubleClick;
|
|
|
|
bool selectAllOnClick;
|
|
|
|
bool addCountryWithAlt;
|
2012-08-24 20:53:53 +02:00
|
|
|
bool showLoadingProgress;
|
2012-08-10 21:16:43 +02:00
|
|
|
int showLocationSuggestions;
|
2012-12-04 16:16:45 +01:00
|
|
|
bool showSwitchTab;
|
2012-04-13 13:26:32 +02:00
|
|
|
|
2012-08-10 21:16:43 +02:00
|
|
|
// SearchEngines
|
|
|
|
bool showSearchSuggestions;
|
2012-09-26 15:06:05 +02:00
|
|
|
bool searchOnEngineChange;
|
2012-09-27 11:59:09 +02:00
|
|
|
bool searchWithDefaultEngine;
|
2012-08-10 21:16:43 +02:00
|
|
|
|
|
|
|
// Web-Browser-Settings
|
|
|
|
int defaultZoom;
|
|
|
|
bool loadTabsOnActivation;
|
|
|
|
|
|
|
|
QStringList autoOpenProtocols;
|
|
|
|
QStringList blockedProtocols;
|
|
|
|
|
|
|
|
// Browser-Tabs-Settings
|
|
|
|
Qz::NewTabPositionFlag newTabPosition;
|
2012-01-24 19:58:20 +01:00
|
|
|
};
|
|
|
|
|
2012-08-10 21:16:43 +02:00
|
|
|
#define qzSettings Settings::staticSettings()
|
|
|
|
|
|
|
|
#endif // QZSETTINGS_H
|