Changeset 4712 in ntrip


Ignore:
Timestamp:
Sep 9, 2012, 10:39:16 PM (10 years ago)
Author:
weber
Message:

WhatsThis online help added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bncmap_svg.cpp

    r4670 r4712  
    8383  connect(_buttonPrint, SIGNAL(clicked()), this, SLOT(slotPrint()));
    8484
     85  _buttonWhatsThis = new QPushButton(tr("Help=Shift+F1"), this);
     86  _buttonWhatsThis->setMaximumWidth(10*ww);
     87  connect(_buttonWhatsThis, SIGNAL(clicked()), this, SLOT(slotWhatsThis()));
     88
    8589  // Layout
    8690  // ------
     
    8892  buttonLayout->addWidget(_buttonClose);
    8993  buttonLayout->addWidget(_buttonPrint);
     94  buttonLayout->addWidget(_buttonWhatsThis);
    9095
    9196  QVBoxLayout* mainLayout = new QVBoxLayout(this);
    9297  mainLayout->addWidget(_mapPlot);
    9398  mainLayout->addLayout(buttonLayout);
     99
     100  // WhatsThis
     101  // ---------
     102  _buttonClose->setWhatsThis(tr("<p>Close window.</p>"));
     103  _buttonPrint->setWhatsThis(tr("<p>Print stream distribution map.</p>"));
     104//  _mapPlot->setWhatsThis(tr("<p>Stream distribution map. Use the mouse to zoom in or out.</p><p>Left button: Draw rectangle to zoom in.<br>Right button: Zoom out.<br>Middle button: Zoom back.</p>"));
    94105
    95106  // Minimal and Maximal Coordinates
     
    109120t_bncMap::~t_bncMap() {
    110121  delete _mapPlot;
     122  delete _buttonWhatsThis;
    111123}
    112124
     
    240252  }
    241253}
     254
     255// Whats This Help
     256////////////////////////////////////////////////////////////////////////////
     257void t_bncMap::slotWhatsThis() {
     258QWhatsThis::enterWhatsThisMode();
     259}
     260
Note: See TracChangeset for help on using the changeset viewer.