added menu item that allows to reach the tutorial

preferencesAboutTextFull
Claudio Valerio 11 years ago
parent 6d2f062f37
commit 2ac46095b5
  1. 24
      resources/forms/mainWindow.ui
  2. 2
      src/core/UBApplication.cpp
  3. 7
      src/web/UBWebController.cpp
  4. 4
      src/web/UBWebController.h

@ -1537,18 +1537,6 @@
<string>Import eduMedia simulation</string>
</property>
</action>
<action name="actionTutorial">
<property name="icon">
<iconset resource="../OpenBoard.qrc">
<normaloff>:/images/toolbar/tutorial.png</normaloff>:/images/toolbar/tutorial.png</iconset>
</property>
<property name="text">
<string>Tutorial</string>
</property>
<property name="toolTip">
<string>Open the tutorial</string>
</property>
</action>
<action name="actionCheckUpdate">
<property name="icon">
<iconset resource="../OpenBoard.qrc">
@ -1620,6 +1608,18 @@
<string>Remove the backgound</string>
</property>
</action>
<action name="actionOpenTutorial">
<property name="icon">
<iconset resource="../OpenBoard.qrc">
<normaloff>:/images/toolbar/tutorial.png</normaloff>:/images/toolbar/tutorial.png</iconset>
</property>
<property name="text">
<string>Open Tutorial</string>
</property>
<property name="toolTip">
<string>Open the tutorial web page</string>
</property>
</action>
</widget>
<resources>
<include location="../OpenBoard.qrc"/>

@ -523,6 +523,8 @@ void UBApplication::decorateActionMenu(QAction* action)
menu->addAction(mainWindow->actionHideApplication);
menu->addAction(mainWindow->actionSleep);
menu->addSeparator();
menu->addAction(mainWindow->actionOpenTutorial);
menu->addSeparator();
menu->addAction(mainWindow->actionPreferences);
menu->addAction(mainWindow->actionMultiScreen);

@ -74,6 +74,8 @@ UBWebController::UBWebController(UBMainWindow* mainWindow)
// TODO : Comment the next line to continue the Youtube button bugfix
initialiazemOEmbedProviders();
connect(mMainWindow->actionOpenTutorial,SIGNAL(triggered()),this, SLOT(onOpenTutorial()));
}
@ -82,6 +84,11 @@ UBWebController::~UBWebController()
// NOOP
}
void UBWebController::onOpenTutorial()
{
loadUrl(QUrl("http://tutorial.openboard.org"));
}
void UBWebController::initialiazemOEmbedProviders()
{
mOEmbedProviders << "5min.com";

@ -40,7 +40,7 @@ class UBServerXMLHttpRequest;
class UBWebController : public QObject
{
Q_OBJECT;
Q_OBJECT
public:
UBWebController(UBMainWindow* mainWindow);
@ -125,6 +125,8 @@ class UBWebController : public QObject
void toggleWebTrap(bool checked);
void onOEmbedParsed(QVector<sOEmbedContent> contents);
void onOpenTutorial();
signals:
/**

Loading…
Cancel
Save