Changeset 1000

Show
Ignore:
Timestamp:
11/13/08 12:06:02 (8 weeks ago)
Author:
liamMT
Message:

- add back in help links and move update menu item to help menu

Location:
mchelper/trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • mchelper/trunk/include/MainWindow.h

    r993 r1000  
    101101  void onHideOsc(bool checked); 
    102102  void onCheckForUpdates(bool inBackground = false); 
     103  void onHelp(); 
     104  void onOscTutorial(); 
    103105   
    104106  #ifdef MCHELPER_TEST_SUITE 
  • mchelper/trunk/layouts/mainwindow.ui

    r993 r1000  
    113113     <string>File</string> 
    114114    </property> 
    115     <addaction name="actionAbout" /> 
    116115    <addaction name="actionPreferences" /> 
    117116   </widget> 
     
    136135     <string>Help</string> 
    137136    </property> 
     137    <addaction name="actionHelp" /> 
     138    <addaction name="actionOscTutorial" /> 
    138139    <addaction name="separator" /> 
     140    <addaction name="actionAbout" /> 
    139141    <addaction name="actionCheckForUpdates" /> 
    140142   </widget> 
     
    211213   </property> 
    212214  </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> 
    213225 </widget> 
    214226 <customwidgets> 
  • mchelper/trunk/source/MainWindow.cpp

    r993 r1000  
    77#include <QTextBlock> 
    88#include <QTime> 
     9#include <QDesktopServices> 
     10#include <QUrl> 
    911#include "MainWindow.h" 
    1012#include "PacketUsbSerial.h" 
     
    5961  connect( actionHide_OSC, SIGNAL(triggered(bool)), this, SLOT(onHideOsc(bool))); 
    6062  connect( actionCheckForUpdates, SIGNAL(triggered()), this, SLOT(onCheckForUpdates())); 
     63  connect( actionHelp, SIGNAL(triggered()), this, SLOT(onHelp())); 
     64  connect( actionOscTutorial, SIGNAL(triggered()), this, SLOT(onOscTutorial())); 
    6165   
    6266  // command line connections 
     
    547551} 
    548552 
    549  
    550  
    551  
    552  
    553  
    554  
    555  
    556  
    557  
    558  
    559  
     553void 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 
     559void 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