-rw-r--r-- | noncore/apps/tableviewer/main.cpp | 11 | ||||
-rw-r--r-- | noncore/apps/tableviewer/tableviewer.h | 1 | ||||
-rw-r--r-- | noncore/apps/tableviewer/tableviewer.pro | 4 |
3 files changed, 4 insertions, 12 deletions
diff --git a/noncore/apps/tableviewer/main.cpp b/noncore/apps/tableviewer/main.cpp index d17ee65..ce39c84 100644 --- a/noncore/apps/tableviewer/main.cpp +++ b/noncore/apps/tableviewer/main.cpp | |||
@@ -10,23 +10,16 @@ | |||
10 | ** | 10 | ** |
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
13 | ** | 13 | ** |
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | 14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. |
15 | ** | 15 | ** |
16 | ** Contact info@trolltech.com if any conditions of this licensing are | 16 | ** Contact info@trolltech.com if any conditions of this licensing are |
17 | ** not clear to you. | 17 | ** not clear to you. |
18 | ** | 18 | ** |
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | #include "tableviewer.h" | 20 | #include "tableviewer.h" |
21 | #include <qpe/qpeapplication.h> | 21 | #include <qpe/qpeapplication.h> |
22 | #include <opie/oapplicationfactory.h> | ||
22 | 23 | ||
23 | int main( int argc, char ** argv ) | 24 | OPIE_EXPORT_APP( OApplicationFactory<TableViewerWindow> ) |
24 | { | ||
25 | QPEApplication a( argc, argv ); | ||
26 | 25 | ||
27 | TableViewerWindow mw; | ||
28 | mw.setCaption( TableViewerWindow::tr("Table Viewer") ); | ||
29 | a.showMainWidget(&mw); | ||
30 | |||
31 | return a.exec(); | ||
32 | } | ||
diff --git a/noncore/apps/tableviewer/tableviewer.h b/noncore/apps/tableviewer/tableviewer.h index 817db21..f56a460 100644 --- a/noncore/apps/tableviewer/tableviewer.h +++ b/noncore/apps/tableviewer/tableviewer.h | |||
@@ -31,24 +31,25 @@ class QMenuBar; | |||
31 | 31 | ||
32 | class TVListView; | 32 | class TVListView; |
33 | class TVBrowseView; | 33 | class TVBrowseView; |
34 | class TVFilterView; | 34 | class TVFilterView; |
35 | class TVEditView; | 35 | class TVEditView; |
36 | 36 | ||
37 | class DBStore; | 37 | class DBStore; |
38 | 38 | ||
39 | class TableViewerWindow: public QMainWindow | 39 | class TableViewerWindow: public QMainWindow |
40 | { | 40 | { |
41 | Q_OBJECT | 41 | Q_OBJECT |
42 | public: | 42 | public: |
43 | static QString appName() { return QString::fromLatin1("tableviewer"); } | ||
43 | TableViewerWindow( QWidget *parent = 0, | 44 | TableViewerWindow( QWidget *parent = 0, |
44 | const char *name = 0, WFlags f = 0 ); | 45 | const char *name = 0, WFlags f = 0 ); |
45 | ~TableViewerWindow(); | 46 | ~TableViewerWindow(); |
46 | 47 | ||
47 | public slots: | 48 | public slots: |
48 | void selectDocument(); | 49 | void selectDocument(); |
49 | 50 | ||
50 | void newDocument(); | 51 | void newDocument(); |
51 | void saveDocument(); | 52 | void saveDocument(); |
52 | void setDocument(const QString &); | 53 | void setDocument(const QString &); |
53 | void openDocument(const DocLnk &); | 54 | void openDocument(const DocLnk &); |
54 | 55 | ||
diff --git a/noncore/apps/tableviewer/tableviewer.pro b/noncore/apps/tableviewer/tableviewer.pro index f047e0b..c6d9e68 100644 --- a/noncore/apps/tableviewer/tableviewer.pro +++ b/noncore/apps/tableviewer/tableviewer.pro | |||
@@ -1,15 +1,13 @@ | |||
1 | TEMPLATE= app | 1 | CONFIG = qt warn_on debug quick-app |
2 | CONFIG = qt warn_on debug | ||
3 | DESTDIR = $(OPIEDIR)/bin | ||
4 | SUBDIRS = db ui | 2 | SUBDIRS = db ui |
5 | HEADERS = tableviewer.h \ | 3 | HEADERS = tableviewer.h \ |
6 | xmlencodeattr.h \ | 4 | xmlencodeattr.h \ |
7 | ui/commonwidgets.h \ | 5 | ui/commonwidgets.h \ |
8 | ui/tvbrowseview.h \ | 6 | ui/tvbrowseview.h \ |
9 | ui/tvlistview.h \ | 7 | ui/tvlistview.h \ |
10 | ui/tvfilterview.h \ | 8 | ui/tvfilterview.h \ |
11 | ui/tveditview.h \ | 9 | ui/tveditview.h \ |
12 | ui/browsekeyentry.h \ | 10 | ui/browsekeyentry.h \ |
13 | ui/filterkeyentry.h \ | 11 | ui/filterkeyentry.h \ |
14 | ui/tvkeyedit.h \ | 12 | ui/tvkeyedit.h \ |
15 | db/datacache.h \ | 13 | db/datacache.h \ |