150      hints = 
"kMdiDefaultHints";
 
  154         else                     hints += 
" | kMdiClose";
 
  157         if (
hints.Length() == 0) 
hints = 
"kMdiRestore";
 
  158         else                     hints += 
" | kMdiRestore";
 
  162         else                     hints += 
" | kMdiMove";
 
  166         else                     hints += 
" | kMdiSize";
 
  169         if (
hints.Length() == 0) 
hints = 
"kMdiMinimize";
 
  170         else                     hints += 
" | kMdiMinimize";
 
  173         if (
hints.Length() == 0) 
hints = 
"kMdiMaximize";
 
  174         else                     hints += 
" | kMdiMaximize";
 
  178         else                     hints += 
" | kMdiHelp";
 
  182         else                     hints += 
" | kMdiMenu";
 
 
  200   out << 
"   TGMdiFrame *";
 
  207         out << 
");" << std::endl;
 
  215      out << 
"   " << 
GetName() << 
"->SetName(\"" << 
GetName() << 
"\");" << std::endl;
 
  220       << 
quote << 
");" << std::endl;
 
  222       << 
");" << std::endl;
 
  223   if ((
GetX() != 5) && (
GetY() != 23))
 
  225          << 
");" << std::endl;
 
  227   out << 
"   " << 
GetName() << 
"->MapSubwindows();" << std::endl;
 
  228   out << 
"   " << 
GetName() << 
"->Layout();" << std::endl;
 
 
ULong_t Pixel_t
Pixel value.
 
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
 
The base class for composite widgets (menu bars, list boxes, etc.).
 
virtual void Cleanup()
Cleanup and delete all objects contained in this composite frame.
 
virtual void SavePrimitiveSubframes(std::ostream &out, Option_t *option="")
Auxiliary protected method used to save subframes.
 
Int_t GetBorderWidth() const
 
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
 
virtual void DeleteWindow()
Delete window.
 
virtual UInt_t GetOptions() const
 
TString GetOptionString() const
Returns a frame option string - used in SavePrimitive().
 
void SaveUserColor(std::ostream &out, Option_t *)
Save a user color in a C++ macro file - used in SavePrimitive().
 
Pixel_t fBackground
frame background color
 
This file contains all different MDI frame decoration classes.
 
TGMdiTitleBar * GetTitleBar() const
 
TGMdiDecorFrame * GetDecorFrame() const
 
This file contains the TGMdiFrame class.
 
TGMdiMainFrame * fMain
pointer to the MDI main frame
 
const TGPicture * GetWindowIcon()
Return pointer to picture used as MDI window icon (on titlebar).
 
ULong_t fMdiHints
MDI hints, also used to identify titlebar buttons.
 
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save a MDIframe as a C++ statement(s) on output stream out.
 
TString GetMdiHintsString() const
Returns a MDI option string - used in SavePrimitive().
 
virtual void SetMdiHints(ULong_t mdihints)
Set MDI hints, also used to identify titlebar buttons.
 
void SetWindowName(const char *name) override
Set MDI window name (set titlebar title).
 
void Move(Int_t x, Int_t y) override
Move MDI window at position x, y.
 
virtual Bool_t CloseWindow()
Close MDI frame window.
 
void SetWindowIcon(const TGPicture *pic)
Set MDI window icon (titlebar icon).
 
const char * GetWindowName()
Return MDI window name.
 
void DontCallClose()
Typically call this method in the slot connected to the CloseWindow() signal to prevent the calling o...
 
TGMdiFrame(TGMdiMainFrame *main, Int_t w, Int_t h, UInt_t options=0, Pixel_t back=GetDefaultFrameBackground())
TGMdiFrame constructor.
 
~TGMdiFrame() override
TGMdiFrame destructor.
 
This file contains the TGMdiMainFrame class.
 
void AddMdiFrame(TGMdiFrame *f)
Add new MDI child window.
 
TGMdiFrameList * GetWindowList(Int_t current=kFALSE) const
 
Bool_t RemoveMdiFrame(TGMdiFrame *f)
Remove MDI child window.
 
void UpdateWinListMenu()
Update MDI menu entries with current list of MDI child windows.
 
The TGPicture class implements pictures and icons used in the different GUI elements and widgets.
 
const TGWindow * fParent
Parent window.
 
const char * GetName() const override
Return unique name, used in SavePrimitive methods.
 
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.