MyFrame Class Reference

#include <test-die.h>

List of all members.

Public Member Functions

 MyFrame ()
 ~MyFrame ()
void CloseMe ()

Private Attributes

TList * fCleanup

Detailed Description

Definition at line 17 of file test-die.h.


Constructor & Destructor Documentation

MyFrame::MyFrame (  )  [inline]

Definition at line 22 of file test-die.h.

References fCleanup.

00022               : TGMainFrame(gClient->GetRoot(),1,1), fCleanup(0) {
00023 
00024         fCleanup = new TList;
00025 
00026         TGLayoutHints* loh = new TGLayoutHints(kLHintsExpandX|kLHintsExpandY);
00027         fCleanup->Add(loh);
00028         TGTextButton* b1 = new TGTextButton(this,"die");
00029         fCleanup->Add(b1);
00030         this->AddFrame(b1,loh);
00031         b1->Connect("Clicked()","MyFrame",this,"SendCloseMessage()");
00032 
00033         this->Connect("CloseWindow()","MyFrame",this,"CloseMe()");
00034 //        this->Connect("CloseWindow()",0,0,"kill_kill_kill()");
00035 
00036         this->MapSubwindows();
00037         this->Layout();
00038         this->MapWindow();
00039         this->Resize(100,200);
00040     } // ctor

MyFrame::~MyFrame (  )  [inline]

Definition at line 41 of file test-die.h.

References fCleanup.

00041                {
00042         cerr << "~MyFrame()\n";
00043         if (fCleanup) {
00044             fCleanup->Delete();
00045             delete fCleanup;
00046         }
00047     }


Member Function Documentation

void MyFrame::CloseMe (  )  [inline]

Definition at line 48 of file test-die.h.

00048                    {
00049         cerr << "bye bye\n";
00050         delete this;
00051     }


Member Data Documentation

TList* MyFrame::fCleanup [private]

Definition at line 19 of file test-die.h.

Referenced by MyFrame(), and ~MyFrame().


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

Generated on 16 Jan 2018 for loon by  doxygen 1.6.1