-rw-r--r-- | core/pim/addressbook/addressbook.cpp | 4 | ||||
-rw-r--r-- | core/pim/addressbook/addressbook.h | 1 | ||||
-rw-r--r-- | core/pim/addressbook/addressbook.pro | 6 | ||||
-rw-r--r-- | core/pim/addressbook/main.cpp | 17 | ||||
-rw-r--r-- | core/pim/datebook/datebook.h | 1 | ||||
-rw-r--r-- | core/pim/datebook/datebook.pro | 4 | ||||
-rw-r--r-- | core/pim/datebook/main.cpp | 19 | ||||
-rw-r--r-- | core/pim/osearch/main.cpp | 11 | ||||
-rw-r--r-- | core/pim/osearch/osearch.pro | 17 | ||||
-rw-r--r-- | core/pim/today/today.pro | 18 | ||||
-rw-r--r-- | noncore/apps/opie-reader/opie-reader.control | 2 | ||||
-rw-r--r-- | noncore/multimedia/opierec/main.cpp | 12 | ||||
-rw-r--r-- | noncore/multimedia/opierec/opierec.pro | 4 | ||||
-rw-r--r-- | noncore/multimedia/opierec/qtrec.h | 1 |
14 files changed, 31 insertions, 86 deletions
diff --git a/core/pim/addressbook/addressbook.cpp b/core/pim/addressbook/addressbook.cpp index 0ba024e..438c270 100644 --- a/core/pim/addressbook/addressbook.cpp +++ b/core/pim/addressbook/addressbook.cpp | |||
@@ -247,48 +247,52 @@ AddressbookWindow::AddressbookWindow( QWidget *parent, const char *name, | |||
247 | 247 | ||
248 | 248 | ||
249 | QObject::connect( m_abView, SIGNAL(signalNotFound()), this, SLOT(slotNotFound()) ); | 249 | QObject::connect( m_abView, SIGNAL(signalNotFound()), this, SLOT(slotNotFound()) ); |
250 | 250 | ||
251 | // m_abView->load(); // Already done by c'tor . | 251 | // m_abView->load(); // Already done by c'tor . |
252 | 252 | ||
253 | // Letter Picker | 253 | // Letter Picker |
254 | pLabel = new LetterPicker( listContainer ); | 254 | pLabel = new LetterPicker( listContainer ); |
255 | connect(pLabel, SIGNAL(letterClicked(char)), this, SLOT(slotSetLetter(char))); | 255 | connect(pLabel, SIGNAL(letterClicked(char)), this, SLOT(slotSetLetter(char))); |
256 | connect(m_abView, SIGNAL( signalClearLetterPicker() ), pLabel, SLOT( clear() ) ); | 256 | connect(m_abView, SIGNAL( signalClearLetterPicker() ), pLabel, SLOT( clear() ) ); |
257 | 257 | ||
258 | vb->addWidget( pLabel ); | 258 | vb->addWidget( pLabel ); |
259 | 259 | ||
260 | // All Categories into view-menu.. | 260 | // All Categories into view-menu.. |
261 | populateCategories(); | 261 | populateCategories(); |
262 | 262 | ||
263 | // Fontsize | 263 | // Fontsize |
264 | defaultFont = new QFont( m_abView->font() ); | 264 | defaultFont = new QFont( m_abView->font() ); |
265 | slotSetFont(m_config.fontSize()); | 265 | slotSetFont(m_config.fontSize()); |
266 | m_curFontSize = m_config.fontSize(); | 266 | m_curFontSize = m_config.fontSize(); |
267 | 267 | ||
268 | setCentralWidget(listContainer); | 268 | setCentralWidget(listContainer); |
269 | 269 | ||
270 | // qDebug("adressbook contrsuction: t=%d", t.elapsed() ); | 270 | // qDebug("adressbook contrsuction: t=%d", t.elapsed() ); |
271 | connect( qApp, SIGNAL( flush() ), this, SLOT( flush() ) ); | ||
272 | connect( qApp, SIGNAL( reload() ), this, SLOT( reload() ) ); | ||
273 | connect( qApp, SIGNAL( appMessage(const QCString &, const QByteArray &) ), | ||
274 | this, SLOT( appMessage(const QCString &, const QByteArray &) ) ); | ||
271 | 275 | ||
272 | 276 | ||
273 | isLoading = false; | 277 | isLoading = false; |
274 | } | 278 | } |
275 | 279 | ||
276 | 280 | ||
277 | void AddressbookWindow::slotConfig() | 281 | void AddressbookWindow::slotConfig() |
278 | { | 282 | { |
279 | ConfigDlg* dlg = new ConfigDlg( this, "Config" ); | 283 | ConfigDlg* dlg = new ConfigDlg( this, "Config" ); |
280 | dlg -> setConfig( m_config ); | 284 | dlg -> setConfig( m_config ); |
281 | dlg -> showMaximized(); | 285 | dlg -> showMaximized(); |
282 | if ( dlg -> exec() ) { | 286 | if ( dlg -> exec() ) { |
283 | qWarning ("Config Dialog accepted!"); | 287 | qWarning ("Config Dialog accepted!"); |
284 | m_config = dlg -> getConfig(); | 288 | m_config = dlg -> getConfig(); |
285 | if ( m_curFontSize != m_config.fontSize() ){ | 289 | if ( m_curFontSize != m_config.fontSize() ){ |
286 | qWarning("Font was changed!"); | 290 | qWarning("Font was changed!"); |
287 | m_curFontSize = m_config.fontSize(); | 291 | m_curFontSize = m_config.fontSize(); |
288 | emit slotSetFont( m_curFontSize ); | 292 | emit slotSetFont( m_curFontSize ); |
289 | } | 293 | } |
290 | m_abView -> setListOrder( m_config.orderList() ); | 294 | m_abView -> setListOrder( m_config.orderList() ); |
291 | } | 295 | } |
292 | 296 | ||
293 | delete dlg; | 297 | delete dlg; |
294 | } | 298 | } |
diff --git a/core/pim/addressbook/addressbook.h b/core/pim/addressbook/addressbook.h index f7a560a..34bcb2a 100644 --- a/core/pim/addressbook/addressbook.h +++ b/core/pim/addressbook/addressbook.h | |||
@@ -27,48 +27,49 @@ | |||
27 | #include <qvaluelist.h> | 27 | #include <qvaluelist.h> |
28 | #include <qstringlist.h> | 28 | #include <qstringlist.h> |
29 | #include <qlineedit.h> | 29 | #include <qlineedit.h> |
30 | #include "ofloatbar.h" | 30 | #include "ofloatbar.h" |
31 | #include "abview.h" | 31 | #include "abview.h" |
32 | #include "abconfig.h" | 32 | #include "abconfig.h" |
33 | 33 | ||
34 | class ContactEditor; | 34 | class ContactEditor; |
35 | class AbLabel; | 35 | class AbLabel; |
36 | class AbTable; | 36 | class AbTable; |
37 | class QPEToolBar; | 37 | class QPEToolBar; |
38 | class QPopupMenu; | 38 | class QPopupMenu; |
39 | class QToolButton; | 39 | class QToolButton; |
40 | class QDialog; | 40 | class QDialog; |
41 | class Ir; | 41 | class Ir; |
42 | class QAction; | 42 | class QAction; |
43 | class LetterPicker; | 43 | class LetterPicker; |
44 | 44 | ||
45 | class AddressbookWindow: public QMainWindow | 45 | class AddressbookWindow: public QMainWindow |
46 | { | 46 | { |
47 | Q_OBJECT | 47 | Q_OBJECT |
48 | public: | 48 | public: |
49 | enum EntryMode { NewEntry=0, EditEntry }; | 49 | enum EntryMode { NewEntry=0, EditEntry }; |
50 | 50 | ||
51 | static QString appName() { return QString::fromLatin1("addressbook"); } | ||
51 | AddressbookWindow( QWidget *parent = 0, const char *name = 0, WFlags f = 0 ); | 52 | AddressbookWindow( QWidget *parent = 0, const char *name = 0, WFlags f = 0 ); |
52 | ~AddressbookWindow(); | 53 | ~AddressbookWindow(); |
53 | 54 | ||
54 | protected: | 55 | protected: |
55 | void resizeEvent( QResizeEvent * e ); | 56 | void resizeEvent( QResizeEvent * e ); |
56 | 57 | ||
57 | void editPersonal(); | 58 | void editPersonal(); |
58 | void editEntry( EntryMode ); | 59 | void editEntry( EntryMode ); |
59 | void closeEvent( QCloseEvent *e ); | 60 | void closeEvent( QCloseEvent *e ); |
60 | bool save(); | 61 | bool save(); |
61 | 62 | ||
62 | public slots: | 63 | public slots: |
63 | void flush(); | 64 | void flush(); |
64 | void reload(); | 65 | void reload(); |
65 | void appMessage(const QCString &, const QByteArray &); | 66 | void appMessage(const QCString &, const QByteArray &); |
66 | void setDocument( const QString & ); | 67 | void setDocument( const QString & ); |
67 | #ifdef __DEBUG_RELEASE | 68 | #ifdef __DEBUG_RELEASE |
68 | // void slotSave(); | 69 | // void slotSave(); |
69 | #endif | 70 | #endif |
70 | 71 | ||
71 | private slots: | 72 | private slots: |
72 | void importvCard(); | 73 | void importvCard(); |
73 | void exportvCard(); | 74 | void exportvCard(); |
74 | void slotListNew(); | 75 | void slotListNew(); |
diff --git a/core/pim/addressbook/addressbook.pro b/core/pim/addressbook/addressbook.pro index c90568a..6a04e22 100644 --- a/core/pim/addressbook/addressbook.pro +++ b/core/pim/addressbook/addressbook.pro | |||
@@ -1,28 +1,26 @@ | |||
1 | TEMPLATE= app | 1 | #CONFIG = qt warn_on release quick-app |
2 | #CONFIG = qt warn_on release | 2 | CONFIG = qt warn_on debug quick-app |
3 | CONFIG = qt warn_on debug | ||
4 | DESTDIR = $(OPIEDIR)/bin | ||
5 | HEADERS= addressbook.h \ | 3 | HEADERS= addressbook.h \ |
6 | contacteditor.h \ | 4 | contacteditor.h \ |
7 | ablabel.h \ | 5 | ablabel.h \ |
8 | abtable.h \ | 6 | abtable.h \ |
9 | picker.h \ | 7 | picker.h \ |
10 | ofloatbar.h \ | 8 | ofloatbar.h \ |
11 | configdlg.h \ | 9 | configdlg.h \ |
12 | abconfig.h \ | 10 | abconfig.h \ |
13 | abview.h | 11 | abview.h |
14 | SOURCES= main.cpp \ | 12 | SOURCES= main.cpp \ |
15 | addressbook.cpp \ | 13 | addressbook.cpp \ |
16 | contacteditor.cpp \ | 14 | contacteditor.cpp \ |
17 | ablabel.cpp \ | 15 | ablabel.cpp \ |
18 | abtable.cpp \ | 16 | abtable.cpp \ |
19 | picker.cpp \ | 17 | picker.cpp \ |
20 | configdlg.cpp \ | 18 | configdlg.cpp \ |
21 | abconfig.cpp \ | 19 | abconfig.cpp \ |
22 | abview.cpp | 20 | abview.cpp |
23 | 21 | ||
24 | INTERFACES= configdlg_base.ui | 22 | INTERFACES= configdlg_base.ui |
25 | TARGET = addressbook | 23 | TARGET = addressbook |
26 | INCLUDEPATH += $(OPIEDIR)/include | 24 | INCLUDEPATH += $(OPIEDIR)/include |
27 | DEPENDPATH+= $(OPIEDIR)/include | 25 | DEPENDPATH+= $(OPIEDIR)/include |
28 | LIBS += -lqpe -lopie | 26 | LIBS += -lqpe -lopie |
diff --git a/core/pim/addressbook/main.cpp b/core/pim/addressbook/main.cpp index 2ea1819..97bfa6d 100644 --- a/core/pim/addressbook/main.cpp +++ b/core/pim/addressbook/main.cpp | |||
@@ -1,41 +1,28 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. | 2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of Qt Palmtop Environment. | 4 | ** This file is part of Qt Palmtop Environment. |
5 | ** | 5 | ** |
6 | ** This file may be distributed and/or modified under the terms of the | 6 | ** This file may be distributed and/or modified under the terms of the |
7 | ** GNU General Public License version 2 as published by the Free Software | 7 | ** GNU General Public License version 2 as published by the Free Software |
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | 8 | ** Foundation and appearing in the file LICENSE.GPL included in the |
9 | ** packaging of this file. | 9 | ** packaging of this file. |
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 | 20 | ||
21 | #include "addressbook.h" | 21 | #include "addressbook.h" |
22 | 22 | ||
23 | #include <qpe/qpeapplication.h> | 23 | #include <qpe/qpeapplication.h> |
24 | #include <qpe/qcopenvelope_qws.h> | ||
25 | #include <qstring.h> | ||
26 | 24 | ||
27 | int main( int argc, char ** argv ) | 25 | #include <opie/oapplicationfactory.h> |
28 | { | ||
29 | QPEApplication a( argc, argv ); | ||
30 | 26 | ||
31 | AddressbookWindow mw; | 27 | OPIE_EXPORT_APP( OApplicationFactory<AddressbookWindow> ) |
32 | QObject::connect( &a, SIGNAL( flush() ), &mw, SLOT( flush() ) ); | ||
33 | QObject::connect( &a, SIGNAL( reload() ), &mw, SLOT( reload() ) ); | ||
34 | QObject::connect( &a, SIGNAL( appMessage(const QCString &, const QByteArray &) ), | ||
35 | &mw, SLOT( appMessage(const QCString &, const QByteArray &) ) ); | ||
36 | 28 | ||
37 | mw.setCaption( AddressbookWindow::tr("Contacts") ); | ||
38 | a.showMainDocumentWidget(&mw); | ||
39 | |||
40 | return a.exec(); | ||
41 | } | ||
diff --git a/core/pim/datebook/datebook.h b/core/pim/datebook/datebook.h index eeb8666..d7cfb33 100644 --- a/core/pim/datebook/datebook.h +++ b/core/pim/datebook/datebook.h | |||
@@ -26,48 +26,49 @@ | |||
26 | 26 | ||
27 | enum { DAY=1,WEEK,WEEKLST,MONTH };// defaultView values | 27 | enum { DAY=1,WEEK,WEEKLST,MONTH };// defaultView values |
28 | enum { NONE=0,NORMAL,EXTENDED };// WeekLstView's modes. | 28 | enum { NONE=0,NORMAL,EXTENDED };// WeekLstView's modes. |
29 | 29 | ||
30 | class QAction; | 30 | class QAction; |
31 | class QWidgetStack; | 31 | class QWidgetStack; |
32 | class DateBookDay; | 32 | class DateBookDay; |
33 | class DateBookWeek; | 33 | class DateBookWeek; |
34 | class DateBookWeekLst; | 34 | class DateBookWeekLst; |
35 | class DateBookMonth; | 35 | class DateBookMonth; |
36 | class Event; | 36 | class Event; |
37 | class QDate; | 37 | class QDate; |
38 | class Ir; | 38 | class Ir; |
39 | 39 | ||
40 | class DateBookDBHack : public DateBookDB { | 40 | class DateBookDBHack : public DateBookDB { |
41 | public: | 41 | public: |
42 | Event eventByUID(int id); | 42 | Event eventByUID(int id); |
43 | }; | 43 | }; |
44 | 44 | ||
45 | class DateBook : public QMainWindow | 45 | class DateBook : public QMainWindow |
46 | { | 46 | { |
47 | Q_OBJECT | 47 | Q_OBJECT |
48 | 48 | ||
49 | public: | 49 | public: |
50 | static QString appName() { return QString::fromLatin1("datebook"); } | ||
50 | DateBook( QWidget *parent = 0, const char *name = 0, WFlags f = 0 ); | 51 | DateBook( QWidget *parent = 0, const char *name = 0, WFlags f = 0 ); |
51 | ~DateBook(); | 52 | ~DateBook(); |
52 | 53 | ||
53 | signals: | 54 | signals: |
54 | void newEvent(); | 55 | void newEvent(); |
55 | void signalNotFound(); | 56 | void signalNotFound(); |
56 | void signalWrapAround(); | 57 | void signalWrapAround(); |
57 | 58 | ||
58 | protected: | 59 | protected: |
59 | QDate currentDate(); | 60 | QDate currentDate(); |
60 | void timerEvent( QTimerEvent *e ); | 61 | void timerEvent( QTimerEvent *e ); |
61 | void closeEvent( QCloseEvent *e ); | 62 | void closeEvent( QCloseEvent *e ); |
62 | 63 | ||
63 | void view(int v, const QDate &d); | 64 | void view(int v, const QDate &d); |
64 | 65 | ||
65 | public slots: | 66 | public slots: |
66 | void flush(); | 67 | void flush(); |
67 | void reload(); | 68 | void reload(); |
68 | 69 | ||
69 | private slots: | 70 | private slots: |
70 | void fileNew(); | 71 | void fileNew(); |
71 | void slotNewEntry(const QDateTime &start, const QDateTime &end, const QString &str, const QString &location=0); | 72 | void slotNewEntry(const QDateTime &start, const QDateTime &end, const QString &str, const QString &location=0); |
72 | void slotSettings(); | 73 | void slotSettings(); |
73 | void slotToday();// view today | 74 | void slotToday();// view today |
diff --git a/core/pim/datebook/datebook.pro b/core/pim/datebook/datebook.pro index ae30c8d..6f2d775 100644 --- a/core/pim/datebook/datebook.pro +++ b/core/pim/datebook/datebook.pro | |||
@@ -1,27 +1,25 @@ | |||
1 | TEMPLATE= app | 1 | CONFIG += qt warn_on release quick-app |
2 | CONFIG += qt warn_on release | ||
3 | DESTDIR = $(OPIEDIR)/bin | ||
4 | HEADERS= datebookday.h \ | 2 | HEADERS= datebookday.h \ |
5 | datebook.h \ | 3 | datebook.h \ |
6 | dateentryimpl.h \ | 4 | dateentryimpl.h \ |
7 | datebookdayheaderimpl.h \ | 5 | datebookdayheaderimpl.h \ |
8 | datebooksettings.h \ | 6 | datebooksettings.h \ |
9 | datebookweek.h \ | 7 | datebookweek.h \ |
10 | datebookweeklst.h \ | 8 | datebookweeklst.h \ |
11 | datebookweekheaderimpl.h \ | 9 | datebookweekheaderimpl.h \ |
12 | repeatentry.h \ | 10 | repeatentry.h \ |
13 | noteentryimpl.h \ | 11 | noteentryimpl.h \ |
14 | onoteedit.h \ | 12 | onoteedit.h \ |
15 | datebookdayallday.h | 13 | datebookdayallday.h |
16 | SOURCES= main.cpp \ | 14 | SOURCES= main.cpp \ |
17 | datebookday.cpp \ | 15 | datebookday.cpp \ |
18 | datebook.cpp \ | 16 | datebook.cpp \ |
19 | dateentryimpl.cpp \ | 17 | dateentryimpl.cpp \ |
20 | datebookdayheaderimpl.cpp \ | 18 | datebookdayheaderimpl.cpp \ |
21 | datebooksettings.cpp \ | 19 | datebooksettings.cpp \ |
22 | datebookweek.cpp \ | 20 | datebookweek.cpp \ |
23 | datebookweeklst.cpp \ | 21 | datebookweeklst.cpp \ |
24 | datebookweekheaderimpl.cpp \ | 22 | datebookweekheaderimpl.cpp \ |
25 | repeatentry.cpp \ | 23 | repeatentry.cpp \ |
26 | noteentryimpl.cpp \ | 24 | noteentryimpl.cpp \ |
27 | onoteedit.cpp \ | 25 | onoteedit.cpp \ |
diff --git a/core/pim/datebook/main.cpp b/core/pim/datebook/main.cpp index caa5fb6..8004690 100644 --- a/core/pim/datebook/main.cpp +++ b/core/pim/datebook/main.cpp | |||
@@ -1,38 +1,25 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. | 2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of Qtopia Environment. | 4 | ** This file is part of Qtopia Environment. |
5 | ** | 5 | ** |
6 | ** This file may be distributed and/or modified under the terms of the | 6 | ** This file may be distributed and/or modified under the terms of the |
7 | ** GNU General Public License version 2 as published by the Free Software | 7 | ** GNU General Public License version 2 as published by the Free Software |
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | 8 | ** Foundation and appearing in the file LICENSE.GPL included in the |
9 | ** packaging of this file. | 9 | ** packaging of this file. |
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 | 20 | ||
21 | #include "datebook.h" | 21 | #include "datebook.h" |
22 | #include <qpe/qpeapplication.h> | 22 | #include <qpe/qpeapplication.h> |
23 | 23 | #include <opie/oapplicationfactory.h> | |
24 | 24 | ||
25 | int main( int argc, char **argv ) | 25 | OPIE_EXPORT_APP( OApplicationFactory<DateBook> ) |
26 | { | ||
27 | QPEApplication a( argc, argv ); | ||
28 | |||
29 | DateBook e; | ||
30 | QObject::connect( &a, SIGNAL( flush() ), &e, SLOT( flush() ) ); | ||
31 | QObject::connect( &a, SIGNAL( reload() ), &e, SLOT( reload() ) ); | ||
32 | |||
33 | |||
34 | e.setCaption( DateBook::tr("Calendar") ); | ||
35 | a.showMainWidget(&e); | ||
36 | |||
37 | return a.exec(); | ||
38 | } | ||
diff --git a/core/pim/osearch/main.cpp b/core/pim/osearch/main.cpp index 6c18adb..9a03818 100644 --- a/core/pim/osearch/main.cpp +++ b/core/pim/osearch/main.cpp | |||
@@ -1,14 +1,7 @@ | |||
1 | 1 | ||
2 | #include "mainwindow.h" | 2 | #include "mainwindow.h" |
3 | 3 | ||
4 | #include <qpe/qpeapplication.h> | 4 | #include <qpe/qpeapplication.h> |
5 | #include <opie/oapplicationfactory.h> | ||
5 | 6 | ||
6 | int main( int argc, char ** argv ) | 7 | OPIE_EXPORT_APP( OApplicationFactory<MainWindow> ) |
7 | { | ||
8 | |||
9 | QPEApplication a( argc, argv ); | ||
10 | MainWindow mw; | ||
11 | mw.showMaximized(); | ||
12 | a.showMainDocumentWidget( &mw ); | ||
13 | return a.exec(); | ||
14 | } | ||
diff --git a/core/pim/osearch/osearch.pro b/core/pim/osearch/osearch.pro index 2e571e3..c988f48 100644 --- a/core/pim/osearch/osearch.pro +++ b/core/pim/osearch/osearch.pro | |||
@@ -1,40 +1,39 @@ | |||
1 | DEPENDPATH += $(OPIEDIR)/include | 1 | CONFIG += qt release warn_on quick-app |
2 | LIBS += -lqpe -lopie | ||
3 | INTERFACES = | ||
4 | include ( $(OPIEDIR)/include.pro ) | ||
5 | TEMPLATE = app | ||
6 | CONFIG += debug warn_on qt | ||
7 | DESTDIR = $(OPIEDIR)/bin | ||
8 | TARGET = osearch | ||
9 | INCLUDEPATH = $(OPIEDIR)/include | ||
10 | SOURCES += main.cpp \ | 2 | SOURCES += main.cpp \ |
11 | mainwindow.cpp \ | 3 | mainwindow.cpp \ |
12 | olistview.cpp \ | 4 | olistview.cpp \ |
13 | olistviewitem.cpp \ | 5 | olistviewitem.cpp \ |
14 | adresssearch.cpp \ | 6 | adresssearch.cpp \ |
15 | todosearch.cpp \ | 7 | todosearch.cpp \ |
16 | datebooksearch.cpp \ | 8 | datebooksearch.cpp \ |
17 | searchgroup.cpp \ | 9 | searchgroup.cpp \ |
18 | resultitem.cpp \ | 10 | resultitem.cpp \ |
19 | todoitem.cpp \ | 11 | todoitem.cpp \ |
20 | contactitem.cpp \ | 12 | contactitem.cpp \ |
21 | eventitem.cpp \ | 13 | eventitem.cpp \ |
22 | applnksearch.cpp \ | 14 | applnksearch.cpp \ |
23 | applnkitem.cpp \ | 15 | applnkitem.cpp \ |
24 | doclnkitem.cpp \ | 16 | doclnkitem.cpp \ |
25 | doclnksearch.cpp | 17 | doclnksearch.cpp |
26 | HEADERS += mainwindow.h \ | 18 | HEADERS += mainwindow.h \ |
27 | olistview.h \ | 19 | olistview.h \ |
28 | olistviewitem.h \ | 20 | olistviewitem.h \ |
29 | adresssearch.h \ | 21 | adresssearch.h \ |
30 | todosearch.h \ | 22 | todosearch.h \ |
31 | datebooksearch.h \ | 23 | datebooksearch.h \ |
32 | searchgroup.h \ | 24 | searchgroup.h \ |
33 | resultitem.h \ | 25 | resultitem.h \ |
34 | todoitem.h \ | 26 | todoitem.h \ |
35 | contactitem.h \ | 27 | contactitem.h \ |
36 | eventitem.h \ | 28 | eventitem.h \ |
37 | applnksearch.h \ | 29 | applnksearch.h \ |
38 | applnkitem.h \ | 30 | applnkitem.h \ |
39 | doclnkitem.h \ | 31 | doclnkitem.h \ |
40 | doclnksearch.h | 32 | doclnksearch.h |
33 | |||
34 | TARGET= osearch | ||
35 | |||
36 | INCLUDEPATH = $(OPIEDIR)/include | ||
37 | DEPENDPATH += $(OPIEDIR)/include | ||
38 | LIBS += -lqpe -lopie | ||
39 | include ( $(OPIEDIR)/include.pro ) | ||
diff --git a/core/pim/today/today.pro b/core/pim/today/today.pro index 218cab8..26692cc 100644 --- a/core/pim/today/today.pro +++ b/core/pim/today/today.pro | |||
@@ -1,46 +1,30 @@ | |||
1 | CONFIG = qt warn_on | 1 | CONFIG += qt warn on release quick-app |
2 | #CONFIG = qt warn_on release | ||
3 | 2 | ||
4 | HEADERS = today.h todaybase.h todayconfig.h | 3 | HEADERS = today.h todaybase.h todayconfig.h |
5 | SOURCES = today.cpp todaybase.cpp todayconfig.cpp | 4 | SOURCES = today.cpp todaybase.cpp todayconfig.cpp |
6 | INCLUDEPATH+= $(OPIEDIR)/include | 5 | INCLUDEPATH+= $(OPIEDIR)/include |
7 | DEPENDPATH+= $(OPIEDIR)/include | 6 | DEPENDPATH+= $(OPIEDIR)/include |
8 | LIBS += -lqpe -lopie | 7 | LIBS += -lqpe -lopie |
9 | INTERFACES= | 8 | INTERFACES= |
10 | TARGET = today | 9 | TARGET = today |
11 | 10 | ||
12 | TRANSLATIONS = ../../../i18n/de/today.ts \ | 11 | TRANSLATIONS = ../../../i18n/de/today.ts \ |
13 | ../../../i18n/nl/today.ts \ | 12 | ../../../i18n/nl/today.ts \ |
14 | ../../../i18n/xx/today.ts \ | 13 | ../../../i18n/xx/today.ts \ |
15 | ../../../i18n/en/today.ts \ | 14 | ../../../i18n/en/today.ts \ |
16 | ../../../i18n/es/today.ts \ | 15 | ../../../i18n/es/today.ts \ |
17 | ../../../i18n/fr/today.ts \ | 16 | ../../../i18n/fr/today.ts \ |
18 | ../../../i18n/hu/today.ts \ | 17 | ../../../i18n/hu/today.ts \ |
19 | ../../../i18n/ja/today.ts \ | 18 | ../../../i18n/ja/today.ts \ |
20 | ../../../i18n/ko/today.ts \ | 19 | ../../../i18n/ko/today.ts \ |
21 | ../../../i18n/no/today.ts \ | 20 | ../../../i18n/no/today.ts \ |
22 | ../../../i18n/pl/today.ts \ | 21 | ../../../i18n/pl/today.ts \ |
23 | ../../../i18n/pt/today.ts \ | 22 | ../../../i18n/pt/today.ts \ |
24 | ../../../i18n/pt_BR/today.ts \ | 23 | ../../../i18n/pt_BR/today.ts \ |
25 | ../../../i18n/sl/today.ts \ | 24 | ../../../i18n/sl/today.ts \ |
26 | ../../../i18n/zh_CN/today.ts \ | 25 | ../../../i18n/zh_CN/today.ts \ |
27 | ../../../i18n/zh_TW/today.ts \ | 26 | ../../../i18n/zh_TW/today.ts \ |
28 | ../../../i18n/it/today.ts \ | 27 | ../../../i18n/it/today.ts \ |
29 | ../../../i18n/da/today.ts | 28 | ../../../i18n/da/today.ts |
30 | 29 | ||
31 | include ( $(OPIEDIR)/include.pro ) | 30 | include ( $(OPIEDIR)/include.pro ) |
32 | |||
33 | oapp { | ||
34 | TEMPLATE= lib | ||
35 | SOURCES += plugin.cpp | ||
36 | LIBS += -loapp | ||
37 | |||
38 | DESTDIR = $(OPIEDIR)/plugins/app | ||
39 | INCLUDEPATH+= $(OPIEDIR)/core/apps/oapp | ||
40 | DEPENDPATH+= $(OPIEDIR)/core/apps/oapp | ||
41 | } | ||
42 | else { | ||
43 | TEMPLATE= app | ||
44 | SOURCES += main.cpp | ||
45 | DESTDIR = $(OPIEDIR)/bin | ||
46 | } | ||
diff --git a/noncore/apps/opie-reader/opie-reader.control b/noncore/apps/opie-reader/opie-reader.control index eab3ef0..841b040 100644 --- a/noncore/apps/opie-reader/opie-reader.control +++ b/noncore/apps/opie-reader/opie-reader.control | |||
@@ -1,10 +1,10 @@ | |||
1 | Package: opie-reader | 1 | Package: opie-reader |
2 | Files: plugins/application/libreader.so* bin/reader apps/Applications/opie-reader.desktop pics/opie-reader/* | 2 | Files: bin/reader bin/reader apps/Applications/opie-reader.desktop pics/opie-reader/* |
3 | Priority: optional | 3 | Priority: optional |
4 | Section: applications | 4 | Section: applications |
5 | Maintainer: Tim Wentford <timwentford@hotmail.com> | 5 | Maintainer: Tim Wentford <timwentford@hotmail.com> |
6 | Architecture: arm | 6 | Architecture: arm |
7 | Depends: task-opie-minimal | 7 | Depends: task-opie-minimal |
8 | License: GPL | 8 | License: GPL |
9 | Description: E-Book reader | 9 | Description: E-Book reader |
10 | Version: $QPE_VERSION$EXTRAVERSION | 10 | Version: $QPE_VERSION$EXTRAVERSION |
diff --git a/noncore/multimedia/opierec/main.cpp b/noncore/multimedia/opierec/main.cpp index 5f7c02f..4a94800 100644 --- a/noncore/multimedia/opierec/main.cpp +++ b/noncore/multimedia/opierec/main.cpp | |||
@@ -1,22 +1,16 @@ | |||
1 | /*************************************************************************** | 1 | /*************************************************************************** |
2 | main.cpp - main routine | 2 | main.cpp - main routine |
3 | ***************************************************************************/ | 3 | ***************************************************************************/ |
4 | //// main.cpp | 4 | //// main.cpp |
5 | //// copyright 2001, 2002, by L. J. Potter <ljp@llornkcor.com> | 5 | //// copyright 2001, 2002, by L. J. Potter <ljp@llornkcor.com> |
6 | /*************************************************************************** | 6 | /*************************************************************************** |
7 | * This program is free software; you can redistribute it and/or modify * | 7 | * This program is free software; you can redistribute it and/or modify * |
8 | * it under the terms of the GNU General Public License as published by * | 8 | * it under the terms of the GNU General Public License as published by * |
9 | * the Free Software Foundation; either version 2 of the License, or * | 9 | * the Free Software Foundation; either version 2 of the License, or * |
10 | * (at your option) any later version. * | 10 | * (at your option) any later version. * |
11 | ***************************************************************************/ | 11 | ***************************************************************************/ |
12 | #include "qtrec.h" | 12 | #include "qtrec.h" |
13 | #include <qpe/qpeapplication.h> | 13 | #include <qpe/qpeapplication.h> |
14 | 14 | #include <opie/oapplicationfactory.h> | |
15 | int main(int argc, char* argv[]) { | 15 | |
16 | QPEApplication a(argc, argv); | 16 | OPIE_EXPORT_APP( OApplicationFactory<QtRec> ) |
17 | QtRec qtrec; | ||
18 | a.showMainWidget( &qtrec); | ||
19 | return a.exec(); | ||
20 | } | ||
21 | |||
22 | |||
diff --git a/noncore/multimedia/opierec/opierec.pro b/noncore/multimedia/opierec/opierec.pro index 3447f99..aa14864 100644 --- a/noncore/multimedia/opierec/opierec.pro +++ b/noncore/multimedia/opierec/opierec.pro | |||
@@ -1,13 +1,11 @@ | |||
1 | TEMPLATE = app | ||
2 | #CONFIG = qt warn_on debug | 1 | #CONFIG = qt warn_on debug |
3 | CONFIG = qt warn_on release | 2 | CONFIG = qt warn_on release quick-app |
4 | HEADERS = adpcm.h pixmaps.h helpwindow.h qtrec.h device.h wavFile.h | 3 | HEADERS = adpcm.h pixmaps.h helpwindow.h qtrec.h device.h wavFile.h |
5 | SOURCES = adpcm.c helpwindow.cpp main.cpp qtrec.cpp device.cpp wavFile.cpp | 4 | SOURCES = adpcm.c helpwindow.cpp main.cpp qtrec.cpp device.cpp wavFile.cpp |
6 | INCLUDEPATH += $(OPIEDIR)/include | 5 | INCLUDEPATH += $(OPIEDIR)/include |
7 | DEPENDPATH += $(OPIEDIR)/include | 6 | DEPENDPATH += $(OPIEDIR)/include |
8 | LIBS += -lqpe -lstdc++ -lpthread | 7 | LIBS += -lqpe -lstdc++ -lpthread |
9 | INTERFACES = | 8 | INTERFACES = |
10 | TARGET = opierec | 9 | TARGET = opierec |
11 | DESTDIR = $(OPIEDIR)/bin | ||
12 | #TMAKE_CXXFLAGS += -DQT_QWS_VERCEL_IDR -DQWS -fno-exceptions -fno-rtti | 10 | #TMAKE_CXXFLAGS += -DQT_QWS_VERCEL_IDR -DQWS -fno-exceptions -fno-rtti |
13 | include ( $(OPIEDIR)/include.pro ) | 11 | include ( $(OPIEDIR)/include.pro ) |
diff --git a/noncore/multimedia/opierec/qtrec.h b/noncore/multimedia/opierec/qtrec.h index 7965c74..5d6ed62 100644 --- a/noncore/multimedia/opierec/qtrec.h +++ b/noncore/multimedia/opierec/qtrec.h | |||
@@ -35,48 +35,49 @@ class QListView; | |||
35 | class QListViewItem; | 35 | class QListViewItem; |
36 | class QPushButton; | 36 | class QPushButton; |
37 | class QSlider; | 37 | class QSlider; |
38 | class QTabWidget; | 38 | class QTabWidget; |
39 | class QTimer; | 39 | class QTimer; |
40 | class QVBoxLayout; | 40 | class QVBoxLayout; |
41 | class QLineEdit; | 41 | class QLineEdit; |
42 | 42 | ||
43 | #define MAX_TRACKS 2 | 43 | #define MAX_TRACKS 2 |
44 | //#define BUFSIZE 4096 | 44 | //#define BUFSIZE 4096 |
45 | // #define BUFSIZE 8182 //Z default buffer size | 45 | // #define BUFSIZE 8182 //Z default buffer size |
46 | #define BUFSIZE 1024 | 46 | #define BUFSIZE 1024 |
47 | //#define BUFSIZE 2048 | 47 | //#define BUFSIZE 2048 |
48 | #define FRAGSIZE 0x7fff000A; | 48 | #define FRAGSIZE 0x7fff000A; |
49 | 49 | ||
50 | #define WAVE_FORMAT_DVI_ADPCM (0x0011) | 50 | #define WAVE_FORMAT_DVI_ADPCM (0x0011) |
51 | #define WAVE_FORMAT_PCM (0x0001) | 51 | #define WAVE_FORMAT_PCM (0x0001) |
52 | //AFMT_IMA_ADPCM | 52 | //AFMT_IMA_ADPCM |
53 | 53 | ||
54 | class QtRec : public QWidget | 54 | class QtRec : public QWidget |
55 | { | 55 | { |
56 | Q_OBJECT | 56 | Q_OBJECT |
57 | 57 | ||
58 | public: | 58 | public: |
59 | static QString appName() { return QString::fromLatin1("opierec"); } | ||
59 | QtRec( QWidget* parent=0, const char* name=0, WFlags fl=0 ); | 60 | QtRec( QWidget* parent=0, const char* name=0, WFlags fl=0 ); |
60 | ~QtRec(); | 61 | ~QtRec(); |
61 | QSlider *OutputSlider,*InputSlider; | 62 | QSlider *OutputSlider,*InputSlider; |
62 | 63 | ||
63 | public slots: | 64 | public slots: |
64 | private: | 65 | private: |
65 | // int fragment; | 66 | // int fragment; |
66 | int fd1; | 67 | int fd1; |
67 | int secCount; | 68 | int secCount; |
68 | QString timeString; | 69 | QString timeString; |
69 | 70 | ||
70 | QLineEdit *renameBox; | 71 | QLineEdit *renameBox; |
71 | QGroupBox* GroupBox1; | 72 | QGroupBox* GroupBox1; |
72 | QString currentFile; | 73 | QString currentFile; |
73 | QString date, currentFileName, tmpFileName; | 74 | QString date, currentFileName, tmpFileName; |
74 | QTimer *t_timer; | 75 | QTimer *t_timer; |
75 | bool needsStereoOut, paused, playing; | 76 | bool needsStereoOut, paused, playing; |
76 | bool useTmpFile, autoMute; | 77 | bool useTmpFile, autoMute; |
77 | 78 | ||
78 | bool eventFilter( QObject * , QEvent * ); | 79 | bool eventFilter( QObject * , QEvent * ); |
79 | void okRename(); | 80 | void okRename(); |
80 | void cancelRename(); | 81 | void cancelRename(); |
81 | QString getStorage(const QString &); | 82 | QString getStorage(const QString &); |
82 | bool rec(); | 83 | bool rec(); |