1546 TEveBrowser *browser = gEve->GetBrowser();
1547 browser->StartEmbedding(TRootBrowser::kBottom);
1548
1549 TGMainFrame *frame = new TGMainFrame(gClient->GetRoot());
1550 frame->SetWindowName("XX GUI");
1551 frame->SetCleanup(kDeepCleanup);
1552
1553 frame->SetLayoutBroken(kTRUE);
1554
1555 TGLabel *fLabel;
1556 TGTextButton *fb;
1557
1558 int posy=10;
1559 int posx=10;
1560 int dx=0;
1561 fLabel = new TGLabel(frame,"TrackSet :");
1562 fLabel->MoveResize(posx,posy,dx=60,20);
1563
1564 posx+=dx+10;
1565
1571 }
1573 fTrackSet->MoveResize(posx,posy,dx=60,20);
1574 fTrackSet->Connect(
"Selected(const char *)",
"EdbEDATrackSetTab",
this,
"Selected(const char *)");
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584 posx+=dx+10;
1585 fScanID =
new TGTextButton(frame,
"hoge");
1586 fScanID->MoveResize(posx,posy,dx=150,20);
1587 fScanID->Connect(
"Clicked()",
"EdbEDATrackSetTab",
this,
"ChangeScanID()");
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607 posx+=dx+5;
1608 fReadMicro =
new TGCheckButton(frame,
"Microtrk");
1609 fReadMicro->MoveResize(posx, posy, dx=70,20);
1610 fReadMicro->Connect(
"Toggled(bool)",
"EdbEDATrackSetTab",
this,
"Update()");
1611
1612 posx+=dx+5;
1613 fb =
fPredScan =
new TGTextButton(frame,
"Read Pred. Scan");
1614 fb->MoveResize(posx,posy,dx=100,20);
1615 fb->Connect("Clicked()","EdbEDATrackSetTab", this,"ReadPredictionScan()");
1616
1617 posx+=dx+5;
1618 fb =
fReadText =
new TGTextButton(frame,
"Read File");
1619 fb->MoveResize(posx,posy,dx=90,20);
1620 fb->Connect("Clicked()","EdbEDATrackSetTab", this,"ReadFile()");
1621
1622 posx+=dx+5;
1623 fb =
fReadText =
new TGTextButton(frame,
"Read Text File");
1624 fb->MoveResize(posx,posy,dx=90,20);
1625 fb->Connect("Clicked()","EdbEDATrackSetTab", this,"ReadTextTracks()");
1626
1627 posx+=dx+10;
1628 fb = new TGTextButton(frame,"Clear");
1629 fb->MoveResize(posx,posy,dx=50,20);
1630 fb->Connect("Clicked()","EdbEDATrackSetTab", this,"ClearTracks()");
1631
1632
1633 posy = 35;
1634 posx=10;
1635
1637 fDataText->MoveResize(posx,posy,dx=70,20);
1638
1639 posx+=dx+10;
1640 fColorAuto =
new TGCheckButton(frame,
"Color auto");
1641 fColorAuto->MoveResize(posx, posy, dx=80,20);
1642 fColorAuto->Connect(
"Toggled(bool)",
"EdbEDATrackSetTab",
this,
"ToggleAuto(bool)");
1643
1644 posx+=dx;
1647 fTrackColor->Connect(
"ColorSelected(Pixel_t)",
"EdbEDATrackSetTab",
this,
"Update()");
1648
1649 posx+=dx;
1653 fTrackWidth->Connect(
"Selected(int)",
"EdbEDATrackSetTab",
this,
"Update()");
1654
1655 posx+=dx+10;
1658 fLayerColor->Connect(
"ColorSelected(Pixel_t)",
"EdbEDATrackSetTab",
this,
"Update()");
1659
1660 posx+=dx;
1664 fLayerWidth->Connect(
"Selected(int)",
"EdbEDATrackSetTab",
this,
"Update()");
1665
1666
1667 posx+=dx+5;
1668 fLabel = new TGLabel(frame,"Layer length");
1669 fLabel->MoveResize(posx,posy,dx=70,20);
1670 posx+=dx+5;
1673 fLayerLength->Connect(
"TextChanged(char *)",
"EdbEDATrackSetTab",
this,
"Update()");
1674
1675 posx+=dx+5;
1676 fTrackID =
new TGCheckButton(frame,
"ID");
1677 fTrackID->MoveResize(posx, posy, dx=35,20);
1678 fTrackID->Connect(
"Toggled(bool)",
"EdbEDATrackSetTab",
this,
"Update()");
1679
1680 posx+=dx+5;
1683 fTrackAngle->Connect(
"Toggled(bool)",
"EdbEDATrackSetTab",
this,
"Update()");
1684
1685
1686
1687
1688
1689
1690
1691
1692 posx+=dx+5;
1693 fb = new TGTextButton(frame,"Font");
1694 fb->MoveResize(posx, posy, dx=35,20);
1695 fb->Connect("Clicked()", "EdbEDATrackSetTab", this, "MakeFontWindow()");
1696
1697
1698 posx+=dx+10;
1699
1708 fExtendMode->Connect(
"Selected(const char *)",
"EdbEDATrackSetTab",
this,
"Update()");
1709
1710
1711
1714
1715 frame->MapSubwindows();
1716 frame->Resize();
1717 frame->MapWindow();
1718
1719 browser->StopEmbedding();
1720 browser->SetTabTitle("TrackSets", 2);
1721
1722}
EdbEDA * gEDA
Definition: EdbEDA.C:3
TGColorSelect * fTrackColor
Definition: EdbEDATrackSet.h:624
TGLabel * fDataText
Definition: EdbEDATrackSet.h:636
TGNumberEntryField * fLayerLength
Definition: EdbEDATrackSet.h:628
TGCheckButton * fTrackID
Definition: EdbEDATrackSet.h:621
TGMainFrame * fFontWindow
Definition: EdbEDATrackSet.h:633
TGComboBox * fExtendMode
Definition: EdbEDATrackSet.h:629
bool eEnable
Definition: EdbEDATrackSet.h:610
TGComboBox * fTrackSet
Definition: EdbEDATrackSet.h:623
TGCheckButton * fReadMicro
Definition: EdbEDATrackSet.h:620
TGTextButton * fReadText
Definition: EdbEDATrackSet.h:618
TGLineWidthComboBox * fTrackWidth
Definition: EdbEDATrackSet.h:625
void SetAttributeGUIs(EdbEDATrackSet *set)
Definition: EdbEDATrackSet.C:1851
TGCheckButton * fTrackAngle
Definition: EdbEDATrackSet.h:622
TGCheckButton * fColorAuto
Definition: EdbEDATrackSet.h:619
TGTextButton * fScanID
Label to indicate scan id.
Definition: EdbEDATrackSet.h:634
TGLineWidthComboBox * fLayerWidth
Definition: EdbEDATrackSet.h:627
TGColorSelect * fLayerColor
Definition: EdbEDATrackSet.h:626
TGTextButton * fPredScan
Definition: EdbEDATrackSet.h:617
EdbEDATrackSet * eSet
Definition: EdbEDATrackSet.h:612
Definition: EdbEDATrackSet.h:178
EdbEDATrackSet * GetTrackSet(int i)
Definition: EdbEDA.h:617
int NTrackSets()
Definition: EdbEDA.h:616
EdbScanSet * set
Definition: emtraceback.cpp:14
@ kExtendUpDown
Definition: EdbEDAUtil.h:91
@ kExtendAuto
Definition: EdbEDAUtil.h:90
@ kExtendUp
Definition: EdbEDAUtil.h:93
@ kExtendDown
Definition: EdbEDAUtil.h:92
@ kExtendNo
Definition: EdbEDAUtil.h:94
#define NULL
Definition: nidaqmx.h:84