1
package Padre::Wx::FBP::VCS;
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!
13
use Padre::Wx::Role::Main ();
15
our $VERSION = '0.92';
25
my $self = $class->SUPER::new(
33
$self->{add} = Wx::BitmapButton->new(
41
$self->{add}->SetToolTip(
42
Wx::gettext("Schedule the file or directory for addition to the repository")
45
Wx::Event::EVT_BUTTON(
49
shift->on_add_click(@_);
53
$self->{delete} = Wx::BitmapButton->new(
61
$self->{delete}->SetToolTip(
62
Wx::gettext("Schedule the file or directory for deletion from the repository")
65
Wx::Event::EVT_BUTTON(
69
shift->on_delete_click(@_);
73
$self->{update} = Wx::BitmapButton->new(
81
$self->{update}->SetToolTip(
82
Wx::gettext("Bring changes from the repository into the working copy")
85
Wx::Event::EVT_BUTTON(
89
shift->on_update_click(@_);
93
$self->{commit} = Wx::BitmapButton->new(
101
$self->{commit}->SetToolTip(
102
Wx::gettext("Send changes from your working copy to the repository")
105
Wx::Event::EVT_BUTTON(
109
shift->on_commit_click(@_);
113
$self->{revert} = Wx::BitmapButton->new(
121
$self->{revert}->SetToolTip(
122
Wx::gettext("Restore pristine working copy file (undo most local edits)")
125
Wx::Event::EVT_BUTTON(
129
shift->on_revert_click(@_);
133
$self->{refresh} = Wx::BitmapButton->new(
141
$self->{refresh}->SetToolTip(
142
Wx::gettext("Refresh the status of working copy files and directories")
145
Wx::Event::EVT_BUTTON(
149
shift->on_refresh_click(@_);
153
$self->{list} = Wx::ListCtrl->new(
158
Wx::LC_REPORT | Wx::LC_SINGLE_SEL,
161
Wx::Event::EVT_LIST_COL_CLICK(
165
shift->on_list_column_click(@_);
169
Wx::Event::EVT_LIST_ITEM_ACTIVATED(
173
shift->on_list_item_activated(@_);
177
$self->{show_normal} = Wx::CheckBox->new(
180
Wx::gettext("Normal"),
185
Wx::Event::EVT_CHECKBOX(
187
$self->{show_normal},
189
shift->on_show_normal_click(@_);
193
$self->{show_unversioned} = Wx::CheckBox->new(
196
Wx::gettext("Unversioned"),
201
Wx::Event::EVT_CHECKBOX(
203
$self->{show_unversioned},
205
shift->on_show_unversioned_click(@_);
209
$self->{show_ignored} = Wx::CheckBox->new(
212
Wx::gettext("Ignored"),
217
Wx::Event::EVT_CHECKBOX(
219
$self->{show_ignored},
221
shift->on_show_ignored_click(@_);
225
$self->{status} = Wx::TextCtrl->new(
231
Wx::TE_MULTILINE | Wx::TE_READONLY,
234
my $button_sizer = Wx::BoxSizer->new(Wx::HORIZONTAL);
235
$button_sizer->Add( $self->{add}, 0, Wx::ALL, 1 );
236
$button_sizer->Add( $self->{delete}, 0, Wx::ALL, 1 );
237
$button_sizer->Add( $self->{update}, 0, Wx::ALL, 1 );
238
$button_sizer->Add( $self->{commit}, 0, Wx::ALL, 1 );
239
$button_sizer->Add( $self->{revert}, 0, Wx::ALL, 1 );
240
$button_sizer->Add( $self->{refresh}, 0, Wx::ALL, 1 );
242
my $checkbox_sizer = Wx::StaticBoxSizer->new(
250
$checkbox_sizer->Add( $self->{show_normal}, 0, Wx::ALL, 2 );
251
$checkbox_sizer->Add( $self->{show_unversioned}, 0, Wx::ALL, 2 );
252
$checkbox_sizer->Add( $self->{show_ignored}, 0, Wx::ALL, 2 );
254
my $main_sizer = Wx::BoxSizer->new(Wx::VERTICAL);
255
$main_sizer->Add( $button_sizer, 0, Wx::EXPAND, 5 );
256
$main_sizer->Add( $self->{list}, 1, Wx::ALL | Wx::EXPAND, 5 );
257
$main_sizer->Add( $checkbox_sizer, 0, Wx::EXPAND, 2 );
258
$main_sizer->Add( $self->{status}, 0, Wx::ALL | Wx::EXPAND, 5 );
260
$self->SetSizer($main_sizer);
267
$_[0]->main->error('Handler method on_add_click for event add.OnButtonClick not implemented');
270
sub on_delete_click {
271
$_[0]->main->error('Handler method on_delete_click for event delete.OnButtonClick not implemented');
274
sub on_update_click {
275
$_[0]->main->error('Handler method on_update_click for event update.OnButtonClick not implemented');
278
sub on_commit_click {
279
$_[0]->main->error('Handler method on_commit_click for event commit.OnButtonClick not implemented');
282
sub on_revert_click {
283
$_[0]->main->error('Handler method on_revert_click for event revert.OnButtonClick not implemented');
286
sub on_refresh_click {
287
$_[0]->main->error('Handler method on_refresh_click for event refresh.OnButtonClick not implemented');
290
sub on_list_column_click {
291
$_[0]->main->error('Handler method on_list_column_click for event list.OnListColClick not implemented');
294
sub on_list_item_activated {
295
$_[0]->main->error('Handler method on_list_item_activated for event list.OnListItemActivated not implemented');
298
sub on_show_normal_click {
299
$_[0]->main->error('Handler method on_show_normal_click for event show_normal.OnCheckBox not implemented');
302
sub on_show_unversioned_click {
303
$_[0]->main->error('Handler method on_show_unversioned_click for event show_unversioned.OnCheckBox not implemented');
306
sub on_show_ignored_click {
307
$_[0]->main->error('Handler method on_show_ignored_click for event show_ignored.OnCheckBox not implemented');
312
# Copyright 2008-2011 The Padre development team as listed in Padre.pm.
314
# This program is free software; you can redistribute it and/or
315
# modify it under the same terms as Perl 5 itself.