119 "ROOT macros",
"*.C",
146 :
TGWindow(p, 0, 0, w,
h, 0, 0, 0, 0, 0, options)
227 gVirtualX->GetWindowAttributes(
id, attributes);
448 switch (event->
fType) {
487 fgDbx =
event->fXRoot;
488 fgDby =
event->fYRoot;
489 fgDbw =
event->fWindow;
511 fgDbx =
event->fXRoot;
512 fgDby =
event->fYRoot;
513 fgDbw =
event->fWindow;
638 event.fWindow = w->
GetId();
639 event.fUser[0] = msg;
640 event.fUser[1] = parm1;
641 event.fUser[2] = parm2;
786 std::cout <<
" x=" <<
fX <<
" y=" <<
fY;
787 std::cout <<
" w=" <<
fWidth <<
" h=" <<
fHeight << std::endl;
990 Error(
"SetLayoutManager",
"no layout manager specified");
1080 if (!
fList)
return 0;
1140 f->SetFrameElement(0);
1296 if (!
fList)
return this;
1319 if (child ==
this) {
1333 if (el->
fFrame == child) {
1525 main->SaveSource(fname.
Data(),
"");
1530 }
else if (fname.
EndsWith(
".png")) {
1532 }
else if (fname.
EndsWith(
".jpg")) {
1534 }
else if (fname.
EndsWith(
".tiff")) {
1536 }
else if (fname.
EndsWith(
".xpm")) {
1555 repeat_save = (retval ==
kMBRetry);
1558 }
while (repeat_save);
1575 if (
m->fKeyCode == event->
fCode) {
1585 gVirtualX->LookupString(event, str,
sizeof(str), keysym);
1587 if ((keysym & ~0x20) ==
kKey_S) {
1604 list =
main->GetBindList();
1626 if (
m->fKeyCode == (
UInt_t) keycode) {
1693 Emit(
"CloseWindow()");
1712 event.fWindow =
GetId();
1806 Warning(
"SetIconPixmap",
"Failed to set window icon from xpm array.");
1820 gVirtualX->SetClassHints(
fId, (
char *)className, (
char *)resourceName);
1876 gVirtualX->SetWMSizeHints(
fId, wmin, hmin, wmax, hmax, winc, hinc);
1965 x,
y, ax, ay, wdummy);
1966 if (!
gVirtualX->InheritsFrom(
"TGWin32")) {
1969 else if (ax +
fWidth + 10 > dw)
1974 else if (ay +
fHeight + 50 > dh)
2047 int max_ascent, max_descent;
2066 int max_ascent, max_descent;
2186 Int_t x,
y,
l, t,
r,
b, gl,
gr,
sep, max_ascent, max_descent;
2192 t = (max_ascent + max_descent + 2) >> 1;
2218 gr = gl + tw + (
sep << 1);
2269 Warning(
"SetTitle",
"title cannot be 0, try \"\"");
2285 Error(
"SetTitle",
"title cannot be 0, try \"\"");
2350 if ( event->
fY > 0 &&
2351 event->
fY <= (
Int_t) this->GetHeight() ) {
2382 if ( event->
fY > 0 &&
2383 event->
fY <= (
Int_t) this->GetHeight() ) {
2409 if ( event->
fY > 0 &&
2410 event->
fY <= (
Int_t) this->GetHeight() ) {
2446 out <<
" ULong_t ucolor; // will reflect user color changes" << std::endl;
2449 if (option && !strcmp(option,
"slider"))
2455 out <<
" gClient->GetColorByName(" << quote << ucolorname << quote
2456 <<
",ucolor);" << std::endl;
2469 options =
"kChildFrame";
2472 if (options.
Length() == 0) options =
"kMainFrame";
2473 else options +=
" | kMainFrame";
2476 if (options.
Length() == 0) options =
"kVerticalFrame";
2477 else options +=
" | kVerticalFrame";
2480 if (options.
Length() == 0) options =
"kHorizontalFrame";
2481 else options +=
" | kHorizontalFrame";
2484 if (options.
Length() == 0) options =
"kSunkenFrame";
2485 else options +=
" | kSunkenFrame";
2488 if (options.
Length() == 0) options =
"kRaisedFrame";
2489 else options +=
" | kRaisedFrame";
2492 if (options.
Length() == 0) options =
"kDoubleBorder";
2493 else options +=
" | kDoubleBorder";
2496 if (options.
Length() == 0) options =
"kFitWidth";
2497 else options +=
" | kFitWidth";
2500 if (options.
Length() == 0) options =
"kFixedWidth";
2501 else options +=
" | kFixedWidth";
2504 if (options.
Length() == 0) options =
"kFitHeight";
2505 else options +=
" | kFitHeight";
2508 if (options.
Length() == 0) options =
"kFixedHeight";
2509 else options +=
" | kFixedHeight";
2512 if (options.
Length() == 0) options =
"kOwnBackground";
2513 else options +=
" | kOwnBackground";
2516 if (options.
Length() == 0) options =
"kTransientFrame";
2517 else options +=
" | kTransientFrame";
2520 if (options.
Length() == 0) options =
"kTempFrame";
2521 else options +=
" | kTempFrame";
2536 if (hints.
Length() == 0) hints =
"kMWMDecorAll";
2537 else hints +=
" | kMWMDecorAll";
2540 if (hints.
Length() == 0) hints =
"kMWMDecorBorder";
2541 else hints +=
" | kMWMDecorBorder";
2544 if (hints.
Length() == 0) hints =
"kMWMDecorResizeH";
2545 else hints +=
" | kMWMDecorResizeH";
2548 if (hints.
Length() == 0) hints =
"kMWMDecorTitle";
2549 else hints +=
" | kMWMDecorTitle";
2552 if (hints.
Length() == 0) hints =
"kMWMDecorMenu";
2553 else hints +=
" | kMWMDecorMenu";
2556 if (hints.
Length() == 0) hints =
"kMWMDecorMinimize";
2557 else hints +=
" | kMWMDecorMinimize";
2560 if (hints.
Length() == 0) hints =
"kMWMDecorMaximize";
2561 else hints +=
" | kMWMDecorMaximize";
2577 if (hints.
Length() == 0) hints =
"kMWMFuncAll";
2578 else hints +=
" | kMWMFuncAll";
2581 if (hints.
Length() == 0) hints =
"kMWMFuncResize";
2582 else hints +=
" | kMWMFuncResize";
2585 if (hints.
Length() == 0) hints =
"kMWMFuncMove";
2586 else hints +=
" | kMWMFuncMove";
2589 if (hints.
Length() == 0) hints =
"kMWMFuncMinimize";
2590 else hints +=
" | kMWMFuncMinimize";
2593 if (hints.
Length() == 0) hints =
"kMWMFuncMaximize";
2594 else hints +=
" | kMWMFuncMaximize";
2597 if (hints.
Length() == 0) hints =
"kMWMFuncClose";
2598 else hints +=
" | kMWMFuncClose";
2611 if (
fMWMInput == 0) hints =
"kMWMInputModeless";
2613 if (
fMWMInput == 1) hints =
"kMWMInputPrimaryApplicationModal";
2615 if (
fMWMInput == 2) hints =
"kMWMInputSystemModal";
2617 if (
fMWMInput == 3) hints =
"kMWMInputFullApplicationModal";
2628 out <<
" " <<
GetName() <<
"->SetLayoutBroken(kTRUE);" << std::endl;
2640 TString signal_name, slot_name;
2667 out <<
");"<< std::endl;
2672 out <<
");" << std::endl;
2681 if (vsplit->
GetLeft()) out <<
",kTRUE);" << std::endl;
2682 else out <<
",kFALSE);"<< std::endl;
2687 if (hsplit->
GetAbove()) out <<
",kTRUE);" << std::endl;
2688 else out <<
",kFALSE);"<< std::endl;
2698 if (!signalslist)
continue;
2703 signal_name = connlist->
GetName();
2708 slot_name.
Remove(eq, rb-eq);
2709 out <<
" " << el->
fFrame->
GetName() <<
"->Connect(" << quote << signal_name
2710 << quote <<
", 0, 0, " << quote << slot_name << quote <<
");" << std::endl;
2712 TList *lsl = (
TList *)
gROOT->GetListOfSpecials()->FindObject(
"ListOfSlots");
2736 out << std::endl <<
" // composite frame" << std::endl;
2737 out <<
" TGCompositeFrame *";
2743 out <<
");" << std::endl;
2750 if (option && strstr(option,
"keep_names"))
2751 out <<
" " <<
GetName() <<
"->SetName(\"" <<
GetName() <<
"\");" << std::endl;
2764 out <<
" " <<
GetName() <<
"->SetLayoutManager(";
2766 out <<
");"<< std::endl;
2791 while ((
c2 = (
TClass *)nextc2())) {
2792 if (
c1==
c2)
continue;
2794 c3 =
c2->GetBaseClass(
c1);
2805 ilist->
SetName(
"ListOfIncludes");
2806 gROOT->GetListOfSpecials()->Add(ilist);
2811 while ((
c2 = (
TClass *)nextdo())) {
2817 iname =
c2->GetDeclFileName();
2818 if (iname[0] && strstr(iname,
".h")) {
2819 const char *lastsl = strrchr(iname,
'/');
2820 if (lastsl) iname = lastsl + 1;
2821 char *tname =
new char[strlen(iname)+1];
2823 while (*iname !=
'.') {
2835 if (strstr(tname,
"TRootCanvas")) {
2851 TString ff = filename && strlen(filename) ? filename :
"Rootappl.C";
2855 Int_t lenfname = strlen(fname);
2856 char *sname =
new char[lenfname+1];
2859 while ((*fname !=
'.') && (i < lenfname)) {
2867 out.open(ff.
Data(), std::ios::out);
2869 Error(
"SaveSource",
"cannot open file: %s", ff.
Data());
2876 ilist = (
TList *)
gROOT->GetListOfSpecials()->FindObject(
"ListOfIncludes");
2885 out <<
"// Mainframe macro generated from application: "<<
gApplication->
Argv(0) << std::endl;
2886 out <<
"// By ROOT version "<<
gROOT->GetVersion() <<
" on "<<t.
AsSQLString()<< std::endl;
2891 out <<
"#ifndef ROOT_" << inc->
GetString() << std::endl;
2892 out <<
"#include " << quote << inc->
GetString() <<
".h" << quote << std::endl;
2893 out <<
"#endif" << std::endl;
2894 if (strstr(inc->
GetString(),
"TRootEmbeddedCanvas")) {
2895 out <<
"#ifndef ROOT_TCanvas" << std::endl;
2896 out <<
"#include " << quote <<
"TCanvas.h" << quote << std::endl;
2897 out <<
"#endif" << std::endl;
2900 out << std::endl <<
"#include " << quote <<
"Riostream.h" << quote << std::endl;
2902 gROOT->GetListOfSpecials()->Remove(ilist);
2909 out <<
"void " << sname <<
"()" << std::endl;
2910 out <<
"{"<< std::endl;
2917 lSlots->
SetName(
"ListOfSlots");
2918 gROOT->GetListOfSpecials()->Add(lSlots);
2924 << quote <<
"," << quote <<
fResourceName << quote <<
");" << std::endl;
2929 out <<
" " <<
GetName() <<
"->SetMWMHints(";
2956 out <<
" " <<
GetName()<<
"->MapSubwindows();" << std::endl;
2960 while ((fhidden = (
TGFrame*)nexth())) {
2961 out <<
" " <<fhidden->
GetName()<<
"->UnmapWindow();" << std::endl;
2975 out <<
" " <<
GetName()<<
"->Resize("<<
GetName()<<
"->GetDefaultSize());" << std::endl;
2979 out <<
" " <<
GetName()<<
"->MapWindow();" <<std::endl;
2982 if ((
fWMX != -1) || (
fWMY != -1)) {
2989 out <<
"} " << std::endl;
2992 TList *sl = (
TList *)
gROOT->GetListOfSpecials()->FindObject(
"ListOfSlots");
3007 if (rb - lb > 1 && eq == -1) {
3011 out <<
"void " <<
s << std::endl;
3012 out <<
"{" << std::endl;
3015 out <<
" std::cout << " << quote <<
"Slot " <<
s << quote
3016 <<
" <<" << p <<
" << " << quote <<
")" << quote
3017 <<
" << std::endl; " << std::endl;
3020 s.Remove(eq, rb-eq);
3021 out <<
"void " <<
s << std::endl;
3022 out <<
"{" << std::endl;
3023 out <<
" std::cout << " << quote <<
"Slot " <<
s
3024 << quote <<
" << std::endl; " << std::endl;
3026 out <<
"void " << slobj->
GetString() << std::endl;
3027 out <<
"{" << std::endl;
3028 out <<
" std::cout << " << quote <<
"Slot " << slobj->
GetString()
3029 << quote <<
" << std::endl; " << std::endl;
3032 out <<
"}" << std::endl;
3034 gROOT->GetListOfSpecials()->Remove(sl);
3064 out << std::endl <<
" // main frame" << std::endl;
3065 out <<
" TGMainFrame *";
3066 out <<
GetName() <<
" = new TGMainFrame(gClient->GetRoot(),10,10,"
3068 if (option && strstr(option,
"keep_names"))
3069 out <<
" " <<
GetName() <<
"->SetName(\"" <<
GetName() <<
"\");" << std::endl;
3082 out <<
" " <<
GetName() <<
"->SetLayoutManager(";
3084 out <<
");"<< std::endl;
3091 << quote <<
");" << std::endl;
3094 out <<
" "<<
GetName()<<
"->SetIconName("<<quote<<
GetIconName()<<quote<<
");"<<std::endl;
3098 << quote <<
");" << std::endl;
3109 out << std::endl <<
" // horizontal frame" << std::endl;
3110 out <<
" TGHorizontalFrame *";
3116 out <<
");" << std::endl;
3123 if (option && strstr(option,
"keep_names"))
3124 out <<
" " <<
GetName() <<
"->SetName(\"" <<
GetName() <<
"\");" << std::endl;
3137 out <<
" " <<
GetName() <<
"->SetLayoutManager(";
3139 out <<
");"<< std::endl;
3152 out << std::endl <<
" // vertical frame" << std::endl;
3153 out <<
" TGVerticalFrame *";
3159 out <<
");" << std::endl;
3166 if (option && strstr(option,
"keep_names"))
3167 out <<
" " <<
GetName() <<
"->SetName(\"" <<
GetName() <<
"\");" << std::endl;
3180 out <<
" " <<
GetName() <<
"->SetLayoutManager(";
3182 out <<
");"<< std::endl;
3195 out <<
" TGFrame *";
3201 out <<
");" << std::endl;
3208 if (option && strstr(option,
"keep_names"))
3209 out <<
" " <<
GetName() <<
"->SetName(\"" <<
GetName() <<
"\");" << std::endl;
3224 parFont.
Form(
"%s::GetDefaultFontStruct()",IsA()->
GetName());
3227 parGC.
Form(
"%s::GetDefaultGC()()",IsA()->
GetName());
3233 parFont.
Form(
"ufont->GetFontStruct()");
3239 parGC.
Form(
"uGC->GetGC()");
3245 out << std::endl <<
" // " << quote <<
GetTitle() << quote <<
" group frame" << std::endl;
3246 out <<
" TGGroupFrame *";
3248 <<
"," << quote <<
GetTitle() << quote;
3254 out <<
");" << std::endl;
3267 if (option && strstr(option,
"keep_names"))
3268 out <<
" " <<
GetName() <<
"->SetName(\"" <<
GetName() <<
"\");" << std::endl;
3271 out <<
" " <<
GetName() <<
"->SetTitlePos(";
3273 out <<
"TGGroupFrame::kCenter);" << std::endl;
3275 out <<
"TGGroupFrame::kRight);" << std::endl;
3280 out <<
" " <<
GetName() <<
"->SetLayoutManager(";
3284 out <<
");"<< std::endl;
3310 while ((
c2 = (
TClass *)nextc2())) {
3311 if (
c1==
c2)
continue;
3313 c3 =
c2->GetBaseClass(
c1);
3324 ilist->
SetName(
"ListOfIncludes");
3325 gROOT->GetListOfSpecials()->Add(ilist);
3330 while ((
c2 = (
TClass *)nextdo())) {
3336 iname =
c2->GetDeclFileName();
3337 if (iname[0] && strstr(iname,
".h")) {
3338 const char *lastsl = strrchr(iname,
'/');
3339 if (lastsl) iname = lastsl + 1;
3340 char *tname =
new char[strlen(iname)+1];
3342 while (*iname !=
'.') {
3362 TString ff = filename && strlen(filename) ? filename :
"Rootdlog.C";
3366 Int_t lenfname = strlen(fname);
3367 char *sname =
new char[lenfname+1];
3370 while ((*fname !=
'.') && (i < lenfname)) {
3378 out.open(ff.
Data(), std::ios::out);
3380 Error(
"SaveSource",
"cannot open file: %s", ff.
Data());
3387 ilist = (
TList *)
gROOT->GetListOfSpecials()->FindObject(
"ListOfIncludes");
3396 out <<
"// Dialog macro generated from application: "<<
gApplication->
Argv(0) << std::endl;
3397 out <<
"// By ROOT version "<<
gROOT->GetVersion() <<
" on "<<t.
AsSQLString()<< std::endl;
3400 out <<
"#if !defined( __CINT__) || defined (__MAKECINT__)" << std::endl << std::endl;
3404 out <<
"#ifndef ROOT_"<< inc->
GetString() << std::endl;
3405 out <<
"#include "<< quote << inc->
GetString() <<
".h"<< quote << std::endl;
3406 out <<
"#endif" << std::endl;
3407 if (strstr(inc->
GetString(),
"TRootEmbeddedCanvas")) {
3408 out <<
"#ifndef ROOT_TCanvas"<< std::endl;
3409 out <<
"#include "<< quote <<
"TCanvas.h"<< quote << std::endl;
3410 out <<
"#endif" << std::endl;
3413 out << std::endl <<
"#include " << quote <<
"Riostream.h" << quote << std::endl;
3414 out << std::endl <<
"#endif" << std::endl;
3416 gROOT->GetListOfSpecials()->Remove(ilist);
3423 out <<
"void " << sname <<
"()" << std::endl;
3427 out <<
"{"<< std::endl;
3433 lSlots->
SetName(
"ListOfSlots");
3434 gROOT->GetListOfSpecials()->Add(lSlots);
3446 out <<
" " <<
GetName() <<
"->SetMWMHints(";
3455 if ((
fWMX != -1) || (
fWMY != -1)) {
3456 out <<
" "<<
GetName()<<
"->SetWMPosition("<<
fWMX<<
","<<
fWMY<<
");"<<std::endl;
3475 if ((
fWMX != -1) || (
fWMY != -1)) {
3479 out <<
" " <<
GetName()<<
"->MapSubwindows();" << std::endl;
3483 while ((fhidden = (
TGFrame*)nexth())) {
3484 out <<
" " <<fhidden->
GetName()<<
"->UnmapWindow();" << std::endl;
3497 out <<
" " <<
GetName()<<
"->Resize("<<
GetName()<<
"->GetDefaultSize());" << std::endl;
3501 out <<
" " <<
GetName()<<
"->MapWindow();" <<std::endl;
3502 if (!usexy) out <<
" " <<
GetName()<<
"->Resize();" << std::endl;
3503 out <<
"} " << std::endl;
3506 TList *sl = (
TList *)
gROOT->GetListOfSpecials()->FindObject(
"ListOfSlots");
3521 if (rb - lb > 1 && eq == -1) {
3525 out <<
"void " <<
s << std::endl;
3526 out <<
"{" << std::endl;
3529 out <<
" std::cout << " << quote <<
"Slot " <<
s << quote
3530 <<
" <<" << p <<
" << " << quote <<
")" << quote
3531 <<
" << std::endl; " << std::endl;
3534 s.Remove(eq, rb-eq);
3535 out <<
"void " <<
s << std::endl;
3536 out <<
"{" << std::endl;
3537 out <<
" std::cout << " << quote <<
"Slot " <<
s
3538 << quote <<
" << std::endl; " << std::endl;
3540 out <<
"void " << slobj->
GetString() << std::endl;
3541 out <<
"{" << std::endl;
3542 out <<
" std::cout << " << quote <<
"Slot " << slobj->
GetString()
3543 << quote <<
" << std::endl; " << std::endl;
3546 out <<
"}" << std::endl;
3548 gROOT->GetListOfSpecials()->Remove(sl);
3572 out << std::endl <<
" // transient frame" << std::endl;
3573 out <<
" TGTransientFrame *";
3574 out <<
GetName()<<
" = new TGTransientFrame(gClient->GetRoot(),0"
3577 if (option && strstr(option,
"keep_names"))
3578 out <<
" " <<
GetName() <<
"->SetName(\"" <<
GetName() <<
"\");" << std::endl;
3591 out <<
" " <<
GetName() <<
"->SetLayoutManager(";
3593 out <<
");"<< std::endl;
3600 << quote <<
");" << std::endl;
3603 out <<
" "<<
GetName()<<
"->SetIconName("<<quote<<
GetIconName()<<quote<<
");"<<std::endl;
3607 << quote <<
");" << std::endl;
const Mask_t kButtonPressMask
const Mask_t kExposureMask
const Mask_t kWAEventMask
const Mask_t kWABackPixel
const Mask_t kAnyModifier
const Mask_t kPointerMotionMask
const Mask_t kKeyControlMask
const Mask_t kStructureNotifyMask
const Mask_t kButtonReleaseMask
R__EXTERN TApplication * gApplication
R__EXTERN Int_t gErrorIgnoreLevel
R__EXTERN TGDNDManager * gDNDManager
TList * gListOfHiddenFrames
static const char * gSaveMacroTypes[]
R__EXTERN TGuiBuilder * gGuiBuilder
char * Form(const char *fmt,...)
R__EXTERN TSystem * gSystem
R__EXTERN TVirtualDragManager * gDragManager
R__EXTERN Atom_t gROOT_MESSAGE
R__EXTERN Atom_t gWM_DELETE_WINDOW
Bool_t TestBitNumber(UInt_t bitnumber) const
void SetBitNumber(UInt_t bitnumber, Bool_t value=kTRUE)
TClass instances represent classes, structs and namespaces in the ROOT type system.
virtual const char * GetName() const
Return name of this collection.
void SetName(const char *name)
static ULong_t RGB2Pixel(Int_t r, Int_t g, Int_t b)
Convert r,g,b to graphics system dependent pixel value.
static void Pixel2RGB(ULong_t pixel, Int_t &r, Int_t &g, Int_t &b)
Convert machine dependent pixel value (obtained via RGB2Pixel or via Number2Pixel() or via TColor::Ge...
static const char * PixelAsHexString(ULong_t pixel)
Convert machine dependent pixel value (obtained via RGB2Pixel or via Number2Pixel() or via TColor::Ge...
This class stores the date and time with a precision of one second in an unsigned 32 bit word (950130...
const char * AsSQLString() const
Return the date & time in SQL compatible string format, like: 1997-01-15 20:16:28.
const TGWindow * GetDefaultRoot() const
Returns the root (i.e.
Bool_t IsEditable() const
const TGWindow * GetRoot() const
Returns current root (i.e.
TGFont * GetFont(const char *font, Bool_t fixedDefault=kTRUE)
Get a font from the font pool.
const TGResourcePool * GetResourcePool() const
void SetRoot(TGWindow *root=0)
Sets the current root (i.e.
UInt_t GetDisplayHeight() const
Get display height.
const TGPicture * GetPicture(const char *name)
Get picture from the picture pool.
TGGCPool * GetGCPool() const
Bool_t IsEditDisabled() const
Returns kTRUE if edit/guibuilding is forbidden.
void NeedRedraw(TGWindow *w, Bool_t force=kFALSE)
Set redraw flags.
UInt_t GetDisplayWidth() const
Get display width.
virtual TGFrameElement * FindFrameElement(TGFrame *f) const
Find frame-element holding frame f.
virtual Bool_t HandleDragEnter(TGFrame *)
Handle drag enter event.
TGLayoutManager * fLayoutManager
virtual void SetLayoutBroken(Bool_t on=kTRUE)
Set broken layout. No Layout method is called.
virtual void ChangeSubframesBackground(Pixel_t back)
Change background color for this frame and all subframes.
virtual void SetLayoutManager(TGLayoutManager *l)
Set the layout manager for the composite frame.
virtual Bool_t HandleDragMotion(TGFrame *)
Handle drag motion event.
virtual Bool_t HandleDragDrop(TGFrame *frame, Int_t x, Int_t y, TGLayoutHints *lo)
Handle drop event.
virtual Bool_t HandleButton(Event_t *)
TGCompositeFrame(const TGCompositeFrame &)
Int_t GetState(TGFrame *f) const
Get state of sub frame.
virtual TGFrame * GetFrameFromPoint(Int_t x, Int_t y)
Get frame located at specified point.
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
virtual TGLayoutManager * GetLayoutManager() const
virtual Bool_t HandleSelection(Event_t *)
virtual void SetEditable(Bool_t on=kTRUE)
Switch ON/OFF edit mode.
virtual void Cleanup()
Cleanup and delete all objects contained in this composite frame.
virtual void Layout()
Layout the elements of the composite frame.
virtual Bool_t IsLayoutBroken() const
virtual void SavePrimitiveSubframes(std::ostream &out, Option_t *option="")
Auxilary protected method used to save subframes.
virtual void ChangeOptions(UInt_t options)
Change composite frame options. Options is an OR of the EFrameTypes.
virtual void SetCleanup(Int_t mode=kLocalCleanup)
Turn on automatic cleanup of child frames in dtor.
virtual TGDimension GetDefaultSize() const
std::cout << fWidth << "x" << fHeight << std::endl;
virtual Bool_t TranslateCoordinates(TGFrame *child, Int_t x, Int_t y, Int_t &fx, Int_t &fy)
Translate coordinates to child frame.
virtual void MapSubwindows()
Map all sub windows that are part of the composite frame.
virtual void ShowFrame(TGFrame *f)
Show sub frame.
virtual ~TGCompositeFrame()
Delete a composite frame.
virtual void SetEditDisabled(UInt_t on=1)
Set edit disable flag for this frame and subframes.
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a composite frame widget as a C++ statement(s) on output stream out.
Bool_t IsArranged(TGFrame *f) const
Get state of sub frame.
virtual Bool_t HandleMotion(Event_t *)
virtual void RemoveFrame(TGFrame *f)
Remove frame from composite frame.
virtual Bool_t IsEditable() const
Return kTRUE if frame is being edited.
static TGLayoutHints * fgDefaultHints
virtual void Print(Option_t *option="") const
Print all frames in this composite frame.
virtual void RemoveAll()
Remove all frames from composite frame.
virtual Bool_t HandleDragLeave(TGFrame *)
Handle drag leave event.
virtual void HideFrame(TGFrame *f)
Hide sub frame.
Bool_t IsVisible(TGFrame *f) const
Get state of sub frame.
Bool_t HandleSelectionRequest(Event_t *event)
Handle selection request event.
Bool_t HandleClientMessage(Event_t *event)
Handle DND related client messages.
Bool_t HandleSelection(Event_t *event)
Handle selection event.
Bool_t IsDragging() const
void SetMainFrame(TGFrame *main)
static Atom_t GetDNDSelection()
Bool_t Drag(Int_t x_root, Int_t y_root, Atom_t action, Time_t timestamp)
Process drag event.
TGFrame * GetMainFrame() const
static Atom_t GetDNDActionCopy()
void SetIniDir(const char *inidir)
Set directory name.
FontStruct_t GetFontStruct() const
virtual void SavePrimitive(std::ostream &out, Option_t *="")
Save the used font as a C++ statement(s) on output stream out.
virtual void ChangeOptions(UInt_t options)
Change frame options. Options is an OR of the EFrameTypes.
virtual Bool_t HandleSelectionClear(Event_t *)
virtual TGDimension GetDefaultSize() const
std::cout << fWidth << "x" << fHeight << std::endl;
static Pixel_t GetDefaultSelectedBackground()
Get default selected frame background.
void AddInput(UInt_t emask)
Add events specified in the emask to the events the frame should handle.
static const TGGC * fgWhiteGC
virtual Int_t GetDragType() const
Returns drag source type.
virtual void StartGuiBuilding(Bool_t on=kTRUE)
Go into GUI building mode.
virtual void DoRedraw()
Redraw the frame.
static const TGGC & GetBlackGC()
Get black graphics context.
static Pixel_t GetBlackPixel()
Get black pixel value.
virtual Bool_t HandleConfigureNotify(Event_t *event)
This event is generated when the frame is resized.
virtual Bool_t HandleDoubleClick(Event_t *)
void RemoveInput(UInt_t emask)
Remove events specified in emask from the events the frame should handle.
virtual void ReparentWindow(const TGWindow *p, Int_t x=0, Int_t y=0)
Reparent window, make p the new parent and position the window at position (x,y) in new parent.
virtual Bool_t HandleKey(Event_t *)
static Pixel_t GetWhitePixel()
Get white pixel value.
virtual Bool_t HandleColormapChange(Event_t *)
virtual void SetDropType(Int_t type)
SetDropType.
virtual void SetDragType(Int_t type)
SetDragType.
virtual void DrawBorder()
Draw frame border.
virtual void Print(Option_t *option="") const
Print window id.
static const TGGC * fgBckgndGC
virtual void Draw3dRectangle(UInt_t type, Int_t x, Int_t y, UInt_t w, UInt_t h)
Draw 3D rectangle on the frame border.
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a frame widget as a C++ statement(s) on output stream out.
static const TGGC * fgShadowGC
static Pixel_t fgDefaultSelectedBackground
virtual ~TGFrame()
Destructor.
virtual Pixel_t GetForeground() const
Return frame foreground color.
TGFrameElement * GetFrameElement() const
static const TGGC & GetHilightGC()
Get highlight color graphics context.
virtual void SetBackgroundColor(Pixel_t back)
Set background color (override from TGWindow base class).
virtual void SendMessage(const TGWindow *w, Long_t msg, Long_t parm1, Long_t parm2)
Send message (i.e.
static UInt_t fgLastButton
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
virtual Int_t GetDropType() const
Returns drop target type.
static Time_t GetLastClick()
Get time of last mouse click.
static const TGGC * fgBlackGC
static UInt_t fgUserColor
virtual void DeleteWindow()
Delete window.
virtual TGFrame * GetFrameFromPoint(Int_t x, Int_t y)
virtual UInt_t GetOptions() const
TString GetOptionString() const
Returns a frame option string - used in SavePrimitive().
static Time_t fgLastClick
virtual Bool_t HandleFocusChange(Event_t *)
virtual Bool_t IsComposite() const
virtual void ChangeBackground(Pixel_t back)
Change frame background color.
virtual void ProcessedConfigure(Event_t *event)
static const TGGC & GetShadowGC()
Get shadow color graphics context.
virtual void Move(Int_t x, Int_t y)
Move frame.
virtual Bool_t HandleSelectionRequest(Event_t *)
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
virtual Bool_t HandleSelection(Event_t *)
virtual Bool_t ProcessMessage(Long_t, Long_t, Long_t)
virtual Bool_t HandleButton(Event_t *)
virtual Bool_t HandleMotion(Event_t *)
void SetFrameElement(TGFrameElement *fe)
virtual void SetCleanup(Int_t=kLocalCleanup)
virtual Bool_t IsEditable() const
virtual Bool_t HandleClientMessage(Event_t *event)
Handle a client message.
virtual Pixel_t GetBackground() const
virtual void MoveResize(Int_t x, Int_t y, UInt_t w=0, UInt_t h=0)
Move and/or resize the frame.
virtual Bool_t HandleCrossing(Event_t *)
virtual void ProcessedEvent(Event_t *event)
virtual Bool_t HandleEvent(Event_t *event)
Handle all frame events.
Bool_t Contains(Int_t x, Int_t y) const
virtual void MapWindow()
map window
static const TGGC & GetWhiteGC()
Get white graphics context.
static Pixel_t fgWhitePixel
virtual void MapSubwindows()
map sub windows
void SaveUserColor(std::ostream &out, Option_t *)
Save a user color in a C++ macro file - used in SavePrimitive().
static Pixel_t fgBlackPixel
static const TGGC & GetBckgndGC()
Get background color graphics context.
static const TGGC * fgHilightGC
virtual void UnmapWindow()
unmap window
static Pixel_t fgDefaultFrameBackground
TGGC * GetGC(GCValues_t *values, Bool_t rw=kFALSE)
Get the best matching graphics context depending on values.
void FreeGC(const TGGC *gc)
Delete graphics context if it is not used anymore.
TGGC * FindGC(const TGGC *gc)
Find graphics context. Returns 0 in case gc is not found.
void SavePrimitive(std::ostream &out, Option_t *option="")
Save graphics context info as a C++ statement(s) on output stream out.
void SetFont(FontH_t v)
Set font.
void SetForeground(Pixel_t v)
Set foreground color.
const GCValues_t * GetAttributes() const
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a group frame widget as a C++ statement(s) on output stream out.
static const TGGC & GetDefaultGC()
Return default graphics context in use.
virtual ~TGGroupFrame()
Delete a group frame.
static const TGGC * fgDefaultGC
virtual void DoRedraw()
Redraw the group frame.
static const TGFont * fgDefaultFont
virtual const char * GetTitle() const
Returns title of object.
virtual TGDimension GetDefaultSize() const
Returns default size.
TGGroupFrame(const TGGroupFrame &)
virtual void DrawBorder()
Draw border of around the group frame.
virtual void SetTextFont(const char *fontName, Bool_t local=kTRUE)
Changes text font specified by name.
static FontStruct_t GetDefaultFontStruct()
Return default font structure in use.
Bool_t HasOwnFont() const
Returns kTRUE if text attributes are unique, returns kFALSE if text attributes are shared (global).
virtual void SetTextColor(Pixel_t color, Bool_t local=kTRUE)
Changes text color.
Int_t GetTitlePos() const
virtual void SetTitle(TGString *title)
Set or change title of the group frame.
const TGFrame * GetFrame() const
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a horizontal frame widget as a C++ statement(s) on output stream out.
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a primitive as a C++ statement(s) on output stream "out".
void GetWMSizeHints(UInt_t &wmin, UInt_t &hmin, UInt_t &wmax, UInt_t &hmax, UInt_t &winc, UInt_t &hinc) const
virtual Bool_t HandleSelectionRequest(Event_t *event)
Handle selection request event.
virtual Bool_t SaveFrameAsCodeOrImage()
Opens dialog window allowing user to save the frame contents as a ROOT macro or as an image.
virtual void SaveSource(const char *filename="Rootappl.C", Option_t *option="")
Save the GUI main frame widget in a C++ macro file.
virtual Bool_t HandleClientMessage(Event_t *event)
Handle client messages sent to this frame.
TString GetMWMfuncString() const
Returns MWM function hints as a string - used in SavePrimitive().
const char * GetIconName() const
Returns mime type name of object.
void DontCallClose()
Typically call this method in the slot connected to the CloseWindow() signal to prevent the calling o...
void GetWMPosition(Int_t &x, Int_t &y) const
virtual Bool_t HandleButton(Event_t *event)
Handle mouse button events.
void GetWMSize(UInt_t &w, UInt_t &h) const
virtual void SendCloseMessage()
Send close message to self.
void GetMWMHints(UInt_t &value, UInt_t &funcs, UInt_t &input) const
void SetClassHints(const char *className, const char *resourceName)
Set the windows class and resource name.
virtual void CloseWindow()
Close and delete main frame.
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a main frame widget as a C++ statement(s) on output stream out.
virtual Bool_t HandleSelection(Event_t *event)
Handle primary selection event.
virtual ~TGMainFrame()
TGMainFrame destructor.
void SetWMState(EInitialState state)
Set the initial state of the window. Either kNormalState or kIconicState.
virtual Bool_t BindKey(const TGWindow *w, Int_t keycode, Int_t modifier) const
Bind key to a window.
EInitialState fWMInitState
void SetIconName(const char *name)
Set window icon name. This is typically done via the window manager.
TString GetMWMinpString() const
Returns MWM input mode hints as a string - used in SavePrimitive().
virtual Bool_t HandleKey(Event_t *event)
Handle keyboard events.
void SetWMSize(UInt_t w, UInt_t h)
Give the window manager a window size hint.
void SetWMPosition(Int_t x, Int_t y)
Give the window manager a window position hint.
TString GetMWMvalueString() const
Returns MWM decoration hints as a string - used in SavePrimitive().
void SetMWMHints(UInt_t value, UInt_t funcs, UInt_t input)
Set decoration style for MWM-compatible wm (mwm, ncdwm, fvwm?).
const char * GetWindowName() const
void SetWMSizeHints(UInt_t wmin, UInt_t hmin, UInt_t wmax, UInt_t hmax, UInt_t winc, UInt_t hinc)
Give the window manager minimum and maximum size hints.
const char * GetIconPixmap() const
virtual Bool_t HandleMotion(Event_t *event)
Handle mouse motion events.
TGMainFrame(const TGMainFrame &)
virtual void RemoveBind(const TGWindow *w, Int_t keycode, Int_t modifier) const
Remove key binding.
void SetWindowName(const char *name=0)
Set window name. This is typically done via the window manager.
const TGPicture * SetIconPixmap(const char *iconName)
Set window icon pixmap by name.
Pixmap_t GetPicture() const
TGGCPool * GetGCPool() const
const char * GetString() const
virtual void Draw(Drawable_t id, GContext_t gc, Int_t x, Int_t y)
Draw string.
TGTransientFrame(const TGTransientFrame &)
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a transient frame widget as a C++ statement(s) on output stream out.
virtual void SaveSource(const char *filename="Rootdlog.C", Option_t *option="")
Save the GUI tranzient frame widget in a C++ macro file.
virtual void CenterOnParent(Bool_t croot=kTRUE, EPlacement pos=kCenter)
Position transient frame centered relative to the parent frame.
virtual Bool_t HandleButton(Event_t *event)
Handle mouse button event in vertical splitter.
virtual Bool_t HandleDoubleClick(Event_t *)
Handle double click mouse event in splitter.
const TGFrame * GetFrame() const
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a vertical frame widget as a C++ statement(s) on output stream out.
virtual void SetWindowName(const char *name=0)
Set window name.
virtual const TGWindow * GetMainFrame() const
Returns top level main frame.
virtual void Move(Int_t x, Int_t y)
Move the window.
virtual const char * GetName() const
Return unique name, used in SavePrimitive methods.
virtual void Print(Option_t *option="") const
Print window id.
virtual UInt_t GetEditDisabled() const
virtual void SetEditDisabled(UInt_t on=kEditDisable)
virtual Bool_t HandleExpose(Event_t *event)
virtual void SetName(const char *name)
virtual void MoveResize(Int_t x, Int_t y, UInt_t w, UInt_t h)
Move and resize the window.
virtual Bool_t IsMapSubwindows() const
virtual void DestroyWindow()
destroy window
const TGWindow * GetParent() const
virtual void Resize(UInt_t w, UInt_t h)
Resize the window.
virtual void SetBackgroundColor(Pixel_t color)
set background color
virtual void RaiseWindow()
raise window
virtual void MapSubwindows()
map sub windows
An abstract interface to image processing library.
static TImage * Create()
Create an image.
virtual Bool_t SetImageBuffer(char **, EImageFileTypes=TImage::kPng)
virtual void FromWindow(Drawable_t, Int_t=0, Int_t=0, UInt_t=0, UInt_t=0)
virtual void WriteImage(const char *, EImageFileTypes=TImage::kUnknown)
virtual Pixmap_t GetPixmap()
virtual void Add(TObject *obj)
virtual TObject * Remove(TObject *obj)
Remove object from the list.
virtual TObject * FindObject(const char *name) const
Find an object in this list using its name.
virtual TObject * Last() const
Return the last object in the list. Returns 0 when list is empty.
virtual void Delete(Option_t *option="")
Remove all objects from the list AND delete all heap based objects.
virtual void Clear(Option_t *option="")
Remove all objects from the list.
Collectable string class.
const TString & GetString() const
Monitors objects for deletion and reflects the deletion by reverting the internal pointer to zero.
TObject * GetObject() const
R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const
@ kNotDeleted
object has not been deleted
virtual const char * ClassName() const
Returns name of class to which the object belongs.
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a primitive as a C++ statement(s) on output stream "out".
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
TQConnection class is an internal class, used in the object communication mechanism.
const char * GetName() const override
Returns name of connection (aka name of slot)
TList * GetListOfSignals() const
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.
UInt_t References() const
Bool_t EndsWith(const char *pat, ECaseCompare cmp=kExact) const
Return true if string ends with the specified string.
Ssiz_t First(char c) const
Find first occurrence of a character c.
const char * Data() const
TString & Remove(Ssiz_t pos)
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
void Form(const char *fmt,...)
Formats a string using a printf style format descriptor.
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
virtual const char * UnixPathName(const char *unixpathname)
Convert from a local pathname to a Unix pathname.
virtual const char * BaseName(const char *pathname)
Base name of a file name. Base name of /user/root is root.
static void SingleShot(Int_t milliSec, const char *receiver_class, void *receiver, const char *method)
This static function calls a slot after a given time interval.
virtual void SetPasteFrame(TGFrame *f)
static TVirtualDragManager * Instance()
Load plugin and create drag manager object.
virtual Bool_t HandleEvent(Event_t *)
virtual void SetEditable(Bool_t)
int main(int argc, char **argv)
EvaluateInfo init(std::vector< RooRealProxy > parameters, std::vector< ArrayWrapper * > wrappers, std::vector< double * > arrays, size_t begin, size_t batchSize)
static constexpr double s