#include <GuiMainWindow.h>
Inheritance diagram for GuiMainWindow:

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 () |
Definition at line 23 of file GuiMainWindow.h.
| 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] |
| 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 |
) |
Definition at line 39 of file GuiMainWindow.cxx.
References close_window, and KillMe().
Referenced by EVD::Digittext(), main(), EVD::MCtext(), EVD::MCTreetext(), EVD::Recotext(), RegistryDialog::Spawn(), Mint::SpawnDisplay(), and TridSetup().
00040 { 00041 if (delete_on_close) 00042 close_window.connect(SigC::slot(*this,&GuiMainWindow::KillMe)); 00043 else 00044 close_window.connect(SigC::slot(*this,&GuiMainWindow::UnmapWindow)); 00045 }
| void GuiMainWindow::KillMe | ( | ) |
Reimplemented in AWindow.
Definition at line 47 of file GuiMainWindow.cxx.
Referenced by ConnectClose(), main(), and TridAnimator::OpenWindow().
| 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 | ( | ) |
Definition at line 17 of file GuiMainWindow.cxx.
References GuiBase::LayoutChildren().
Referenced by PageDisplay::AddButton(), PageDisplay::AddEntry(), PageDisplay::AddPage(), EVD::Digittext(), handler_menu(), main(), EVD::MCtext(), EVD::MCTreetext(), EVD::Recotext(), RegistryDialog::Spawn(), spawn_a_window(), Mint::SpawnDisplay(), and TridSetup().
00018 { 00019 this->LayoutChildren(); 00020 this->MapSubwindows(); 00021 this->Layout(); 00022 00023 this->Resize(this->GetDefaultSize()); 00024 00025 this->MapWindow(); 00026 }
| SigC::Signal0<void> GuiMainWindow::close_window |
Definition at line 45 of file GuiMainWindow.h.
Referenced by AWindow::AWindow(), CloseWindow(), and ConnectClose().
1.4.7