1 |
package challenge; # challenge widget |
2 |
|
3 |
use KGS::Constants; |
4 |
|
5 |
use base gtk::widget; |
6 |
|
7 |
sub new { |
8 |
my $class = shift; |
9 |
my $self = $class->SUPER::new(@_); |
10 |
|
11 |
$self->{widget} = new Gtk2::Frame "Challenge"; |
12 |
$self->{widget}->add (my $vbox = new Gtk2::VBox); |
13 |
$vbox->add (my $frame = new Gtk2::Frame "Notes"); |
14 |
$frame->add ($self->{entry} = new Gtk2::Entry); |
15 |
|
16 |
$vbox->add (my $hbox = new Gtk2::HBox); |
17 |
|
18 |
$hbox->add ($self->{userlist} = new userlist); |
19 |
|
20 |
$vbox->add (my $hbox = new Gtk2::HButtonBox); |
21 |
|
22 |
$hbox->add (my $button = new Gtk2::Button "OK"); |
23 |
$hbox->add (my $button = new Gtk2::Button "Decline"); |
24 |
$hbox->add (my $button = new Gtk2::Button "Cancel"); |
25 |
|
26 |
$self; |
27 |
} |
28 |
|
29 |
sub destroy { |
30 |
my ($self) = @_; |
31 |
$self->SUPER::destroy; |
32 |
} |
33 |
|
34 |
1; |
35 |
|
36 |
|