changeset 120:863a470df510

* Basic beginnings of what will become a tip-of-the-day dialog
author Chris Cannam
date Fri, 09 Mar 2007 18:18:30 +0000
parents a7b88d07a836
children 3fff180a254b
files i18n/tips_en.txt i18n/tips_en.xml main/main.cpp sonic-visualiser.qrc
diffstat 4 files changed, 78 insertions(+), 87 deletions(-) [+]
line wrap: on
line diff
--- a/i18n/tips_en.txt	Fri Mar 09 17:39:27 2007 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,87 +0,0 @@
-<tips caption="Tip of the Day">
-<tip>
-<html>
-
-<p><b>Welcome to Sonic Visualiser!</b></p>
-
-<p>Sonic Visualiser is pretty complex, but you can use it for simple
-things very easily.  Try importing an audio file and using the Pane
-menu to add some different views of it.</p>
-
-<p>Check out the links on the Help menu for tutorials and other
-documentation!</p>
-
-</html>
-</tip>
-<tip>
-<html>
-
-<p>Sonic Visualiser's window is organised into <i>panes</i> and
-<i>layers</i>.  To begin with, you have one pane.  Import an audio
-file to see it displayed in a <i>waveform layer</i> on that pane.</p>
-
-</html>
-</tip>
-<tip>
-<html>
-
-<p>Each pane can contain any number of layers, which appear stacked
-from "front" to "back" on the same timeline.  A layer can contain a
-view of audio, or of points (time instants) or data plots (time-values).</p>
-
-</html>
-</tip>
-<tip>
-<html>
-
-<p>There's a <i>layer property box</i> shown to the right of each
-layer, with one tab for each of the layers on that pane.  Click on a
-layer's tab to bring that layer to the front.  You can then adjust its
-colour and other display properties in the property box.</p>
-
-<p>The first tab is always for the pane itself, which has a few
-adjustable properties of its own.</p>
-
-</html>
-</tip>
-<tip>
-<html>
-
-<p>If you have more than one pane, only one of them will be "current",
-marked with a black bar at the left side.  Just click on another pane
-to make it current.  Most editing operations affect the layer that's
-at the front of the current pane.</p>
-
-</html>
-</tip>
-<tip>
-<html>
-
-<p>You can use different zoom levels for different panes by un-checking
-the Global Zoom control for one of them.  By default, all panes will
-zoom and scroll together.</p>
-
-</html>
-</tip>
-<tip>
-<html>
-
-<p>You can speed up and slow down playback using the Playback Speedup
-control in the bottom-right of the window.</p>
-
-</html>
-</tip>
-<tip>
-<html>
-
-<p>The Transforms menu lists things you can do to extract features from
-or process your audio.  The available outputs of any Vamp
-feature-extraction plugins or LADSPA audio effects plugins you have
-will show up here.</p>
-
-</html>
-</tip>
-
-</tips>
-
-
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/i18n/tips_en.xml	Fri Mar 09 18:18:30 2007 +0000
@@ -0,0 +1,71 @@
+<tips caption="Tip of the Day">
+<tip>
+<text>
+Welcome to Sonic Visualiser!
+
+Sonic Visualiser is pretty complex, but you can use it for simple
+things very easily.  Try importing an audio file and using the Pane
+menu to add some different views of it.
+
+Check out the links on the Help menu for tutorials and other
+documentation!
+</text>
+</tip>
+<tip>
+<text>
+Sonic Visualiser's window is organised into "panes" and
+"layers".  To begin with, you have one pane.  Import an audio
+file to see it displayed in a waveform layer on that pane.
+</text>
+</tip>
+<tip>
+<text>
+Each pane can contain any number of layers, which appear stacked
+from "front" to "back" on the same timeline.  A layer can contain a
+view of audio, or of points (time instants) or data plots (time-values).
+</text>
+</tip>
+<tip>
+<text>
+There's a "layer property box" to the right of each pane, with one
+tab for each of the layers on that pane.  Click on a layer's tab to
+bring that layer to the front.  You can then adjust its colour and
+other display properties in the property box.
+
+The first tab is always for the pane itself, which has a few
+adjustable properties of its own.
+</text>
+</tip>
+<tip>
+<text>
+If you have more than one pane, only one of them will be "current",
+marked with a black bar at the left side.  Just click on another pane
+to make it current.  Most editing operations affect the layer that's
+at the front of the current pane.
+</text>
+</tip>
+<tip>
+<text>
+You can use different zoom levels for different panes by un-checking
+the Global Zoom control for one of them.  By default, all panes will
+zoom and scroll together.
+</text>
+</tip>
+<tip>
+<text>
+You can speed up and slow down playback using the Playback Speedup
+control in the bottom-right of the window.
+</text>
+</tip>
+<tip>
+<text>
+The Transforms menu lists things you can do to extract features from
+or process your audio.  The available outputs of any Vamp
+feature-extraction plugins or LADSPA audio effects plugins you have
+will show up here.
+</text>
+</tip>
+
+</tips>
+
+
--- a/main/main.cpp	Fri Mar 09 17:39:27 2007 +0000
+++ b/main/main.cpp	Fri Mar 09 18:18:30 2007 +0000
@@ -20,6 +20,7 @@
 #include "base/TempDirectory.h"
 #include "base/PropertyContainer.h"
 #include "base/Preferences.h"
+#include "widgets/TipDialog.h"
 
 #include <QMetaType>
 #include <QApplication>
@@ -194,6 +195,11 @@
         }
     }            
 
+    TipDialog tipDialog;
+    if (tipDialog.isOK()) {
+        tipDialog.exec();
+    }
+
     int rv = application.exec();
     std::cerr << "application.exec() returned " << rv << std::endl;
 
--- a/sonic-visualiser.qrc	Fri Mar 09 17:39:27 2007 +0000
+++ b/sonic-visualiser.qrc	Fri Mar 09 18:18:30 2007 +0000
@@ -69,5 +69,6 @@
     <file>samples/strike.wav</file>
     <file>samples/tap.wav</file>
     <file>i18n/sonic-visualiser_ru.qm</file>
+    <file>i18n/tips_en.xml</file>
 </qresource>
 </RCC>