aboutsummaryrefslogtreecommitdiff
path: root/mainwindow.h
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2015-06-14 05:18:53 +0200
committerJavier <dev.git@javispedro.com>2015-06-14 05:18:53 +0200
commit2910de560ead3ff65db26292fc27e427a5cf9b5e (patch)
tree12f6c29b77244528176abeee0934bdc4c560f08d /mainwindow.h
parent46cb4b079be113996214660020d6ef0c3d1f1e80 (diff)
downloadscribiu-2910de560ead3ff65db26292fc27e427a5cf9b5e.tar.gz
scribiu-2910de560ead3ff65db26292fc27e427a5cf9b5e.zip
add export feature and desktop file
Diffstat (limited to 'mainwindow.h')
-rw-r--r--mainwindow.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/mainwindow.h b/mainwindow.h
index cafec49..9bce36a 100644
--- a/mainwindow.h
+++ b/mainwindow.h
@@ -24,6 +24,10 @@ public slots:
void closeNotebook();
void openNotebook(const QString &pen, const QString &notebook);
+ void exportCurrentPageAsPng(const QString &file);
+ void exportCurrentPageAsSvg(const QString &file);
+ void exportCurrentPaperReplayAsAac(const QString &file);
+
private slots:
void handleNotebookSelected(const QModelIndex &index);
void handleCurPageChanged();
@@ -32,6 +36,12 @@ private slots:
void handlePaperReplayPlay();
void handlePaperReplayPause();
void handleMediaStateChange(Phonon::State state);
+ void handleMediaTotalTimeChanged(qint64 time);
+ void handleMediaTick(qint64 time);
+ void handleExport();
+
+private:
+ QString formatDuration(qint64 time);
private:
Ui::MainWindow *ui;