summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/zsafe/main.cpp96
-rw-r--r--noncore/apps/zsafe/zsafe.pro4
2 files changed, 3 insertions, 97 deletions
diff --git a/noncore/apps/zsafe/main.cpp b/noncore/apps/zsafe/main.cpp
index 2707730..6dfd455 100644
--- a/noncore/apps/zsafe/main.cpp
+++ b/noncore/apps/zsafe/main.cpp
@@ -11,28 +11,7 @@
11 11
12#ifndef NO_OPIE
13/* OPIE */ 12/* OPIE */
14#include <opie2/odebug.h> 13#include <opie2/odebug.h>
15using namespace Opie::Core;
16#endif
17 14
18/* QT */ 15/* QT */
19#ifdef DESKTOP 16#include <opie2/oapplicationfactory.h>
20#include <qapplication.h>
21#else
22#include <qpe/qpeapplication.h>
23#endif
24
25/* STD */
26#include <stdio.h>
27#include <signal.h>
28
29ZSafe *zs;
30#ifdef DESKTOP
31QApplication *appl;
32#else
33QPEApplication *appl;
34#endif
35
36int DeskW;
37int DeskH;
38 17
@@ -49,75 +28,4 @@ void resume (int signum)
49 28
50int main( int argc, char ** argv )
51{
52#ifndef Q_WS_WIN
53 // install signal handler
54// signal (SIGSTOP, suspend);
55#endif
56
57#ifdef DESKTOP
58 QApplication a( argc, argv );
59#else
60 QPEApplication a( argc, argv );
61#endif
62 appl = &a;
63 29
64#ifdef DESKTOP 30OPIE_EXPORT_APP( Opie::Core::OApplicationFactory<ZSafe> )
65 if (argc >= 3)
66 {
67#ifndef Q_WS_WIN
68 DeskW = atoi(argv[1]);
69 DeskH = atoi(argv[2]);
70#else
71 int w, h;
72 sscanf (argv[1], "%d", &w);
73 sscanf (argv[2], "%d", &h);
74 DeskW = w;
75 DeskH = h;
76#endif
77 }
78 else
79 {
80 DeskW = 600;
81 DeskH = 400;
82 }
83#else
84 DeskW = a.desktop()->width();
85 DeskH = a.desktop()->height();
86 31
87#ifndef NO_OPIE
88 owarn << "Width: " << DeskW << " Height: " << DeskH << oendl;
89#endif
90#ifdef JPATCH_HDE
91 // nothings
92#else
93 if (DeskW > 240)
94 {
95 DeskW -= 20;
96 DeskH += 25;
97#ifndef NO_OPIE
98 owarn << "Changed width: " << DeskW << " Height: " << DeskH << oendl;
99#endif
100 }
101#endif
102
103#endif
104
105 ZSafe *mw = new ZSafe( 0, 0, QWidget::WDestructiveClose );
106// ZSafe mw;
107// zs = &mw;
108 zs = mw;
109
110#ifndef Q_WS_WIN
111// signal (SIGCONT, resume);
112#endif
113#ifdef DESKTOP
114 a.setMainWidget(mw);
115 mw->show();
116#else
117 // a.showMainWidget( &mw );
118 a.showMainDocumentWidget( mw );
119#endif
120 int ret = a.exec();
121
122 return ret;
123}
diff --git a/noncore/apps/zsafe/zsafe.pro b/noncore/apps/zsafe/zsafe.pro
index 236d11e..e53015d 100644
--- a/noncore/apps/zsafe/zsafe.pro
+++ b/noncore/apps/zsafe/zsafe.pro
@@ -1,4 +1,2 @@
1TEMPLATE = app 1CONFIG = qt quick-app
2CONFIG = qt warn_on
3DESTDIR = $(OPIEDIR)/bin
4HEADERS = zsafe.h krc2.h category.h categorylist.h zlistview.h \ 2HEADERS = zsafe.h krc2.h category.h categorylist.h zlistview.h \