author | eilers <eilers> | 2002-10-18 15:42:57 (UTC) |
---|---|---|
committer | eilers <eilers> | 2002-10-18 15:42:57 (UTC) |
commit | 47e60a8dc20f46dd00b9405f7fde122792018627 (patch) (unidiff) | |
tree | b109ca9e9c200e7e47c0e61e8f2e86ba6bf4a37f /core/pim/addressbook/addressbook.h | |
parent | c16dcab3fe45ae7193cbdfb2f62bf7e5482d449b (diff) | |
download | opie-47e60a8dc20f46dd00b9405f7fde122792018627.zip opie-47e60a8dc20f46dd00b9405f7fde122792018627.tar.gz opie-47e60a8dc20f46dd00b9405f7fde122792018627.tar.bz2 |
First attempt of new find entry field.. It still needs some finetuning !
Diffstat (limited to 'core/pim/addressbook/addressbook.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/addressbook/addressbook.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/core/pim/addressbook/addressbook.h b/core/pim/addressbook/addressbook.h index bf36407..b7cf355 100644 --- a/core/pim/addressbook/addressbook.h +++ b/core/pim/addressbook/addressbook.h | |||
@@ -1,109 +1,124 @@ | |||
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 | #ifndef Addressbook_H | 20 | #ifndef Addressbook_H |
21 | #define Addressbook_H | 21 | #define Addressbook_H |
22 | 22 | ||
23 | // Remove this for OPIE releae 1.0 ! | ||
24 | #define __DEBUG_RELEASE | ||
25 | |||
23 | #include <qmainwindow.h> | 26 | #include <qmainwindow.h> |
24 | #include <qvaluelist.h> | 27 | #include <qvaluelist.h> |
25 | #include <qstringlist.h> | 28 | #include <qstringlist.h> |
29 | #include <qlineedit.h> | ||
30 | #include "ofloatbar.h" | ||
26 | 31 | ||
27 | class ContactEditor; | 32 | class ContactEditor; |
28 | class AbLabel; | 33 | class AbLabel; |
29 | class AbTable; | 34 | class AbTable; |
30 | class QPEToolBar; | 35 | class QPEToolBar; |
31 | class QPopupMenu; | 36 | class QPopupMenu; |
32 | class QToolButton; | 37 | class QToolButton; |
33 | class QDialog; | 38 | class QDialog; |
34 | class Ir; | 39 | class Ir; |
35 | class QAction; | 40 | class QAction; |
36 | class LetterPicker; | 41 | class LetterPicker; |
37 | 42 | ||
38 | class AddressbookWindow: public QMainWindow | 43 | class AddressbookWindow: public QMainWindow |
39 | { | 44 | { |
40 | Q_OBJECT | 45 | Q_OBJECT |
41 | public: | 46 | public: |
42 | AddressbookWindow( QWidget *parent = 0, const char *name = 0, WFlags f = 0 ); | 47 | AddressbookWindow( QWidget *parent = 0, const char *name = 0, WFlags f = 0 ); |
43 | ~AddressbookWindow(); | 48 | ~AddressbookWindow(); |
44 | 49 | ||
45 | protected: | 50 | protected: |
46 | void resizeEvent( QResizeEvent * e ); | 51 | void resizeEvent( QResizeEvent * e ); |
47 | void showList(); | 52 | void showList(); |
48 | void showView(); | 53 | void showView(); |
49 | enum EntryMode { NewEntry=0, EditEntry }; | 54 | enum EntryMode { NewEntry=0, EditEntry }; |
50 | void editPersonal(); | 55 | void editPersonal(); |
51 | void editEntry( EntryMode ); | 56 | void editEntry( EntryMode ); |
52 | void closeEvent( QCloseEvent *e ); | 57 | void closeEvent( QCloseEvent *e ); |
53 | bool save(); | 58 | bool save(); |
54 | 59 | ||
55 | public slots: | 60 | public slots: |
56 | void flush(); | 61 | void flush(); |
57 | void reload(); | 62 | void reload(); |
58 | void appMessage(const QCString &, const QByteArray &); | 63 | void appMessage(const QCString &, const QByteArray &); |
59 | void setDocument( const QString & ); | 64 | void setDocument( const QString & ); |
65 | #ifdef __DEBUG_RELEASE | ||
66 | void slotSave(); | ||
67 | #endif | ||
60 | 68 | ||
61 | private slots: | 69 | private slots: |
62 | void importvCard(); | 70 | void importvCard(); |
63 | void slotListNew(); | 71 | void slotListNew(); |
64 | void slotListView(); | 72 | void slotListView(); |
65 | void slotListDelete(); | 73 | void slotListDelete(); |
66 | void slotViewBack(); | 74 | void slotViewBack(); |
67 | void slotViewEdit(); | 75 | void slotViewEdit(); |
68 | void slotPersonalView(); | 76 | void slotPersonalView(); |
69 | void listIsEmpty( bool ); | 77 | void listIsEmpty( bool ); |
70 | void slotSettings(); | 78 | void slotSettings(); |
71 | void writeMail(); | 79 | void writeMail(); |
72 | void slotBeam(); | 80 | void slotBeam(); |
73 | void beamDone( Ir * ); | 81 | void beamDone( Ir * ); |
74 | void slotFind(); | ||
75 | void slotSetCategory( int ); | 82 | void slotSetCategory( int ); |
76 | void slotSetLetter( char ); | 83 | void slotSetLetter( char ); |
77 | void slotUpdateToolbar(); | 84 | void slotUpdateToolbar(); |
78 | void slotSetFont(int); | 85 | void slotSetFont(int); |
79 | 86 | ||
87 | void slotFindOpen(); | ||
88 | void slotFindClose(); | ||
89 | void slotFind(); | ||
90 | void slotFindNext(); | ||
91 | |||
80 | private: | 92 | private: |
81 | void initFields(); // inititialize our fields... | 93 | void initFields(); // inititialize our fields... |
82 | AbLabel *abView(); | 94 | AbLabel *abView(); |
83 | void populateCategories(); | 95 | void populateCategories(); |
84 | 96 | ||
85 | QPopupMenu *catMenu, *fontMenu; | 97 | QPopupMenu *catMenu, *fontMenu; |
86 | QPEToolBar *listTools; | 98 | QPEToolBar *listTools; |
87 | QToolButton *deleteButton; | 99 | QToolButton *deleteButton; |
88 | QValueList<int> allFields, orderedFields; | 100 | QValueList<int> allFields, orderedFields; |
89 | QStringList slOrderedFields; | 101 | QStringList slOrderedFields; |
90 | enum Panes { paneList=0, paneView, paneEdit }; | 102 | enum Panes { paneList=0, paneView, paneEdit }; |
91 | ContactEditor *abEditor; | 103 | ContactEditor *abEditor; |
92 | AbLabel *mView; | 104 | AbLabel *mView; |
93 | LetterPicker *pLabel; | 105 | LetterPicker *pLabel; |
94 | AbTable *abList; | 106 | AbTable *abList; |
95 | QWidget *listContainer; | 107 | QWidget *listContainer; |
96 | 108 | ||
109 | OFloatBar* searchBar; | ||
110 | QLineEdit* searchEdit; | ||
111 | |||
97 | QAction *actionNew, *actionEdit, *actionTrash, *actionFind, *actionBeam, *actionPersonal, *actionMail; | 112 | QAction *actionNew, *actionEdit, *actionTrash, *actionFind, *actionBeam, *actionPersonal, *actionMail; |
98 | 113 | ||
99 | bool bAbEditFirstTime; | 114 | bool bAbEditFirstTime; |
100 | int viewMargin; | 115 | int viewMargin; |
101 | 116 | ||
102 | bool syncing; | 117 | bool syncing; |
103 | QFont *defaultFont; | 118 | QFont *defaultFont; |
104 | int startFontSize; | 119 | int startFontSize; |
105 | 120 | ||
106 | bool isLoading; | 121 | bool isLoading; |
107 | }; | 122 | }; |
108 | 123 | ||
109 | #endif | 124 | #endif |