summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/gui/manualwidget.h
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2012-02-14 21:02:52 +0100
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2012-02-14 21:10:54 +0100
commitf7fdf134681a35950edeb1054a1e095f7acec058 (patch)
tree684e59f2f84d11b507065f25d5cfd592680cffda /rbutil/rbutilqt/gui/manualwidget.h
parent3933afcc0942a635ff253a59d6138983e6fd90b8 (diff)
downloadrockbox-f7fdf134681a35950edeb1054a1e095f7acec058.tar.gz
rockbox-f7fdf134681a35950edeb1054a1e095f7acec058.zip
Move manual tab contents to separate widget.
Create a new widget which holds the contents of the manual tab and its logic. Unify its display / download code. Fixes FS#12587, which was caused by duplicated code. Change-Id: I5721d2a95ebeaf80481c1fd149eda22cf1328501
Diffstat (limited to 'rbutil/rbutilqt/gui/manualwidget.h')
-rw-r--r--rbutil/rbutilqt/gui/manualwidget.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/gui/manualwidget.h b/rbutil/rbutilqt/gui/manualwidget.h
new file mode 100644
index 0000000000..6de2de55bd
--- /dev/null
+++ b/rbutil/rbutilqt/gui/manualwidget.h
@@ -0,0 +1,46 @@
+/***************************************************************************
+ * __________ __ ___.
+ * Open \______ \ ____ ____ | | _\_ |__ _______ ___
+ * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
+ * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
+ * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
+ * \/ \/ \/ \/ \/
+ *
+ * Copyright (C) 2012 by Dominik Riebeling
+ *
+ * All files in this archive are subject to the GNU General Public License.
+ * See the file COPYING in the source tree root for full license agreement.
+ *
+ * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
+ * KIND, either express or implied.
+ *
+ ****************************************************************************/
+
+#ifndef MANUALWIDGET_H
+#define MANUALWIDGET_H
+
+#include <QtGui>
+#include "ui_manualwidgetfrm.h"
+
+class ManualWidget : public QWidget
+{
+ Q_OBJECT
+ public:
+ enum ManualFormat {
+ ManualPdf,
+ ManualHtml,
+ ManualZip,
+ };
+ ManualWidget(QWidget *parent = 0);
+
+ public slots:
+ void downloadManual(void);
+ void updateManual();
+ QString manualUrl(ManualFormat format);
+
+ private:
+ Ui::ManualWidgetFrm ui;
+};
+
+#endif
+