AWindow Class Reference

Inheritance diagram for AWindow:
GuiMainWindow GuiCompositeFrameBase GuiBase

List of all members.

Public Member Functions

 AWindow ()
 ~AWindow ()
void KillMe ()
void Quit ()

Detailed Description

Definition at line 311 of file test-Gui.cxx.


Constructor & Destructor Documentation

AWindow::AWindow (  )  [inline]

Definition at line 315 of file test-Gui.cxx.

References GuiCompositeFrameBase::Add(), GuiButtonBase::clicked, GuiMainWindow::close_window, fill_test_menu(), KillMe(), Quit(), and refill_menu().

00315               : GuiMainWindow(250,50) {
00316         cerr << "Spawing a box\n";
00317 
00318         using SigC::bind;
00319         using SigC::slot;
00320 
00321         GuiVBox* vbox = manage(new GuiVBox(*this));
00322         this->Add(*vbox);
00323 
00324         GuiMenuBar* gmb = manage(new GuiMenuBar(*vbox));
00325         vbox->Add(*gmb);        
00326         fill_test_menu(gmb);
00327 
00328         GuiHBox* box = manage(new GuiHBox(*vbox));
00329         vbox->Add(*box);
00330         GuiTextButton* close = manage(new GuiTextButton(*box,"Close"));
00331         box->Add(*close);
00332         GuiTextButton* quit = manage(new GuiTextButton(*box,"quit"));
00333         box->Add(*quit);
00334         GuiTextButton* menu = manage(new GuiTextButton(*box,"redo menus"));
00335         box->Add(*menu);
00336 
00337         close->clicked.connect(slot(*this,&AWindow::SendCloseMessage));
00338         quit->clicked.connect(slot(*this,&AWindow::Quit));
00339         close_window.connect(slot(*this,&AWindow::KillMe));
00340         menu->clicked.connect(bind(slot(refill_menu),gmb));
00341     }

AWindow::~AWindow (  )  [inline]

Definition at line 342 of file test-Gui.cxx.

00342                {
00343         cerr << "~AWindow()\n"; 
00344     }


Member Function Documentation

void AWindow::KillMe (  )  [inline]

Reimplemented from GuiMainWindow.

Definition at line 351 of file test-Gui.cxx.

Referenced by AWindow().

00351                   {
00352         delete this;
00353     }

void AWindow::Quit (  )  [inline]

Definition at line 354 of file test-Gui.cxx.

Referenced by AWindow().

00354                 {
00355         cerr << "Quitting!\n"; 
00356         gApplication->Terminate(0);
00357     }


The documentation for this class was generated from the following file:

Generated on 3 Dec 2018 for loon by  doxygen 1.6.1