48 enum EBldBorderFrameMode {
49 kBldBorderNone, kBldBorderSunken,
50 kBldBorderPlain, kBldBorderRaised,
61 virtual ~TGuiBldBorderFrame() { }
91 fBtnGroup->SetRadioButtonExclusive(
kTRUE);
93 fBtnGroup->Connect(
"Pressed(Int_t)",
"TGuiBldEditor",
fEditor,
"UpdateBorder(Int_t)");
94 check->
Connect(
"Pressed()",
"TGuiBldEditor",
fEditor,
"UpdateBorder(=4)");
95 check->
Connect(
"Released()",
"TGuiBldEditor",
fEditor,
"UpdateBorder(=5)");
100 fBgndFrame->SetEditDisabled();
102 fBgndFrame->Connect(
"ColorSelected(Pixel_t)",
"TGuiBldEditor",
fEditor,
103 "UpdateBackground(Pixel_t)");
114 void TGuiBldBorderFrame::ChangeSelected(
TGFrame *frame)
125 fBtnGroup->SetButton(kBldBorderSunken, opt &
kSunkenFrame);
126 fBtnGroup->SetButton(kBldBorderRaised, opt &
kRaisedFrame);
127 fBtnGroup->SetButton(kBldBorderPlain, !(opt & kRaisedFrame) && !(opt & kSunkenFrame));
132 fBgndFrame->Connect(
"ColorSelected(Pixel_t)",
"TGuiBldEditor",
fEditor,
"UpdateBackground(Pixel_t)");
187 fTab->
Connect(
"Selected(Int_t)",
"TGuiBldEditor",
this,
"TabSelected(Int_t)");
227 fTextButton6366->
Resize(20,20);
235 fTextButton6367->
Resize(20,20);
243 fTextButton6364->
Resize(20,20);
251 fTextButton6365->
Resize(20,20);
264 fTextButton6364->
Connect(
"Clicked()",
"TGNumberEntry",
fXpos,
"IncreaseNumber(TGNumberFormat::EStepSize=0,-1)");
265 fTextButton6364->
Connect(
"Clicked()",
"TGuiBldHintsEditor",
fHintsFrame,
"SetPosition()");
266 fTextButton6365->
Connect(
"Clicked()",
"TGNumberEntry",
fXpos,
"IncreaseNumber()");
267 fTextButton6365->
Connect(
"Clicked()",
"TGuiBldHintsEditor",
fHintsFrame,
"SetPosition()");
268 fTextButton6366->
Connect(
"Clicked()",
"TGNumberEntry",
fYpos,
"IncreaseNumber(TGNumberFormat::EStepSize=0,-1)");
269 fTextButton6366->
Connect(
"Clicked()",
"TGuiBldHintsEditor",
fHintsFrame,
"SetPosition()");
270 fTextButton6367->
Connect(
"Clicked()",
"TGNumberEntry",
fYpos,
"IncreaseNumber()");
271 fTextButton6367->
Connect(
"Clicked()",
"TGuiBldHintsEditor",
fHintsFrame,
"SetPosition()");
422 Emit(
"UpdateSelected(TGFrame*)", (
long)frame);
436 opt &= ~kRaisedFrame;
440 opt &= ~kSunkenFrame;
441 opt &= ~kRaisedFrame;
444 opt &= ~kSunkenFrame;
451 opt &= ~kDoubleBorder;
523 "Enabling layout will automatically align and resize all the icons. \n Do you really want to layout them?",
531 if (retval ==
kMBOk) {
virtual void HideFrame(TGFrame *f)
Hide sub frame.
TGTextButton * fLayoutButton
TGuiBldDragManager * GetManager() const
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
static FontStruct_t GetDefaultFontStruct()
Return default font structure.
virtual UInt_t GetEditDisabled() const
void SelectFrame(TGFrame *frame, Bool_t add=kFALSE)
Grab/Select frame.
virtual UInt_t GetOptions() const
void UpdateBorder(Int_t)
Update border of selected frame.
void TabSelected(Int_t id)
Handle selected.
void Reset()
Reset name frame.
void ChangeSelected(TGFrame *)
Change selected.
virtual void SetForegroundColor(Pixel_t)
virtual void SetLayoutManager(TGLayoutManager *l)
Set the layout manager for the composite frame.
virtual void ShowFrame(TGFrame *f)
Show sub frame.
void UpdateForeground(Pixel_t col)
Update foreground.
TGCompositeFrame * GetMdi(TGFrame *frame)
Find the parent mdi frame.
TGGroupFrame * fPositionFrame
void ChangeSelected(TGFrame *frame)
Update number entries when new frame selected.
void ChangeSelected(TGFrame *)
Change selected frame.
void RemoveFrame(TGFrame *)
Remove a frame.
TGuiBldBorderFrame * fBorderFrame
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
virtual void SetText(TGString *newText)
Set new text in label.
void RemoveFrame(TGFrame *frame)
Remove a frame.
virtual void SetBackgroundColor(Pixel_t back)
Set background color (override from TGWindow base class).
virtual ~TGuiBldEditor()
Destructor.
TGuiBldHintsEditor * fHintsFrame
void Reset()
Reset the editor.
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...
TGuiBldEditor(const TGWindow *p=0)
Constructor.
virtual TGCompositeFrame * AddTab(TGString *text)
Add a tab to the tab widget.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
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...
void SetEditable(Bool_t on=kTRUE)
Grab server.
virtual void SetFrame(TGFrame *frame, Bool_t above)
Set frame to be resized.
virtual Bool_t IsLayoutBroken() const
virtual Pixel_t GetBackground() const
TGVerticalFrame(const TGWindow *p=0, UInt_t w=1, UInt_t h=1, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
virtual void SetIntNumber(Long_t val)
virtual void SetText(TGHotString *new_label)
Set new button text.
virtual void SetEditDisabled(UInt_t on=1)
Set edit disable flag for this frame and subframes.
void SwitchLayout()
Popup dialog to set layout of editted frame off.
virtual void SetCleanup(Int_t mode=kLocalCleanup)
Turn on automatic cleanup of child frames in dtor.
virtual void SetEditable(Bool_t)
Bool_t Disconnect(const char *signal=0, void *receiver=0, const char *slot=0)
Disconnects signal of this object from slot of receiver.
virtual void SetCleanup(Int_t=kLocalCleanup)
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
TGuiBldGeometryFrame * fGeomFrame
const TGWindow * GetParent() const
virtual void MapSubwindows()
Map all sub windows that are part of the composite frame.
TGCompositeFrame * fTablay
void UpdateSelected(TGFrame *=0)
Update selected frame.
virtual void UnmapWindow()
static TGuiBuilder * Instance()
return an instance of TGuiBuilder object
virtual void SetLayoutBroken(Bool_t=kTRUE)
TGTabElement * GetTabTab(Int_t tabIndex) const
Return the tab element of tab with index tabIndex.
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b
void NeedRedraw(TGWindow *w, Bool_t force=kFALSE)
Set redraw flags.
TGuiBldNameFrame * fNameFrame
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.
void ChangeSelected(TGFrame *frame)
Change selected frame.
void UpdateBackground(Pixel_t col)
Update background.
virtual void SetEditable(Bool_t on=kTRUE)
Switch ON/OFF edit mode.
virtual void SetEnabled(Bool_t on=kTRUE)
virtual void ChangeOptions(UInt_t options)
Change frame options. Options is an OR of the EFrameTypes.
virtual void SetWindowName(const char *name=0)
Set window name.