97 "Encapsulated PostScript",
"*.eps",
100 "ASImage XML",
"*.xml",
132 void Add(
const char *argname,
const char *
value,
const char *
type);
203 static char params[1024];
219 while ((obj = next())) {
226 const char *
type = str->GetString().Data();
227 const char *
data = 0;
235 if (selfobjpos == nparam-1) {
236 if (params[0]) strlcat(params,
",", 1024-strlen(params));
237 snprintf(param, 255,
"(TObject*)0x%zx", (
size_t)
fObject);
238 strlcat(params, param, 1024-strlen(params));
241 if (params[0]) strlcat(params,
",", 1024-strlen(params));
243 if (!strncmp(
type,
"char*", 5))
244 snprintf(param, 255,
"\"%s\"",
data);
246 strlcpy(param,
data,
sizeof(param));
248 strlcpy(param,
"0",
sizeof(param));
250 strlcat(params, param, 1024-strlen(params));
254 if (selfobjpos == nparam) {
255 if (params[0]) strlcat(params,
",", 1024-strlen(params));
256 snprintf(param, 255,
"(TObject*)0x%zx", (
size_t)
fObject);
257 strlcat(params, param, 1024-strlen(params));
273 ret +=
" [default: ";
316 Int_t selfobjpos = -1;
323 if (selfobjpos != argpos) {
325 const char *argname = arg_name.
Data();
328 const char *charstar =
"char*";
332 strlcpy(basictype, datatype->
GetTypeName(),
sizeof(basictype));
336 Warning(
"Dialog",
"data type is not basic type, assuming (int)");
337 strlcpy(basictype,
"int",
sizeof(basictype));
340 if (strchr(argname,
'*')) {
341 strlcat(basictype,
"*", 32-strlen(basictype));
351 if (!strncmp(basictype,
"char*", 5)) {
354 if (tdefval && strlen(tdefval))
355 strlcpy(val, tdefval,
sizeof(val));
356 }
else if (!strncmp(basictype,
"float", 5) ||
357 !strncmp(basictype,
"double", 6)) {
360 snprintf(val, 255,
"%g", ddefval);
361 }
else if (!strncmp(basictype,
"char", 4) ||
362 !strncmp(basictype,
"bool", 4) ||
363 !strncmp(basictype,
"int", 3) ||
364 !strncmp(basictype,
"long", 4) ||
365 !strncmp(basictype,
"short", 5)) {
368 snprintf(val, 255,
"%zi", (
size_t)ldefval);
373 if (
m->GetOptions()) {
374 Warning(
"Dialog",
"option menu not yet implemented");
383 if (tval) strlcpy(val, tval,
sizeof(val));
476 !
gClient->IsEditable())
return 0;
520 const char * ,
const char * )
745 gc->SetBackground(back);
746 gc->SetForeground(back);
832 for (i = 0; i <8; i++) {
835 for (i = 0; i <4; i++) {
867 for (i = 0; i <8; i++) {
870 for (i = 0; i <4; i++) {
926 fName =
"Gui Builder Drag Manager";
984 TIter next(methodList);
988 while ((method = (
TMethod*) next())) {
990 if (str.Contains(
"*DIALOG")) {
1131 for (
int i = 0; i < 8; i++) {
1170 if (
fStop || !frame) {
1192 str +=
" cannot be edited.";
1198 if (frame != comp) {
1226 str +=
"can not be selected";
1238 static Int_t x, x0,
y, y0, xx, yy;
1259 str +=
" Press SpaceBar to unselect the frame.";
1260 if (
IsFixedSize(frame)) str +=
" This frame cannot be resized.";
1384 str +=
" is grabbed";
1409 str +=
" ungrabbed";
1422 while (parent && (parent !=
gClient->GetDefaultRoot())) {
1423 if (parent->
GetId() ==
id) {
1486 if (now-was < 100) {
1589 if (!
w || (
w ==
fPimpl->
fPlane) ||
w->GetEditDisabled() ||
w->IsEditable() ||
1633 static Int_t gy = 0;
1634 static Int_t gx = 0;
1635 static UInt_t gstate = 0;
1883 if (
fStop || !frame) {
1983 win =
event->fWindow;
2002 switch (
event->fType) {
2026 static Long_t gLastClick = 0;
2027 static UInt_t gLastButton = 0;
2028 static Int_t gDbx = 0;
2029 static Int_t gDby = 0;
2031 if ((
event->fTime - gLastClick < 350) &&
2032 (
event->fCode == gLastButton) &&
2033 (std::abs(
event->fXRoot - gDbx) < 6) &&
2034 (std::abs(
event->fYRoot - gDby) < 6) &&
2035 (
event->fWindow == gDbw)) {
2043 }
else if (!(
event->fState & 0xFF)) {
2047 return w->HandleDoubleClick(
event);
2057 gDbw =
event->fWindow;
2058 gLastClick =
event->fTime;
2059 gLastButton =
event->fCode;
2060 gDbx =
event->fXRoot;
2061 gDby =
event->fYRoot;
2216 event->fUser[0] = fr->
GetId();
2254 event->fUser[0] =
w->GetId();
2325 event->fWindow = parent->
GetId();
2349 switch ((
EKeySym)keysym & ~0x20) {
2512 Int_t x0, y0, xx, yy;
2516 if (!newfr || !newfr->
GetId() || !oldfr || !oldfr->
GetId())
return;
2521 x0 = x0 < 0 ? 0 : x0;
2522 y0 = y0 < 0 ? 0 : y0;
2539 if ((frame->
GetX() >= x0) && (frame->
GetY() >= y0) &&
2550 frame->
GetX(), frame->
GetY(), xx, yy,
c);
2579 x0 = std::min(xx,
x);
x = std::max(xx,
x);
2580 y0 = std::min(yy,
y);
y = std::max(yy,
y);
2592 if (list->IsEmpty()) {
2636 if (
fStop || !cont) {
2646 w =
w < 100 ? 100 :
w;
2647 h =
h < 100 ? 100 :
h;
2740 x0 = std::min(xx,
x);
x = std::max(xx,
x);
2741 y0 = std::min(yy,
y);
y = std::max(yy,
y);
2756 TString str =
"Grab action performed.";
2757 str +=
" Press Cntrl-Return to Drop grabbed frames.";
2758 str +=
" Press Return for TCanvas Grab";
2819 x0 = std::min(xx,
x);
x = std::max(xx,
x);
2820 y0 = std::min(yy,
y);
y = std::max(yy,
y);
2834 if ((fr->
GetX() >= x0) && (fr->
GetY() >= y0) &&
2844 else fr->
Move(x0, y0);
2858 else fr->
Move(x0, y0);
2922 str +=
" cannot be deleted";
2955 x0 = std::min(xx,
x);
x = std::max(xx,
x);
2956 y0 = std::min(yy,
y);
y = std::max(yy,
y);
2968 if ((fr->
GetX() >= x0) && (fr->
GetY() >= y0) &&
3019 if (
fStop || !frame) {
3122 str +=
" copied to clipboard";
3207 str +=
" replaced by ";
3278 f->
Resize(
f->GetWidth() + 10,
f->GetHeight() + 10);
3304 if (!file || !file[0]) {
3323 main->SetWMSizeHints(
main->GetDefaultWidth(),
main->GetDefaultHeight(), 10000, 10000, 0, 0);
3328 if (
gVirtualX->InheritsFrom(
"TGX11"))
main->SetIconPixmap(
"bld_rgb.xpm");
3329 main->SaveSource(fname.
Data(), file ?
"keep_names quiet" :
"keep_names");
3347 main->RaiseWindow();
3436static Int_t canResize(TGFrame *frame, Int_t x, Int_t y, UInt_t &w, UInt_t &h)
3438 if (frame->InheritsFrom(TGCompositeFrame::Class())) return 0;
3440 TGCompositeFrame *comp = (TGCompositeFrame*)frame;
3442 TIter next(comp->GetList());
3444 Int_t d = gGuiBldDragManager->GetGridStep();
3447 while ((fe = (TGFrameElement*)next())) {
3448 if (x + fe->fFrame->GetX() + fe->fFrame->GetWidth() > w) {
3449 w = fe->fFrame->GetX() + x + fe->fFrame->GetWidth();
3452 if (y + fe->fFrame->GetY() + fe->fFrame->GetHeight() > h) {
3453 h = fe->fFrame->GetY() + y + fe->fFrame->GetHeight();
3504 if ((((
int)fr->
GetWidth() >
x) || (
x < 0)) &&
3507 if (fr->
GetY() +
y < 2) {
3510 if (fr->
GetX() +
x < 2) {
3533 if ((
x > 0) && (((
int)fr->
GetHeight() >
y) || (
y < 0))) {
3535 if (fr->
GetY() +
y < 2) {
3561 if (fr->
GetY() +
y < 2) {
3573 if ((((
int)fr->
GetWidth() >
x) || (
x < 0)) && (
y > 0)) {
3575 if (fr->
GetX() +
x < 2) {
3598 if ((
x > 0) && (
y > 0)) {
3628 if (fr->
GetX() +
x < 2) {
3711 if (!move && !
gVirtualX->InheritsFrom(
"TGX11")) {
3723 str +=
" is moved to absolute position ";
3757 if (
fStop || !comp) {
3821 if (
w && (
w !=
gVirtualX->GetDefaultRootWindow())) {
3894 static Int_t gy =
event->fYRoot;
3895 static Int_t gx =
event->fXRoot;
3900 ((
event->fYRoot == gy) && (
event->fXRoot == gx))) {
3966 x =
x > x0 ? x0 :
x;
3967 y =
y > y0 ? y0 :
y;
3984 frame->
Resize(
w < grid ? grid :
w,
h < grid ? grid :
h);
3987 frame->
Resize(
w < grid ? 15*grid :
w,
h < grid ? 30*grid :
h);
3989 frame->
Resize(
w < grid ? 30*grid :
w,
h < grid ? 15*grid :
h);
3991 else frame->
Resize(
w < 2*grid ? 2*grid :
w,
h < 2*grid ? 2*grid :
h);
4028 frame = ((
TGCanvas*)frame)->GetContainer();
4060 if ((
x == x0) || (
y==y0 ))
return;
4063 x0 = x0 < 0 ? 0 : x0;
4073 y0 = y0 < 0 ? 0 : y0;
4092 xswap ?
x : x0, yswap ?
y : y0,
4095 xswap ? x0 :
x, yswap ? y0 :
y,
4111 TString str =
"Lasso drawn. Align frames inside or press Return key to grab frames.";
4457 str +=
" dropped into ";
4461 str +=
" at position ";
4561 if ((
d.fWidth > 10) && (
d.fHeight > 10)) {
4563 }
else if (
d.fWidth > 10) {
4565 }
else if (
d.fHeight > 10) {
4583 if ((
d.fWidth > 10) && (
d.fHeight > 10)) {
4585 }
else if (
d.fWidth > 10) {
4587 }
else if (
d.fHeight > 10) {
4887 fEditor->
Connect(
"UpdateSelected(TGFrame*)",
"TGuiBldDragManager",
this,
4888 "HandleUpdateSelected(TGFrame*)");
5028 if (
f->GetParent() &&
5146 str +=
" layout cannot be broken";
5156 str += (frame->
IsLayoutBroken() ?
" Disable Layout" :
" Enable Layout");
5185 opt &= ~kHorizontalFrame;
5192 str +=
" Vertical Layout ON";
5196 opt &= ~kVerticalFrame;
5203 str +=
" Horizontal Layout ON";
5271 if (p1 ==
kNPOS)
return "";
5275 if (p2 ==
kNPOS)
return "";
5277 return in(p1, p2-p1);
5287 if (str.Contains(cl->
GetName())) {
5294 while ((bc = (
TBaseClass*)nextBaseClass())) {
5311 if (!menu || !
object) {
5323 while ((method = (
TMethod*) next())) {
5346 if (!menu || !
object) {
5350 TList *menuItemList;
5364 TIter nextItem(menuItemList);
5370 switch (menuItem->
GetType()) {
5376 methodList =
new TList;
5379 TIter next(methodList);
5381 while ((method = (
TMethod*) next())) {
5382 if (classPtr != method->
GetClass()) {
5401 if (
m->GetterMethod()) {
5405 TIter nxt(
m->GetOptions());
5419 if (t->
GetState())
r->CheckEntryByData(t);
5461 const char* menuItemTitle = menuItem->
GetTitle();
5462 if (strlen(menuItemTitle)==0) menuItemTitle = menuItem->
GetFunctionName();
5495 if (str.Contains(
"*DIALOG")) {
5497 str2.
Form(
"((TGuiBldDragManager*)0x%zx)->%s((%s*)0x%zx)", (
size_t)
this, method->
GetName(),
5597 fFrameMenu->
Connect(
"Activated(Int_t)",
"TGuiBldDragManager",
this,
"DoClassMenu(Int_t)");
5683 const char *label = (frame->
IsLayoutBroken() ?
"Allow Layout\tCtrl+B" :
5684 "Break Layout\tCtrl+B");
5734 fFrameMenu->
Connect(
"Activated(Int_t)",
"TGuiBldDragManager",
this,
"HandleAction(Int_t)");
5774 fLassoMenu->
Connect(
"Activated(Int_t)",
"TGuiBldDragManager",
this,
"HandleAction(Int_t)");
5802 for (i = 0; i < 10; i++) {
5805 for (i = 0; i < 10; i++) {
5860 cd->
Connect(
"ColorSelected(Pixel_t)",
"TGFrame", fr,
"ChangeBackground(Pixel_t)");
5874 cd->
Connect(
"ColorSelected(Pixel_t)",
"TGCompositeFrame", fr,
5875 "ChangeSubframesBackground(Pixel_t)");
5896 cd->
Connect(
"ColorSelected(Pixel_t)",
"TGGroupFrame", fr,
"SetTextColor(Pixel_t)");
5924 fd->
Connect(
"FontSelected(char*)",
"TGGroupFrame", fr,
"SetTextFont(char*)");
5925 fd->
Connect(
"ColorSelected(Pixel_t)",
"TGGroupFrame", fr,
"SetTextColor(Pixel_t)");
5954 fd->
Connect(
"FontSelected(char*)",
"TGTextButton", fr,
"SetFont(char*)");
5955 fd->
Connect(
"ColorSelected(Pixel_t)",
"TGTextButton", fr,
"SetTextColor(Pixel_t)");
5956 fd->
Connect(
"AlignSelected(Int_t)",
"TGTextButton", fr,
"SetTextJustify(Int_t)");
5978 cd->
Connect(
"ColorSelected(Pixel_t)",
"TGTextButton", fr,
"SetTextColor(Pixel_t)");
6047 cd->
Connect(
"ColorSelected(Pixel_t)",
"TGFrame", fr,
"ChangeBackground(Pixel_t)");
6048 cd->
Connect(
"ColorSelected(Pixel_t)",
"TGScrollBar", fr->
GetHScrollbar(),
"ChangeBackground(Pixel_t)");
6049 cd->
Connect(
"ColorSelected(Pixel_t)",
"TGScrollBar", fr->
GetVScrollbar(),
"ChangeBackground(Pixel_t)");
6068 "ChangeBackground(Pixel_t)");
6073 cd->
Connect(
"ColorSelected(Pixel_t)",
"TGLBEntry", se,
6074 "SetBackgroundColor(Pixel_t)");
6080 cd->
Connect(
"ColorSelected(Pixel_t)",
"TGTextEntry", te,
6081 "SetBackgroundColor(Pixel_t)");
6121 fd->
Connect(
"FontSelected(char*)",
"TGLabel", fr,
"SetTextFont(char*)");
6122 fd->
Connect(
"ColorSelected(Pixel_t)",
"TGLabel", fr,
"SetTextColor(Pixel_t)");
6123 fd->
Connect(
"AlignSelected(Int_t)",
"TGLabel", fr,
"SetTextJustify(Int_t)");
6146 cd->
Connect(
"ColorSelected(Pixel_t)",
"TGLabel", fr,
"SetTextColor(Pixel_t)");
6163 cd->
Connect(
"ColorSelected(Pixel_t)",
"TGListBox", fr,
"ChangeBackground(Pixel_t)");
6181 cd->
Connect(
"ColorSelected(Pixel_t)",
"TGProgressBar", fr,
"SetBarColor(Pixel_t)");
6203 cd->
Connect(
"ColorSelected(Pixel_t)",
"TGProgressBar", fr,
6204 "SetForegroundColor(Pixel_t)");
6221 cd->
Connect(
"ColorSelected(Pixel_t)",
"TGTextEntry", fr,
"SetTextColor(Pixel_t)");
6245 fd->
Connect(
"FontSelected(char*)",
"TGTextEntry", fr,
"SetFont(char*)");
6246 fd->
Connect(
"ColorSelected(Pixel_t)",
"TGTextEntry", fr,
"SetTextColor(Pixel_t)");
6252 int tw, max_ascent, max_descent;
6260 gVirtualX->GetFontProperties(
fs, max_ascent, max_descent);
6261 fr->
Resize(tw + 8, max_ascent + max_descent + 7);
const Mask_t kWAOverrideRedirect
Handle_t Pixmap_t
Pixmap handle.
const Mask_t kButtonPressMask
Handle_t Window_t
Window handle.
const Mask_t kWASaveUnder
const Mask_t kKeyPressMask
const Mask_t kButton1Mask
const Mask_t kKeyShiftMask
const Mask_t kKeyControlMask
const Mask_t kButton3Mask
const Mask_t kButton2Mask
ULong_t Pixel_t
Pixel value.
Handle_t FontStruct_t
Pointer to font structure.
bool Bool_t
Boolean (0=false, 1=true) (bool)
int Int_t
Signed integer 4 bytes (int)
long Longptr_t
Integer large enough to hold a pointer (platform-dependent)
unsigned long ULong_t
Unsigned long integer 4 bytes (unsigned long). Size depends on architecture.
long Long_t
Signed long integer 4 bytes (long). Size depends on architecture.
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int)
float Float_t
Float 4 bytes (float)
constexpr Ssiz_t kNPOS
The equivalent of std::string::npos for the ROOT class TString.
long long Long64_t
Portable signed long integer 8 bytes.
void Warning(const char *location, const char *msgfmt,...)
Use this function in warning situations.
ErrorHandlerFunc_t SetErrorHandler(ErrorHandlerFunc_t newhandler)
Set an errorhandler function. Returns the old handler.
static const char * gSaveMacroTypes[]
@ kMWMInputFullApplicationModal
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t sel
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void pixel
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h prop
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize id
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t child
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void on
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void value
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void SetMWMHints
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t win
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void SetWMPosition
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t attr
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t grab
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t SetWMSizeHints
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t src
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize fs
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t type
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t height
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void gc
static Bool_t containBaseClass(const char *somestring, TClass *cl)
Helper.
static TString CreateArgumentTitle(TMethodArg *argument)
Create a string describing method argument.
static const char * gSaveMacroTypes[]
static Window_t GetWindowFromPoint(Int_t x, Int_t y)
Helper. Return a window located at point x,y (in screen coordinates)
static TGuiBldDragManager * gGuiBldDragManager
static TGuiBldMenuDialog * gMenuDialog
static TString FindMenuIconName(TString &in)
Return a name of icon.
static void GuiBldErrorHandler(Int_t, Bool_t, const char *, const char *)
Our own error handler (not used yet)
static const char * gImageTypes[]
static void layoutFrame(TGFrame *frame)
Helper to layout.
static Bool_t IsParentOfGrab(Window_t id, const TGWindow *grab)
Helper for IsPointVisible.
R__EXTERN TInterpreter * gCling
R__EXTERN TRandom * gRandom
R__EXTERN TSystem * gSystem
R__EXTERN TVirtualDragManager * gDragManager
R__EXTERN Atom_t gROOT_MESSAGE
R__EXTERN Atom_t gWM_DELETE_WINDOW
Each class (see TClass) has a linked list of its base class(es).
TClass * GetClassPointer(Bool_t load=kTRUE)
Get pointer to the base class TClass.
TClass instances represent classes, structs and namespaces in the ROOT type system.
TList * GetMenuList() const
Return the list of menu items associated with the class.
TMethod * GetMethodWithPrototype(const char *method, const char *proto, Bool_t objectIsConst=kFALSE, ROOT::EFunctionMatchMode mode=ROOT::kConversionMatch)
Find the method with a given prototype.
TList * GetListOfMethods(Bool_t load=kTRUE)
Return list containing the TMethods of a class.
TList * GetListOfBases()
Return list containing the TBaseClass(es) of a class.
Long_t Property() const override
Returns the properties of the TClass as a bit field stored as a Long_t value.
void GetMenuItems(TList *listitems)
Returns list of methods accessible by context menu.
TClass * IsA() const override
static TClass * GetClass(const char *name, Bool_t load=kTRUE, Bool_t silent=kFALSE)
Static method returning pointer to TClass of the specified class name.
virtual Int_t GetEntries() const
virtual Bool_t IsEmpty() const
virtual Int_t GetSize() const
Return the capacity of the collection, i.e.
static ULong_t RGB2Pixel(Int_t r, Int_t g, Int_t b)
Convert r,g,b to graphics system dependent pixel value.
static ULong_t Number2Pixel(Int_t ci)
Static method that given a color index number, returns the corresponding pixel value.
All ROOT classes may have RTTI (run time type identification) support added.
Basic data type descriptor (datatype information is obtained from CINT).
TString GetTypeName()
Get basic type of typedef, e,g.: "class TDirectory*" -> "TDirectory".
const char * GetSignature()
Return signature of function.
~TGAroundFrame() override
A frame containing two scrollbars (a horizontal and a vertical) and a viewport.
virtual void SetContainer(TGFrame *f)
TGFrame * GetContainer() const
TGVScrollBar * GetVScrollbar() const
TGViewPort * GetViewPort() const
void MapSubwindows() override
Map all canvas sub windows.
TGHScrollBar * GetHScrollbar() const
const TGWindow * GetDefaultRoot() const
Returns the root (i.e.
Bool_t IsEditable() const
const TGWindow * GetRoot() const
Returns current root (i.e.
void WaitForUnmap(TGWindow *w)
Wait for window to be unmapped.
void ResetWaitFor(TGWindow *w)
reset waiting
const TGResourcePool * GetResourcePool() const
TList * GetListOfPopups() const
void WaitFor(TGWindow *w)
Wait for window to be destroyed.
TGWindow * GetWindowById(Window_t sw) const
Find a TGWindow via its handle. If window is not found return 0.
const TGPicture * GetPicture(const char *name)
Get picture from the picture pool.
Bool_t GetColorByName(const char *name, Pixel_t &pixel) const
Get a color by name.
void SetRoot(TGWindow *root=nullptr)
Sets the current root (i.e.
void NeedRedraw(TGWindow *w, Bool_t force=kFALSE)
Set redraw flags.
EGEventType GetWaitForEvent() const
void FreePicture(const TGPicture *pic)
Free picture resource.
void UnregisterWindow(TGWindow *w)
Remove a TGWindow from the list of windows.
A full featured color selection dialog.
virtual void SetCurrentColor(Pixel_t col)
Change current color.
TGColorPalette * GetCustomPalette() const
void SetColor(Int_t ix, Pixel_t color)
Set color at index ix of color entries.
A combobox (also known as a drop down listbox) allows the selection of one item out of a list of item...
virtual TGLBEntry * GetSelectedEntry() const
virtual TGTextEntry * GetTextEntry() const
virtual TGListBox * GetListBox() const
The base class for composite widgets (menu bars, list boxes, etc.).
TGDimension GetDefaultSize() const override
std::cout << fWidth << "x" << fHeight << std::endl;
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=nullptr)
Add frame to the composite frame using the specified layout hints.
virtual TList * GetList() const
UInt_t GetDefaultWidth() const override
virtual TGLayoutManager * GetLayoutManager() const
Bool_t HandleDragEnter(TGFrame *) override
Handle drag enter event.
void MapSubwindows() override
Map all sub windows that are part of the composite frame.
UInt_t GetDefaultHeight() const override
virtual Bool_t TranslateCoordinates(TGFrame *child, Int_t x, Int_t y, Int_t &fx, Int_t &fy)
Translate coordinates to child frame.
void Layout() override
Layout the elements of the composite frame.
Bool_t IsEditable() const override
Return kTRUE if frame is being edited.
void SetCleanup(Int_t mode=kLocalCleanup) override
Turn on automatic cleanup of child frames in dtor.
Bool_t IsLayoutBroken() const override
virtual void RemoveFrame(TGFrame *f)
Remove frame from composite frame.
void SetEditable(Bool_t on=kTRUE) override
Switch ON/OFF edit mode.
void SetEditDisabled(UInt_t on=1) override
Set edit disable flag for this frame and subframes.
void ChangeOptions(UInt_t options) override
Change composite frame options. Options is an OR of the EFrameTypes.
void SetLayoutBroken(Bool_t on=kTRUE) override
Set broken layout. No Layout method is called.
TGUndockedFrame * GetUndocked() const
Bool_t IsUndocked() const
This class creates a file selection dialog.
char * fFilename
selected file name
const char ** fFileTypes
file types used to filter selectable files
char * fIniDir
on input: initial directory, on output: new directory
Bool_t fOverwrite
if true overwrite the file with existing name on save
void SetIniDir(const char *inidir)
Set directory name.
Font selection dialog, allowing to select one in the list of available fonts in the system.
virtual void SetAlign(Int_t align)
Set align.
virtual void SetFont(TGFont *font)
Set font.
virtual void EnableAlign(Bool_t on=kTRUE)
Enable/disable align combobox.
virtual void SetColor(Pixel_t color)
Set color.
TGFont * FindFont(FontStruct_t font) const
Find font based on its font struct. Returns 0 if font is not found.
Encapsulate fonts used in the GUI system.
A subclasses of TGWindow, and is used as base class for some simple widgets (buttons,...
virtual void ChangeOptions(UInt_t options)
Change frame options. Options is an OR of the EFrameTypes.
virtual TGDimension GetDefaultSize() const
std::cout << fWidth << "x" << fHeight << std::endl;
void AddInput(UInt_t emask)
Add events specified in the emask to the events the frame should handle.
Bool_t IsEditable() const override
void MoveResize(Int_t x, Int_t y, UInt_t w=0, UInt_t h=0) override
Move and/or resize the frame.
virtual Bool_t IsLayoutBroken() const
static const TGGC & GetBlackGC()
Get black graphics context.
void Resize(UInt_t w=0, UInt_t h=0) override
Resize the frame.
Int_t GetBorderWidth() const
virtual Bool_t HandleDragLeave(TGFrame *)
virtual void SetX(Int_t x)
virtual Bool_t HandleKey(Event_t *)
static Pixel_t GetWhitePixel()
Get white pixel value.
virtual UInt_t GetDefaultWidth() const
virtual UInt_t GetDefaultHeight() const
void ReparentWindow(const TGWindow *p, Int_t x=0, Int_t y=0) override
Reparent window, make p the new parent and position the window at position (x,y) in new parent.
void SetBackgroundColor(Pixel_t back) override
Set background color (override from TGWindow base class).
void MapWindow() override
map window
TGFrameElement * GetFrameElement() const
virtual void SetLayoutBroken(Bool_t=kTRUE)
virtual Bool_t HandleDragMotion(TGFrame *)
void Move(Int_t x, Int_t y) override
Move frame.
TClass * IsA() const override
virtual void DeleteWindow()
Delete window.
virtual UInt_t GetOptions() const
void UnmapWindow() override
unmap window
static const TGGC & GetShadowGC()
Get shadow color graphics context.
virtual Bool_t HandleButton(Event_t *)
void SetFrameElement(TGFrameElement *fe)
virtual void SetCleanup(Int_t=kLocalCleanup)
void MapSubwindows() override
map sub windows
virtual Pixel_t GetBackground() const
virtual void SetY(Int_t y)
virtual Bool_t HandleDragDrop(TGFrame *, Int_t, Int_t, TGLayoutHints *)
void SetEditable(Bool_t) override
static const TGGC & GetBckgndGC()
Get background color graphics context.
void MapRaised() override
map raised
TGGC * FindGC(const TGGC *gc)
Find graphics context. Returns 0 in case gc is not found.
Encapsulate a graphics context used in the low level graphics.
void SetForeground(Pixel_t v)
Set foreground color.
TGGrabRect(Int_t type)
ctor.
Bool_t HandleButton(Event_t *ev) override
Handle button press event.
A composite frame with a border and a title.
FontStruct_t GetFontStruct() const
GContext_t GetNormGC() const
A composite frame that layout their children in horizontal way.
This class handles GUI icons.
virtual void SetImage(const char *img)
Set icon image.
virtual void SetImagePath(const char *path)
Set directory where image is located.
This class handles GUI labels.
FontStruct_t GetFontStruct() const
Int_t GetTextJustify() const
GContext_t GetNormGC() const
This class describes layout hints used by the layout classes.
TClass * IsA() const override
A listbox is a box, possibly with scrollbar, containing entries.
Defines top level windows that interact with the system Window Manager.
virtual void SaveSource(const char *filename="Rootappl.C", Option_t *option="")
Save the GUI main frame widget in a C++ macro file.
void SetClassHints(const char *className, const char *resourceName)
Set the windows class and resource name.
void SetIconName(const char *name)
Set window icon name. This is typically done via the window manager.
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.
void SetWindowName(const char *name=nullptr) override
Set window name. This is typically done via the window manager.
void SetMWMHints(UInt_t value, UInt_t funcs, UInt_t input)
Set decoration style for MWM-compatible wm (mwm, ncdwm, fvwm?).
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 TGPicture * SetIconPixmap(const char *iconName)
Set window icon pixmap by name.
This file contains all different MDI frame decoration classes.
TGMdiTitleBar * GetTitleBar() const
void MoveResize(Int_t x, Int_t y, UInt_t w, UInt_t h) override
Move the MDI window at position x, y and set size to w, h.
This file contains the TGMdiFrame class.
Bool_t SetCurrent(TGMdiFrameList *newcurrent)
Set current (active) MDI child window (by frame list).
TGMdiFrame * GetCurrent() const
Return pointer on current (active) MDI child window.
TGClient * fClient
Connection to display server.
Handle_t fId
X11/Win32 Window identifier.
The TGPicture class implements pictures and icons used in the different GUI elements and widgets.
The classes in this file implement progress bars.
Pixel_t GetBarColor() const
GContext_t GetNormGC() const
TGFontPool * GetFontPool() const
TGGCPool * GetGCPool() const
A text buffer is used in several widgets, like TGTextEntry, TGFileDialog, etc.
UInt_t GetBufferLength() const
UInt_t GetTextLength() const
Yield an action as soon as it is clicked.
FontStruct_t GetFontStruct() const
Int_t GetTextJustify() const
A TGTextEntry is a one line text input widget.
TGTextBuffer * GetBuffer() const
const char * GetText() const
FontStruct_t GetFontStruct() const
Pixel_t GetTextColor() const
Defines transient windows that typically are used for dialogs windows.
ROOT GUI Window base class.
virtual const TGWindow * GetMainFrame() const
Returns top level main frame.
virtual UInt_t GetEditDisabled() const
virtual void SetBackgroundPixmap(Pixmap_t pixmap)
set background pixmap
virtual void RequestFocus()
request focus
virtual void SetName(const char *name)
virtual void SetEditable(Bool_t on=kTRUE)
@ kEditDisableBtnEnable
window can handle mouse button events
@ kEditDisable
disable edit of this window
@ kEditDisableKeyEnable
window can handle keyboard events
virtual void DestroyWindow()
destroy window
virtual void SetWindowName(const char *name=nullptr)
Set window name.
const TGWindow * GetParent() const
virtual Bool_t IsMapped()
Returns kTRUE if window is mapped on screen, kFALSE otherwise.
virtual void Resize(UInt_t w, UInt_t h)
Resize the window.
virtual void SetBackgroundColor(Pixel_t color)
set background color
TString fName
name of the window used in SavePrimitive()
virtual void RaiseWindow()
raise window
const char * GetName() const override
Return unique name, used in SavePrimitive methods.
void SetStep(UInt_t step)
Set the grid step.
TGuiBldDragManagerGrid()
Create a grid background for the selected window.
void Draw()
Draw grid over edited frame.
void InitPixmap()
Create grid background pixmap.
void InitBgnd()
Create grid background.
~TGuiBldDragManagerGrid()
ctor.
TGFrame * fAroundFrame[4]
TGGrabRect * fGrabRect[8]
TGuiBldDragManagerGrid * fGrid
TGFrameElement * fGrabListPosition
const TGWindow * fGrabParent
TGFrame * fSpacePressedFrame
TGuiBldDragManagerPimpl(TGuiBldDragManager *m)
TGuiBldDragManager * fManager
~TGuiBldDragManagerPimpl()
TGLayoutHints * fGrabLayout
TGuiBldDragManager * fManager
Bool_t Notify() override
This method must be overridden to handle object notification (the base implementation is no-op).
TGuiBldDragManagerRepeatTimer(TGuiBldDragManager *m, Long_t ms)
Drag and drop manager used by the ROOT GUI Builder.
TGFrame * GetEditableParent(TGFrame *f)
Return the parent frame which can be edited.
void ChangeSelected(TGFrame *f)
Inform outside wold that selected frame was changed.
Bool_t HandleEvent(Event_t *) override
Handle all events.
Bool_t EndDrag() override
End dragging.
void HandleAction(Int_t act)
Main handler of actions.
Bool_t IsFixedH(TGWindow *f) const
void DoDialogCancel()
Process dialog Cancel button pressed.
void DeleteMenuDialog()
Delete dialog and trash.
void SetCursorType(Int_t cur)
Set cursor for selected/grabbed frame.
void SwitchLayout()
Switch Horizontal/Vertical layout of selected/grabbed composite frame.
void ChangeImage(TGIcon *)
Invoke file dialog to assign a new image.
void DoClassMenu(Int_t)
Process a method chosen via frame context menu.
Bool_t IsMoveWaiting() const
Waits for either the mouse move from the given initial ButtonPress location or for the mouse button t...
void ChangeTextFont(TGGroupFrame *)
Change text font via font selection dialog.
Bool_t CheckDragResize(Event_t *event)
Check resize type event.
void SelectFrame(TGFrame *frame, Bool_t add=kFALSE)
Grab/Select frame.
TGFrame * InEditable(Window_t id)
Return a pointer to the parent window (which is being edited)
Bool_t CanChangeLayoutOrder(TGWindow *w) const
kTRUE - if it's possible to change layout order in the parent's layout of window w
Bool_t Cancel(Bool_t delSrc) override
Do cancel action.
void HandlePaste()
Handle paste action.
void Snap2Grid()
Draw grid on editable frame and restore background on previously edited one.
Bool_t IsPointVisible(Int_t x, Int_t y)
Helper function for IsSelectedWindow method.
void PutToCanvas(TGCompositeFrame *cont)
Create a new TGCanvas and place container into it.
void CheckTargetUnderGrab()
Look for the drop target under grabbed/selected frame while moving.
void HideGrabRectangles()
Hide/Unmap grab rectangles.
Int_t GetEndDragX() const override
Return the current X coordinate of the dragged frame.
void CreatePropertyEditor()
Create widget property editor (it could be located outside of guibuilder)
void SetGridStep(UInt_t step)
Set the grid step.
friend class TGuiBldMenuDialog
Bool_t HandleButton(Event_t *) override
Handle button event occurred in some ROOT frame.
void Compact(Bool_t global=kTRUE)
Layout and Resize frame.
void DrawLasso()
Draw lasso for allocation new object.
void Menu4Frame(TGFrame *, Int_t x, Int_t y)
Create and place context menu for selected frame.
friend class TGuiBldDragManagerRepeatTimer
void RaiseMdiFrame(TGFrame *in)
Raise guibuilder's mdi frame.
void DeleteFrame(TGFrame *frame)
Delete frame.
void DoDialogApply()
Process dialog Apply button pressed.
void DoMove()
Handle move.
Bool_t IgnoreEvent(Event_t *e) override
Return kTRUE if event is rejected for processing by drag manager.
void ChangeBarColor(TGProgressBar *)
Set progress bar color via TGColorDialog.
void HandleDelete(Bool_t crop=kFALSE)
Handle delete or crop action.
void Menu4Lasso(Int_t x, Int_t y)
Create context menu for lasso actions.
Int_t GetEndDragY() const override
Returns the current Y coordinate of the dragged frame.
void ReparentFrames(TGFrame *newfr, TGCompositeFrame *oldfr)
Reparent frames.
Bool_t HandleExpose(Event_t *) override
Handle repaint event.
void HandleLayoutOrder(Bool_t forward=kTRUE)
Change layout order.
void CloneEditable()
Create a frame which is the same as currently edited frame.
void HandleReplace()
Handle replace.
void DoDialogOK()
Process dialog OK button pressed.
TList * GetFramesInside(Int_t x0, Int_t y0, Int_t x, Int_t y)
Return the list of frames inside of some area.
void DoResize()
handle resize
Int_t GetStrartDragX() const override
Return the X coordinate where drag started.
Int_t GetStrartDragY() const override
Return the Y coordinate where drag started.
TGCompositeFrame * FindCompositeFrame(Window_t id)
Find the first composite parent of window.
Bool_t HandleButtonPress(Event_t *)
Handle button press event.
void HandleButon3Pressed(Event_t *, TGFrame *frame=nullptr)
Handle 3d mouse pressed (popup context menu)
void TimerEvent(Event_t *ev)
void HandleAlignment(Int_t to, Bool_t lineup=kFALSE)
Align frames located inside lasso area.
Bool_t SaveFrame(const char *file=nullptr)
Save composite frame as macro.
void SwitchEditable(TGFrame *frame)
Switch editable.
void DrawGrabRect(Int_t i, Int_t x, Int_t y)
Helper method to draw grab rectangle at position x,y.
void SetEditable(Bool_t on=kTRUE) override
Grab server.
void UnmapAllPopups()
Unmap all popups.
void ChangePicture(TGPictureButton *)
Invoke file dialog to assign a new picture.
Bool_t IsEditDisabled(TGWindow *f) const
TGFrame * FindMdiFrame(TGFrame *in)
Return a pointer to the parent mdi frame.
Bool_t HandleTimerEvent(Event_t *ev, TTimer *t) override
Handle timer events or events coming from the recorder.
void ChangeBackgroundColor(TGListBox *)
Set background color for list box entries.
Bool_t HandleSelectionRequest(Event_t *) override
not used yet.
TGuiBldDragManagerPimpl * fPimpl
Bool_t CanCompact(TGWindow *w) const
kTRUE is frame could be compacted/"laid out"
void CloseMenus()
Helper to close all menus.
void GrabFrame(TGFrame *frame)
grab frame (see SelectFrame)
void AddClassMenuMethods(TGPopupMenu *menu, TObject *object)
Add entries with class //*MENU* methods.
void HandleCopy(Bool_t brk_layout=kTRUE)
Handle copy.
void ToGrid(Int_t &x, Int_t &y)
Return grid coordinates which are close to given.
void CreateListOfDialogs()
Create a list of dialog methods.
static TGFontDialog * fgGlobalFontDialog
void SetLassoDrawn(Bool_t on)
Set lasso drawn flag.
Bool_t IsFixedW(TGWindow *f) const
void HandleCut()
Handle cut action.
TGWindow * GetResizableParent(TGWindow *p)
Find parent frame which can be resized.
Bool_t Drop() override
Drop grabbed frame.
static void MapGlobalDialog(TGMainFrame *dialog, TGFrame *fr)
Map dialog and place it relative to selected frame.
void HandleReturn(Bool_t on=kFALSE)
Handling of return/enter key pressing.
UInt_t GetGridStep()
Return the grid step.
Bool_t HandleButtonRelease(Event_t *)
Handle button release event.
static TGFontDialog * GetGlobalFontDialog()
Create global font dialog.
void Reset1()
Reset some parameters.
Bool_t HandleDestroyNotify(Event_t *)
Handle destroy notify.
Bool_t HandleClientMessage(Event_t *) override
Handle client message.
Bool_t HandleSelection(Event_t *) override
not used yet.
void PlaceFrame(TGFrame *, TGLayoutHints *)
Put created frame at position of the last mouse click.
Bool_t IsFixedLayout(TGWindow *f) const
Bool_t HandleTimer(TTimer *) override
The main event loop is originated here It repeatedly queries pointer state and position on the screen...
void SetPropertyEditor(TGuiBldEditor *e)
Helper method.
Bool_t CheckTargetAtPoint(Int_t x, Int_t y)
Helper. Look for the drop target under grabbed/selected frame while moving.
TGFrame * GetMovableParent(TGWindow *p)
Find parent frame which can be dragged.
Bool_t HandleMotion(Event_t *) override
Handle motion event.
void DrawGrabRectangles(TGWindow *win=nullptr)
Draw small grab rectangles around grabbed/selected/frame.
static TGColorDialog * fgGlobalColorDialog
void DoRedraw() override
Redraw the edited window.
Bool_t IsFixedSize(TGWindow *f) const
~TGuiBldDragManager() override
Destructor.
void HighlightCompositeFrame(Window_t)
Raise composite frame when mouse is moving over it.
Bool_t HandleConfigureNotify(Event_t *) override
Resize events.
void DoReplace(TGFrame *frame)
Replace frame (doesn't work yet properly)
Bool_t StartDrag(TGFrame *src, Int_t x, Int_t y) override
Start dragging.
void HandleGrid()
Switch on/of grid drawn.
Bool_t CanChangeLayout(TGWindow *w) const
kTRUE - if it's possible to switch disable/enable layout
Bool_t Save(const char *file="")
Save an edited frame to the file.
void BreakLayout()
Disable/Enable layout for selected/grabbed composite frame.
Bool_t IsPasteFrameExist()
Return kTRUE if paste frame exist.
void UngrabFrame()
Ungrab/Unselect selected/grabbed frame.
Bool_t HandleKey(Event_t *) override
Handle key event.
TRootGuiBuilder * fBuilder
void DropCanvas(TGCanvas *canvas)
Drop canvas container.
void ChangeProperties(TGLabel *)
Edit properties via font selection dialog.
Bool_t IsEventsDisabled(TGWindow *f) const
void AddDialogMethods(TGPopupMenu *menu, TObject *object)
Add DIALOG entries to the selected frame popup menu.
Bool_t IsSelectedVisible()
Return kTRUE if grabbed/selected frame is not overlapped by other windows.
Bool_t RecognizeGesture(Event_t *, TGFrame *frame=nullptr)
Recognize what was done when mouse button pressed.
void DeletePropertyEditor()
Delete widget property editor.
static TGColorDialog * GetGlobalColorDialog(Bool_t create=kTRUE)
Return pointer to global color dialog.
TGCompositeFrame * FindLayoutFrame(TGFrame *f)
Helper to find a frame which can be laid out.
TGFrame * GetBtnEnableParent(TGFrame *fr)
Return a parent which can handle button events.
TGFrame * GetSelected() const
Return the current grabbed/selected frame.
void HandleUpdateSelected(TGFrame *)
When selected frame was changed by guibuilder editor -> update its appearance.
Bool_t IsGrabDisabled(TGWindow *f) const
void ChangeTextColor(TGGroupFrame *)
Change text color via color selection dialog.
Bool_t HandleDoubleClick(Event_t *) override
Mouse double click handler (never should happen)
void ChangeSelected(TGFrame *)
Change selected frame.
void RemoveFrame(TGFrame *) override
Remove a frame.
Bool_t IsEmbedded() const
TGuiBldAction * GetAction() const
static TGuiBuilder * Instance()
return an instance of TGuiBuilder object
virtual void SetAction(TGuiBldAction *act)
virtual Bool_t IsExecutable() const
An abstract interface to image processing library.
static TImage * Open(const char *file, EImageFileTypes type=kUnknown)
Open a specified image file.
static TImage * Create()
Create an image.
virtual void FromWindow(Drawable_t, Int_t=0, Int_t=0, UInt_t=0, UInt_t=0)
virtual Longptr_t Calc(const char *line, EErrorCode *error=nullptr)=0
void AddAfter(const TObject *after, TObject *obj) override
Insert object after object after in the list.
TObject * After(const TObject *obj) const override
Returns the object after object obj.
TObject * Before(const TObject *obj) const override
Returns the object before object obj.
void Add(TObject *obj) override
TObject * Remove(TObject *obj) override
Remove object from the list.
TObject * Last() const override
Return the last object in the list. Returns 0 when list is empty.
TObject * First() const override
Return the first object in the list. Returns 0 when list is empty.
void Delete(Option_t *option="") override
Remove all objects from the list AND delete all heap based objects.
TClass * IsA() const override
Each ROOT method (see TMethod) has a linked list of its arguments.
const char * GetDefault() const
Get default value of method argument.
const char * GetTypeName() const
Get type of method argument, e.g.: "class TDirectory*" -> "TDirectory" Result needs to be used or cop...
TDataMember * GetDataMember() const
Returns TDataMember pointed by this methodarg.
Each ROOT class (see TClass) has a linked list of methods.
virtual const char * GetCommentString()
Returns a comment string from the class declaration.
virtual TDataMember * FindDataMember()
Tries to guess DataMember from comment string and Method's name <==(only if 1 Argument!...
TClass * GetClass() const
EMenuItemKind IsMenuItem() const
virtual TList * GetListOfMethodArgs()
Returns methodarg list and additionally updates fDataMember in TMethod by calling FindDataMember();.
TClass * IsA() const override
const char * GetName() const override
Returns name of object.
const char * GetTitle() const override
Returns title of object.
Collectable string class.
Mother of all ROOT objects.
virtual const char * ClassName() const
Returns name of class to which the object belongs.
virtual void Execute(const char *method, const char *params, Int_t *error=nullptr)
Execute method on this object with the given parameter string, e.g.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
virtual TClass * IsA() const
Bool_t Connect(const char *signal, const char *receiver_class, void *receiver, const char *slot)
Non-static method is used to connect from the signal of this object to the receiver slot.
Bool_t Disconnect(const char *signal=nullptr, void *receiver=nullptr, const char *slot=nullptr)
Disconnects signal of this object from slot of receiver.
virtual UInt_t Integer(UInt_t imax)
Returns a random integer uniformly distributed on the interval [ 0, imax-1 ].
virtual Bool_t SaveProject(Event_t *event=nullptr)
Save selected project.
virtual void AddMacro(const char *macro, TImage *img)
Add macro to "User's Macros" section Input img must be static - do not delete it.
TGMdiFrame * FindEditableMdiFrame(const TGWindow *win)
Find the editable frame.
TGMdiMainFrame * GetMdiMain() const
virtual void UpdateStatusBar(const char *text=nullptr)
Update information shown on the status bar.
static TGGC * GetPopupHlghtGC()
Return background GC for highlighted popup menu entry.
void EnableEditButtons(Bool_t on=kTRUE)
Enable/disable toolbar buttons according to the selected frame.
static TGPopupMenu * CreatePopup()
Return style popup menu.
virtual void ChangeSelected(TGFrame *f)
Set selected frame.
void EnableLassoButtons(Bool_t on=kTRUE)
Enable toolbar buttons for alignment.
TGuiBldEditor * GetEditor() const
TGFrame * ExecuteAction() override
Execute an action.
void CloseWindow() override
Close GUI builder via window manager "Close" button.
virtual void HandleMenu(Int_t id)
Handle menu items.
TGDockableFrame * GetToolDock() const
virtual void Update()
Update gui builder.
virtual Bool_t NewProject(TString type="")
Create a new project.
virtual Bool_t OpenProject(Event_t *event=nullptr)
Open new gui builder project.
Bool_t EndsWith(const char *pat, ECaseCompare cmp=kExact) const
Return true if string ends with the specified string.
const char * Data() const
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.
Ssiz_t Index(const char *pat, Ssiz_t i=0, ECaseCompare cmp=kExact) const
virtual int GetPid()
Get process id.
virtual TTime Now()
Get current time in milliseconds since 0:00 Jan 1 1995.
virtual const char * PrependPathName(const char *dir, TString &name)
Concatenate a directory and a file name.
virtual Bool_t AccessPathName(const char *path, EAccessMode mode=kFileExists)
Returns FALSE if one can access a file using the specified access mode.
virtual const char * UnixPathName(const char *unixpathname)
Convert from a local pathname to a Unix pathname.
virtual void AddTimer(TTimer *t)
Add timer to list of system timers.
virtual const char * BaseName(const char *pathname)
Base name of a file name. Base name of /user/root is root.
virtual TString GetDirName(const char *pathname)
Return the directory name in pathname.
virtual int Unlink(const char *name)
Unlink, i.e.
virtual const char * TempDirectory() const
Return a user configured or systemwide directory to create temporary files in.
Handles synchronous and a-synchronous timer events.
void Reset()
Reset the timer.
void SetTime(Long_t milliSec)
This class defines toggling facility for both - object's method or variables.
virtual void Toggle()
Toggles the Values and State of this object and connected data!
virtual void SetOnValue(Long_t lon)
virtual void SetToggledObject(TObject *obj, TMethod *anymethod)
Initializes it to toggle an object's datamember using this object's method.
virtual Bool_t GetState()
Returns the state of Toggle according to its current value and fOnValue, returns true if they match.
EDragType fDragType
dragging type
TGFrame * fSource
frame being dragged
Bool_t fMoveWaiting
kTRUE if source is clicked but not moved
Bool_t fDragging
in dragging mode?
TGFrame * fTarget
drop target
Bool_t fPasting
paste action is in progress
virtual void Init()
Initialization.
TGFrame * fFrameUnder
frame under drag
virtual void SetEditable(Bool_t)
EGEventType fType
of event (see EGEventType)
Int_t fY
pointer x, y coordinates in event window
Window_t fWindow
window reported event is relative to
UInt_t fState
key or button mask
Int_t fYRoot
coordinates relative to root
UInt_t fCode
key or button code
Attributes that can be used when creating or changing a window.