From 642110309ace0ec0da270615464d7d04944d5dcf Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Wed, 20 Dec 2006 19:10:39 +0000 Subject: Let the user chose whether view properties should be remembered for each directory or whether they should be valid globally. Per default the view properties are remembered for each directory. For testing purposes the MIME type information is shown per default in the icons mode (thanks to Fredrik for the cool implementation in KFileItemDelegate!). svn path=/trunk/playground/utils/dolphin/; revision=615232 --- src/generalviewsettingspage.h | 54 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 src/generalviewsettingspage.h (limited to 'src/generalviewsettingspage.h') diff --git a/src/generalviewsettingspage.h b/src/generalviewsettingspage.h new file mode 100644 index 000000000..8f6f7ada6 --- /dev/null +++ b/src/generalviewsettingspage.h @@ -0,0 +1,54 @@ +/*************************************************************************** + * 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., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * + ***************************************************************************/ + +#ifndef GENERALVIEWSETTINGSPAGE_H +#define GENERALVIEWSETTINGSPAGE_H + +#include + +class QRadioButton; + +/** + * @brief Represents the page from the Dolphin Settings which allows + * to modify general settings for the view modes. + * + * @author Peter Penz + */ +class GeneralViewSettingsPage : public KVBox +{ + Q_OBJECT + +public: + GeneralViewSettingsPage(QWidget* parent); + virtual ~GeneralViewSettingsPage(); + + /** + * Applies the general settings for the view modes + * The settings are persisted automatically when + * closing Dolphin. + */ + void applySettings(); + +private: + QRadioButton* m_localProps; + QRadioButton* m_globalProps; +}; + +#endif -- cgit v1.3