58 fMain->AddMdiFrame(
this);
68 fMain->RemoveMdiFrame(
this);
105 fMain->UpdateWinListMenu();
114 fMain->UpdateWinListMenu();
149 hints =
"kMdiDefaultHints";
152 if (hints.
Length() == 0) hints =
"kMdiClose";
153 else hints +=
" | kMdiClose";
156 if (hints.
Length() == 0) hints =
"kMdiRestore";
157 else hints +=
" | kMdiRestore";
160 if (hints.
Length() == 0) hints =
"kMdiMove";
161 else hints +=
" | kMdiMove";
164 if (hints.
Length() == 0) hints =
"kMdiSize";
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";
176 if (hints.
Length() == 0) hints =
"kMdiHelp";
177 else hints +=
" | kMdiHelp";
180 if (hints.
Length() == 0) hints =
"kMdiMenu";
181 else hints +=
" | kMdiMenu";
198 out <<
" TGMdiFrame *" <<
GetName() <<
" = new TGMdiFrame(" <<
fMain->GetName() <<
","
202 if (option && strstr(option,
"keep_names"))
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.
int Int_t
Signed integer 4 bytes (int).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
unsigned long ULong_t
Unsigned long integer 4 bytes (unsigned long). Size depends on architecture.
bool Bool_t
Boolean (0=false, 1=true) (bool).
const char Option_t
Option string (const char).
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.
TGCompositeFrame(const TGCompositeFrame &)=delete
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,...
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().
friend class TGMdiMainFrame
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.
friend class TGMdiDecorFrame
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.
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...
int main(int argc, char **argv)