Changeset 195 in ntrip for trunk/BNC


Ignore:
Timestamp:
Sep 25, 2006, 7:09:37 PM (18 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bnctabledlg.cpp

    r191 r195  
    1515 *
    1616 * -----------------------------------------------------------------------*/
     17
     18#include <iostream.h>
    1719
    1820#include "bnctabledlg.h"
     
    5254
    5355  _table = new QTableWidget(this);
     56  connect(_table, SIGNAL(itemSelectionChanged()),
     57          this, SLOT(slotSelectionChanged()));
    5458  mainLayout->addWidget(_table);
    5559
    56   _buttonGet = new QPushButton(tr("Get Table"), this);
     60  _buttonSkl = new QPushButton(tr("Create skeleton headers"), this);
     61  _buttonSkl->setEnabled(false);
     62  connect(_buttonSkl, SIGNAL(clicked()), this, SLOT(slotSkl()));
     63
     64  _buttonGet = new QPushButton(tr("Get table"), this);
    5765  connect(_buttonGet, SIGNAL(clicked()), this, SLOT(slotGetTable()));
    5866
     
    6472
    6573  QHBoxLayout* buttonLayout = new QHBoxLayout;
     74  buttonLayout->addWidget(_buttonSkl);
    6675  buttonLayout->addStretch(1);
    6776  buttonLayout->addWidget(_buttonGet);
     
    224233  QDialog::accept();
    225234}
     235
     236// User changed the selection of mountPoints
     237////////////////////////////////////////////////////////////////////////////
     238void bncTableDlg::slotSelectionChanged() {
     239  if (_table->selectedItems().isEmpty()) {
     240    _buttonSkl->setEnabled(false);
     241  }
     242  else {
     243    _buttonSkl->setEnabled(true);
     244  }
     245}
     246
     247//
     248////////////////////////////////////////////////////////////////////////////
     249void bncTableDlg::slotSkl() {
     250  QStringList fullTable;
     251  bncTableDlg::getFullTable("www.euref-ip.net", 80, fullTable);
     252
     253  cout << fullTable.join("").toAscii().data() << endl;
     254
     255}
  • trunk/BNC/bnctabledlg.h

    r191 r195  
    2323    virtual void accept();
    2424    void slotGetTable();
     25    void slotSkl();
     26    void slotSelectionChanged();
    2527
    2628  private:
     
    3032    QLineEdit*   _casterPasswordLineEdit;
    3133
     34    QPushButton* _buttonSkl;
    3235    QPushButton* _buttonGet;
    3336    QPushButton* _buttonCancel;
Note: See TracChangeset for help on using the changeset viewer.