comparison src/MainWindow.cpp @ 369:1cd445f9e1ca

new help url
author matthiasm
date Thu, 17 Jul 2014 14:37:22 +0100
parents a848ca75b5d2
children 49e38c6a8a47 d7d828d2b2a5
comparison
equal deleted inserted replaced
368:a848ca75b5d2 369:1cd445f9e1ca
931 IconLoader il; 931 IconLoader il;
932 932
933 QString name = QApplication::applicationName(); 933 QString name = QApplication::applicationName();
934 QAction *action; 934 QAction *action;
935 935
936 // action = new QAction(il.load("help"),
937 // tr("&Help Reference"), this);
938 // action->setShortcut(tr("F1"));
939 // action->setStatusTip(tr("Open the %1 reference manual").arg(name));
940 // connect(action, SIGNAL(triggered()), this, SLOT(help()));
941 // m_keyReference->registerShortcut(action);
942 // menu->addAction(action);
943
944 action = new QAction(tr("&Key and Mouse Reference"), this); 936 action = new QAction(tr("&Key and Mouse Reference"), this);
945 action->setShortcut(tr("F2")); 937 action->setShortcut(tr("F2"));
946 action->setStatusTip(tr("Open a window showing the keystrokes you can use in %1").arg(name)); 938 action->setStatusTip(tr("Open a window showing the keystrokes you can use in %1").arg(name));
947 connect(action, SIGNAL(triggered()), this, SLOT(keyReference())); 939 connect(action, SIGNAL(triggered()), this, SLOT(keyReference()));
948 m_keyReference->registerShortcut(action); 940 m_keyReference->registerShortcut(action);
949 menu->addAction(action); 941 menu->addAction(action);
942
943 action = new QAction(il.load("help"),
944 tr("&Help Reference"), this);
945 action->setShortcut(tr("F1"));
946 action->setStatusTip(tr("Open the %1 reference manual").arg(name));
947 connect(action, SIGNAL(triggered()), this, SLOT(help()));
948 m_keyReference->registerShortcut(action);
949 menu->addAction(action);
950
950 951
951 action = new QAction(tr("%1 on the &Web").arg(name), this); 952 action = new QAction(tr("%1 on the &Web").arg(name), this);
952 action->setStatusTip(tr("Open the %1 website").arg(name)); 953 action->setStatusTip(tr("Open the %1 website").arg(name));
953 connect(action, SIGNAL(triggered()), this, SLOT(website())); 954 connect(action, SIGNAL(triggered()), this, SLOT(website()));
954 menu->addAction(action); 955 menu->addAction(action);
3261 3262
3262 void 3263 void
3263 MainWindow::help() 3264 MainWindow::help()
3264 { 3265 {
3265 //!!! todo: help URL! 3266 //!!! todo: help URL!
3266 openHelpUrl(tr("http://code.soundsoftware.ac.uk/projects/tony/")); 3267 openHelpUrl(tr("http://code.soundsoftware.ac.uk/projects/tony/wiki/Reference"));
3267 } 3268 }
3268 3269
3269 void 3270 void
3270 MainWindow::about() 3271 MainWindow::about()
3271 { 3272 {