From b6e7d05cd0a7b43307c6b2e17ba0dae01569b52f Mon Sep 17 00:00:00 2001
From: too-tired
Date: Sat, 27 Jun 2009 17:08:09 +0000
Subject: [PATCH] add help menu and dialog
git-svn-id: https://dvbcut.svn.sourceforge.net/svnroot/dvbcut/trunk@165 36490176-9c1c-0410-b649-dbf2af5787bf
---
ChangeLog | 13 +++++++
DISTFILES | 1 +
src/Makefile.in | 4 ++-
src/dvbcut.cpp | 87 ++++++++++++++++++++++++++++++++++++++++++++++
src/dvbcut.h | 4 +++
src/dvbcut_en.html | 35 +++++++++++++++++++
src/dvbcutbase.ui | 56 +++++++++++++++++++++++++++--
7 files changed, 197 insertions(+), 3 deletions(-)
create mode 100644 src/dvbcut_en.html
diff --git a/ChangeLog b/ChangeLog
index e3e5690..6f5e417 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+2009-06-27 Michael Riepe
+
+ * src/dvbcut.cpp:
+ * src/dvbcut.h:
+ * src/dvbcutbase.ui:
+ Add help dialog and about box.
+ * src/dvbcut_en.html:
+ Initial (rudimentary) help file.
+ * DISTFILES:
+ Add dvbcut_en.html.
+ * src/Makefile.in:
+ Install dvbcut_en.html.
+
2009-06-27 Michael Riepe
* src/stream.h:
diff --git a/DISTFILES b/DISTFILES
index 059201e..efb5f68 100644
--- a/DISTFILES
+++ b/DISTFILES
@@ -246,6 +246,7 @@ src/differenceimageprovider.cpp
src/differenceimageprovider.h
src/dvbcut.cpp
src/dvbcut.h
+src/dvbcut_en.html
src/dvbcutbase.h
src/dvbcutbase.ui
src/eventlistitem.cpp
diff --git a/src/Makefile.in b/src/Makefile.in
index 57def24..8f88942 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -28,8 +28,9 @@ bindir = @bindir@
datadir = @datadir@
mandir = @mandir@
man1dir = $(mandir)/man1
+helpdir = $(prefix)/share/help
-installdirs = $(DESTDIR)$(bindir)
+installdirs = $(DESTDIR)$(bindir) $(DESTDIR)$(helpdir)
CXX = @CXX@
CXXFLAGS = @CXXFLAGS@ -Wall $(DEFS) $(CPPFLAGS)
@@ -94,6 +95,7 @@ check:
install: all installdirs
$(INSTALL_PROGRAM) dvbcut$(EXEEXT) $(DESTDIR)$(bindir)
+ $(INSTALL_DATA) dvbcut_en.html $(DESTDIR)$(helpdir)
installdirs: $(installdirs)
diff --git a/src/dvbcut.cpp b/src/dvbcut.cpp
index a0ba9b3..aac620d 100644
--- a/src/dvbcut.cpp
+++ b/src/dvbcut.cpp
@@ -2381,3 +2381,90 @@ void dvbcut::update_quick_picture_lookup_table() {
update_time_display();
}
+void dvbcut::helpAboutAction_activated()
+{
+ QMessageBox::about(this, tr("dvbcut"),
+ tr(""
+ "dvbcut Version %1
"
+ "eMail: "
+ "dvbcut-user@lists.sourceforge.net
"
+ "This program is free software; you can redistribute it and/or "
+ "modify it under the terms of the GNU General Public License as "
+ "published by the Free Software Foundation; either version 2 of "
+ "the License, or (at your option) any later version. This "
+ "program is distributed in the hope that it will be useful, "
+ "but WITHOUT ANY WARRANTY; without even the implied warranty of "
+ "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU "
+ "General Public License for more details.
"
+ "You should have received a copy of the GNU General Public License along "
+ "with this program; if not, see "
+ "http://www.gnu.org/licenses/.
"
+ "