2006-11-21 06:02:05 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* Copyright (C) 2006 by Peter Penz *
|
|
|
|
* peter.penz@gmx.at *
|
|
|
|
* *
|
|
|
|
* 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 2 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, write to the *
|
|
|
|
* Free Software Foundation, Inc., *
|
2006-12-08 21:24:08 +00:00
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
|
2006-11-21 06:02:05 +00:00
|
|
|
***************************************************************************/
|
|
|
|
#ifndef GENERALSETTINGSPAGE_H
|
|
|
|
#define GENERALSETTINGSPAGE_H
|
|
|
|
|
|
|
|
#include <settingspagebase.h>
|
2007-01-07 09:47:05 +00:00
|
|
|
|
|
|
|
class DolphinMainWindow;
|
2006-11-21 06:02:05 +00:00
|
|
|
class QLineEdit;
|
|
|
|
class QRadioButton;
|
|
|
|
class QCheckBox;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Page for the 'General' settings of the Dolphin settings dialog.
|
|
|
|
*
|
2006-11-22 17:13:11 +00:00
|
|
|
* The general settings allow to set the home Url, the default view mode
|
2006-11-21 06:02:05 +00:00
|
|
|
* and the split view mode.
|
|
|
|
*/
|
|
|
|
class GeneralSettingsPage : public SettingsPageBase
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2006-11-29 00:02:19 +00:00
|
|
|
GeneralSettingsPage(DolphinMainWindow* mainWindow, QWidget* parent);
|
2006-11-21 06:02:05 +00:00
|
|
|
virtual ~GeneralSettingsPage();
|
|
|
|
|
|
|
|
/** @see SettingsPageBase::applySettings */
|
|
|
|
virtual void applySettings();
|
|
|
|
|
|
|
|
private slots:
|
2006-11-22 17:13:11 +00:00
|
|
|
void selectHomeUrl();
|
2006-11-21 06:02:05 +00:00
|
|
|
void useCurrentLocation();
|
2007-02-25 20:51:05 +00:00
|
|
|
void useDefaultLocation();
|
2006-11-21 06:02:05 +00:00
|
|
|
|
|
|
|
private:
|
2007-01-07 09:47:05 +00:00
|
|
|
DolphinMainWindow* m_mainWindow;
|
2006-11-22 17:13:11 +00:00
|
|
|
QLineEdit* m_homeUrl;
|
2006-11-21 06:02:05 +00:00
|
|
|
QCheckBox* m_startSplit;
|
|
|
|
QCheckBox* m_startEditable;
|
2007-02-25 20:51:05 +00:00
|
|
|
QCheckBox* m_showDeleteCommand;
|
2006-11-21 06:02:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|