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
|
#include <hello.h>
/*
defining signal and events
dynamics tables
*/
DEFINE_SIGNAL_LIST(HelloForm,VDKForm);
DEFINE_EVENT_LIST(HelloForm,VDKForm);
/*
defining signal static table
*/
DEFINE_SIGNAL_MAP(HelloForm,VDKForm)
ON_SIGNAL(SayHello,clicked_signal,OnSayHelloClick),
ON_SIGNAL(Quit,clicked_signal,OnQuitClick)
END_SIGNAL_MAP
/*
main form setup
*/
void
HelloForm::GUISetup(void)
{
SetSize(241,104);
Title = "hello Main Form";
Hbox2 = new VDKBox(this,h_box);
Hbox2->SetSize(239,78);
Add(Hbox2,0,1,1,0);
Hbox2->BorderWidth(1);
Label0 = new VDKLabel(this," ");
Label0->Foreground = VDKRgb(178,34,34);
VDKFont* Label0_font = new VDKFont(this,"courier Bold 13");
Label0->Font = Label0_font;
Label0->SetSize(131,76);
Label0->Justify = (GtkJustification) 2;
Hbox2->Add(Label0,0,1,1,0);
Pixmap0 = new VDKPixmap(this,"proud.xpm");
Pixmap0->SetSize(103,76);
Hbox2->Add(Pixmap0,0,1,1,0);
Hbox4 = new VDKBox(this,h_box);
Hbox4->SetSize(239,22);
Add(Hbox4,0,1,1,0);
Hbox4->BorderWidth(0);
SayHello = new VDKCustomButton(this,(char*) NULL,"_Say Hello",16,(GtkPositionType) 1);
Hbox4->Add(SayHello,0,1,1,2);
Quit = new VDKCustomButton(this,(char*) NULL,"_Quit",16,(GtkPositionType) 1);
Hbox4->Add(Quit,0,1,1,2);
}
// do not remove this mark: #!#
// end of file:hello_gui.cc
|