| 1 | package Padre::Plugin::Moose::FBP::Assistant; | ||
| 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 | use 5.008005; | ||
| 10 | use utf8; | ||
| 11 | use strict; | ||
| 12 | use warnings; | ||
| 13 | use Padre::Wx 'Grid'; | ||
| 14 | use Padre::Wx::Role::Main (); | ||
| 15 | use Padre::Wx::Editor (); | ||
| 16 | |||
| 17 | our $VERSION = '0.21'; | ||
| 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("Moose Assistant"), | ||
| 31 | Wx::DefaultPosition, | ||
| 32 | [ 750, 480 ], | ||
| 33 | Wx::DEFAULT_DIALOG_STYLE | Wx::RESIZE_BORDER, | ||
| 34 | ); | ||
| 35 | $self->SetSizeHints( [ 750, 480 ], Wx::DefaultSize ); | ||
| 36 | $self->SetMinSize( [ 750, 480 ] ); | ||
| 37 | |||
| 38 | my $m_staticText2 = Wx::StaticText->new( | ||
| 39 | $self, | ||
| 40 | -1, | ||
| 41 | Wx::gettext("Object Tree"), | ||
| 42 | ); | ||
| 43 | $m_staticText2->SetFont( Wx::Font->new( Wx::NORMAL_FONT->GetPointSize, 70, 90, 92, 0, "" ) ); | ||
| 44 | |||
| 45 | $self->{tree} = Wx::TreeCtrl->new( | ||
| 46 | $self, | ||
| 47 | -1, | ||
| 48 | Wx::DefaultPosition, | ||
| 49 | Wx::DefaultSize, | ||
| 50 | Wx::TR_DEFAULT_STYLE | Wx::SIMPLE_BORDER, | ||
| 51 | ); | ||
| 52 | |||
| 53 | Wx::Event::EVT_KEY_UP( | ||
| 54 | $self->{tree}, | ||
| 55 | sub { | ||
| 56 | $self->on_tree_key_up( $_[1] ); | ||
| 57 | }, | ||
| 58 | ); | ||
| 59 | |||
| 60 | Wx::Event::EVT_TREE_ITEM_MENU( | ||
| 61 | $self, | ||
| 62 | $self->{tree}, | ||
| 63 | sub { | ||
| 64 | shift->on_tree_item_menu(@_); | ||
| 65 | }, | ||
| 66 | ); | ||
| 67 | |||
| 68 | Wx::Event::EVT_TREE_SEL_CHANGED( | ||
| 69 | $self, | ||
| 70 | $self->{tree}, | ||
| 71 | sub { | ||
| 72 | shift->on_tree_selection_change(@_); | ||
| 73 | }, | ||
| 74 | ); | ||
| 75 | |||
| 76 | my $m_staticText3 = Wx::StaticText->new( | ||
| 77 | $self, | ||
| 78 | -1, | ||
| 79 | Wx::gettext("Properties"), | ||
| 80 | ); | ||
| 81 | $m_staticText3->SetFont( Wx::Font->new( Wx::NORMAL_FONT->GetPointSize, 70, 90, 92, 0, "" ) ); | ||
| 82 | |||
| 83 | $self->{inspector} = Wx::Grid->new( | ||
| 84 | $self, | ||
| 85 | -1, | ||
| 86 | Wx::DefaultPosition, | ||
| 87 | [ -1, 150 ], | ||
| 88 | Wx::SIMPLE_BORDER, | ||
| 89 | ); | ||
| 90 | $self->{inspector}->CreateGrid( 20, 2 ); | ||
| 91 | $self->{inspector}->EnableEditing(1); | ||
| 92 | $self->{inspector}->EnableGridLines(1); | ||
| 93 | $self->{inspector}->EnableDragGridSize(0); | ||
| 94 | $self->{inspector}->SetMargins( 0, 0 ); | ||
| 95 | $self->{inspector}->SetColSize( 0, 140 ); | ||
| 96 | $self->{inspector}->SetColSize( 1, 140 ); | ||
| 97 | $self->{inspector}->EnableDragColMove(0); | ||
| 98 | $self->{inspector}->EnableDragColSize(1); | ||
| 99 | $self->{inspector}->SetColLabelSize(0); | ||
| 100 | $self->{inspector}->SetColLabelAlignment( Wx::ALIGN_CENTRE, Wx::ALIGN_CENTRE ); | ||
| 101 | $self->{inspector}->EnableDragRowSize(1); | ||
| 102 | $self->{inspector}->SetRowLabelAlignment( Wx::ALIGN_CENTRE, Wx::ALIGN_CENTRE ); | ||
| 103 | $self->{inspector}->SetDefaultCellAlignment( Wx::ALIGN_LEFT, Wx::ALIGN_TOP ); | ||
| 104 | $self->{inspector}->SetMinSize( [ -1, 150 ] ); | ||
| 105 | |||
| 106 | Wx::Event::EVT_GRID_CELL_CHANGE( | ||
| 107 | $self->{inspector}, | ||
| 108 | sub { | ||
| 109 | $self->on_grid_cell_change( $_[1] ); | ||
| 110 | }, | ||
| 111 | ); | ||
| 112 | |||
| 113 | $self->{help} = Wx::TextCtrl->new( | ||
| 114 | $self, | ||
| 115 | -1, | ||
| 116 | "", | ||
| 117 | Wx::DefaultPosition, | ||
| 118 | Wx::DefaultSize, | ||
| 119 | Wx::TE_MULTILINE | Wx::TE_NO_VSCROLL | Wx::TE_READONLY | Wx::NO_BORDER, | ||
| 120 | ); | ||
| 121 | $self->{help}->SetMinSize( [ -1, 100 ] ); | ||
| 122 | $self->{help}->SetForegroundColour( Wx::SystemSettings::GetColour(Wx::SYS_COLOUR_INFOBK) ); | ||
| 123 | $self->{help}->SetBackgroundColour( Wx::SystemSettings::GetColour(Wx::SYS_COLOUR_INFOBK) ); | ||
| 124 | |||
| 125 | my $m_staticText4 = Wx::StaticText->new( | ||
| 126 | $self, | ||
| 127 | -1, | ||
| 128 | Wx::gettext("Palette"), | ||
| 129 | ); | ||
| 130 | $m_staticText4->SetFont( Wx::Font->new( Wx::NORMAL_FONT->GetPointSize, 70, 90, 92, 0, "" ) ); | ||
| 131 | |||
| 132 | $self->{palette} = Wx::Notebook->new( | ||
| 133 | $self, | ||
| 134 | -1, | ||
| 135 | Wx::DefaultPosition, | ||
| 136 | Wx::DefaultSize, | ||
| 137 | ); | ||
| 138 | |||
| 139 | $self->{containers} = Wx::Panel->new( | ||
| 140 | $self->{palette}, | ||
| 141 | -1, | ||
| 142 | Wx::DefaultPosition, | ||
| 143 | Wx::DefaultSize, | ||
| 144 | Wx::TAB_TRAVERSAL, | ||
| 145 | ); | ||
| 146 | |||
| 147 | $self->{add_class_button} = Wx::Button->new( | ||
| 148 | $self->{containers}, | ||
| 149 | -1, | ||
| 150 | Wx::gettext("&Class"), | ||
| 151 | Wx::DefaultPosition, | ||
| 152 | Wx::DefaultSize, | ||
| 153 | ); | ||
| 154 | |||
| 155 | Wx::Event::EVT_BUTTON( | ||
| 156 | $self, | ||
| 157 | $self->{add_class_button}, | ||
| 158 | sub { | ||
| 159 | shift->on_add_class_button(@_); | ||
| 160 | }, | ||
| 161 | ); | ||
| 162 | |||
| 163 | $self->{add_role_button} = Wx::Button->new( | ||
| 164 | $self->{containers}, | ||
| 165 | -1, | ||
| 166 | Wx::gettext("&Role"), | ||
| 167 | Wx::DefaultPosition, | ||
| 168 | Wx::DefaultSize, | ||
| 169 | ); | ||
| 170 | |||
| 171 | Wx::Event::EVT_BUTTON( | ||
| 172 | $self, | ||
| 173 | $self->{add_role_button}, | ||
| 174 | sub { | ||
| 175 | shift->on_add_role_button(@_); | ||
| 176 | }, | ||
| 177 | ); | ||
| 178 | |||
| 179 | $self->{members} = Wx::Panel->new( | ||
| 180 | $self->{palette}, | ||
| 181 | -1, | ||
| 182 | Wx::DefaultPosition, | ||
| 183 | Wx::DefaultSize, | ||
| 184 | Wx::TAB_TRAVERSAL, | ||
| 185 | ); | ||
| 186 | |||
| 187 | $self->{add_attribute_button} = Wx::Button->new( | ||
| 188 | $self->{members}, | ||
| 189 | -1, | ||
| 190 | Wx::gettext("&Attribute"), | ||
| 191 | Wx::DefaultPosition, | ||
| 192 | Wx::DefaultSize, | ||
| 193 | ); | ||
| 194 | |||
| 195 | Wx::Event::EVT_BUTTON( | ||
| 196 | $self, | ||
| 197 | $self->{add_attribute_button}, | ||
| 198 | sub { | ||
| 199 | shift->on_add_attribute_button(@_); | ||
| 200 | }, | ||
| 201 | ); | ||
| 202 | |||
| 203 | $self->{add_method_button} = Wx::Button->new( | ||
| 204 | $self->{members}, | ||
| 205 | -1, | ||
| 206 | Wx::gettext("&Method"), | ||
| 207 | Wx::DefaultPosition, | ||
| 208 | Wx::DefaultSize, | ||
| 209 | ); | ||
| 210 | |||
| 211 | Wx::Event::EVT_BUTTON( | ||
| 212 | $self, | ||
| 213 | $self->{add_method_button}, | ||
| 214 | sub { | ||
| 215 | shift->on_add_method_button(@_); | ||
| 216 | }, | ||
| 217 | ); | ||
| 218 | |||
| 219 | $self->{add_subtype_button} = Wx::Button->new( | ||
| 220 | $self->{members}, | ||
| 221 | -1, | ||
| 222 | Wx::gettext("&Subtype"), | ||
| 223 | Wx::DefaultPosition, | ||
| 224 | Wx::DefaultSize, | ||
| 225 | ); | ||
| 226 | |||
| 227 | Wx::Event::EVT_BUTTON( | ||
| 228 | $self, | ||
| 229 | $self->{add_subtype_button}, | ||
| 230 | sub { | ||
| 231 | shift->on_add_subtype_button(@_); | ||
| 232 | }, | ||
| 233 | ); | ||
| 234 | |||
| 235 | $self->{add_constructor_button} = Wx::Button->new( | ||
| 236 | $self->{members}, | ||
| 237 | -1, | ||
| 238 | Wx::gettext("&Constructor"), | ||
| 239 | Wx::DefaultPosition, | ||
| 240 | Wx::DefaultSize, | ||
| 241 | ); | ||
| 242 | |||
| 243 | Wx::Event::EVT_BUTTON( | ||
| 244 | $self, | ||
| 245 | $self->{add_constructor_button}, | ||
| 246 | sub { | ||
| 247 | shift->on_add_constructor_button(@_); | ||
| 248 | }, | ||
| 249 | ); | ||
| 250 | |||
| 251 | $self->{add_destructor_button} = Wx::Button->new( | ||
| 252 | $self->{members}, | ||
| 253 | -1, | ||
| 254 | Wx::gettext("&Destructor"), | ||
| 255 | Wx::DefaultPosition, | ||
| 256 | Wx::DefaultSize, | ||
| 257 | ); | ||
| 258 | |||
| 259 | Wx::Event::EVT_BUTTON( | ||
| 260 | $self, | ||
| 261 | $self->{add_destructor_button}, | ||
| 262 | sub { | ||
| 263 | shift->on_add_destructor_button(@_); | ||
| 264 | }, | ||
| 265 | ); | ||
| 266 | |||
| 267 | $self->{online_refs} = Wx::Panel->new( | ||
| 268 | $self->{palette}, | ||
| 269 | -1, | ||
| 270 | Wx::DefaultPosition, | ||
| 271 | Wx::DefaultSize, | ||
| 272 | Wx::TAB_TRAVERSAL, | ||
| 273 | ); | ||
| 274 | |||
| 275 | $self->{moose_manual_hyperlink} = Wx::HyperlinkCtrl->new( | ||
| 276 | $self->{online_refs}, | ||
| 277 | -1, | ||
| 278 | Wx::gettext("Moose Manual"), | ||
| 279 | "https://metacpan.org/module/Moose::Manual", | ||
| 280 | Wx::DefaultPosition, | ||
| 281 | Wx::DefaultSize, | ||
| 282 | Wx::HL_DEFAULT_STYLE, | ||
| 283 | ); | ||
| 284 | |||
| 285 | $self->{moose_cookbook_hyperlink} = Wx::HyperlinkCtrl->new( | ||
| 286 | $self->{online_refs}, | ||
| 287 | -1, | ||
| 288 | Wx::gettext("How to Cook a Moose?"), | ||
| 289 | "https://metacpan.org/module/Moose::Cookbook", | ||
| 290 | Wx::DefaultPosition, | ||
| 291 | Wx::DefaultSize, | ||
| 292 | Wx::HL_DEFAULT_STYLE, | ||
| 293 | ); | ||
| 294 | |||
| 295 | $self->{moose_website_hyperlink} = Wx::HyperlinkCtrl->new( | ||
| 296 | $self->{online_refs}, | ||
| 297 | -1, | ||
| 298 | Wx::gettext("Moose Website"), | ||
| 299 | "http://moose.iinteractive.com/", | ||
| 300 | Wx::DefaultPosition, | ||
| 301 | Wx::DefaultSize, | ||
| 302 | Wx::HL_DEFAULT_STYLE, | ||
| 303 | ); | ||
| 304 | |||
| 305 | my $m_staticText5 = Wx::StaticText->new( | ||
| 306 | $self, | ||
| 307 | -1, | ||
| 308 | Wx::gettext("Preview"), | ||
| 309 | ); | ||
| 310 | $m_staticText5->SetFont( Wx::Font->new( Wx::NORMAL_FONT->GetPointSize, 70, 90, 92, 0, "" ) ); | ||
| 311 | |||
| 312 | $self->{preview} = Padre::Wx::Editor->new( | ||
| 313 | $self, | ||
| 314 | -1, | ||
| 315 | ); | ||
| 316 | |||
| 317 | my $m_staticline2 = Wx::StaticLine->new( | ||
| 318 | $self, | ||
| 319 | -1, | ||
| 320 | Wx::DefaultPosition, | ||
| 321 | Wx::DefaultSize, | ||
| 322 | Wx::LI_HORIZONTAL, | ||
| 323 | ); | ||
| 324 | |||
| 325 | $self->{generate_code_button} = Wx::Button->new( | ||
| 326 | $self, | ||
| 327 | -1, | ||
| 328 | Wx::gettext("&Generate"), | ||
| 329 | Wx::DefaultPosition, | ||
| 330 | Wx::DefaultSize, | ||
| 331 | ); | ||
| 332 | |||
| 333 | Wx::Event::EVT_BUTTON( | ||
| 334 | $self, | ||
| 335 | $self->{generate_code_button}, | ||
| 336 | sub { | ||
| 337 | shift->on_generate_code_button_clicked(@_); | ||
| 338 | }, | ||
| 339 | ); | ||
| 340 | |||
| 341 | $self->{reset_button} = Wx::Button->new( | ||
| 342 | $self, | ||
| 343 | -1, | ||
| 344 | Wx::gettext("Rese&t"), | ||
| 345 | Wx::DefaultPosition, | ||
| 346 | Wx::DefaultSize, | ||
| 347 | ); | ||
| 348 | |||
| 349 | Wx::Event::EVT_BUTTON( | ||
| 350 | $self, | ||
| 351 | $self->{reset_button}, | ||
| 352 | sub { | ||
| 353 | shift->on_reset_button_clicked(@_); | ||
| 354 | }, | ||
| 355 | ); | ||
| 356 | |||
| 357 | $self->{preferences_button} = Wx::Button->new( | ||
| 358 | $self, | ||
| 359 | -1, | ||
| 360 | Wx::gettext("&Preferences"), | ||
| 361 | Wx::DefaultPosition, | ||
| 362 | Wx::DefaultSize, | ||
| 363 | ); | ||
| 364 | |||
| 365 | Wx::Event::EVT_BUTTON( | ||
| 366 | $self, | ||
| 367 | $self->{preferences_button}, | ||
| 368 | sub { | ||
| 369 | shift->on_preferences_button_clicked(@_); | ||
| 370 | }, | ||
| 371 | ); | ||
| 372 | |||
| 373 | $self->{close_button} = Wx::Button->new( | ||
| 374 | $self, | ||
| 375 | Wx::ID_CANCEL, | ||
| 376 | Wx::gettext("Cl&ose"), | ||
| 377 | Wx::DefaultPosition, | ||
| 378 | Wx::DefaultSize, | ||
| 379 | ); | ||
| 380 | |||
| 381 | my $left_sizer = Wx::BoxSizer->new(Wx::VERTICAL); | ||
| 382 | $left_sizer->Add( $m_staticText2, 0, Wx::EXPAND | Wx::LEFT | Wx::RIGHT | Wx::TOP, 5 ); | ||
| 383 | $left_sizer->Add( $self->{tree}, 1, Wx::ALL | Wx::EXPAND, 5 ); | ||
| 384 | $left_sizer->Add( $m_staticText3, 0, Wx::EXPAND | Wx::LEFT | Wx::RIGHT | Wx::TOP, 5 ); | ||
| 385 | $left_sizer->Add( $self->{inspector}, 0, Wx::ALL | Wx::EXPAND, 5 ); | ||
| 386 | $left_sizer->Add( $self->{help}, 0, Wx::BOTTOM | Wx::EXPAND | Wx::LEFT | Wx::RIGHT, 5 ); | ||
| 387 | |||
| 388 | my $container_sizer = Wx::BoxSizer->new(Wx::HORIZONTAL); | ||
| 389 | $container_sizer->Add( $self->{add_class_button}, 0, Wx::ALIGN_CENTER_HORIZONTAL | Wx::ALL, 2 ); | ||
| 390 | $container_sizer->Add( $self->{add_role_button}, 0, Wx::ALL, 2 ); | ||
| 391 | |||
| 392 | $self->{containers}->SetSizerAndFit($container_sizer); | ||
| 393 | $self->{containers}->Layout; | ||
| 394 | |||
| 395 | my $members_sizer = Wx::BoxSizer->new(Wx::HORIZONTAL); | ||
| 396 | $members_sizer->Add( $self->{add_attribute_button}, 0, Wx::ALL, 2 ); | ||
| 397 | $members_sizer->Add( $self->{add_method_button}, 0, Wx::ALL, 2 ); | ||
| 398 | $members_sizer->Add( $self->{add_subtype_button}, 0, Wx::ALL, 2 ); | ||
| 399 | $members_sizer->Add( $self->{add_constructor_button}, 0, Wx::ALL, 2 ); | ||
| 400 | $members_sizer->Add( $self->{add_destructor_button}, 0, Wx::ALL, 2 ); | ||
| 401 | |||
| 402 | $self->{members}->SetSizerAndFit($members_sizer); | ||
| 403 | $self->{members}->Layout; | ||
| 404 | |||
| 405 | my $online_refs_sizer = Wx::BoxSizer->new(Wx::HORIZONTAL); | ||
| 406 | $online_refs_sizer->Add( $self->{moose_manual_hyperlink}, 0, Wx::ALIGN_CENTER_VERTICAL | Wx::ALL, 5 ); | ||
| 407 | $online_refs_sizer->Add( $self->{moose_cookbook_hyperlink}, 0, Wx::ALIGN_CENTER_VERTICAL | Wx::ALL, 5 ); | ||
| 408 | $online_refs_sizer->Add( $self->{moose_website_hyperlink}, 0, Wx::ALIGN_CENTER_VERTICAL | Wx::ALL, 5 ); | ||
| 409 | |||
| 410 | $self->{online_refs}->SetSizerAndFit($online_refs_sizer); | ||
| 411 | $self->{online_refs}->Layout; | ||
| 412 | |||
| 413 | $self->{palette}->AddPage( $self->{containers}, Wx::gettext("Containers"), 1 ); | ||
| 414 | $self->{palette}->AddPage( $self->{members}, Wx::gettext("Members"), 0 ); | ||
| 415 | $self->{palette}->AddPage( $self->{online_refs}, Wx::gettext("Online References"), 0 ); | ||
| 416 | |||
| 417 | my $button_sizer = Wx::BoxSizer->new(Wx::HORIZONTAL); | ||
| 418 | $button_sizer->Add( $self->{generate_code_button}, 0, Wx::ALIGN_BOTTOM | Wx::ALL, 5 ); | ||
| 419 | $button_sizer->Add( $self->{reset_button}, 0, Wx::ALIGN_BOTTOM | Wx::BOTTOM | Wx::RIGHT | Wx::TOP, 5 ); | ||
| 420 | $button_sizer->Add( $self->{preferences_button}, 0, Wx::ALL, 5 ); | ||
| 421 | $button_sizer->Add( 0, 0, 1, Wx::EXPAND, 5 ); | ||
| 422 | $button_sizer->Add( $self->{close_button}, 0, Wx::ALIGN_BOTTOM | Wx::ALL, 5 ); | ||
| 423 | |||
| 424 | my $right_sizer = Wx::BoxSizer->new(Wx::VERTICAL); | ||
| 425 | $right_sizer->Add( $m_staticText4, 0, Wx::EXPAND | Wx::LEFT | Wx::RIGHT | Wx::TOP, 5 ); | ||
| 426 | $right_sizer->Add( $self->{palette}, 0, Wx::EXPAND | Wx::ALL, 5 ); | ||
| 427 | $right_sizer->Add( $m_staticText5, 0, Wx::EXPAND | Wx::LEFT | Wx::RIGHT | Wx::TOP, 5 ); | ||
| 428 | $right_sizer->Add( $self->{preview}, 1, Wx::ALL | Wx::EXPAND, 5 ); | ||
| 429 | $right_sizer->Add( $m_staticline2, 0, Wx::EXPAND | Wx::LEFT | Wx::RIGHT, 5 ); | ||
| 430 | $right_sizer->Add( $button_sizer, 0, Wx::EXPAND, 5 ); | ||
| 431 | |||
| 432 | my $top_sizer = Wx::BoxSizer->new(Wx::HORIZONTAL); | ||
| 433 | $top_sizer->Add( $left_sizer, 0, Wx::EXPAND, 5 ); | ||
| 434 | $top_sizer->Add( $right_sizer, 1, Wx::EXPAND, 5 ); | ||
| 435 | |||
| 436 | my $main_sizer = Wx::BoxSizer->new(Wx::VERTICAL); | ||
| 437 | $main_sizer->Add( $top_sizer, 1, Wx::EXPAND, 5 ); | ||
| 438 | |||
| 439 | $self->SetSizer($main_sizer); | ||
| 440 | $self->Layout; | ||
| 441 | |||
| 442 | return $self; | ||
| 443 | } | ||
| 444 | |||
| 445 | sub on_tree_key_up { | ||
| 446 | $_[0]->main->error('Handler method on_tree_key_up for event tree.OnKeyUp not implemented'); | ||
| 447 | } | ||
| 448 | |||
| 449 | sub on_tree_item_menu { | ||
| 450 | $_[0]->main->error('Handler method on_tree_item_menu for event tree.OnTreeItemMenu not implemented'); | ||
| 451 | } | ||
| 452 | |||
| 453 | sub on_tree_selection_change { | ||
| 454 | $_[0]->main->error('Handler method on_tree_selection_change for event tree.OnTreeSelChanged not implemented'); | ||
| 455 | } | ||
| 456 | |||
| 457 | sub on_grid_cell_change { | ||
| 458 | $_[0]->main->error('Handler method on_grid_cell_change for event inspector.OnGridCellChange not implemented'); | ||
| 459 | } | ||
| 460 | |||
| 461 | sub on_add_class_button { | ||
| 462 | $_[0]->main->error('Handler method on_add_class_button for event add_class_button.OnButtonClick not implemented'); | ||
| 463 | } | ||
| 464 | |||
| 465 | sub on_add_role_button { | ||
| 466 | $_[0]->main->error('Handler method on_add_role_button for event add_role_button.OnButtonClick not implemented'); | ||
| 467 | } | ||
| 468 | |||
| 469 | sub on_add_attribute_button { | ||
| 470 | $_[0]->main->error( | ||
| 471 | 'Handler method on_add_attribute_button for event add_attribute_button.OnButtonClick not implemented'); | ||
| 472 | } | ||
| 473 | |||
| 474 | sub on_add_method_button { | ||
| 475 | $_[0]->main->error('Handler method on_add_method_button for event add_method_button.OnButtonClick not implemented'); | ||
| 476 | } | ||
| 477 | |||
| 478 | sub on_add_subtype_button { | ||
| 479 | $_[0]->main->error( | ||
| 480 | 'Handler method on_add_subtype_button for event add_subtype_button.OnButtonClick not implemented'); | ||
| 481 | } | ||
| 482 | |||
| 483 | sub on_add_constructor_button { | ||
| 484 | $_[0]->main->error( | ||
| 485 | 'Handler method on_add_constructor_button for event add_constructor_button.OnButtonClick not implemented'); | ||
| 486 | } | ||
| 487 | |||
| 488 | sub on_add_destructor_button { | ||
| 489 | $_[0]->main->error( | ||
| 490 | 'Handler method on_add_destructor_button for event add_destructor_button.OnButtonClick not implemented'); | ||
| 491 | } | ||
| 492 | |||
| 493 | sub on_generate_code_button_clicked { | ||
| 494 | $_[0]->main->error( | ||
| 495 | 'Handler method on_generate_code_button_clicked for event generate_code_button.OnButtonClick not implemented'); | ||
| 496 | } | ||
| 497 | |||
| 498 | sub on_reset_button_clicked { | ||
| 499 | $_[0]->main->error('Handler method on_reset_button_clicked for event reset_button.OnButtonClick not implemented'); | ||
| 500 | } | ||
| 501 | |||
| 502 | sub on_preferences_button_clicked { | ||
| 503 | $_[0]->main->error( | ||
| 504 | 'Handler method on_preferences_button_clicked for event preferences_button.OnButtonClick not implemented'); | ||
| 505 | } | ||
| 506 | |||
| 507 | 1; | ||
| 508 | |||
| 509 | # Copyright 2008-2012 The Padre development team as listed in Padre.pm. | ||
| 510 | # LICENSE | ||
| 511 | # This program is free software; you can redistribute it and/or | ||
| 512 | # modify it under the same terms as Perl 5 itself. |