line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Padre::Plugin::FormBuilder::FBP; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
## no critic |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
# This module was generated by Padre::Plugin::FormBuilder::Perl. |
6
|
|
|
|
|
|
|
# To change this module edit the original .fbp file and regenerate. |
7
|
|
|
|
|
|
|
# DO NOT MODIFY THIS FILE BY HAND! |
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
|
1527
|
use 5.008005; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
39
|
|
10
|
1
|
|
|
1
|
|
6
|
use utf8; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
7
|
|
11
|
1
|
|
|
1
|
|
23
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
29
|
|
12
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
64
|
|
13
|
1
|
|
|
1
|
|
481
|
use Padre::Wx (); |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
use Padre::Wx::Role::Main (); |
15
|
|
|
|
|
|
|
use File::ShareDir (); |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
our $VERSION = '0.04'; |
18
|
|
|
|
|
|
|
our @ISA = qw{ |
19
|
|
|
|
|
|
|
Padre::Wx::Role::Main |
20
|
|
|
|
|
|
|
Wx::Dialog |
21
|
|
|
|
|
|
|
}; |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
sub new { |
24
|
|
|
|
|
|
|
my $class = shift; |
25
|
|
|
|
|
|
|
my $parent = shift; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
my $self = $class->SUPER::new( |
28
|
|
|
|
|
|
|
$parent, |
29
|
|
|
|
|
|
|
-1, |
30
|
|
|
|
|
|
|
Wx::gettext("Padre Form Builder"), |
31
|
|
|
|
|
|
|
Wx::DefaultPosition, |
32
|
|
|
|
|
|
|
Wx::DefaultSize, |
33
|
|
|
|
|
|
|
Wx::DEFAULT_DIALOG_STYLE, |
34
|
|
|
|
|
|
|
); |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
my $m_bitmap3 = Wx::StaticBitmap->new( |
37
|
|
|
|
|
|
|
$self, |
38
|
|
|
|
|
|
|
-1, |
39
|
|
|
|
|
|
|
Wx::Bitmap->new( File::ShareDir::dist_file( "Padre-Plugin-FormBuilder", "wxfb.png" ), Wx::BITMAP_TYPE_ANY ), |
40
|
|
|
|
|
|
|
Wx::DefaultPosition, |
41
|
|
|
|
|
|
|
Wx::DefaultSize, |
42
|
|
|
|
|
|
|
); |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
my $file = Wx::StaticText->new( |
45
|
|
|
|
|
|
|
$self, |
46
|
|
|
|
|
|
|
-1, |
47
|
|
|
|
|
|
|
Wx::gettext("wxFormBuilder Project"), |
48
|
|
|
|
|
|
|
); |
49
|
|
|
|
|
|
|
$file->SetFont( |
50
|
|
|
|
|
|
|
Wx::Font->new( Wx::NORMAL_FONT->GetPointSize, 70, 90, 92, 0, "" ) |
51
|
|
|
|
|
|
|
); |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
$self->{browse} = Wx::FilePickerCtrl->new( |
54
|
|
|
|
|
|
|
$self, |
55
|
|
|
|
|
|
|
-1, |
56
|
|
|
|
|
|
|
"", |
57
|
|
|
|
|
|
|
Wx::gettext("Select a file"), |
58
|
|
|
|
|
|
|
"*.fbp", |
59
|
|
|
|
|
|
|
Wx::DefaultPosition, |
60
|
|
|
|
|
|
|
Wx::DefaultSize, |
61
|
|
|
|
|
|
|
Wx::FLP_DEFAULT_STYLE, |
62
|
|
|
|
|
|
|
); |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
Wx::Event::EVT_FILEPICKER_CHANGED( |
65
|
|
|
|
|
|
|
$self, |
66
|
|
|
|
|
|
|
$self->{browse}, |
67
|
|
|
|
|
|
|
sub { |
68
|
|
|
|
|
|
|
shift->browse_changed(@_); |
69
|
|
|
|
|
|
|
}, |
70
|
|
|
|
|
|
|
); |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
my $line1 = Wx::StaticLine->new( |
73
|
|
|
|
|
|
|
$self, |
74
|
|
|
|
|
|
|
-1, |
75
|
|
|
|
|
|
|
Wx::DefaultPosition, |
76
|
|
|
|
|
|
|
Wx::DefaultSize, |
77
|
|
|
|
|
|
|
Wx::LI_HORIZONTAL, |
78
|
|
|
|
|
|
|
); |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
my $m_bitmap2 = Wx::StaticBitmap->new( |
81
|
|
|
|
|
|
|
$self, |
82
|
|
|
|
|
|
|
-1, |
83
|
|
|
|
|
|
|
Wx::Bitmap->new( File::ShareDir::dist_file( "Padre-Plugin-FormBuilder", "common.png" ), Wx::BITMAP_TYPE_ANY ), |
84
|
|
|
|
|
|
|
Wx::DefaultPosition, |
85
|
|
|
|
|
|
|
Wx::DefaultSize, |
86
|
|
|
|
|
|
|
); |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
my $m_staticText3 = Wx::StaticText->new( |
89
|
|
|
|
|
|
|
$self, |
90
|
|
|
|
|
|
|
-1, |
91
|
|
|
|
|
|
|
Wx::gettext("Code Generation Options"), |
92
|
|
|
|
|
|
|
); |
93
|
|
|
|
|
|
|
$m_staticText3->SetFont( |
94
|
|
|
|
|
|
|
Wx::Font->new( Wx::NORMAL_FONT->GetPointSize, 70, 90, 92, 0, "" ) |
95
|
|
|
|
|
|
|
); |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
my $m_staticText5 = Wx::StaticText->new( |
98
|
|
|
|
|
|
|
$self, |
99
|
|
|
|
|
|
|
-1, |
100
|
|
|
|
|
|
|
Wx::gettext("\$VERSION ="), |
101
|
|
|
|
|
|
|
); |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
$self->{version} = Wx::TextCtrl->new( |
104
|
|
|
|
|
|
|
$self, |
105
|
|
|
|
|
|
|
-1, |
106
|
|
|
|
|
|
|
"0.01", |
107
|
|
|
|
|
|
|
Wx::DefaultPosition, |
108
|
|
|
|
|
|
|
Wx::DefaultSize, |
109
|
|
|
|
|
|
|
Wx::TE_LEFT, |
110
|
|
|
|
|
|
|
); |
111
|
|
|
|
|
|
|
$self->{version}->SetMaxLength(10); |
112
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
$self->{translate} = Wx::RadioBox->new( |
114
|
|
|
|
|
|
|
$self, |
115
|
|
|
|
|
|
|
-1, |
116
|
|
|
|
|
|
|
Wx::gettext("Internationalisation"), |
117
|
|
|
|
|
|
|
Wx::DefaultPosition, |
118
|
|
|
|
|
|
|
Wx::DefaultSize, |
119
|
|
|
|
|
|
|
[ |
120
|
|
|
|
|
|
|
"\"None:\"", |
121
|
|
|
|
|
|
|
"Wx::gettext(\"Naive:\")", |
122
|
|
|
|
|
|
|
], |
123
|
|
|
|
|
|
|
1, |
124
|
|
|
|
|
|
|
Wx::RA_SPECIFY_COLS, |
125
|
|
|
|
|
|
|
); |
126
|
|
|
|
|
|
|
$self->{translate}->SetSelection(2); |
127
|
|
|
|
|
|
|
|
128
|
|
|
|
|
|
|
$self->{encapsulation} = Wx::RadioBox->new( |
129
|
|
|
|
|
|
|
$self, |
130
|
|
|
|
|
|
|
-1, |
131
|
|
|
|
|
|
|
Wx::gettext("Encapsulation"), |
132
|
|
|
|
|
|
|
Wx::DefaultPosition, |
133
|
|
|
|
|
|
|
Wx::DefaultSize, |
134
|
|
|
|
|
|
|
[ |
135
|
|
|
|
|
|
|
"Naive Protection", |
136
|
|
|
|
|
|
|
"Strict Protection", |
137
|
|
|
|
|
|
|
], |
138
|
|
|
|
|
|
|
1, |
139
|
|
|
|
|
|
|
Wx::RA_SPECIFY_COLS, |
140
|
|
|
|
|
|
|
); |
141
|
|
|
|
|
|
|
$self->{encapsulation}->SetSelection(0); |
142
|
|
|
|
|
|
|
|
143
|
|
|
|
|
|
|
$self->{padre} = Wx::CheckBox->new( |
144
|
|
|
|
|
|
|
$self, |
145
|
|
|
|
|
|
|
-1, |
146
|
|
|
|
|
|
|
Wx::gettext("Generate for use in Padre or a Padre plugin"), |
147
|
|
|
|
|
|
|
Wx::DefaultPosition, |
148
|
|
|
|
|
|
|
Wx::DefaultSize, |
149
|
|
|
|
|
|
|
); |
150
|
|
|
|
|
|
|
|
151
|
|
|
|
|
|
|
my $m_staticline41 = Wx::StaticLine->new( |
152
|
|
|
|
|
|
|
$self, |
153
|
|
|
|
|
|
|
-1, |
154
|
|
|
|
|
|
|
Wx::DefaultPosition, |
155
|
|
|
|
|
|
|
Wx::DefaultSize, |
156
|
|
|
|
|
|
|
Wx::LI_HORIZONTAL, |
157
|
|
|
|
|
|
|
); |
158
|
|
|
|
|
|
|
|
159
|
|
|
|
|
|
|
my $cancel = Wx::Button->new( |
160
|
|
|
|
|
|
|
$self, |
161
|
|
|
|
|
|
|
Wx::ID_CANCEL, |
162
|
|
|
|
|
|
|
Wx::gettext("Close"), |
163
|
|
|
|
|
|
|
Wx::DefaultPosition, |
164
|
|
|
|
|
|
|
Wx::DefaultSize, |
165
|
|
|
|
|
|
|
); |
166
|
|
|
|
|
|
|
|
167
|
|
|
|
|
|
|
$self->{m_notebook1} = Wx::Notebook->new( |
168
|
|
|
|
|
|
|
$self, |
169
|
|
|
|
|
|
|
-1, |
170
|
|
|
|
|
|
|
Wx::DefaultPosition, |
171
|
|
|
|
|
|
|
Wx::DefaultSize, |
172
|
|
|
|
|
|
|
Wx::NO_BORDER, |
173
|
|
|
|
|
|
|
); |
174
|
|
|
|
|
|
|
|
175
|
|
|
|
|
|
|
$self->{m_panel1} = Wx::Panel->new( |
176
|
|
|
|
|
|
|
$self->{m_notebook1}, |
177
|
|
|
|
|
|
|
-1, |
178
|
|
|
|
|
|
|
Wx::DefaultPosition, |
179
|
|
|
|
|
|
|
Wx::DefaultSize, |
180
|
|
|
|
|
|
|
Wx::TAB_TRAVERSAL, |
181
|
|
|
|
|
|
|
); |
182
|
|
|
|
|
|
|
|
183
|
|
|
|
|
|
|
my $m_bitmap41 = Wx::StaticBitmap->new( |
184
|
|
|
|
|
|
|
$self->{m_panel1}, |
185
|
|
|
|
|
|
|
-1, |
186
|
|
|
|
|
|
|
Wx::Bitmap->new( File::ShareDir::dist_file( "Padre-Plugin-FormBuilder", "single.png" ), Wx::BITMAP_TYPE_ANY ), |
187
|
|
|
|
|
|
|
Wx::DefaultPosition, |
188
|
|
|
|
|
|
|
Wx::DefaultSize, |
189
|
|
|
|
|
|
|
); |
190
|
|
|
|
|
|
|
|
191
|
|
|
|
|
|
|
my $m_staticText411 = Wx::StaticText->new( |
192
|
|
|
|
|
|
|
$self->{m_panel1}, |
193
|
|
|
|
|
|
|
-1, |
194
|
|
|
|
|
|
|
Wx::gettext("Generate Wx Application"), |
195
|
|
|
|
|
|
|
); |
196
|
|
|
|
|
|
|
$m_staticText411->SetFont( |
197
|
|
|
|
|
|
|
Wx::Font->new( Wx::NORMAL_FONT->GetPointSize, 70, 90, 92, 0, "" ) |
198
|
|
|
|
|
|
|
); |
199
|
|
|
|
|
|
|
|
200
|
|
|
|
|
|
|
$self->{select} = Wx::Choice->new( |
201
|
|
|
|
|
|
|
$self->{m_panel1}, |
202
|
|
|
|
|
|
|
-1, |
203
|
|
|
|
|
|
|
Wx::DefaultPosition, |
204
|
|
|
|
|
|
|
Wx::DefaultSize, |
205
|
|
|
|
|
|
|
[], |
206
|
|
|
|
|
|
|
); |
207
|
|
|
|
|
|
|
$self->{select}->SetSelection(0); |
208
|
|
|
|
|
|
|
$self->{select}->Disable; |
209
|
|
|
|
|
|
|
|
210
|
|
|
|
|
|
|
$self->{associate} = Wx::CheckBox->new( |
211
|
|
|
|
|
|
|
$self->{m_panel1}, |
212
|
|
|
|
|
|
|
-1, |
213
|
|
|
|
|
|
|
Wx::gettext("Associate with current project"), |
214
|
|
|
|
|
|
|
Wx::DefaultPosition, |
215
|
|
|
|
|
|
|
Wx::DefaultSize, |
216
|
|
|
|
|
|
|
); |
217
|
|
|
|
|
|
|
$self->{associate}->SetToolTip( |
218
|
|
|
|
|
|
|
Wx::gettext("Generates embedded tracking data in the dialog code") |
219
|
|
|
|
|
|
|
); |
220
|
|
|
|
|
|
|
$self->{associate}->Disable; |
221
|
|
|
|
|
|
|
|
222
|
|
|
|
|
|
|
$self->{preview} = Wx::Button->new( |
223
|
|
|
|
|
|
|
$self->{m_panel1}, |
224
|
|
|
|
|
|
|
-1, |
225
|
|
|
|
|
|
|
Wx::gettext("Preview"), |
226
|
|
|
|
|
|
|
Wx::DefaultPosition, |
227
|
|
|
|
|
|
|
Wx::DefaultSize, |
228
|
|
|
|
|
|
|
); |
229
|
|
|
|
|
|
|
$self->{preview}->Disable; |
230
|
|
|
|
|
|
|
|
231
|
|
|
|
|
|
|
Wx::Event::EVT_BUTTON( |
232
|
|
|
|
|
|
|
$self, |
233
|
|
|
|
|
|
|
$self->{preview}, |
234
|
|
|
|
|
|
|
sub { |
235
|
|
|
|
|
|
|
shift->preview_clicked(@_); |
236
|
|
|
|
|
|
|
}, |
237
|
|
|
|
|
|
|
); |
238
|
|
|
|
|
|
|
|
239
|
|
|
|
|
|
|
$self->{generate} = Wx::Button->new( |
240
|
|
|
|
|
|
|
$self->{m_panel1}, |
241
|
|
|
|
|
|
|
-1, |
242
|
|
|
|
|
|
|
Wx::gettext("Generate"), |
243
|
|
|
|
|
|
|
Wx::DefaultPosition, |
244
|
|
|
|
|
|
|
Wx::DefaultSize, |
245
|
|
|
|
|
|
|
); |
246
|
|
|
|
|
|
|
$self->{generate}->Disable; |
247
|
|
|
|
|
|
|
|
248
|
|
|
|
|
|
|
Wx::Event::EVT_BUTTON( |
249
|
|
|
|
|
|
|
$self, |
250
|
|
|
|
|
|
|
$self->{generate}, |
251
|
|
|
|
|
|
|
sub { |
252
|
|
|
|
|
|
|
shift->generate_clicked(@_); |
253
|
|
|
|
|
|
|
}, |
254
|
|
|
|
|
|
|
); |
255
|
|
|
|
|
|
|
|
256
|
|
|
|
|
|
|
$self->{m_panel2} = Wx::Panel->new( |
257
|
|
|
|
|
|
|
$self->{m_notebook1}, |
258
|
|
|
|
|
|
|
-1, |
259
|
|
|
|
|
|
|
Wx::DefaultPosition, |
260
|
|
|
|
|
|
|
Wx::DefaultSize, |
261
|
|
|
|
|
|
|
Wx::TAB_TRAVERSAL, |
262
|
|
|
|
|
|
|
); |
263
|
|
|
|
|
|
|
|
264
|
|
|
|
|
|
|
my $m_bitmap4 = Wx::StaticBitmap->new( |
265
|
|
|
|
|
|
|
$self->{m_panel2}, |
266
|
|
|
|
|
|
|
-1, |
267
|
|
|
|
|
|
|
Wx::Bitmap->new( File::ShareDir::dist_file( "Padre-Plugin-FormBuilder", "single.png" ), Wx::BITMAP_TYPE_ANY ), |
268
|
|
|
|
|
|
|
Wx::DefaultPosition, |
269
|
|
|
|
|
|
|
Wx::DefaultSize, |
270
|
|
|
|
|
|
|
); |
271
|
|
|
|
|
|
|
|
272
|
|
|
|
|
|
|
my $m_staticText41 = Wx::StaticText->new( |
273
|
|
|
|
|
|
|
$self->{m_panel2}, |
274
|
|
|
|
|
|
|
-1, |
275
|
|
|
|
|
|
|
Wx::gettext("Generate Wx Application"), |
276
|
|
|
|
|
|
|
); |
277
|
|
|
|
|
|
|
$m_staticText41->SetFont( |
278
|
|
|
|
|
|
|
Wx::Font->new( Wx::NORMAL_FONT->GetPointSize, 70, 90, 92, 0, "" ) |
279
|
|
|
|
|
|
|
); |
280
|
|
|
|
|
|
|
|
281
|
|
|
|
|
|
|
$self->{complete_fbp} = Wx::CheckBox->new( |
282
|
|
|
|
|
|
|
$self->{m_panel2}, |
283
|
|
|
|
|
|
|
-1, |
284
|
|
|
|
|
|
|
Wx::gettext("All dialog FBP classes"), |
285
|
|
|
|
|
|
|
Wx::DefaultPosition, |
286
|
|
|
|
|
|
|
Wx::DefaultSize, |
287
|
|
|
|
|
|
|
); |
288
|
|
|
|
|
|
|
$self->{complete_fbp}->Disable; |
289
|
|
|
|
|
|
|
|
290
|
|
|
|
|
|
|
Wx::Event::EVT_CHECKBOX( |
291
|
|
|
|
|
|
|
$self, |
292
|
|
|
|
|
|
|
$self->{complete_fbp}, |
293
|
|
|
|
|
|
|
sub { |
294
|
|
|
|
|
|
|
shift->complete_refresh(@_); |
295
|
|
|
|
|
|
|
}, |
296
|
|
|
|
|
|
|
); |
297
|
|
|
|
|
|
|
|
298
|
|
|
|
|
|
|
$self->{complete_shim} = Wx::CheckBox->new( |
299
|
|
|
|
|
|
|
$self->{m_panel2}, |
300
|
|
|
|
|
|
|
-1, |
301
|
|
|
|
|
|
|
Wx::gettext("All dialog shim subclasses"), |
302
|
|
|
|
|
|
|
Wx::DefaultPosition, |
303
|
|
|
|
|
|
|
Wx::DefaultSize, |
304
|
|
|
|
|
|
|
); |
305
|
|
|
|
|
|
|
$self->{complete_shim}->Disable; |
306
|
|
|
|
|
|
|
|
307
|
|
|
|
|
|
|
Wx::Event::EVT_CHECKBOX( |
308
|
|
|
|
|
|
|
$self, |
309
|
|
|
|
|
|
|
$self->{complete_shim}, |
310
|
|
|
|
|
|
|
sub { |
311
|
|
|
|
|
|
|
shift->complete_refresh(@_); |
312
|
|
|
|
|
|
|
}, |
313
|
|
|
|
|
|
|
); |
314
|
|
|
|
|
|
|
|
315
|
|
|
|
|
|
|
$self->{complete_app} = Wx::CheckBox->new( |
316
|
|
|
|
|
|
|
$self->{m_panel2}, |
317
|
|
|
|
|
|
|
-1, |
318
|
|
|
|
|
|
|
Wx::gettext("Root Wx::App class"), |
319
|
|
|
|
|
|
|
Wx::DefaultPosition, |
320
|
|
|
|
|
|
|
Wx::DefaultSize, |
321
|
|
|
|
|
|
|
); |
322
|
|
|
|
|
|
|
$self->{complete_app}->Disable; |
323
|
|
|
|
|
|
|
|
324
|
|
|
|
|
|
|
Wx::Event::EVT_CHECKBOX( |
325
|
|
|
|
|
|
|
$self, |
326
|
|
|
|
|
|
|
$self->{complete_app}, |
327
|
|
|
|
|
|
|
sub { |
328
|
|
|
|
|
|
|
shift->complete_refresh(@_); |
329
|
|
|
|
|
|
|
}, |
330
|
|
|
|
|
|
|
); |
331
|
|
|
|
|
|
|
|
332
|
|
|
|
|
|
|
$self->{complete_script} = Wx::CheckBox->new( |
333
|
|
|
|
|
|
|
$self->{m_panel2}, |
334
|
|
|
|
|
|
|
-1, |
335
|
|
|
|
|
|
|
Wx::gettext("Launch script for app (show first form)"), |
336
|
|
|
|
|
|
|
Wx::DefaultPosition, |
337
|
|
|
|
|
|
|
Wx::DefaultSize, |
338
|
|
|
|
|
|
|
); |
339
|
|
|
|
|
|
|
$self->{complete_script}->Disable; |
340
|
|
|
|
|
|
|
|
341
|
|
|
|
|
|
|
Wx::Event::EVT_CHECKBOX( |
342
|
|
|
|
|
|
|
$self, |
343
|
|
|
|
|
|
|
$self->{complete_script}, |
344
|
|
|
|
|
|
|
sub { |
345
|
|
|
|
|
|
|
shift->complete_refresh(@_); |
346
|
|
|
|
|
|
|
}, |
347
|
|
|
|
|
|
|
); |
348
|
|
|
|
|
|
|
|
349
|
|
|
|
|
|
|
$self->{complete} = Wx::Button->new( |
350
|
|
|
|
|
|
|
$self->{m_panel2}, |
351
|
|
|
|
|
|
|
-1, |
352
|
|
|
|
|
|
|
Wx::gettext("Generate"), |
353
|
|
|
|
|
|
|
Wx::DefaultPosition, |
354
|
|
|
|
|
|
|
Wx::DefaultSize, |
355
|
|
|
|
|
|
|
); |
356
|
|
|
|
|
|
|
$self->{complete}->Disable; |
357
|
|
|
|
|
|
|
|
358
|
|
|
|
|
|
|
Wx::Event::EVT_BUTTON( |
359
|
|
|
|
|
|
|
$self, |
360
|
|
|
|
|
|
|
$self->{complete}, |
361
|
|
|
|
|
|
|
sub { |
362
|
|
|
|
|
|
|
shift->complete_clicked(@_); |
363
|
|
|
|
|
|
|
}, |
364
|
|
|
|
|
|
|
); |
365
|
|
|
|
|
|
|
|
366
|
|
|
|
|
|
|
my $bSizer9 = Wx::BoxSizer->new(Wx::HORIZONTAL); |
367
|
|
|
|
|
|
|
$bSizer9->Add( $m_bitmap3, 0, Wx::RIGHT, 5 ); |
368
|
|
|
|
|
|
|
$bSizer9->Add( $file, 0, Wx::ALIGN_BOTTOM, 5 ); |
369
|
|
|
|
|
|
|
|
370
|
|
|
|
|
|
|
my $bSizer6 = Wx::BoxSizer->new(Wx::HORIZONTAL); |
371
|
|
|
|
|
|
|
$bSizer6->Add( $self->{browse}, 1, Wx::ALL | Wx::EXPAND, 5 ); |
372
|
|
|
|
|
|
|
|
373
|
|
|
|
|
|
|
my $bSizer8 = Wx::BoxSizer->new(Wx::HORIZONTAL); |
374
|
|
|
|
|
|
|
$bSizer8->Add( $m_bitmap2, 0, Wx::RIGHT, 5 ); |
375
|
|
|
|
|
|
|
$bSizer8->Add( $m_staticText3, 0, Wx::ALIGN_BOTTOM, 1 ); |
376
|
|
|
|
|
|
|
|
377
|
|
|
|
|
|
|
my $bSizer10 = Wx::BoxSizer->new(Wx::HORIZONTAL); |
378
|
|
|
|
|
|
|
$bSizer10->Add( $m_staticText5, 0, Wx::ALIGN_CENTER_VERTICAL | Wx::ALIGN_RIGHT | Wx::BOTTOM | Wx::LEFT | Wx::TOP, 5 ); |
379
|
|
|
|
|
|
|
$bSizer10->Add( $self->{version}, 0, Wx::ALL, 5 ); |
380
|
|
|
|
|
|
|
|
381
|
|
|
|
|
|
|
my $bSizer11 = Wx::BoxSizer->new(Wx::HORIZONTAL); |
382
|
|
|
|
|
|
|
$bSizer11->Add( $self->{translate}, 1, Wx::ALL | Wx::EXPAND, 5 ); |
383
|
|
|
|
|
|
|
$bSizer11->Add( $self->{encapsulation}, 1, Wx::ALL | Wx::EXPAND, 5 ); |
384
|
|
|
|
|
|
|
|
385
|
|
|
|
|
|
|
my $buttons = Wx::BoxSizer->new(Wx::HORIZONTAL); |
386
|
|
|
|
|
|
|
$buttons->Add( $cancel, 0, Wx::ALL, 5 ); |
387
|
|
|
|
|
|
|
$buttons->Add( 50, 0, 1, Wx::EXPAND, 5 ); |
388
|
|
|
|
|
|
|
|
389
|
|
|
|
|
|
|
my $sizer2 = Wx::BoxSizer->new(Wx::VERTICAL); |
390
|
|
|
|
|
|
|
$sizer2->Add( $bSizer9, 0, Wx::ALL | Wx::EXPAND, 5 ); |
391
|
|
|
|
|
|
|
$sizer2->Add( $bSizer6, 0, Wx::EXPAND, 5 ); |
392
|
|
|
|
|
|
|
$sizer2->Add( 0, 5, 0, Wx::EXPAND, 5 ); |
393
|
|
|
|
|
|
|
$sizer2->Add( $line1, 0, Wx::EXPAND | Wx::LEFT | Wx::RIGHT, 5 ); |
394
|
|
|
|
|
|
|
$sizer2->Add( $bSizer8, 0, Wx::ALL | Wx::EXPAND, 5 ); |
395
|
|
|
|
|
|
|
$sizer2->Add( $bSizer10, 0, Wx::EXPAND, 5 ); |
396
|
|
|
|
|
|
|
$sizer2->Add( $bSizer11, 0, Wx::EXPAND, 5 ); |
397
|
|
|
|
|
|
|
$sizer2->Add( $self->{padre}, 0, Wx::ALL, 5 ); |
398
|
|
|
|
|
|
|
$sizer2->Add( 0, 10, 0, Wx::EXPAND, 5 ); |
399
|
|
|
|
|
|
|
$sizer2->Add( $m_staticline41, 0, Wx::EXPAND | Wx::LEFT | Wx::RIGHT, 5 ); |
400
|
|
|
|
|
|
|
$sizer2->Add( $buttons, 0, Wx::EXPAND, 5 ); |
401
|
|
|
|
|
|
|
|
402
|
|
|
|
|
|
|
my $bSizer121 = Wx::BoxSizer->new(Wx::HORIZONTAL); |
403
|
|
|
|
|
|
|
$bSizer121->Add( $m_bitmap41, 0, Wx::ALIGN_CENTER_VERTICAL | Wx::RIGHT, 5 ); |
404
|
|
|
|
|
|
|
$bSizer121->Add( $m_staticText411, 0, Wx::ALIGN_BOTTOM | Wx::BOTTOM, 1 ); |
405
|
|
|
|
|
|
|
|
406
|
|
|
|
|
|
|
my $bSizer5 = Wx::BoxSizer->new(Wx::HORIZONTAL); |
407
|
|
|
|
|
|
|
$bSizer5->Add( $self->{select}, 1, Wx::ALIGN_CENTER_VERTICAL | Wx::ALL | Wx::EXPAND, 5 ); |
408
|
|
|
|
|
|
|
|
409
|
|
|
|
|
|
|
my $bSizer151 = Wx::BoxSizer->new(Wx::HORIZONTAL); |
410
|
|
|
|
|
|
|
$bSizer151->Add( $self->{preview}, 0, Wx::TOP, 0 ); |
411
|
|
|
|
|
|
|
$bSizer151->Add( 0, 0, 1, Wx::EXPAND, 5 ); |
412
|
|
|
|
|
|
|
$bSizer151->Add( $self->{generate}, 0, 0, 5 ); |
413
|
|
|
|
|
|
|
|
414
|
|
|
|
|
|
|
my $bSizer14 = Wx::BoxSizer->new(Wx::VERTICAL); |
415
|
|
|
|
|
|
|
$bSizer14->Add( $bSizer121, 0, Wx::EXPAND | Wx::LEFT | Wx::RIGHT, 5 ); |
416
|
|
|
|
|
|
|
$bSizer14->Add( $bSizer5, 0, Wx::EXPAND, 0 ); |
417
|
|
|
|
|
|
|
$bSizer14->Add( $self->{associate}, 0, Wx::ALIGN_BOTTOM | Wx::LEFT, 5 ); |
418
|
|
|
|
|
|
|
$bSizer14->Add( 0, 0, 1, Wx::EXPAND, 5 ); |
419
|
|
|
|
|
|
|
$bSizer14->Add( $bSizer151, 0, Wx::EXPAND, 0 ); |
420
|
|
|
|
|
|
|
|
421
|
|
|
|
|
|
|
$self->{m_panel1}->SetSizerAndFit($bSizer14); |
422
|
|
|
|
|
|
|
$self->{m_panel1}->Layout; |
423
|
|
|
|
|
|
|
|
424
|
|
|
|
|
|
|
my $bSizer12 = Wx::BoxSizer->new(Wx::HORIZONTAL); |
425
|
|
|
|
|
|
|
$bSizer12->Add( $m_bitmap4, 0, Wx::ALIGN_CENTER_VERTICAL | Wx::RIGHT, 5 ); |
426
|
|
|
|
|
|
|
$bSizer12->Add( $m_staticText41, 0, Wx::ALIGN_BOTTOM | Wx::BOTTOM, 1 ); |
427
|
|
|
|
|
|
|
|
428
|
|
|
|
|
|
|
my $bSizer15 = Wx::BoxSizer->new(Wx::VERTICAL); |
429
|
|
|
|
|
|
|
$bSizer15->Add( $bSizer12, 0, Wx::EXPAND | Wx::LEFT | Wx::RIGHT, 5 ); |
430
|
|
|
|
|
|
|
$bSizer15->Add( $self->{complete_fbp}, 0, Wx::ALL, 5 ); |
431
|
|
|
|
|
|
|
$bSizer15->Add( $self->{complete_shim}, 0, Wx::ALL, 5 ); |
432
|
|
|
|
|
|
|
$bSizer15->Add( $self->{complete_app}, 0, Wx::ALL, 5 ); |
433
|
|
|
|
|
|
|
$bSizer15->Add( $self->{complete_script}, 0, Wx::ALL, 5 ); |
434
|
|
|
|
|
|
|
$bSizer15->Add( 0, 0, 1, Wx::EXPAND, 5 ); |
435
|
|
|
|
|
|
|
$bSizer15->Add( $self->{complete}, 0, Wx::ALIGN_RIGHT, 0 ); |
436
|
|
|
|
|
|
|
|
437
|
|
|
|
|
|
|
$self->{m_panel2}->SetSizerAndFit($bSizer15); |
438
|
|
|
|
|
|
|
$self->{m_panel2}->Layout; |
439
|
|
|
|
|
|
|
|
440
|
|
|
|
|
|
|
$self->{m_notebook1}->AddPage( $self->{m_panel1}, Wx::gettext("Dialog"), 1 ); |
441
|
|
|
|
|
|
|
$self->{m_notebook1}->AddPage( $self->{m_panel2}, Wx::gettext("Application"), 0 ); |
442
|
|
|
|
|
|
|
|
443
|
|
|
|
|
|
|
my $sizer1 = Wx::BoxSizer->new(Wx::HORIZONTAL); |
444
|
|
|
|
|
|
|
$sizer1->Add( $sizer2, 0, Wx::EXPAND, 5 ); |
445
|
|
|
|
|
|
|
$sizer1->Add( 0, 0, 0, Wx::EXPAND, 5 ); |
446
|
|
|
|
|
|
|
$sizer1->Add( $self->{m_notebook1}, 0, Wx::EXPAND, 0 ); |
447
|
|
|
|
|
|
|
|
448
|
|
|
|
|
|
|
$self->SetSizerAndFit($sizer1); |
449
|
|
|
|
|
|
|
$self->Layout; |
450
|
|
|
|
|
|
|
|
451
|
|
|
|
|
|
|
return $self; |
452
|
|
|
|
|
|
|
} |
453
|
|
|
|
|
|
|
|
454
|
|
|
|
|
|
|
sub browse { |
455
|
|
|
|
|
|
|
$_[0]->{browse}; |
456
|
|
|
|
|
|
|
} |
457
|
|
|
|
|
|
|
|
458
|
|
|
|
|
|
|
sub version { |
459
|
|
|
|
|
|
|
$_[0]->{version}; |
460
|
|
|
|
|
|
|
} |
461
|
|
|
|
|
|
|
|
462
|
|
|
|
|
|
|
sub translate { |
463
|
|
|
|
|
|
|
$_[0]->{translate}; |
464
|
|
|
|
|
|
|
} |
465
|
|
|
|
|
|
|
|
466
|
|
|
|
|
|
|
sub encapsulation { |
467
|
|
|
|
|
|
|
$_[0]->{encapsulation}; |
468
|
|
|
|
|
|
|
} |
469
|
|
|
|
|
|
|
|
470
|
|
|
|
|
|
|
sub padre { |
471
|
|
|
|
|
|
|
$_[0]->{padre}; |
472
|
|
|
|
|
|
|
} |
473
|
|
|
|
|
|
|
|
474
|
|
|
|
|
|
|
sub select { |
475
|
|
|
|
|
|
|
$_[0]->{select}; |
476
|
|
|
|
|
|
|
} |
477
|
|
|
|
|
|
|
|
478
|
|
|
|
|
|
|
sub associate { |
479
|
|
|
|
|
|
|
$_[0]->{associate}; |
480
|
|
|
|
|
|
|
} |
481
|
|
|
|
|
|
|
|
482
|
|
|
|
|
|
|
sub preview { |
483
|
|
|
|
|
|
|
$_[0]->{preview}; |
484
|
|
|
|
|
|
|
} |
485
|
|
|
|
|
|
|
|
486
|
|
|
|
|
|
|
sub generate { |
487
|
|
|
|
|
|
|
$_[0]->{generate}; |
488
|
|
|
|
|
|
|
} |
489
|
|
|
|
|
|
|
|
490
|
|
|
|
|
|
|
sub complete_fbp { |
491
|
|
|
|
|
|
|
$_[0]->{complete_fbp}; |
492
|
|
|
|
|
|
|
} |
493
|
|
|
|
|
|
|
|
494
|
|
|
|
|
|
|
sub complete_shim { |
495
|
|
|
|
|
|
|
$_[0]->{complete_shim}; |
496
|
|
|
|
|
|
|
} |
497
|
|
|
|
|
|
|
|
498
|
|
|
|
|
|
|
sub complete_app { |
499
|
|
|
|
|
|
|
$_[0]->{complete_app}; |
500
|
|
|
|
|
|
|
} |
501
|
|
|
|
|
|
|
|
502
|
|
|
|
|
|
|
sub complete_script { |
503
|
|
|
|
|
|
|
$_[0]->{complete_script}; |
504
|
|
|
|
|
|
|
} |
505
|
|
|
|
|
|
|
|
506
|
|
|
|
|
|
|
sub complete { |
507
|
|
|
|
|
|
|
$_[0]->{complete}; |
508
|
|
|
|
|
|
|
} |
509
|
|
|
|
|
|
|
|
510
|
|
|
|
|
|
|
sub browse_changed { |
511
|
|
|
|
|
|
|
$_[0]->main->error('Handler method browse_changed for event browse.OnFileChanged not implemented'); |
512
|
|
|
|
|
|
|
} |
513
|
|
|
|
|
|
|
|
514
|
|
|
|
|
|
|
sub preview_clicked { |
515
|
|
|
|
|
|
|
$_[0]->main->error('Handler method preview_clicked for event preview.OnButtonClick not implemented'); |
516
|
|
|
|
|
|
|
} |
517
|
|
|
|
|
|
|
|
518
|
|
|
|
|
|
|
sub generate_clicked { |
519
|
|
|
|
|
|
|
$_[0]->main->error('Handler method generate_clicked for event generate.OnButtonClick not implemented'); |
520
|
|
|
|
|
|
|
} |
521
|
|
|
|
|
|
|
|
522
|
|
|
|
|
|
|
sub complete_refresh { |
523
|
|
|
|
|
|
|
$_[0]->main->error('Handler method complete_refresh for event complete_fbp.OnCheckBox not implemented'); |
524
|
|
|
|
|
|
|
} |
525
|
|
|
|
|
|
|
|
526
|
|
|
|
|
|
|
sub complete_clicked { |
527
|
|
|
|
|
|
|
$_[0]->main->error('Handler method complete_clicked for event complete.OnButtonClick not implemented'); |
528
|
|
|
|
|
|
|
} |
529
|
|
|
|
|
|
|
|
530
|
|
|
|
|
|
|
1; |
531
|
|
|
|
|
|
|
|
532
|
|
|
|
|
|
|
# Copyright 2008-2012 The Padre development team as listed in Padre.pm. |
533
|
|
|
|
|
|
|
# LICENSE |
534
|
|
|
|
|
|
|
# This program is free software; you can redistribute it and/or |
535
|
|
|
|
|
|
|
# modify it under the same terms as Perl 5 itself. |
536
|
|
|
|
|
|
|
|