38    m_qnetTool = qnetTool;
 
   40    m_avg = 
new QRadioButton(
"Average Measures");
 
   41    m_avg->setChecked(
true);
 
   42    m_select = 
new QRadioButton(
"Select Measures");
 
   43    m_select->setChecked(
false);
 
   52    m_ptIdLabel = 
new QLabel(
"Point ID:");
 
   53    m_ptIdValue = 
new QLineEdit;
 
   54    m_ptIdLabel->setBuddy(m_ptIdValue);
 
   55    m_ptIdValue->setText(defaultPointId);
 
   56    m_ptIdValue->selectAll();
 
   57    connect(m_ptIdValue,SIGNAL(textChanged(
const QString &)),
 
   60    QGroupBox *pointTypeGroup = 
new QGroupBox(
"Point Type");
 
   61    m_fixed = 
new QRadioButton(
"Fixed");
 
   62    m_constrained = 
new QRadioButton(
"Constrained");
 
   63    m_constrained->setChecked(
true);
 
   64    QVBoxLayout *pointTypeLayout = 
new QVBoxLayout;
 
   65    pointTypeLayout->addWidget(m_fixed);
 
   66    pointTypeLayout->addWidget(m_constrained);
 
   67    pointTypeGroup->setLayout(pointTypeLayout);
 
   69    QLabel *listLabel = 
new QLabel(
"Select Files:");
 
   71    m_fileList = 
new QListWidget();
 
   72    m_fileList->setSelectionMode(QAbstractItemView::ExtendedSelection);
 
   76    m_okButton = 
new QPushButton(
"OK");
 
   77    m_okButton->setEnabled(
false);
 
   78    QPushButton *cancelButton = 
new QPushButton(
"Cancel");
 
   79    QHBoxLayout *buttonLayout = 
new QHBoxLayout;
 
   80    buttonLayout->addWidget(m_okButton);
 
   81    buttonLayout->addWidget(cancelButton);
 
   83    connect(m_okButton, SIGNAL(clicked()), 
this, SLOT(accept()));
 
   84    connect(cancelButton, SIGNAL(clicked()), 
this, SLOT(reject()));
 
   86    QHBoxLayout *ptIdLayout = 
new QHBoxLayout;
 
   87    ptIdLayout->addWidget(m_ptIdLabel);
 
   88    ptIdLayout->addWidget(m_ptIdValue);
 
   90    QVBoxLayout *vLayout = 
new QVBoxLayout;
 
   91    vLayout->addLayout(ptIdLayout);
 
   92    vLayout->addWidget(pointTypeGroup);
 
   93    vLayout->addWidget(listLabel);
 
   94    vLayout->addWidget(m_fileList);
 
   95    vLayout->addLayout(buttonLayout);
 
   98    setWindowTitle(
"Create Fixed or Constrained ControlPoint");