Diffstat (limited to 'noncore/apps/tableviewer/tableviewer.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/tableviewer/tableviewer.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/noncore/apps/tableviewer/tableviewer.cpp b/noncore/apps/tableviewer/tableviewer.cpp index 0456b41..fbb5c24 100644 --- a/noncore/apps/tableviewer/tableviewer.cpp +++ b/noncore/apps/tableviewer/tableviewer.cpp | |||
@@ -35,4 +35,5 @@ | |||
35 | /* QTE includes */ | 35 | /* QTE includes */ |
36 | #include <qpe/qpemenubar.h> | 36 | #include <qpe/qpemenubar.h> |
37 | #include <qpe/qpetoolbar.h> | ||
37 | #include <qpopupmenu.h> | 38 | #include <qpopupmenu.h> |
38 | #include <qapplication.h> | 39 | #include <qapplication.h> |
@@ -235,4 +236,9 @@ void TableViewerWindow::newDocument() | |||
235 | } | 236 | } |
236 | 237 | ||
238 | void TableViewerWindow::setDocument(const QString &f) | ||
239 | { | ||
240 | openDocument(DocLnk(f, TRUE)); | ||
241 | } | ||
242 | |||
237 | void TableViewerWindow::openDocument(const DocLnk &f) | 243 | void TableViewerWindow::openDocument(const DocLnk &f) |
238 | { | 244 | { |
@@ -290,4 +296,24 @@ void TableViewerWindow::openDocument(const DocLnk &f) | |||
290 | 296 | ||
291 | /*! | 297 | /*! |
298 | Moves to the first item of the current table | ||
299 | */ | ||
300 | void TableViewerWindow::firstItem() | ||
301 | { | ||
302 | listView->first(); | ||
303 | ts.current_elem = listView->getCurrentData(); | ||
304 | browseView->rebuildData(); | ||
305 | } | ||
306 | |||
307 | /*! | ||
308 | Moves to the lat item of the current table | ||
309 | */ | ||
310 | void TableViewerWindow::lastItem() | ||
311 | { | ||
312 | listView->last(); | ||
313 | ts.current_elem = listView->getCurrentData(); | ||
314 | browseView->rebuildData(); | ||
315 | } | ||
316 | |||
317 | /*! | ||
292 | Moves to the next item of the current table | 318 | Moves to the next item of the current table |
293 | */ | 319 | */ |