FEDRA emulsion software from the OPERA Collaboration
EdbEDATrackSetTab Class Reference

#include <EdbEDATrackSet.h>

Collaboration diagram for EdbEDATrackSetTab:

Public Member Functions

void ChangeScanID ()
 
void ClearTracks ()
 
void CloseFontWindow ()
 
 EdbEDATrackSetTab (void)
 
void Enable (bool b=kTRUE)
 
void MakeFontWindow ()
 
void ReadFile ()
 
void ReadPredictionScan ()
 
void ReadTextTracks ()
 
void Select (int id)
 
void Selected (const char *txt)
 
void SetAttributeGUIs (EdbEDATrackSet *set)
 
void SetFont ()
 
void ToggleAuto (bool b)
 
void Update ()
 

Private Attributes

bool eEnable
 
EdbEDATrackSeteSet
 
TGNumberEntryField * fBrick
 
TGCheckButton * fColorAuto
 
TGLabel * fDataText
 
TGComboBox * fExtendMode
 
TGColorSelect * fFontColor
 
TGComboBox * fFontFile
 
TGComboBox * fFontSize
 
TGMainFrame * fFontWindow
 
TGColorSelect * fLayerColor
 
TGNumberEntryField * fLayerLength
 
TGLineWidthComboBox * fLayerWidth
 
TGTextButton * fPredScan
 
TGCheckButton * fReadMicro
 
TGTextButton * fReadText
 
TGNumberEntryField * fRun
 
TGTextButton * fScanID
 
TGCheckButton * fTrackAngle
 
TGColorSelect * fTrackColor
 
TGCheckButton * fTrackID
 
TGComboBox * fTrackSet
 
TGLineWidthComboBox * fTrackWidth
 
TGNumberEntryField * fVer
 

Constructor & Destructor Documentation

◆ EdbEDATrackSetTab()

EdbEDATrackSetTab::EdbEDATrackSetTab ( void  )
1545  : eEnable(kTRUE), fFontWindow(NULL){
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  // list box
1566  fTrackSet = new TGComboBox(frame);
1567  frame->AddFrame(fTrackSet);
1568  for(int i=0;i<gEDA->NTrackSets();i++){
1570  fTrackSet->AddEntry(set->GetName(),i);
1571  }
1572  fTrackSet->Select(0);
1573  fTrackSet->MoveResize(posx,posy,dx=60,20);
1574  fTrackSet->Connect("Selected(const char *)", "EdbEDATrackSetTab", this, "Selected(const char *)");
1575 
1576  /*
1577  posx+=dx;
1578  TGButton *fb;
1579  fb = new TGTextButton(fGroupFrame4,"Read TS");
1580  fb->MoveResize(posx,posy,dx=80,18);
1581  fb->Connect("Clicked()","EdbEDATrackSetTab", this,"ReadTotalScan()");
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  fBrick = new TGNumberEntryField(frame, -1, gEDA->GetBrick());
1591  fBrick->MoveResize(posx,posy,dx=50,20);
1592 
1593  posx+=dx+5;
1594  fLabel = new TGLabel(frame,"Ver");
1595  fLabel->MoveResize(posx,posy,dx=25,20);
1596  posx+=dx+5;
1597  fVer = new TGNumberEntryField(frame, -1, 100);
1598  fVer->MoveResize(posx,posy,dx=25,20);
1599 
1600  posx+=dx+5;
1601  fLabel = new TGLabel(frame,"Run");
1602  fLabel->MoveResize(posx,posy,dx=25,20);
1603  posx+=dx+5;
1604  fRun = new TGNumberEntryField(frame, -1, 1);
1605  fRun->MoveResize(posx,posy,dx=35,20);
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 
1636  fDataText = new TGLabel(frame);
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;
1645  fTrackColor = new TGColorSelect(frame);
1646  fTrackColor->MoveResize(posx, posy, dx=35,20);
1647  fTrackColor->Connect("ColorSelected(Pixel_t)", "EdbEDATrackSetTab", this, "Update()");
1648 
1649  posx+=dx;
1650  fTrackWidth = new TGLineWidthComboBox(frame);
1651  frame->AddFrame(fTrackWidth);
1652  fTrackWidth->MoveResize(posx, posy, dx=60,20);
1653  fTrackWidth->Connect("Selected(int)", "EdbEDATrackSetTab", this, "Update()");
1654 
1655  posx+=dx+10;
1656  fLayerColor = new TGColorSelect(frame);
1657  fLayerColor->MoveResize(posx, posy, dx=35,20);
1658  fLayerColor->Connect("ColorSelected(Pixel_t)", "EdbEDATrackSetTab", this, "Update()");
1659 
1660  posx+=dx;
1661  fLayerWidth = new TGLineWidthComboBox(frame);
1662  frame->AddFrame(fLayerWidth);
1663  fLayerWidth->MoveResize(posx, posy, dx=60,20);
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;
1671  fLayerLength = new TGNumberEntryField(frame, -1, 150);
1672  fLayerLength->MoveResize(posx,posy,dx=30,20);
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;
1681  fTrackAngle = new TGCheckButton(frame,"Angle");
1682  fTrackAngle->MoveResize(posx, posy, dx=50,20);
1683  fTrackAngle->Connect("Toggled(bool)", "EdbEDATrackSetTab", this, "Update()");
1684 /*
1685  posx+=dx+5;
1686  TGFontTypeComboBox *fFont = new TGFontTypeComboBox(frame);
1687  frame->AddFrame(fFont);
1688  fFont->MoveResize(posx, posy, dx=60,20);
1689  fFont->Connect("Selected(int)", "EdbEDATrackSetTab", this, "Update()");
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  // list box
1700  fExtendMode = new TGComboBox(frame);
1701  frame->AddFrame(fExtendMode);
1702  fExtendMode->AddEntry("ExtendAuto", kExtendAuto);
1703  fExtendMode->AddEntry("ExtendUpDown",kExtendUpDown);
1704  fExtendMode->AddEntry("ExtendDown", kExtendDown);
1705  fExtendMode->AddEntry("ExtendUp", kExtendUp);
1706  fExtendMode->AddEntry("No Extend", kExtendNo);
1707  fExtendMode->MoveResize(posx,posy,dx=115,20);
1708  fExtendMode->Connect("Selected(const char *)", "EdbEDATrackSetTab", this, "Update()");
1709 
1710 
1711 
1712  eSet = gEDA->GetTrackSet(0);
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
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
int NTrackSets()
Definition: EdbEDA.h:616
EdbEDATrackSet * GetTrackSet(int i)
Definition: EdbEDA.h:617
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

Member Function Documentation

◆ ChangeScanID()

void EdbEDATrackSetTab::ChangeScanID ( )
1539  {
1540  EdbID& id = eSet->GetID();
1541  InputID(Form("Input Scan ID for TrackSet:%s",eSet->GetName()), id);
1543 }
EdbID & GetID()
Definition: EdbEDATrackSet.h:464
Definition: EdbID.h:7
int InputID(const char *message, EdbID &id)
Definition: EdbEDAUtil.C:872

◆ ClearTracks()

void EdbEDATrackSetTab::ClearTracks ( void  )
1935  {
1936  eSet->Clear();
1937  gEDA->Redraw();
1939 }
void Clear()
Definition: EdbEDATrackSet.h:336
void Redraw()
Definition: EdbEDA.h:680

◆ CloseFontWindow()

void EdbEDATrackSetTab::CloseFontWindow ( )
1724  {
1725  if(fFontWindow!=NULL) fFontWindow->CloseWindow();
1726  fFontWindow=NULL;
1727 }

◆ Enable()

void EdbEDATrackSetTab::Enable ( bool  b = kTRUE)
inline
643 {eEnable = b;}

◆ MakeFontWindow()

void EdbEDATrackSetTab::MakeFontWindow ( )
1730  {
1731  if(fFontWindow!=NULL){
1732  fFontWindow->RaiseWindow();
1733  return;
1734  }
1735 
1736  // main frame
1737  TGMainFrame *fMainFrame = new TGMainFrame(gClient->GetRoot(),10,300,kMainFrame | kVerticalFrame);
1738  fFontWindow = fMainFrame;
1739 
1740  // fMainFrame->SetLayoutBroken(kTRUE);
1741  fMainFrame->SetWindowName("Font");
1742 
1743  TGLabel *fLabel= new TGLabel(fMainFrame, "Size");
1744  fMainFrame->AddFrame(fLabel, new TGLayoutHints(kLHintsLeft, 3, 1, 2, 5));
1745  fLabel->Resize(70,20);
1746 
1747  // Face Size combo
1748  fFontSize = new TGComboBox(fMainFrame);
1749  fMainFrame->AddFrame(fFontSize,new TGLayoutHints(kLHintsLeft, 3, 1, 2, 5));
1750  fFontSize->Resize(90, 20);
1751 
1752  Int_t* fsp = &TGLFontManager::GetFontSizeArray()->front();
1753  Int_t nums = TGLFontManager::GetFontSizeArray()->size();
1754  for(Int_t i= 0; i< nums; i++){
1755  fFontSize->AddEntry(Form("%-2d", fsp[i]), fsp[i]);
1756  }
1757  fFontSize->Select( eSet->GetTextSize());
1758 
1759  fFontSize->Connect("Selected(Int_t)", "EdbEDATrackSetTab", this, "SetFont()");
1760 
1761 
1762  fLabel= new TGLabel(fMainFrame, "Font");
1763  fMainFrame->AddFrame(fLabel, new TGLayoutHints(kLHintsLeft, 3, 1, 2, 5));
1764  fLabel->Resize(70,20);
1765 
1766  // Font File combo
1767 
1768  fFontFile = new TGComboBox(fMainFrame);
1769  fMainFrame->AddFrame(fFontFile, new TGLayoutHints(kLHintsLeft, 3, 1, 2, 5));
1770  fFontFile->Resize(90, 20);
1771 
1772  TObjArray* farr = TGLFontManager::GetFontFileArray();
1773  TIter next(farr);
1774  TObjString* os;
1775  Int_t cnt = 0;
1776  while ((os = (TObjString*) next()) != 0)
1777  {
1778  fFontFile->AddEntry(Form("%s", os->GetString().Data()), cnt);
1779  cnt++;
1780  }
1781  fFontFile->Select( eSet->GetTextFont());
1782  fFontFile->Connect("Selected(Int_t)", "EdbEDATrackSetTab", this, "SetFont()");
1783 
1784  // Font Color combo
1785  fFontColor = new TGColorSelect(fMainFrame);
1786  fMainFrame->AddFrame(fFontColor, new TGLayoutHints(kLHintsLeft, 3, 1, 2, 5));
1787  fFontColor->MoveResize(35,20);
1788  fFontColor->SetColor( TColor::Number2Pixel(eSet->GetTextColor()));
1789  fFontColor->Connect("ColorSelected(Pixel_t)", "EdbEDATrackSetTab", this, "SetFont()");
1790 
1791 
1792  TGTextButton *fb = new TGTextButton(fMainFrame,"OK");
1793  fMainFrame->AddFrame(fb, new TGLayoutHints(kLHintsLeft, 3, 1, 2, 5));
1794  fb->Resize(90,20);
1795  fb->Connect("Clicked()", "EdbEDATrackSetTab", this, "CloseFontWindow()");
1796 
1797  fMainFrame->SetMWMHints(kMWMDecorAll,
1798  kMWMFuncAll,
1799  kMWMInputModeless);
1800  fMainFrame->MapSubwindows();
1801 
1802  fMainFrame->Resize(fMainFrame->GetDefaultSize());
1803  fMainFrame->MapWindow();
1804  fMainFrame->Resize(100,170);
1805 }
TGComboBox * fFontFile
Definition: EdbEDATrackSet.h:631
TGComboBox * fFontSize
Definition: EdbEDATrackSet.h:630
TGColorSelect * fFontColor
Definition: EdbEDATrackSet.h:632
int GetTextColor()
Definition: EdbEDATrackSet.h:576
int GetTextSize()
Definition: EdbEDATrackSet.h:577
int GetTextFont()
Definition: EdbEDATrackSet.h:578

◆ ReadFile()

void EdbEDATrackSetTab::ReadFile ( )
1929  {
1930  eSet->ReadFile();
1931  gEDA->Redraw();
1933 }
void ReadFile(const char *filename=NULL, int datatype=100, TCut rcut="1")
Definition: EdbEDATrackSet.C:592

◆ ReadPredictionScan()

void EdbEDATrackSetTab::ReadPredictionScan ( )
1897  {
1898 
1899 
1900 // int ibrick = fBrick->GetIntNumber();
1901 // int ver = fVer->GetIntNumber();
1902 // int run = fRun->GetIntNumber();
1903 
1904  EdbID& id = eSet->GetID();
1905  int ret=InputID("Input ID for Prediction scan", id);
1906  if(ret==0){
1907  // "close" button was pushed. stop.
1908  printf("ReadPrediction canceled.");
1909  return;
1910  }
1911 
1912  bool read_micro = fReadMicro->GetState()==kButtonDown? kTRUE: kFALSE;
1913  eSet->SetDrawMT(read_micro);
1914 
1915  eSet->ReadPredictionScan(id);
1916 // eSet->ReadPredictionScan(*id);
1917 // problem when it read SF data.
1918 
1919  gEDA->Redraw();
1921 }
void ReadPredictionScan(int BRICK, int SBVERSION, int RUN_PRED, int UseMicrotrack=0)
Definition: EdbEDATrackSet.C:777
void SetDrawMT(bool b=kTRUE)
Definition: EdbEDATrackSet.h:585

◆ ReadTextTracks()

void EdbEDATrackSetTab::ReadTextTracks ( )
1923  {
1925  gEDA->Redraw();
1927 }
void ReadTextTracks(const char *filename=NULL)
Definition: EdbEDATrackSet.C:918

◆ Select()

void EdbEDATrackSetTab::Select ( int  id)
inline
640 {fTrackSet->Select(id, kTRUE);}

◆ Selected()

void EdbEDATrackSetTab::Selected ( const char *  txt)
1822  {
1823  eSet = gEDA->GetTrackSet(const_cast<char*> (txt));
1824  printf("%s\n",txt);
1826  if(fFontWindow!=NULL) fFontWindow->CloseWindow();
1827  fFontWindow=NULL;
1828 }

◆ SetAttributeGUIs()

void EdbEDATrackSetTab::SetAttributeGUIs ( EdbEDATrackSet set)
1851  {
1852  Enable(kFALSE);
1853 
1854  EdbID& id = set->GetID();
1855  fScanID->SetText(Form("ScanID %d.%d.%d.%d", id.eBrick, id.ePlate, id.eMajor, id.eMinor));
1856 
1857  /*
1858  fBrick->SetNumber(set->GetID()->eBrick);
1859 
1860  fVer->SetNumber(set->GetID()->eMajor);
1861  fRun->SetNumber(set->GetID()->eMinor);
1862 
1863  fBrick->SetEnabled( strcmp(set->GetName(),"TS")==0 ? kFALSE : kTRUE);
1864  fVer ->SetEnabled( strcmp(set->GetName(),"TS")==0 ? kFALSE : kTRUE);
1865  fRun ->SetEnabled( strcmp(set->GetName(),"TS")==0 ? kFALSE : kTRUE);
1866  */
1867 
1868  fReadMicro->SetState(set->GetDrawMT()? kButtonDown : kButtonUp);
1869 
1870  fPredScan ->SetEnabled( strcmp(set->GetName(),"TS")==0 ? kFALSE : kTRUE);
1871  fReadText ->SetEnabled( strcmp(set->GetName(),"TS")==0 ? kFALSE : kTRUE);
1872 
1873  fDataText->SetText(Form(" %d / %d", set->N(), set->NBase()));
1874 
1875  int track_color, track_width, layer_color, layer_width, layer_color_MT;
1876  double track_length, layer_length;
1877  set->GetTrackAttribute(&track_color, &track_width, &track_length, &layer_color, &layer_width, &layer_length, &layer_color_MT);
1878 
1879  fColorAuto->SetState( track_color == -1 ? kButtonDown : kButtonUp);
1880  if(track_color == -1) fTrackColor->Disable();
1881  else {
1882  fTrackColor->Enable();
1883  fTrackColor->SetColor(TColor::Number2Pixel(track_color));
1884  }
1885 
1886  fTrackWidth->Select(track_width);
1887  fLayerColor->SetColor(TColor::Number2Pixel(layer_color));
1888  fLayerWidth->Select(layer_width);
1889 
1890  fTrackID->SetState (set->GetDrawTrackID()?kButtonDown:kButtonUp);
1891  fTrackAngle->SetState(set->GetDrawTrackAngle()?kButtonDown:kButtonUp);
1892  fExtendMode->Select(set->GetExtendMode());
1893 
1894  Enable(kTRUE);
1895 }
void Enable(bool b=kTRUE)
Definition: EdbEDATrackSet.h:643
EdbID * GetID(Int_t i)
Definition: EdbScanSet.h:47

◆ SetFont()

void EdbEDATrackSetTab::SetFont ( )
1807  {
1808  printf("SetFont size=%d, col=%d, font=%d\n", fFontSize->GetSelected(),
1809  TColor::GetColor(fFontColor->GetColor()),
1810  fFontFile->GetSelected());
1812  fFontSize->GetSelected(),
1813  TColor::GetColor(fFontColor->GetColor()),
1814  fFontFile->GetSelected());
1815 
1816  gEDA->Redraw();
1817 
1818 }
void SetTextAttribute(int size=14, int color=kWhite, int fontfile=4)
Definition: EdbEDATrackSet.h:570

◆ ToggleAuto()

void EdbEDATrackSetTab::ToggleAuto ( bool  b)
inline
645 { fTrackColor->Enable(!b); Update();}
void Update()
Definition: EdbEDATrackSet.C:1830

◆ Update()

void EdbEDATrackSetTab::Update ( )
1830  {
1831  if(eEnable==0) return;
1832 
1833  int track_color = TColor::GetColor(fTrackColor->GetColor());
1834  if(fTrackColor->IsEnabled()==kFALSE) track_color = -1;
1835  int track_width = fTrackWidth->GetSelected();
1836  int layer_color = TColor::GetColor(fLayerColor->GetColor());
1837  int layer_width = fLayerWidth->GetSelected();
1838  double track_length=-1;
1839  double layer_length = fLayerLength->GetNumber();
1840  eSet->SetTrackAttribute(track_color, track_width, track_length, layer_color, layer_width, layer_length);
1841 
1842  eSet->SetDrawMT( fReadMicro->GetState()==kButtonDown? kTRUE : kFALSE);
1843  eSet->SetDrawTrackID ( fTrackID->GetState()==kButtonDown? kTRUE: kFALSE );
1844  eSet->SetDrawTrackAngle( fTrackAngle->GetState()==kButtonDown? kTRUE: kFALSE );
1845 
1846  gEDA->SetLayerLength(layer_length);
1847  eSet->SetExtendMode(fExtendMode->GetSelected());
1848  gEDA->Redraw();
1849 }
void SetTrackAttribute(int track_color=-1, int track_width=1, double track_length=-1, int layer_color=kYellow, int layer_width=2, double layer_length=150, int layer_color_MT=kCyan)
Definition: EdbEDATrackSet.h:530
void SetDrawTrackAngle(bool draw)
Definition: EdbEDATrackSet.h:588
void SetExtendMode(int mode=kExtendAuto)
Definition: EdbEDATrackSet.h:526
void SetDrawTrackID(bool draw)
Definition: EdbEDATrackSet.h:587
void SetLayerLength(double layer_length)
Definition: EdbEDA.h:719

Member Data Documentation

◆ eEnable

bool EdbEDATrackSetTab::eEnable
private

◆ eSet

EdbEDATrackSet* EdbEDATrackSetTab::eSet
private

◆ fBrick

TGNumberEntryField* EdbEDATrackSetTab::fBrick
private

◆ fColorAuto

TGCheckButton* EdbEDATrackSetTab::fColorAuto
private

◆ fDataText

TGLabel* EdbEDATrackSetTab::fDataText
private

◆ fExtendMode

TGComboBox* EdbEDATrackSetTab::fExtendMode
private

◆ fFontColor

TGColorSelect* EdbEDATrackSetTab::fFontColor
private

◆ fFontFile

TGComboBox* EdbEDATrackSetTab::fFontFile
private

◆ fFontSize

TGComboBox* EdbEDATrackSetTab::fFontSize
private

◆ fFontWindow

TGMainFrame* EdbEDATrackSetTab::fFontWindow
private

◆ fLayerColor

TGColorSelect* EdbEDATrackSetTab::fLayerColor
private

◆ fLayerLength

TGNumberEntryField* EdbEDATrackSetTab::fLayerLength
private

◆ fLayerWidth

TGLineWidthComboBox* EdbEDATrackSetTab::fLayerWidth
private

◆ fPredScan

TGTextButton* EdbEDATrackSetTab::fPredScan
private

◆ fReadMicro

TGCheckButton* EdbEDATrackSetTab::fReadMicro
private

◆ fReadText

TGTextButton* EdbEDATrackSetTab::fReadText
private

◆ fRun

TGNumberEntryField* EdbEDATrackSetTab::fRun
private

◆ fScanID

TGTextButton* EdbEDATrackSetTab::fScanID
private

◆ fTrackAngle

TGCheckButton* EdbEDATrackSetTab::fTrackAngle
private

◆ fTrackColor

TGColorSelect* EdbEDATrackSetTab::fTrackColor
private

◆ fTrackID

TGCheckButton* EdbEDATrackSetTab::fTrackID
private

◆ fTrackSet

TGComboBox* EdbEDATrackSetTab::fTrackSet
private

◆ fTrackWidth

TGLineWidthComboBox* EdbEDATrackSetTab::fTrackWidth
private

◆ fVer

TGNumberEntryField* EdbEDATrackSetTab::fVer
private

The documentation for this class was generated from the following files: