~ubuntu-branches/debian/sid/kde-baseapps/sid

« back to all changes in this revision

Viewing changes to dolphin/src/settings/viewmodes/iconsviewsettingspage.h

  • Committer: Package Import Robot
  • Author(s): Modestas Vainius, Eshat Cakar, Pino Toscano
  • Date: 2012-06-09 22:18:08 UTC
  • mfrom: (4.2.1) (6.1.1 experimental)
  • Revision ID: package-import@ubuntu.com-20120609221808-h1l0ekd5qmb8nefr
Tags: 4:4.8.4-1
* New upstream release.

[ Eshat Cakar ]
* Add watch file.
* Bump kde-sc-dev-latest build dependency to version 4:4.8.4.
* Update installed files.

[ Pino Toscano ]
* Move files of the konqueror documentation from kde-baseapps-data to
  konqueror itself.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/***************************************************************************
2
 
 *   Copyright (C) 2006 by Peter Penz <peter.penz19@gmail.com>             *
3
 
 *                                                                         *
4
 
 *   This program is free software; you can redistribute it and/or modify  *
5
 
 *   it under the terms of the GNU General Public License as published by  *
6
 
 *   the Free Software Foundation; either version 2 of the License, or     *
7
 
 *   (at your option) any later version.                                   *
8
 
 *                                                                         *
9
 
 *   This program is distributed in the hope that it will be useful,       *
10
 
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
11
 
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
12
 
 *   GNU General Public License for more details.                          *
13
 
 *                                                                         *
14
 
 *   You should have received a copy of the GNU General Public License     *
15
 
 *   along with this program; if not, write to the                         *
16
 
 *   Free Software Foundation, Inc.,                                       *
17
 
 *   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA            *
18
 
 ***************************************************************************/
19
 
 
20
 
#ifndef ICONSVIEWSETTINGSPAGE_H
21
 
#define ICONSVIEWSETTINGSPAGE_H
22
 
 
23
 
#include <views/dolphiniconsview.h>
24
 
#include "viewsettingspagebase.h"
25
 
 
26
 
class DolphinFontRequester;
27
 
class IconSizeGroupBox;
28
 
class KComboBox;
29
 
class KIntSpinBox;
30
 
 
31
 
/**
32
 
 * @brief Tab page for the 'Icons Mode' settings
33
 
 * of the Dolphin settings dialog.
34
 
 *
35
 
 * Allows to set:
36
 
 * - icon size
37
 
 * - preview size
38
 
 * - text width
39
 
 * - grid spacing
40
 
 * - font
41
 
 * - number of text lines
42
 
 * - arrangement
43
 
 *
44
 
 * @see DolphinIconsViewSettings
45
 
 */
46
 
class IconsViewSettingsPage : public ViewSettingsPageBase
47
 
{
48
 
    Q_OBJECT
49
 
 
50
 
public:
51
 
    IconsViewSettingsPage(QWidget* parent);
52
 
    virtual ~IconsViewSettingsPage();
53
 
 
54
 
    /**
55
 
     * Applies the settings for the icons view.
56
 
     * The settings are persisted automatically when
57
 
     * closing Dolphin.
58
 
     */
59
 
    virtual void applySettings();
60
 
 
61
 
    /** Restores the settings to default values. */
62
 
    virtual void restoreDefaults();
63
 
 
64
 
private:
65
 
    void loadSettings();
66
 
 
67
 
private:
68
 
    enum
69
 
    {
70
 
        GridSpacingBase =   8,
71
 
        GridSpacingInc  =  12,
72
 
        LeftToRightBase = 128,
73
 
        LeftToRightInc  =  64,
74
 
        TopToBottomBase =  32,
75
 
        TopToBottomInc  =  32
76
 
    };
77
 
 
78
 
    IconSizeGroupBox* m_iconSizeGroupBox;
79
 
    KComboBox* m_textWidthBox;
80
 
    DolphinFontRequester* m_fontRequester;
81
 
    KIntSpinBox* m_textlinesCountBox;
82
 
 
83
 
    KComboBox* m_arrangementBox;
84
 
    KComboBox* m_gridSpacingBox;
85
 
};
86
 
 
87
 
#endif