58 fMain->AddMdiFrame(
this);
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 << std::endl <<
" // MDI frame "<< quote <<
GetWindowName() << quote << std::endl;
199 out <<
" TGMdiFrame *";
206 out <<
");" << std::endl;
213 if (option && strstr(option,
"keep_names"))
214 out <<
" " <<
GetName() <<
"->SetName(\"" <<
GetName() <<
"\");" << std::endl;
219 << quote <<
");" << std::endl;
221 <<
");" << std::endl;
222 if ((
GetX() != 5) && (
GetY() != 23))
224 <<
");" << std::endl;
226 out <<
" " <<
GetName() <<
"->MapSubwindows();" << std::endl;
227 out <<
" " <<
GetName() <<
"->Layout();" << std::endl;
Int_t GetBorderWidth() const
virtual UInt_t GetOptions() const
Bool_t RemoveMdiFrame(TGMdiFrame *f)
Remove MDI child window.
virtual ~TGMdiFrame()
TGMdiFrame destructor.
virtual void Move(Int_t x, Int_t y)
Move MDI window at position x, y.
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
void UpdateWinListMenu()
Update MDI menu entries with current list of MDI child windows.
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a MDIframe as a C++ statement(s) on output stream out.
virtual void SavePrimitiveSubframes(std::ostream &out, Option_t *option="")
Auxilary protected method used to save subframes.
void SetWindowName(const char *name)
Set MDI window name (set titlebar title).
virtual const char * GetName() const
Return unique name, used in SavePrimitive methods.
TString GetMdiHintsString() const
Returns a MDI option string - used in SavePrimitive().
void SetWindowIcon(const TGPicture *pic)
Set MDI window icon (titlebar icon).
virtual void SetMdiHints(ULong_t mdihints)
Set MDI hints, also used to identify titlebar buttons.
virtual Bool_t CloseWindow()
Close MDI frame window.
TGMdiTitleBar * GetTitleBar() const
void DontCallClose()
Typically call this method in the slot connected to the CloseWindow() signal to prevent the calling o...
TGMdiDecorFrame * GetDecorFrame() const
void SaveUserColor(std::ostream &out, Option_t *)
Save a user color in a C++ macro file - used in SavePrimitive().
TString GetOptionString() const
Returns a frame option string - used in SavePrimitive().
const char * GetWindowName()
Return MDI window name.
virtual void Cleanup()
Cleanup and delete all objects contained in this composite frame.
virtual void DeleteWindow()
Delete window.
TGMdiFrameList * GetWindowList(Int_t current=kFALSE) const
const TGPicture * GetWindowIcon()
Return pointer to picture used as MDI window icon (on titlebar).
int main(int argc, char **argv)