|
From: Yoda-JM <yo...@us...> - 2011-01-29 09:19:18
|
Module: editor
Branch: master
Commit: fe4a02ba05ce0305f004342f71257239638527d9
Author: Vincent Le Ligeour <yo...@us...>
Date: Sat Jan 29 10:15:23 2011 +0100
Added Lyrics tab
---
editor.ui | 32 +++++++++++++++++++++++++++++++-
editorapp.cc | 6 ++++++
editorapp.hh | 1 +
3 files changed, 38 insertions(+), 1 deletions(-)
diff --git a/editor.ui b/editor.ui
index 1dd2b95..540d3ad 100644
--- a/editor.ui
+++ b/editor.ui
@@ -418,6 +418,36 @@
</item>
</layout>
</widget>
+ <widget class="QWidget" name="tabLyrics">
+ <attribute name="title">
+ <string>Lyrics</string>
+ </attribute>
+ <layout class="QGridLayout" name="gridLayout_7">
+ <item row="1" column="0">
+ <widget class="QPushButton" name="cmdRefreshLyrics">
+ <property name="text">
+ <string>Refresh</string>
+ </property>
+ </widget>
+ </item>
+ <item row="0" column="0">
+ <widget class="QTextEdit" name="textEditLyrics">
+ <property name="enabled">
+ <bool>true</bool>
+ </property>
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="autoFillBackground">
+ <bool>false</bool>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </widget>
</widget>
</item>
</layout>
@@ -432,7 +462,7 @@
<x>0</x>
<y>0</y>
<width>800</width>
- <height>25</height>
+ <height>21</height>
</rect>
</property>
<widget class="QMenu" name="menuFile">
diff --git a/editorapp.cc b/editorapp.cc
index b9b1b8b..5e369ad 100644
--- a/editorapp.cc
+++ b/editorapp.cc
@@ -513,6 +513,12 @@ void EditorApp::playButton()
}
}
+void EditorApp::on_cmdRefreshLyrics_clicked()
+{
+ QString text = noteGraph->dumpLyrics();
+ ui.textEditLyrics->setText(text);
+}
+
void EditorApp::on_cmdPlay_clicked()
{
if (player) {
diff --git a/editorapp.hh b/editorapp.hh
index a6baa25..1f4bcd7 100644
--- a/editorapp.hh
+++ b/editorapp.hh
@@ -54,6 +54,7 @@ public slots:
void on_cmdPlay_clicked();
void on_cmdStop_clicked();
+ void on_cmdRefreshLyrics_clicked();
// File menu
void on_actionNew_triggered();
|