149 hints =
"kMdiDefaultHints";
153 else hints +=
" | kMdiClose";
156 if (
hints.Length() == 0)
hints =
"kMdiRestore";
157 else hints +=
" | kMdiRestore";
161 else hints +=
" | kMdiMove";
165 else hints +=
" | kMdiSize";
168 if (
hints.Length() == 0)
hints =
"kMdiMinimize";
169 else hints +=
" | kMdiMinimize";
172 if (
hints.Length() == 0)
hints =
"kMdiMaximize";
173 else hints +=
" | kMdiMaximize";
177 else hints +=
" | kMdiHelp";
181 else hints +=
" | kMdiMenu";
203 out <<
" " <<
GetName() <<
"->SetName(\"" <<
GetName() <<
"\");\n";
209 if ((
GetX() != 5) && (
GetY() != 23))
210 out <<
" " <<
GetName() <<
"->Move(" <<
GetX() <<
"," <<
GetY() <<
");\n";
212 out <<
" " <<
GetName() <<
"->MapSubwindows();\n";
213 out <<
" " <<
GetName() <<
"->Layout();\n";
ULong_t Pixel_t
Pixel value.
unsigned long ULong_t
Unsigned long integer 4 bytes (unsigned long). Size depends on architecture.
const char Option_t
Option string (const char)
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
virtual void DeleteWindow()
Delete window.
TString SaveCtorArgs(std::ostream &out, UInt_t dflt_options=kChildFrame, Bool_t check_white_pixel=kFALSE)
Return options and custom color as constructor args Used in the SavePrimitive methods,...
This file contains all different MDI frame decoration classes.
TGMdiTitleBar * GetTitleBar() const
TGMdiDecorFrame * GetDecorFrame() const
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.
TString & ReplaceSpecialCppChars()
Find special characters which are typically used in printf() calls and replace them by appropriate es...