author | eilers <eilers> | 2002-10-08 12:33:52 (UTC) |
---|---|---|
committer | eilers <eilers> | 2002-10-08 12:33:52 (UTC) |
commit | a194611bf645fe7e2e9e83733ababc587fd42f1d (patch) (unidiff) | |
tree | 2c21a5576bce48dba2fe83f6c849c0d16025a848 /core/pim/addressbook/addressbook.h | |
parent | 333fec32d47ea32de9fb4c8cd378a519785a1ff8 (diff) | |
download | opie-a194611bf645fe7e2e9e83733ababc587fd42f1d.zip opie-a194611bf645fe7e2e9e83733ababc587fd42f1d.tar.gz opie-a194611bf645fe7e2e9e83733ababc587fd42f1d.tar.bz2 |
Joined development branch: It uses the new PIM API
Some features in "View" added by Darwin Zins, but they are
not finished..
Diffstat (limited to 'core/pim/addressbook/addressbook.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/addressbook/addressbook.h | 109 |
1 files changed, 55 insertions, 54 deletions
diff --git a/core/pim/addressbook/addressbook.h b/core/pim/addressbook/addressbook.h index 34ca85d..bf36407 100644 --- a/core/pim/addressbook/addressbook.h +++ b/core/pim/addressbook/addressbook.h | |||
@@ -16,93 +16,94 @@ | |||
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 | #include <qmainwindow.h> | 23 | #include <qmainwindow.h> |
24 | #include <qvaluelist.h> | 24 | #include <qvaluelist.h> |
25 | #include <qstringlist.h> | 25 | #include <qstringlist.h> |
26 | 26 | ||
27 | class ContactEditor; | 27 | class ContactEditor; |
28 | class AbLabel; | 28 | class AbLabel; |
29 | class AbTable; | 29 | class AbTable; |
30 | class QPEToolBar; | 30 | class QPEToolBar; |
31 | class QPopupMenu; | 31 | class QPopupMenu; |
32 | class QToolButton; | 32 | class QToolButton; |
33 | class QDialog; | 33 | class QDialog; |
34 | class Ir; | 34 | class Ir; |
35 | class QAction; | 35 | class QAction; |
36 | class LetterPicker; | 36 | class LetterPicker; |
37 | 37 | ||
38 | class AddressbookWindow: public QMainWindow | 38 | class AddressbookWindow: public QMainWindow |
39 | { | 39 | { |
40 | Q_OBJECT | 40 | Q_OBJECT |
41 | public: | 41 | public: |
42 | AddressbookWindow( QWidget *parent = 0, const char *name = 0, WFlags f = 0 ); | 42 | AddressbookWindow( QWidget *parent = 0, const char *name = 0, WFlags f = 0 ); |
43 | ~AddressbookWindow(); | 43 | ~AddressbookWindow(); |
44 | 44 | ||
45 | protected: | 45 | protected: |
46 | void resizeEvent( QResizeEvent * e ); | 46 | void resizeEvent( QResizeEvent * e ); |
47 | void showList(); | 47 | void showList(); |
48 | void showView(); | 48 | void showView(); |
49 | enum EntryMode { NewEntry=0, EditEntry }; | 49 | enum EntryMode { NewEntry=0, EditEntry }; |
50 | void editPersonal(); | 50 | void editPersonal(); |
51 | void editEntry( EntryMode ); | 51 | void editEntry( EntryMode ); |
52 | void closeEvent( QCloseEvent *e ); | 52 | void closeEvent( QCloseEvent *e ); |
53 | bool save(); | 53 | bool save(); |
54 | 54 | ||
55 | public slots: | 55 | public slots: |
56 | void flush(); | 56 | void flush(); |
57 | void reload(); | 57 | void reload(); |
58 | void appMessage(const QCString &, const QByteArray &); | 58 | void appMessage(const QCString &, const QByteArray &); |
59 | void setDocument( const QString & ); | 59 | void setDocument( const QString & ); |
60 | 60 | ||
61 | private slots: | 61 | private slots: |
62 | void importvCard(); | 62 | void importvCard(); |
63 | void slotListNew(); | 63 | void slotListNew(); |
64 | void slotListView(); | 64 | void slotListView(); |
65 | void slotListDelete(); | 65 | void slotListDelete(); |
66 | void slotViewBack(); | 66 | void slotViewBack(); |
67 | void slotViewEdit(); | 67 | void slotViewEdit(); |
68 | void slotPersonalView(); | 68 | void slotPersonalView(); |
69 | void listIsEmpty( bool ); | 69 | void listIsEmpty( bool ); |
70 | void slotSettings(); | 70 | void slotSettings(); |
71 | void writeMail(); | 71 | void writeMail(); |
72 | void slotBeam(); | 72 | void slotBeam(); |
73 | void beamDone( Ir * ); | 73 | void beamDone( Ir * ); |
74 | void slotFind(); | 74 | void slotFind(); |
75 | void slotSetCategory( int ); | 75 | void slotSetCategory( int ); |
76 | void slotSetLetter( char ); | 76 | void slotSetLetter( char ); |
77 | void slotUpdateToolbar(); | 77 | void slotUpdateToolbar(); |
78 | void slotSetFont(int); | 78 | void slotSetFont(int); |
79 | |||
79 | private: | 80 | private: |
80 | void initFields(); // inititialize our fields... | 81 | void initFields(); // inititialize our fields... |
81 | AbLabel *abView(); | 82 | AbLabel *abView(); |
82 | void populateCategories(); | 83 | void populateCategories(); |
84 | |||
85 | QPopupMenu *catMenu, *fontMenu; | ||
86 | QPEToolBar *listTools; | ||
87 | QToolButton *deleteButton; | ||
88 | QValueList<int> allFields, orderedFields; | ||
89 | QStringList slOrderedFields; | ||
90 | enum Panes { paneList=0, paneView, paneEdit }; | ||
91 | ContactEditor *abEditor; | ||
92 | AbLabel *mView; | ||
93 | LetterPicker *pLabel; | ||
94 | AbTable *abList; | ||
95 | QWidget *listContainer; | ||
83 | 96 | ||
84 | QPopupMenu *catMenu, *fontMenu; | 97 | QAction *actionNew, *actionEdit, *actionTrash, *actionFind, *actionBeam, *actionPersonal, *actionMail; |
85 | QPEToolBar *listTools; | ||
86 | QToolButton *deleteButton; | ||
87 | QValueList<int> allFields, | ||
88 | orderedFields; | ||
89 | QStringList slOrderedFields; | ||
90 | enum Panes { paneList=0, paneView, paneEdit }; | ||
91 | ContactEditor *abEditor; | ||
92 | AbLabel *mView; | ||
93 | LetterPicker *pLabel; | ||
94 | AbTable *abList; | ||
95 | QWidget *listContainer; | ||
96 | 98 | ||
97 | QAction *actionNew, *actionEdit, *actionTrash, *actionFind, *actionBeam, | 99 | bool bAbEditFirstTime; |
98 | *actionPersonal, *actionMail; | 100 | int viewMargin; |
99 | 101 | ||
100 | bool bAbEditFirstTime; | 102 | bool syncing; |
101 | int viewMargin; | 103 | QFont *defaultFont; |
104 | int startFontSize; | ||
102 | 105 | ||
103 | bool syncing; | 106 | bool isLoading; |
104 | QFont *defaultFont; | ||
105 | int startFontSize; | ||
106 | }; | 107 | }; |
107 | 108 | ||
108 | #endif | 109 | #endif |