blob: 250758f7d1661443f912f39b611271737ae2acc5 (
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
175
|
/*
**************************************************************************
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 <tqvaluelist.h>
class PMIntEdit;
class PMViewOptionsWidget;
class TQComboBox;
class TQListBox;
class TQPushButton;
class TQLabel;
/**
* View layout configuration dialog page
*/
class PMLayoutSettings : public PMSettingsDialogPage
{
Q_OBJECT
TQ_OBJECT
public:
/**
* Default constructor
*/
PMLayoutSettings( TQWidget* 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 TQString& text );
/**
* Called when the selected view entry changes
*/
void slotViewEntrySelected( TQListViewItem* 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 TQString& text );
/**
* Called when the column width field changes value
*/
void slotColumnWidthChanged( const TQString& text );
/**
* Called when the floating height changes value
*/
void slotFloatingHeightChanged( const TQString& text );
/**
* Called when the floating width changes value
*/
void slotFloatingWidthChanged( const TQString& text );
/**
* Called when the floating position x changes value
*/
void slotFloatingPosXChanged( const TQString& text );
/**
* Called when the floating position y changes value
*/
void slotFloatingPosYChanged( const TQString& 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( );
TQComboBox* m_pDefaultLayout;
TQListBox* m_pViewLayouts;
TQPushButton* m_pAddLayout;
TQPushButton* m_pRemoveLayout;
TQLineEdit* m_pViewLayoutName;
TQListView* m_pViewEntries;
TQPushButton* m_pAddEntry;
TQPushButton* m_pRemoveEntry;
TQPushButton* m_pMoveUpEntry;
TQPushButton* m_pMoveDownEntry;
TQComboBox* m_pViewTypeEdit;
TQComboBox* m_pDockPositionEdit;
PMIntEdit* m_pColumnWidthEdit;
TQLabel* m_pColumnWidthLabel;
PMIntEdit* m_pViewHeightEdit;
TQLabel* m_pViewHeightLabel;
PMIntEdit* m_pFloatingHeight;
PMIntEdit* m_pFloatingWidth;
TQLabel* m_pFloatingHeightLabel;
TQLabel* m_pFloatingWidthLabel;
PMIntEdit* m_pFloatingPosX;
PMIntEdit* m_pFloatingPosY;
TQLabel* m_pFloatingPosXLabel;
TQLabel* m_pFloatingPosYLabel;
PMViewOptionsWidget* m_pCustomOptionsWidget;
TQWidget* m_pCustomOptionsHolder;
TQValueList<PMViewLayout> m_viewLayouts;
TQValueListIterator<PMViewLayout> m_currentViewLayout;
TQValueListIterator<PMViewLayout> m_defaultViewLayout;
TQValueListIterator<PMViewLayoutEntry> m_currentViewEntry;
};
#endif
|