summaryrefslogtreecommitdiff
authorkergoth <kergoth>2002-03-28 23:34:43 (UTC)
committer kergoth <kergoth>2002-03-28 23:34:43 (UTC)
commit6c6f578fa5ef1f83cf1ba4978015663360ac2e7e (patch) (unidiff)
tree64cc4c7dc96e9f7439368a696e46e561be79fa4c
parented6bcbba1164cc2235b6d21f20b1de416d36cac2 (diff)
downloadopie-6c6f578fa5ef1f83cf1ba4978015663360ac2e7e.zip
opie-6c6f578fa5ef1f83cf1ba4978015663360ac2e7e.tar.gz
opie-6c6f578fa5ef1f83cf1ba4978015663360ac2e7e.tar.bz2
moved taskbar/ to launcher/.
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--Makefile14
-rw-r--r--core/launcher/taskbar.cpp4
-rw-r--r--core/opie-login/README2
-rw-r--r--core/opie-login/qdmdialogimpl.cpp2
4 files changed, 11 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index 24a9050..01aba30 100644
--- a/Makefile
+++ b/Makefile
@@ -1,62 +1,62 @@
1default: dynamic 1default: dynamic
2 2
3all: default docs 3all: default docs
4 4
5LIBS=library libopie 5LIBS=library libopie
6 6
7COMPONENTS=$(LOCALCOMPONENTS) inputmethods/keyboard \ 7COMPONENTS=$(LOCALCOMPONENTS) inputmethods/keyboard \
8 inputmethods/pickboard \ 8 inputmethods/pickboard \
9 inputmethods/handwriting \ 9 inputmethods/handwriting \
10 inputmethods/unikeyboard \ 10 inputmethods/unikeyboard \
11 inputmethods/jumpx \ 11 inputmethods/jumpx \
12 inputmethods/dvorak \ 12 inputmethods/dvorak \
13 taskbar/batteryapplet \ 13 launcher/batteryapplet \
14 taskbar/volumeapplet \ 14 launcher/volumeapplet \
15 taskbar/clockapplet \ 15 launcher/clockapplet \
16 taskbar/netmonapplet \ 16 launcher/netmonapplet \
17 taskbar/screenshotapplet \ 17 launcher/screenshotapplet \
18 taskbar/vmemo \ 18 launcher/vmemo \
19 netsetup/dialup \ 19 netsetup/dialup \
20 netsetup/lan \ 20 netsetup/lan \
21 opiemail/ifaces/pop3 opiemail/ifaces/smtp \ 21 opiemail/ifaces/pop3 opiemail/ifaces/smtp \
22 mpegplayer/libmpeg3 \ 22 mpegplayer/libmpeg3 \
23 mpegplayer/libmad \ 23 mpegplayer/libmad \
24 mpegplayer/wavplugin \ 24 mpegplayer/wavplugin \
25 cardmon \ 25 cardmon \
26 sdmon 26 sdmon
27 27
28APPS=$(LOCALAPPS) core/addressbook calculator clock datebook \ 28APPS=$(LOCALAPPS) core/addressbook calculator clock datebook \
29 filebrowser helpbrowser minesweep mpegplayer \ 29 filebrowser helpbrowser minesweep mpegplayer \
30 settings/light-and-power \ 30 settings/light-and-power \
31 settings/language \ 31 settings/language \
32 settings/rotation \ 32 settings/rotation \
33 settings/appearance \ 33 settings/appearance \
34 settings/security \ 34 settings/security \
35 settings/sound \ 35 settings/sound \
36 settings/systemtime \ 36 settings/systemtime \
37 solitaire spreadsheet tetrix textedit \ 37 solitaire spreadsheet tetrix textedit \
38 todo wordgame embeddedkonsole taskbar sysinfo \ 38 todo wordgame embeddedkonsole launcher sysinfo \
39 parashoot snake citytime showimg netsetup tableviewer \ 39 parashoot snake citytime showimg netsetup tableviewer \
40 qipkg mindbreaker go qasteroids qcop fifteen keypebble today opiemail/converter opiemail \ 40 qipkg mindbreaker go qasteroids qcop fifteen keypebble today opiemail/converter opiemail \
41 noncore/tictac noncore/opieftp noncore/drawpad noncore/kcheckers 41 noncore/tictac noncore/opieftp noncore/drawpad noncore/kcheckers
42 42
43DOCS = docs/src/opie-policy 43DOCS = docs/src/opie-policy
44single: mpegplayer/libmpeg3 44single: mpegplayer/libmpeg3
45 45
46dynamic: $(APPS) 46dynamic: $(APPS)
47 47
48docs: $(DOCS) 48docs: $(DOCS)
49 49
50$(COMPONENTS): $(LIBS) 50$(COMPONENTS): $(LIBS)
51 51
52$(APPS): $(LIBS) $(COMPONENTS) 52$(APPS): $(LIBS) $(COMPONENTS)
53 53
54$(LIBS) $(COMPONENTS) $(APPS) $(DOCS) single: 54$(LIBS) $(COMPONENTS) $(APPS) $(DOCS) single:
55 $(MAKE) -C $@ -f Makefile 55 $(MAKE) -C $@ -f Makefile
56 56
57showcomponents: 57showcomponents:
58 @echo $(LIBS) $(APPS) $(COMPONENTS) single 58 @echo $(LIBS) $(APPS) $(COMPONENTS) single
59 59
60clean: 60clean:
61 $(MAKE) -C single -f Makefile $@ 61 $(MAKE) -C single -f Makefile $@
62 for dir in $(APPS) $(LIBS) $(COMPONENTS) $(DOCS); do $(MAKE) -C $$dir -f Makefile $@ || exit 1; done 62 for dir in $(APPS) $(LIBS) $(COMPONENTS) $(DOCS); do $(MAKE) -C $$dir -f Makefile $@ || exit 1; done
diff --git a/core/launcher/taskbar.cpp b/core/launcher/taskbar.cpp
index d7f36bd..18d28cb 100644
--- a/core/launcher/taskbar.cpp
+++ b/core/launcher/taskbar.cpp
@@ -44,57 +44,57 @@
44 44
45#if defined( Q_WS_QWS ) 45#if defined( Q_WS_QWS )
46#include <qwsdisplay_qws.h> 46#include <qwsdisplay_qws.h>
47#include <qgfx_qws.h> 47#include <qgfx_qws.h>
48#endif 48#endif
49 49
50 50
51#define FACTORY(T) \ 51#define FACTORY(T) \
52 static QWidget *new##T( bool maximized ) { \ 52 static QWidget *new##T( bool maximized ) { \
53 QWidget *w = new T( 0, "test", QWidget::WDestructiveClose | QWidget::WGroupLeader ); \ 53 QWidget *w = new T( 0, "test", QWidget::WDestructiveClose | QWidget::WGroupLeader ); \
54 if ( maximized ) { \ 54 if ( maximized ) { \
55 if ( qApp->desktop()->width() <= 350 ) { \ 55 if ( qApp->desktop()->width() <= 350 ) { \
56 w->showMaximized(); \ 56 w->showMaximized(); \
57 } else { \ 57 } else { \
58 w->resize( QSize( 300, 300 ) ); \ 58 w->resize( QSize( 300, 300 ) ); \
59 } \ 59 } \
60 } \ 60 } \
61 w->show(); \ 61 w->show(); \
62 return w; \ 62 return w; \
63 } 63 }
64 64
65 65
66#ifdef SINGLE_APP 66#ifdef SINGLE_APP
67#define APP(a,b,c,d) FACTORY(b) 67#define APP(a,b,c,d) FACTORY(b)
68#include "../taskbar/apps.h" 68#include "../launcher/apps.h"
69#undef APP 69#undef APP
70#endif // SINGLE_APP 70#endif // SINGLE_APP
71 71
72static Global::Command builtins[] = { 72static Global::Command builtins[] = {
73 73
74#ifdef SINGLE_APP 74#ifdef SINGLE_APP
75#define APP(a,b,c,d) { a, new##b, c }, 75#define APP(a,b,c,d) { a, new##b, c },
76#include "../taskbar/apps.h" 76#include "../launcher/apps.h"
77#undef APP 77#undef APP
78#endif 78#endif
79 79
80#if defined(QT_QWS_IPAQ) || defined(QT_QWS_CASSIOPEIA) || defined(QT_QWS_EBX) 80#if defined(QT_QWS_IPAQ) || defined(QT_QWS_CASSIOPEIA) || defined(QT_QWS_EBX)
81 { "calibrate", TaskBar::calibrate,1, 0 }, 81 { "calibrate", TaskBar::calibrate,1, 0 },
82#endif 82#endif
83#if !defined(QT_QWS_CASSIOPEIA) 83#if !defined(QT_QWS_CASSIOPEIA)
84 { "shutdown", Global::shutdown, 1, 0 }, 84 { "shutdown", Global::shutdown, 1, 0 },
85 // { "run", run, 1, 0 }, 85 // { "run", run, 1, 0 },
86#endif 86#endif
87 87
88 { 0, TaskBar::calibrate,0, 0 }, 88 { 0, TaskBar::calibrate,0, 0 },
89}; 89};
90 90
91static bool initNumLock() 91static bool initNumLock()
92{ 92{
93#ifdef QPE_INITIAL_NUMLOCK_STATE 93#ifdef QPE_INITIAL_NUMLOCK_STATE
94 QPE_INITIAL_NUMLOCK_STATE 94 QPE_INITIAL_NUMLOCK_STATE
95#endif 95#endif
96 return FALSE; 96 return FALSE;
97} 97}
98 98
99class LockKeyState : public QWidget 99class LockKeyState : public QWidget
100{ 100{
diff --git a/core/opie-login/README b/core/opie-login/README
index ad3b298..4a4234d 100644
--- a/core/opie-login/README
+++ b/core/opie-login/README
@@ -11,49 +11,49 @@ http://qpe.sourceforge.net for further details) allows You to use your
11handheld computer running QPE and Linux with the typical Un*x user 11handheld computer running QPE and Linux with the typical Un*x user
12handling, i.e. just log in on a graphical environment, as e.g. KDM or 12handling, i.e. just log in on a graphical environment, as e.g. KDM or
13XDM. This way your personal data can be easily protected against 13XDM. This way your personal data can be easily protected against
14unwanted access from others in case you loose your machine. 14unwanted access from others in case you loose your machine.
15 15
16 16
17STATUS: 17STATUS:
18 18
19Still in development, but should be useable. 19Still in development, but should be useable.
20 20
21 21
22REQUIREMENTS: 22REQUIREMENTS:
23 23
24- QDM needs Linux-PAM (Pluggable Authentication Modules for Linux) for 24- QDM needs Linux-PAM (Pluggable Authentication Modules for Linux) for
25 proper user validation. 25 proper user validation.
26 26
27- the /dev/fb0 device has to writeable to everyone ;-( 27- the /dev/fb0 device has to writeable to everyone ;-(
28 28
29 29
30INSTALLATION: 30INSTALLATION:
31 31
32Per default this little add-on is not enabled. You have to do so 32Per default this little add-on is not enabled. You have to do so
33yourself for now, by setting a compile option variable called 33yourself for now, by setting a compile option variable called
34QT_QWS_LOGIN . Furthermore there have to be made some changes in 34QT_QWS_LOGIN . Furthermore there have to be made some changes in
35taskbar/taskbar.pro : 35launcher/taskbar.pro :
36 36
37At the section HEADERS insert a line: 37At the section HEADERS insert a line:
38 ../login/qdmdialogimpl.h \ 38 ../login/qdmdialogimpl.h \
39 39
40At the section SOURCES insert a line: 40At the section SOURCES insert a line:
41 ../login/qdmdialogimpl.cpp \ 41 ../login/qdmdialogimpl.cpp \
42 42
43 furthermore serte these lines: 43 furthermore serte these lines:
44 44
45 INCLUDEPATH+= ../login 45 INCLUDEPATH+= ../login
46 DEPENDPATH+= ../login 46 DEPENDPATH+= ../login
47 47
48 INTERFACES= ../login/qdmdialog.ui 48 INTERFACES= ../login/qdmdialog.ui
49 49
50For unix-login make folloing changes to a line: 50For unix-login make folloing changes to a line:
51 LIBS = -lqpe -lcrypt 51 LIBS = -lqpe -lcrypt
52 52
53For PAM use the following: 53For PAM use the following:
54 LIBS = -lqpe -ldl -lpam 54 LIBS = -lqpe -ldl -lpam
55 55
56 56
57 57
58CONFIGURATION: 58CONFIGURATION:
59 59
diff --git a/core/opie-login/qdmdialogimpl.cpp b/core/opie-login/qdmdialogimpl.cpp
index bb1b453..56f0fc0 100644
--- a/core/opie-login/qdmdialogimpl.cpp
+++ b/core/opie-login/qdmdialogimpl.cpp
@@ -47,49 +47,49 @@
47#include <stdio.h> 47#include <stdio.h>
48#include <errno.h> 48#include <errno.h>
49#include <unistd.h> 49#include <unistd.h>
50 50
51#include <sys/types.h> 51#include <sys/types.h>
52#include <sys/stat.h> 52#include <sys/stat.h>
53#include <sys/sem.h> 53#include <sys/sem.h>
54#include <sys/shm.h> 54#include <sys/shm.h>
55#include <sys/ipc.h> 55#include <sys/ipc.h>
56 56
57#include <global.h> 57#include <global.h>
58 58
59#if defined(QT_QWS_LOGIN_USEPAM) 59#if defined(QT_QWS_LOGIN_USEPAM)
60extern "C" { 60extern "C" {
61#include <security/pam_appl.h> 61#include <security/pam_appl.h>
62} 62}
63#else 63#else
64#define _XOPEN_SOURCE 64#define _XOPEN_SOURCE
65#include <unistd.h> 65#include <unistd.h>
66#include <crypt.h> 66#include <crypt.h>
67#endif 67#endif
68 68
69 69
70#include "qdmdialogimpl.h" 70#include "qdmdialogimpl.h"
71#include "../taskbar/inputmethods.h" 71#include "../launcher/inputmethods.h"
72 72
73 73
74//---------------------------------------------------------------------------- 74//----------------------------------------------------------------------------
75 75
76//-- taken from semctl man page 76//-- taken from semctl man page
77#if defined(__GNU_LIBRARY__) && !defined(_SEM_SEMUN_UNDEFINED) 77#if defined(__GNU_LIBRARY__) && !defined(_SEM_SEMUN_UNDEFINED)
78//-- union semun is defined by including <sys/sem.h> 78//-- union semun is defined by including <sys/sem.h>
79#else 79#else
80//-- according to X/OPEN we have to define it ourselves 80//-- according to X/OPEN we have to define it ourselves
81union semun { 81union semun {
82 int val; // value for SETVAL 82 int val; // value for SETVAL
83 struct semid_ds *buf; // buffer for IPC_STAT, IPC_SET 83 struct semid_ds *buf; // buffer for IPC_STAT, IPC_SET
84 unsigned short int *array; // array for GETALL, SETALL 84 unsigned short int *array; // array for GETALL, SETALL
85 struct seminfo *__buf; // buffer for IPC_INFO 85 struct seminfo *__buf; // buffer for IPC_INFO
86}; 86};
87#endif 87#endif
88 88
89//---------------------------------------------------------------------------- 89//----------------------------------------------------------------------------
90 90
91static const int ShowClockFreq = 1; 91static const int ShowClockFreq = 1;
92 92
93QDM_SHOWNUSERS; 93QDM_SHOWNUSERS;
94 94
95#ifdef QT_QWS_LOGIN_USEPAM 95#ifdef QT_QWS_LOGIN_USEPAM