~ubuntu-branches/ubuntu/utopic/kde-workspace/utopic-proposed

« back to all changes in this revision

Viewing changes to kstyles/oxygen/oxygenmetrics.h

  • Committer: Bazaar Package Importer
  • Author(s): Michał Zając
  • Date: 2011-07-09 08:31:15 UTC
  • Revision ID: james.westby@ubuntu.com-20110709083115-ohyxn6z93mily9fc
Tags: upstream-4.6.90
Import upstream version 4.6.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef oxygenmetrics_h
 
2
#define oxygenmetrics_h
 
3
 
 
4
/*
 
5
* this file is part of the oxygen gtk engine
 
6
* Copyright (c) 2010 Hugo Pereira Da Costa <hugo@oxygen-icons.org>
 
7
* Copyright (c) 2010 Ruslan Kabatsayev <b7.10110111@gmail.com>
 
8
*
 
9
* This  library is free  software; you can  redistribute it and/or
 
10
* modify it  under  the terms  of the  GNU Lesser  General  Public
 
11
* License  as published  by the Free  Software  Foundation; either
 
12
* version 2 of the License, or( at your option ) any later version.
 
13
*
 
14
* This library is distributed  in the hope that it will be useful,
 
15
* but  WITHOUT ANY WARRANTY; without even  the implied warranty of
 
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 
17
* Lesser General Public License for more details.
 
18
*
 
19
* You should have received a copy of the GNU Lesser General Public
 
20
* License  along  with  this library;  if not,  write to  the Free
 
21
* Software Foundation, Inc., 51  Franklin St, Fifth Floor, Boston,
 
22
* MA 02110-1301, USA.
 
23
*/
 
24
 
 
25
namespace Oxygen
 
26
{
 
27
 
 
28
    //! metrics
 
29
    /*! these are copied from the old KStyle WidgetProperties */
 
30
    enum Metrics
 
31
    {
 
32
        GlowWidth = 1,
 
33
 
 
34
        // checkbox. Do not change, unless
 
35
        // changing the actual cached pixmap size
 
36
        CheckBox_Size = 21,
 
37
        CheckBox_BoxTextSpace = 4,
 
38
 
 
39
        // combobox
 
40
        ComboBox_FrameWidth = 3,
 
41
        ComboBox_ButtonWidth = 19,
 
42
        ComboBox_ButtonMargin = 2,
 
43
        ComboBox_ButtonMargin_Left = 0,
 
44
        ComboBox_ButtonMargin_Right = 4,
 
45
        ComboBox_ButtonMargin_Top = 2,
 
46
        ComboBox_ButtonMargin_Bottom = 1,
 
47
 
 
48
        ComboBox_ContentsMargin = 0,
 
49
        ComboBox_ContentsMargin_Left = 2,
 
50
        ComboBox_ContentsMargin_Right = 0,
 
51
        ComboBox_ContentsMargin_Top = 0,
 
52
        ComboBox_ContentsMargin_Bottom = 0,
 
53
 
 
54
        // dockwidgets
 
55
        DockWidget_FrameWidth = 0,
 
56
        DockWidget_SeparatorExtend = 3,
 
57
        DockWidget_TitleMargin = 3,
 
58
 
 
59
        // generic frames
 
60
        Frame_FrameWidth = 3,
 
61
 
 
62
        // group boxes
 
63
        GroupBox_FrameWidth = 3,
 
64
 
 
65
        // header
 
66
        Header_TextToIconSpace = 3,
 
67
        Header_ContentsMargin = 3,
 
68
 
 
69
        // line edit
 
70
        LineEdit_FrameWidth = 3,
 
71
 
 
72
        // menu item
 
73
        MenuItem_AccelSpace = 16,
 
74
        MenuItem_ArrowWidth = 11,
 
75
        MenuItem_ArrowSpace = 3,
 
76
        MenuItem_CheckWidth = 16,
 
77
        MenuItem_CheckSpace = 3,
 
78
        MenuItem_IconWidth = 12,
 
79
        MenuItem_IconSpace = 3,
 
80
        MenuItem_Margin = 2,
 
81
        MenuItem_MinHeight = 20,
 
82
 
 
83
        // menu bar item
 
84
        MenuBarItem_Margin = 3,
 
85
        MenuBarItem_Margin_Left = 5,
 
86
        MenuBarItem_Margin_Right = 5,
 
87
 
 
88
        // pushbuttons
 
89
        PushButton_ContentsMargin = 5,
 
90
        PushButton_ContentsMargin_Left = 8,
 
91
        PushButton_ContentsMargin_Top = -1,
 
92
        PushButton_ContentsMargin_Right = 8,
 
93
        PushButton_ContentsMargin_Bottom = 0,
 
94
        PushButton_MenuIndicatorSize = 8,
 
95
        PushButton_TextToIconSpace = 6,
 
96
 
 
97
        // progress bar
 
98
        ProgressBar_BusyIndicatorSize = 10,
 
99
        ProgressBar_GrooveMargin = 0,
 
100
 
 
101
        // scrollbar
 
102
        ScrollBar_MinimumSliderHeight = 21,
 
103
 
 
104
        // slider groove height
 
105
        Slider_GrooveWidth = 7,
 
106
 
 
107
        // spin boxes
 
108
        SpinBox_FrameWidth = 3,
 
109
        SpinBox_ButtonWidth = 19,
 
110
        SpinBox_ButtonMargin = 0,
 
111
        SpinBox_ButtonMargin_Left = 2,
 
112
        SpinBox_ButtonMargin_Right = 6,
 
113
        SpinBox_ButtonMargin_Top = 4,
 
114
        SpinBox_ButtonMargin_Bottom = 2,
 
115
 
 
116
        // splitter
 
117
        Splitter_Width = 3,
 
118
 
 
119
        // tabs
 
120
        TabBar_BaseOverlap = 7,
 
121
        TabBar_BaseHeight = 2,
 
122
        TabBar_ScrollButtonWidth = 18,
 
123
        TabBar_TabContentsMargin = 4,
 
124
        TabBar_TabContentsMargin_Left = 5,
 
125
        TabBar_TabContentsMargin_Right = 5,
 
126
        TabBar_TabContentsMargin_Top = 2,
 
127
        TabBar_TabContentsMargin_Bottom = 4,
 
128
        TabBar_TabOverlap =0,
 
129
 
 
130
        TabWidget_ContentsMargin = 4,
 
131
 
 
132
        // toolbuttons
 
133
        ToolButton_ContentsMargin = 4,
 
134
        ToolButton_InlineMenuIndicatorSize = 8,
 
135
        ToolButton_InlineMenuIndicatorXOff = -11,
 
136
        ToolButton_InlineMenuIndicatorYOff = -10,
 
137
        ToolButton_MenuIndicatorSize = 11,
 
138
 
 
139
        Tree_MaxExpanderSize = 9
 
140
 
 
141
    };
 
142
 
 
143
}
 
144
 
 
145
#endif