diff options
| author | Peter Penz <[email protected]> | 2006-12-20 19:10:39 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2006-12-20 19:10:39 +0000 |
| commit | 642110309ace0ec0da270615464d7d04944d5dcf (patch) | |
| tree | 173d3fefbcf1adfe93667348c243e3cb7fbc3bf0 /src/generalviewsettingspage.h | |
| parent | 3396d0dbee4e609fa5f7608912b4ac5badd36f72 (diff) | |
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
Diffstat (limited to 'src/generalviewsettingspage.h')
| -rw-r--r-- | src/generalviewsettingspage.h | 54 |
1 files changed, 54 insertions, 0 deletions
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 * + * [email protected] * + * * + * 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 <kvbox.h> + +class QRadioButton; + +/** + * @brief Represents the page from the Dolphin Settings which allows + * to modify general settings for the view modes. + * + * @author Peter Penz <[email protected]> + */ +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 |
