Changeset 1000
- Timestamp:
- 11/13/08 12:06:02 (8 weeks ago)
- Location:
- mchelper/trunk
- Files:
-
- 3 modified
-
include/MainWindow.h (modified) (1 diff)
-
layouts/mainwindow.ui (modified) (3 diffs)
-
source/MainWindow.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
mchelper/trunk/include/MainWindow.h
r993 r1000 101 101 void onHideOsc(bool checked); 102 102 void onCheckForUpdates(bool inBackground = false); 103 void onHelp(); 104 void onOscTutorial(); 103 105 104 106 #ifdef MCHELPER_TEST_SUITE -
mchelper/trunk/layouts/mainwindow.ui
r993 r1000 113 113 <string>File</string> 114 114 </property> 115 <addaction name="actionAbout" />116 115 <addaction name="actionPreferences" /> 117 116 </widget> … … 136 135 <string>Help</string> 137 136 </property> 137 <addaction name="actionHelp" /> 138 <addaction name="actionOscTutorial" /> 138 139 <addaction name="separator" /> 140 <addaction name="actionAbout" /> 139 141 <addaction name="actionCheckForUpdates" /> 140 142 </widget> … … 211 213 </property> 212 214 </action> 215 <action name="actionHelp" > 216 <property name="text" > 217 <string>mchelper Help</string> 218 </property> 219 </action> 220 <action name="actionOscTutorial" > 221 <property name="text" > 222 <string>OSC Tutorial</string> 223 </property> 224 </action> 213 225 </widget> 214 226 <customwidgets> -
mchelper/trunk/source/MainWindow.cpp
r993 r1000 7 7 #include <QTextBlock> 8 8 #include <QTime> 9 #include <QDesktopServices> 10 #include <QUrl> 9 11 #include "MainWindow.h" 10 12 #include "PacketUsbSerial.h" … … 59 61 connect( actionHide_OSC, SIGNAL(triggered(bool)), this, SLOT(onHideOsc(bool))); 60 62 connect( actionCheckForUpdates, SIGNAL(triggered()), this, SLOT(onCheckForUpdates())); 63 connect( actionHelp, SIGNAL(triggered()), this, SLOT(onHelp())); 64 connect( actionOscTutorial, SIGNAL(triggered()), this, SLOT(onOscTutorial())); 61 65 62 66 // command line connections … … 547 551 } 548 552 549 550 551 552 553 554 555 556 557 558 559 553 void MainWindow::onHelp() 554 { 555 if( !QDesktopServices::openUrl( QUrl("http://www.makingthings.com/documentation/tutorial/mchelper") ) ) 556 statusBar()->showMessage( tr("Help is online and requires an internet connection."), 3000 ); 557 } 558 559 void MainWindow::onOscTutorial() 560 { 561 if( !QDesktopServices::openUrl( QUrl("http://www.makingthings.com/documentation/tutorial/osc") ) ) 562 statusBar()->showMessage( tr("Help is online and requires an internet connection."), 3000 ); 563 } 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578
