GuiMainWindow Class Reference

#include <GuiMainWindow.h>

Inheritance diagram for GuiMainWindow:
GuiCompositeFrameBase GuiBase AWindow

List of all members.

Public Member Functions

 GuiMainWindow (int width=1, int height=1)
virtual ~GuiMainWindow ()
void ShowAll ()
void SetMinSize (int width=-1, int height=-1)
void ConnectClose (bool delete_on_close=false)
void KillMe ()

Public Attributes

SigC::Signal0< void > close_window

Protected Member Functions

virtual void CloseWindow ()

Detailed Description

Definition at line 23 of file GuiMainWindow.h.


Constructor & Destructor Documentation

GuiMainWindow::GuiMainWindow ( int  width = 1,
int  height = 1 
)

Definition at line 6 of file GuiMainWindow.cxx.

References GuiBase::SetLayoutHints().

00007     : TGMainFrame(gClient->GetRoot(),(unsigned int)width,(unsigned int)height)
00008 {
00009     this->SetLayoutHints(kLHintsExpandX | kLHintsExpandY);
00010 //    this->SetMinSize(width,height);
00011 }

GuiMainWindow::~GuiMainWindow (  )  [virtual]

Definition at line 13 of file GuiMainWindow.cxx.

00014 {
00015 }


Member Function Documentation

void GuiMainWindow::CloseWindow (  )  [protected, virtual]

Definition at line 51 of file GuiMainWindow.cxx.

References close_window.

00052 {
00053 //    this->TGMainFrame::CloseWindow();
00054     close_window();
00055 }

void GuiMainWindow::ConnectClose ( bool  delete_on_close = false  ) 
void GuiMainWindow::KillMe (  ) 

Reimplemented in AWindow.

Definition at line 47 of file GuiMainWindow.cxx.

Referenced by ConnectClose(), main(), and TridAnimator::OpenWindow().

00048 {
00049     delete this;
00050 }

void GuiMainWindow::SetMinSize ( int  width = -1,
int  height = -1 
)

Definition at line 28 of file GuiMainWindow.cxx.

References max.

Referenced by main().

00029 {
00030     return;
00031     const unsigned int max = 20000; // I want a screen this big!
00032 
00033     if (width < 0) width = this->GetDefaultWidth();
00034     if (height < 0) height = this->GetDefaultHeight();
00035     this->SetWMSizeHints((unsigned int)width,(unsigned int)height,
00036                          max,max,1U,1U);
00037 }

void GuiMainWindow::ShowAll (  ) 

Member Data Documentation

SigC::Signal0<void> GuiMainWindow::close_window

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

Generated on 22 May 2017 for loon by  doxygen 1.6.1