summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/test/AppWizardBase.java
blob: fcb04c79f8eda53fa6a3e217d7254d4c51b60aa3 (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.trinitydesktop.qt.*;

public class AppWizardBase extends TQWizard { 
    TQGroupBox GroupBox8;
    TQCheckBox lsm_checkbox;
    TQLabel TextLabel7;
    TQComboBox license_combobox;
    TQLabel TextLabel2;
    TQLineEdit version_edit;
    TQLabel TextLabel5;
    TQMultiLineEdit desc_multiedit;
    TQGroupBox General;
    TQLabel TextLabel4;
    TQLabel TextLabel6;
    TQLabel TextLabel3;
    TQLineEdit company_edit;
    TQLineEdit email_edit;
    TQLineEdit author_edit;
    TQLabel TextLabel1;
    TQPushButton loadheader_button;
    TQPushButton newheader_button;
    TQMultiLineEdit header_multiedit;

    TQGridLayout grid;
    TQGridLayout GroupBox8Layout;
    TQGridLayout GeneralLayout;
    TQGridLayout grid_2;
    TQHBoxLayout 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( TQWidget parent,  String name, boolean modal, int fl )
{
    super( parent, name, modal, fl );
    if ( name == null )
	setName( "AppWizardBase" );
    resize( 414, 437 ); 
    setCaption( tr( "Application Wizard" ) );
    TQToolTip.add(  this, tr( "" ) );

    TQWidget privateWidget = new TQWidget( this, "privateWidget" );
    grid = new TQGridLayout( privateWidget ); 
    grid.setSpacing( 6 );
    grid.setMargin( 11 );

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

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

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

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

    GroupBox8Layout.addWidget( TextLabel7, 0, 0 );

    license_combobox = new TQComboBox( 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( "TQPL" ) );
    license_combobox.insertItem( tr( "Custom" ) );

    GroupBox8Layout.addWidget( license_combobox, 0, 1 );

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

    GroupBox8Layout.addWidget( TextLabel2, 0, 2 );

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

    GroupBox8Layout.addWidget( version_edit, 0, 3 );

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

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

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

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

    grid.addWidget( GroupBox8, 1, 0 );

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

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

    GeneralLayout.addWidget( TextLabel4, 2, 0 );

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

    GeneralLayout.addWidget( TextLabel6, 1, 0 );

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

    GeneralLayout.addWidget( TextLabel3, 0, 0 );

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

    GeneralLayout.addWidget( company_edit, 2, 1 );

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

    GeneralLayout.addWidget( email_edit, 1, 1 );

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

    GeneralLayout.addWidget( author_edit, 0, 1 );

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

    TQWidget privateWidget_2 = new TQWidget( this, "privateWidget_2" );
    grid_2 = new TQGridLayout( privateWidget_2 ); 
    grid_2.setSpacing( 6 );
    grid_2.setMargin( 11 );

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

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

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

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

    grid_2.addLayout( Layout5, 0, 0 );

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

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

    // signals and slots connections
    connect( loadheader_button, TQ_SIGNAL( "clicked()" ), this, TQ_SLOT( "slotLoadHeader()" ) );
    connect( newheader_button, TQ_SIGNAL( "clicked()" ), this, TQ_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()
{
    tqWarning( "AppWizardBase.slotLoadHeader(): Not implemented yet!" );
}

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

}