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;
virtual void Cleanup()
Cleanup and delete all objects contained in this composite frame.
virtual void SavePrimitiveSubframes(std::ostream &out, Option_t *option="")
Auxilary 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().
TGMdiTitleBar * GetTitleBar() const
TGMdiDecorFrame * GetDecorFrame() const
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a MDIframe as a C++ statement(s) on output stream out.
const TGPicture * GetWindowIcon()
Return pointer to picture used as MDI window icon (on titlebar).
TString GetMdiHintsString() const
Returns a MDI option string - used in SavePrimitive().
virtual void Move(Int_t x, Int_t y)
Move MDI window at position x, y.
virtual void SetMdiHints(ULong_t mdihints)
Set MDI hints, also used to identify titlebar buttons.
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.
virtual ~TGMdiFrame()
TGMdiFrame destructor.
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.
void SetWindowName(const char *name)
Set MDI window name (set titlebar title).
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.
virtual const char * GetName() const
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.
int main(int argc, char **argv)