12 #include "TGLViewer.h"
15 #include "TGTextView.h"
16 #include "TGTextEdit.h"
17 #include "TGNumberEntry.h"
27 m_currentFrameHints(0)
29 TGVerticalFrame *mainFrame =
new TGVerticalFrame(window);
30 TGLayoutHints *hints =
new TGLayoutHints(expandY ? kLHintsExpandX|kLHintsExpandY : kLHintsExpandX,
32 m_window->AddFrame(mainFrame, hints);
52 TGLayoutHints *hints =
new TGLayoutHints(kLHintsExpandX|kLHintsExpandY,
160 style |= expandX ? kLHintsExpandX : 0;
161 style |= expandY ? kLHintsExpandY : 0;
264 FontStruct_t defaultFontStruct = label->GetDefaultFontStruct();
267 TGFontPool *
pool = gClient->GetFontPool();
268 TGFont* defaultFont = pool->GetFont(defaultFontStruct);
269 FontAttributes_t
attributes = defaultFont->GetFontAttributes();
270 label->SetTextFont(pool->GetFont(attributes.fFamily, fontSize,
271 attributes.fWeight, attributes.fSlant));
279 label->SetTextJustify(kTextLeft);
282 UInt_t style = hints->GetLayoutHints() | kLHintsCenterY;
283 hints->SetLayoutHints(style);
293 TGTextView *view =
new TGTextView(
nextFrame(), 100, 100);
295 view->AddLine(defaultText);
314 TGTextEdit *edit =
new TGTextEdit(
nextFrame(), 100, 100);
316 edit->AddLine(defaultText);
326 const char* graphicsLabel =
" ";
331 widget->SetEnabled(kFALSE);
339 TGHSlider *slider =
new TGHSlider(
nextFrame(), size, kSlider1);
341 slider->SetRange(0, 100);
342 slider->SetPosition(100);
343 slider->SetEnabled(
false);
351 TGTextButton *button =
new TGTextButton(
nextFrame(), text);
353 button->SetEnabled(
false);
372 TGTextEntry *entry =
new TGTextEntry(
nextFrame());
374 entry->SetEnabled(kFALSE);
381 TGNumberFormat::EStyle style,
383 TGNumberEntry **
out )
385 TGNumberEntry *entry =
new TGNumberEntry(
nextFrame(), defaultValue,
387 TGNumberFormat::kNEAAnyNumber,
388 TGNumberFormat::kNELLimitMinMax,
391 entry->GetNumberEntry()->SetEnabled(kFALSE);
392 entry->GetButtonUp()->SetEnabled(kFALSE);
393 entry->GetButtonDown()->SetEnabled(kFALSE);
400 TGCheckButton *button =
new TGCheckButton(
nextFrame(), text);
401 button->SetState(kButtonDown,
false);
402 button->SetEnabled(
false);
414 TGLayoutHints *hints =
new TGLayoutHints(kLHintsExpandX|kLHintsExpandY);
416 frame->AddFrame(table, hints);
422 size_t verticalPadding )
424 TGLayoutHints *hints =
new TGLayoutHints(kLHintsExpandX,
430 TGHorizontal3DLine* separator =
new TGHorizontal3DLine(
nextFrame(), 200, 2);
481 TGCompositeFrame *
tab =
m_tabs->AddTab(label);
610 frame =
new TGFrame(
nextFrame(), 1, size);
627 frame =
new TGFrame(
nextFrame(), size, 1);
FWDialogBuilder & spaceUp(size_t spacing=3)
TGVerticalFrame * verticalFrame()
TGCompositeFrame * m_window
FWDialogBuilder & addHSlider(size_t size, TGHSlider **out=0)
FWDialogBuilder & frameSpaceUp(size_t spacing=3)
FWDialogBuilder & extract(T *in, T **out)
FWDialogBuilder(TGCompositeFrame *window, FWDialogBuilder *parent=0, bool expandY=true)
TGCompositeFrame * nextFrame()
FWDialogBuilder & endTab(void)
FWDialogBuilder & frameSpaceRight(size_t spacing=3)
FWDialogBuilder & addLabel(const char *text, size_t fontSize=12, size_t weight=0, TGLabel **out=0)
FWDialogBuilder & spaceLeftRight(size_t spacing=3)
FWLayoutBuilder & frameSpaceRight(size_t spacing)
FWLayoutBuilder & spaceRight(size_t spacing)
std::vector< TGVerticalFrame * > m_framesStack
FWLayoutBuilder(TGCompositeFrame *window, bool expandY=true)
TGLayoutHints * m_currentHints
FWLayoutBuilder & frameSpaceDown(size_t spacing)
FWDialogBuilder & addTable(FWTableManagerBase *manager, FWTableWidget **out=0)
FWDialogBuilder & vSpacer(size_t size=0)
FWDialogBuilder & untabs(void)
FWLayoutBuilder & frameSpaceUp(size_t spacing)
FWLayoutBuilder & spaceUp(size_t spacing)
FWDialogBuilder & frameSpaceLeftRight(size_t spacing=3)
TGCompositeFrame * m_currentFrame
FWDialogBuilder & frameSpaceDown(size_t spacing=3)
const T & max(const T &a, const T &b)
FWLayoutBuilder & floatLeft(size_t spacing)
FWDialogBuilder & addTextButton(const char *text, TGTextButton **out=0)
FWDialogBuilder & frameSpaceUpDown(size_t spacing=3)
FWDialogBuilder & addTextEdit(const char *defaultText=0, TGTextEdit **out=0)
TGLayoutHints * m_currentFrameHints
FWDialogBuilder & addTextView(const char *defaultText=0, TGTextView **out=0)
FWLayoutBuilder & unindent(void)
FWDialogBuilder & spaceUpDown(size_t spacing=3)
FWDialogBuilder & newRow()
TGCompositeFrame * currentFrame(void)
FWDialogBuilder & addHSeparator(size_t horizontalPadding=4, size_t verticalPadding=3)
FWLayoutBuilder & indent(int left=2, int right=-1)
FWDialogBuilder & tabs(TGTab **out)
FWDialogBuilder & spaceLeft(size_t spacing=3)
FWDialogBuilder & addValidatingTextEntry(const char *defaultText, FWGUIValidatingTextEntry **out)
FWDialogBuilder & hSpacer(size_t size=0)
FWDialogBuilder & addTextEntry(const char *defaultText, TGTextEntry **out)
FWLayoutBuilder & newRow()
FWDialogBuilder & frameSpaceLeft(size_t spacing=3)
FWDialogBuilder & unindent(void)
FWDialogBuilder & floatLeft(size_t spacing=3)
FWDialogBuilder & expand(size_t expandX=true, size_t expandY=false)
TGLayoutHints * nextHints()
FWLayoutBuilder & spaceDown(size_t spacing)
FWDialogBuilder * m_parent
FWLayoutBuilder & expand(bool expandX=true, bool expandY=false)
FWDialogBuilder & beginTab(const char *label)
FWDialogBuilder & addHtml(TGHtml **out=0)
volatile std::atomic< bool > shutdown_flag false
FWDialogBuilder & addCheckbox(const char *text, TGCheckButton **out=0)
FWDialogBuilder & indent(int left=2, int right=-1)
FWDialogBuilder & addNumberEntry(float defaultValue, size_t digits, TGNumberFormat::EStyle style, int min, int max, TGNumberEntry **out)
tuple size
Write out results.
FWDialogBuilder & spaceDown(size_t spacing=3)
FWLayoutBuilder & spaceLeft(size_t spacing)
FWLayoutBuilder & frameSpaceLeft(size_t spacing)
FWDialogBuilder & spaceRight(size_t spacing=3)
FWDialogBuilder & addColorPicker(const FWColorManager *manager, FWColorSelect **out=0)