43 enum EBldBorderFrameMode {
44 kBldBorderNone, kBldBorderSunken,
45 kBldBorderPlain, kBldBorderRaised,
56 virtual ~TGuiBldBorderFrame() { }
86 fBtnGroup->SetRadioButtonExclusive(
kTRUE);
88 fBtnGroup->Connect(
"Pressed(Int_t)",
"TGuiBldEditor", fEditor,
"UpdateBorder(Int_t)");
89 check->
Connect(
"Pressed()",
"TGuiBldEditor", fEditor,
"UpdateBorder(=4)");
90 check->
Connect(
"Released()",
"TGuiBldEditor", fEditor,
"UpdateBorder(=5)");
95 fBgndFrame->SetEditDisabled();
96 fBgndFrame->SetColor(GetDefaultFrameBackground());
97 fBgndFrame->Connect(
"ColorSelected(Pixel_t)",
"TGuiBldEditor", fEditor,
98 "UpdateBackground(Pixel_t)");
109void TGuiBldBorderFrame::ChangeSelected(
TGFrame *frame)
120 fBtnGroup->SetButton(kBldBorderSunken, opt &
kSunkenFrame);
121 fBtnGroup->SetButton(kBldBorderRaised, opt &
kRaisedFrame);
126 fBgndFrame->SetColor(fSelected->GetBackground());
127 fBgndFrame->Connect(
"ColorSelected(Pixel_t)",
"TGuiBldEditor", fEditor,
"UpdateBackground(Pixel_t)");
182 fTab->
Connect(
"Selected(Int_t)",
"TGuiBldEditor",
this,
"TabSelected(Int_t)");
222 fTextButton6366->
Resize(20,20);
230 fTextButton6367->
Resize(20,20);
238 fTextButton6364->
Resize(20,20);
246 fTextButton6365->
Resize(20,20);
259 fTextButton6364->
Connect(
"Clicked()",
"TGNumberEntry",
fXpos,
"IncreaseNumber(TGNumberFormat::EStepSize=0,-1)");
260 fTextButton6364->
Connect(
"Clicked()",
"TGuiBldHintsEditor",
fHintsFrame,
"SetPosition()");
261 fTextButton6365->
Connect(
"Clicked()",
"TGNumberEntry",
fXpos,
"IncreaseNumber()");
262 fTextButton6365->
Connect(
"Clicked()",
"TGuiBldHintsEditor",
fHintsFrame,
"SetPosition()");
263 fTextButton6366->
Connect(
"Clicked()",
"TGNumberEntry",
fYpos,
"IncreaseNumber(TGNumberFormat::EStepSize=0,-1)");
264 fTextButton6366->
Connect(
"Clicked()",
"TGuiBldHintsEditor",
fHintsFrame,
"SetPosition()");
265 fTextButton6367->
Connect(
"Clicked()",
"TGNumberEntry",
fYpos,
"IncreaseNumber()");
266 fTextButton6367->
Connect(
"Clicked()",
"TGuiBldHintsEditor",
fHintsFrame,
"SetPosition()");
338 enable_layout |= parent && (parent->
InheritsFrom(TGCompositeFrame::Class()) &&
360 if ((frame->
InheritsFrom(TGHorizontalFrame::Class())) ||
417 Emit(
"UpdateSelected(TGFrame*)", (
long)frame);
431 opt &= ~kRaisedFrame;
435 opt &= ~kSunkenFrame;
436 opt &= ~kRaisedFrame;
439 opt &= ~kSunkenFrame;
446 opt &= ~kDoubleBorder;
518 "Enabling layout will automatically align and resize all the icons. \n Do you really want to layout them?",
526 if (retval ==
kMBOk) {
ULong_t Pixel_t
Pixel value.
void NeedRedraw(TGWindow *w, Bool_t force=kFALSE)
Set redraw flags.
virtual void SetLayoutManager(TGLayoutManager *l)
Set the layout manager for the composite frame.
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
virtual void SetEditable(Bool_t on=kTRUE)
Switch ON/OFF edit mode.
virtual Bool_t IsLayoutBroken() const
virtual void SetCleanup(Int_t mode=kLocalCleanup)
Turn on automatic cleanup of child frames in dtor.
virtual void MapSubwindows()
Map all sub windows that are part of the composite frame.
virtual void ShowFrame(TGFrame *f)
Show sub frame.
virtual void SetEditDisabled(UInt_t on=1)
Set edit disable flag for this frame and subframes.
virtual void HideFrame(TGFrame *f)
Hide sub frame.
virtual void ChangeOptions(UInt_t options)
Change frame options. Options is an OR of the EFrameTypes.
virtual Bool_t IsLayoutBroken() const
virtual void SetForegroundColor(Pixel_t)
virtual void MapRaised()
map raised
virtual void SetLayoutBroken(Bool_t=kTRUE)
virtual void SetBackgroundColor(Pixel_t back)
Set background color (override from TGWindow base class).
virtual UInt_t GetOptions() const
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
virtual void SetEditable(Bool_t)
virtual void UnmapWindow()
unmap window
virtual void SetText(TGString *newText)
Set new text in label.
virtual void SetIntNumber(Long_t val)
virtual void SetEnabled(Bool_t on=kTRUE)
TGTabElement * GetTabTab(Int_t tabIndex) const
Return the tab element of tab with index tabIndex.
virtual Bool_t SetTab(Int_t tabIndex, Bool_t emit=kTRUE)
Brings the composite frame with the index tabIndex to the front and generate the following event if t...
virtual TGCompositeFrame * AddTab(TGString *text)
Add a tab to the tab widget.
static FontStruct_t GetDefaultFontStruct()
Return default font structure.
virtual void SetText(TGHotString *new_label)
Set new button text.
virtual void SetWindowName(const char *name=0)
Set window name.
virtual UInt_t GetEditDisabled() const
const TGWindow * GetParent() const
void SelectFrame(TGFrame *frame, Bool_t add=kFALSE)
Grab/Select frame.
void SetEditable(Bool_t on=kTRUE)
Grab server.
void ChangeSelected(TGFrame *)
Change selected frame.
TGuiBldHintsEditor * fHintsFrame
TGuiBldNameFrame * fNameFrame
void RemoveFrame(TGFrame *)
Remove a frame.
void Reset()
Reset the editor.
virtual ~TGuiBldEditor()
Destructor.
TGTextButton * fLayoutButton
TGuiBldGeometryFrame * fGeomFrame
void UpdateSelected(TGFrame *=0)
Update selected frame.
void TabSelected(Int_t id)
Handle selected.
void SwitchLayout()
Popup dialog to set layout of editted frame off.
TGuiBldEditor(const TGWindow *p=0)
Constructor.
void UpdateForeground(Pixel_t col)
Update foreground.
TGCompositeFrame * fTablay
TGGroupFrame * fPositionFrame
void UpdateBorder(Int_t)
Update border of selected frame.
void UpdateBackground(Pixel_t col)
Update background.
TGuiBldBorderFrame * fBorderFrame
void ChangeSelected(TGFrame *frame)
Update number entries when new frame selected.
void ChangeSelected(TGFrame *)
Change selected.
void Reset()
Reset name frame.
void RemoveFrame(TGFrame *frame)
Remove a frame.
TGCompositeFrame * GetMdi(TGFrame *frame)
Find the parent mdi frame.
void ChangeSelected(TGFrame *frame)
Change selected frame.
static TGuiBuilder * Instance()
return an instance of TGuiBuilder object
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.
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=0, void *receiver=0, const char *slot=0)
Disconnects signal of this object from slot of receiver.
TGuiBldDragManager * GetManager() const