Changeset 1488 in ntrip


Ignore:
Timestamp:
Jan 18, 2009, 10:13:51 AM (15 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bnctabledlg.cpp

    r1486 r1488  
    478478  ww = QFontMetrics(font()).width('w');
    479479
    480   QPushButton* _closeButton = new QPushButton("Cancel");
     480  _closeButton = new QPushButton("Cancel");
    481481  connect(_closeButton, SIGNAL(clicked()), this, SLOT(close()));
    482482  _closeButton->setMinimumWidth(8*ww);
    483483  _closeButton->setMaximumWidth(8*ww);
    484484
    485   QPushButton* _okButton = new QPushButton(tr("OK"), this);
     485  _okButton = new QPushButton(tr("OK"), this);
    486486  connect(_okButton, SIGNAL(clicked()), this, SLOT(slotAcceptCasterTable()));
    487487  _okButton->setMinimumWidth(8*ww);
    488488  _okButton->setMaximumWidth(8*ww);
    489489
    490   QPushButton* _whatsThisCasterTableButton = new QPushButton(tr("Help=Shift+F1"), this);
    491   connect(_whatsThisCasterTableButton, SIGNAL(clicked()), this, SLOT(slotWhatsThisCasterTable()));
    492   _whatsThisCasterTableButton->setMinimumWidth(12*ww);
    493   _whatsThisCasterTableButton->setMaximumWidth(12*ww);
     490  _whatsThisButton = new QPushButton(tr("Help=Shift+F1"), this);
     491  connect(_whatsThisButton, SIGNAL(clicked()), this, SLOT(slotWhatsThis()));
     492  _whatsThisButton->setMinimumWidth(12*ww);
     493  _whatsThisButton->setMaximumWidth(12*ww);
    494494
    495495  _casterTable->setWhatsThis(tr("<p>Select an NTRIP broadcaster and hit 'OK'.</p><p>See <u>http://www.rtcm-ntrip.org/home</u> for further details on known NTRIP broadcaster installations.</u>."));
     
    497497  QGridLayout* dlgLayout = new QGridLayout();
    498498  dlgLayout->addWidget(new QLabel("  List of NTRIP Broadcasters from www.rtcm-ntrip.org"), 0,0,1,3,Qt::AlignLeft);
    499   dlgLayout->addWidget(_casterTable,                1, 0, 1, 3);
    500   dlgLayout->addWidget(_whatsThisCasterTableButton, 2, 0);
    501   dlgLayout->addWidget(_closeButton,                2, 1, Qt::AlignRight); 
    502   dlgLayout->addWidget(_okButton,                   2, 2);
     499  dlgLayout->addWidget(_casterTable,     1, 0, 1, 3);
     500  dlgLayout->addWidget(_whatsThisButton, 2, 0);
     501  dlgLayout->addWidget(_closeButton,     2, 1, Qt::AlignRight); 
     502  dlgLayout->addWidget(_okButton,        2, 2);
    503503
    504504  setMinimumSize(600,400);
     
    509509}
    510510
     511// Caster table destructor
     512////////////////////////////////////////////////////////////////////////////
     513bncCasterTableDlg::~bncCasterTableDlg() {
     514  delete _casterTable;
     515  delete _okButton;
     516  delete _closeButton;
     517  delete _whatsThisButton;
     518}
     519
    511520// Caster table what's this
    512521////////////////////////////////////////////////////////////////////////////
    513 void bncCasterTableDlg:: slotWhatsThisCasterTable() {
     522void bncCasterTableDlg:: slotWhatsThis() {
    514523  QWhatsThis::enterWhatsThisMode();
    515 }
    516 
    517 // Caster table destructor
    518 ////////////////////////////////////////////////////////////////////////////
    519 bncCasterTableDlg::~bncCasterTableDlg() {
    520   if (_casterTable) {
    521     for (int ir = 0; ir < _casterTable->rowCount(); ir++) {
    522       for (int ic = 0; ic < _casterTable->columnCount(); ic++) {
    523         delete _casterTable->item(ir,ic);
    524       }
    525     }
    526   }
    527524}
    528525
Note: See TracChangeset for help on using the changeset viewer.