Commit 2ac46095 authored by Claudio Valerio's avatar Claudio Valerio

added menu item that allows to reach the tutorial

parent 6d2f062f
......@@ -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:
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment