Changeset 4712 in ntrip
- Timestamp:
- Sep 9, 2012, 10:39:16 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncmap_svg.cpp
r4670 r4712 83 83 connect(_buttonPrint, SIGNAL(clicked()), this, SLOT(slotPrint())); 84 84 85 _buttonWhatsThis = new QPushButton(tr("Help=Shift+F1"), this); 86 _buttonWhatsThis->setMaximumWidth(10*ww); 87 connect(_buttonWhatsThis, SIGNAL(clicked()), this, SLOT(slotWhatsThis())); 88 85 89 // Layout 86 90 // ------ … … 88 92 buttonLayout->addWidget(_buttonClose); 89 93 buttonLayout->addWidget(_buttonPrint); 94 buttonLayout->addWidget(_buttonWhatsThis); 90 95 91 96 QVBoxLayout* mainLayout = new QVBoxLayout(this); 92 97 mainLayout->addWidget(_mapPlot); 93 98 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>")); 94 105 95 106 // Minimal and Maximal Coordinates … … 109 120 t_bncMap::~t_bncMap() { 110 121 delete _mapPlot; 122 delete _buttonWhatsThis; 111 123 } 112 124 … … 240 252 } 241 253 } 254 255 // Whats This Help 256 //////////////////////////////////////////////////////////////////////////// 257 void t_bncMap::slotWhatsThis() { 258 QWhatsThis::enterWhatsThisMode(); 259 } 260
Note:
See TracChangeset
for help on using the changeset viewer.