blob: 4bca52e3fce2125116315b09e6cd5b10651616e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
|
/*
**************************************************************************
description
--------------------
copyright : (C) 2003 by Andreas Zehender
email : zehender@kde.org
**************************************************************************
**************************************************************************
* *
* 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. *
* *
**************************************************************************/
#ifndef PMLAYOUTSETTINGS_H
#define PMLAYOUTSETTINGS_H
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "pmsettingsdialog.h"
#include "pmviewlayoutmanager.h"
#include <qvaluelist.h>
class PMIntEdit;
class PMViewOptionsWidget;
class QComboBox;
class QListBox;
class QPushButton;
class QLabel;
/**
* View layout configuration dialog page
*/
class PMLayoutSettings : public PMSettingsDialogPage
{
Q_OBJECT
public:
/**
* Default constructor
*/
PMLayoutSettings( QWidget* parent, const char* name = 0 );
/** */
virtual void displaySettings( );
/** */
virtual bool validateData( );
/** */
virtual void applySettings( );
/** */
virtual void displayDefaults( );
protected slots:
/**
* Called when the browse add layout button is clicked
*/
void slotAddLayout( );
/**
* Called when the remove layout button is clicked
*/
void slotRemoveLayout( );
/**
* Called when the selected layout changes
*/
void slotLayoutSelected( int i );
/**
* Called when the layout name changes
*/
void slotLayoutNameChanged( const QString& text );
/**
* Called when the selected view entry changes
*/
void slotViewEntrySelected( QListViewItem* text );
/**
* Called when the view type field changes value
*/
void slotViewTypeChanged( int index );
/**
* Called when the gl view type field changes value
*/
//void slotGLViewTypeChanged( int index );
/**
* Called when the dock position field changes value
*/
void slotDockPositionChanged( int index );
/**
* Called when the view height field changes value
*/
void slotViewHeightChanged( const QString& text );
/**
* Called when the column width field changes value
*/
void slotColumnWidthChanged( const QString& text );
/**
* Called when the floating height changes value
*/
void slotFloatingHeightChanged( const QString& text );
/**
* Called when the floating width changes value
*/
void slotFloatingWidthChanged( const QString& text );
/**
* Called when the floating position x changes value
*/
void slotFloatingPosXChanged( const QString& text );
/**
* Called when the floating position y changes value
*/
void slotFloatingPosYChanged( const QString& text );
/**
* Called when the add view entry button is clicked
*/
void slotAddViewEntryClicked( );
/**
* Called when the remove view entry button is clicked
*/
void slotRemoveViewEntryClicked( );
/**
* Called when the move up view entry button is clicked
*/
void slotMoveUpViewEntryClicked( );
/**
* Called when the move down view entry button is clicked
*/
void slotMoveDownViewEntryClicked( );
/**
* Called when the view type description has changed
*/
void slotViewTypeDescriptionChanged( );
private:
void displayLayoutList( );
void displayCustomOptions( );
QComboBox* m_pDefaultLayout;
QListBox* m_pViewLayouts;
QPushButton* m_pAddLayout;
QPushButton* m_pRemoveLayout;
QLineEdit* m_pViewLayoutName;
QListView* m_pViewEntries;
QPushButton* m_pAddEntry;
QPushButton* m_pRemoveEntry;
QPushButton* m_pMoveUpEntry;
QPushButton* m_pMoveDownEntry;
QComboBox* m_pViewTypeEdit;
QComboBox* m_pDockPositionEdit;
PMIntEdit* m_pColumnWidthEdit;
QLabel* m_pColumnWidthLabel;
PMIntEdit* m_pViewHeightEdit;
QLabel* m_pViewHeightLabel;
PMIntEdit* m_pFloatingHeight;
PMIntEdit* m_pFloatingWidth;
QLabel* m_pFloatingHeightLabel;
QLabel* m_pFloatingWidthLabel;
PMIntEdit* m_pFloatingPosX;
PMIntEdit* m_pFloatingPosY;
QLabel* m_pFloatingPosXLabel;
QLabel* m_pFloatingPosYLabel;
PMViewOptionsWidget* m_pCustomOptionsWidget;
QWidget* m_pCustomOptionsHolder;
QValueList<PMViewLayout> m_viewLayouts;
QValueListIterator<PMViewLayout> m_currentViewLayout;
QValueListIterator<PMViewLayout> m_defaultViewLayout;
QValueListIterator<PMViewLayoutEntry> m_currentViewEntry;
};
#endif
|