summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/test/AppWizardBase.java
blob: 48ae0dd333dede29cb883dc50159747b5b9f134a (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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
/****************************************************************************
** Form implementation generated from reading ui file 'appwizardbase.ui'
**
** Created: Mon Feb 19 01:02:06 2001
**      by:  The User Interface Compiler (uic)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
import org.kde.qt.*;

public class AppWizardBase extends QWizard { 
    QGroupBox GroupBox8;
    QCheckBox lsm_checkbox;
    QLabel TextLabel7;
    QComboBox license_combobox;
    QLabel TextLabel2;
    QLineEdit version_edit;
    QLabel TextLabel5;
    QMultiLineEdit desc_multiedit;
    QGroupBox General;
    QLabel TextLabel4;
    QLabel TextLabel6;
    QLabel TextLabel3;
    QLineEdit company_edit;
    QLineEdit email_edit;
    QLineEdit author_edit;
    QLabel TextLabel1;
    QPushButton loadheader_button;
    QPushButton newheader_button;
    QMultiLineEdit header_multiedit;

    QGridLayout grid;
    QGridLayout GroupBox8Layout;
    QGridLayout GeneralLayout;
    QGridLayout grid_2;
    QHBoxLayout Layout5;


/* 
 *  Constructs a AppWizardBase which is a child of 'parent', with the 
 *  name 'name' and widget flags set to 'f' 
 *
 *  The wizard will by default be modeless, unless you set 'modal' to
 *  true to construct a modal wizard.
 */
AppWizardBase( QWidget parent,  String name, boolean modal, int fl )
{
    super( parent, name, modal, fl );
    if ( name == null )
	setName( "AppWizardBase" );
    resize( 414, 437 ); 
    setCaption( tr( "Application Wizard" ) );
    QToolTip.add(  this, tr( "" ) );

    QWidget privateWidget = new QWidget( this, "privateWidget" );
    grid = new QGridLayout( privateWidget ); 
    grid.setSpacing( 6 );
    grid.setMargin( 11 );

    GroupBox8 = new QGroupBox( privateWidget, "GroupBox8" );
    GroupBox8.setTitle( tr( "Project" ) );
    GroupBox8.setColumnLayout(0, Qt.Vertical );
    GroupBox8.layout().setSpacing( 0 );
    GroupBox8.layout().setMargin( 0 );
    GroupBox8Layout = new QGridLayout( GroupBox8.layout() );
    GroupBox8Layout.setAlignment( Qt.AlignTop );
    GroupBox8Layout.setSpacing( 6 );
    GroupBox8Layout.setMargin( 11 );

    lsm_checkbox = new QCheckBox( GroupBox8, "lsm_checkbox" );
    lsm_checkbox.setText( tr( "generate lsm-File - (Linux Software Map)" ) );

    GroupBox8Layout.addMultiCellWidget( lsm_checkbox, 1, 1, 0, 3 );

    TextLabel7 = new QLabel( GroupBox8, "TextLabel7" );
    TextLabel7.setText( tr( "License:" ) );

    GroupBox8Layout.addWidget( TextLabel7, 0, 0 );

    license_combobox = new QComboBox( false, GroupBox8, "license_combobox" );
    license_combobox.insertItem( tr( "GPL" ) );
    license_combobox.insertItem( tr( "LGPL" ) );
    license_combobox.insertItem( tr( "BSD" ) );
    license_combobox.insertItem( tr( "Artistic" ) );
    license_combobox.insertItem( tr( "QPL" ) );
    license_combobox.insertItem( tr( "Custom" ) );

    GroupBox8Layout.addWidget( license_combobox, 0, 1 );

    TextLabel2 = new QLabel( GroupBox8, "TextLabel2" );
    TextLabel2.setText( tr( "Version:" ) );

    GroupBox8Layout.addWidget( TextLabel2, 0, 2 );

    version_edit = new QLineEdit( GroupBox8, "version_edit" );
    version_edit.setText( tr( "0.1" ) );

    GroupBox8Layout.addWidget( version_edit, 0, 3 );

    TextLabel5 = new QLabel( GroupBox8, "TextLabel5" );
    TextLabel5.setText( tr( "Description:" ) );

    GroupBox8Layout.addMultiCellWidget( TextLabel5, 2, 2, 0, 1 );

    desc_multiedit = new QMultiLineEdit( GroupBox8, "desc_multiedit" );

    GroupBox8Layout.addMultiCellWidget( desc_multiedit, 3, 3, 0, 3 );

    grid.addWidget( GroupBox8, 1, 0 );

    General = new QGroupBox( privateWidget, "General" );
    General.setTitle( tr( "General" ) );
    General.setColumnLayout(0, Qt.Vertical );
    General.layout().setSpacing( 0 );
    General.layout().setMargin( 0 );
    GeneralLayout = new QGridLayout( General.layout() );
    GeneralLayout.setAlignment( Qt.AlignTop );
    GeneralLayout.setSpacing( 6 );
    GeneralLayout.setMargin( 11 );

    TextLabel4 = new QLabel( General, "TextLabel4" );
    TextLabel4.setText( tr( "Company:" ) );

    GeneralLayout.addWidget( TextLabel4, 2, 0 );

    TextLabel6 = new QLabel( General, "TextLabel6" );
    TextLabel6.setText( tr( "Email:" ) );

    GeneralLayout.addWidget( TextLabel6, 1, 0 );

    TextLabel3 = new QLabel( General, "TextLabel3" );
    TextLabel3.setText( tr( "Author:" ) );

    GeneralLayout.addWidget( TextLabel3, 0, 0 );

    company_edit = new QLineEdit( General, "company_edit" );

    GeneralLayout.addWidget( company_edit, 2, 1 );

    email_edit = new QLineEdit( General, "email_edit" );

    GeneralLayout.addWidget( email_edit, 1, 1 );

    author_edit = new QLineEdit( General, "author_edit" );

    GeneralLayout.addWidget( author_edit, 0, 1 );

    grid.addWidget( General, 0, 0 );
    addPage( privateWidget, tr( "General" ) );

    QWidget privateWidget_2 = new QWidget( this, "privateWidget_2" );
    grid_2 = new QGridLayout( privateWidget_2 ); 
    grid_2.setSpacing( 6 );
    grid_2.setMargin( 11 );

    Layout5 = new QHBoxLayout(); 
    Layout5.setSpacing( 6 );
    Layout5.setMargin( 0 );

    TextLabel1 = new QLabel( privateWidget_2, "TextLabel1" );
    TextLabel1.setText( tr( "headertemplate for your files:" ) );
    Layout5.addWidget( TextLabel1 );
    QSpacerItem spacer = new QSpacerItem( 0, 0, QSizePolicy.Expanding, QSizePolicy.Minimum );
    Layout5.addItem( spacer );

    loadheader_button = new QPushButton( privateWidget_2, "loadheader_button" );
    loadheader_button.setText( tr( "Load..." ) );
    QToolTip.add(  loadheader_button, tr( "" ) );
    Layout5.addWidget( loadheader_button );

    newheader_button = new QPushButton( privateWidget_2, "newheader_button" );
    newheader_button.setText( tr( "New" ) );
    QToolTip.add(  newheader_button, tr( "Clears the pre-set headertemplate" ) );
    Layout5.addWidget( newheader_button );

    grid_2.addLayout( Layout5, 0, 0 );

    header_multiedit = new QMultiLineEdit( privateWidget_2, "header_multiedit" );

    grid_2.addWidget( header_multiedit, 1, 0 );
    addPage( privateWidget_2, tr( "Header" ) );

    // signals and slots connections
    connect( loadheader_button, SIGNAL( "clicked()" ), this, SLOT( "slotLoadHeader()" ) );
    connect( newheader_button, SIGNAL( "clicked()" ), this, SLOT( "slotNewHeader()" ) );

    // tab order
    setTabOrder( loadheader_button, newheader_button );
    setTabOrder( newheader_button, header_multiedit );
    setTabOrder( header_multiedit, author_edit );
    setTabOrder( author_edit, email_edit );
    setTabOrder( email_edit, company_edit );
    setTabOrder( company_edit, license_combobox );
    setTabOrder( license_combobox, version_edit );
    setTabOrder( version_edit, lsm_checkbox );
    setTabOrder( lsm_checkbox, desc_multiedit );
}

public void slotLoadHeader()
{
    qWarning( "AppWizardBase.slotLoadHeader(): Not implemented yet!" );
}

public void slotNewHeader()
{
    qWarning( "AppWizardBase.slotNewHeader(): Not implemented yet!" );
}

}