author | drw <drw> | 2005-02-06 23:12:25 (UTC) |
---|---|---|
committer | drw <drw> | 2005-02-06 23:12:25 (UTC) |
commit | 5652634e4ff03370564925ce0856b260c001dc0f (patch) (unidiff) | |
tree | 614cbdec8ff9f4f674a9cb4e5caf44cce1def4f8 /core/pim/addressbook/addressbook.h | |
parent | 266d71ee80151b3c97671acc95275aa65b682388 (diff) | |
download | opie-5652634e4ff03370564925ce0856b260c001dc0f.zip opie-5652634e4ff03370564925ce0856b260c001dc0f.tar.gz opie-5652634e4ff03370564925ce0856b260c001dc0f.tar.bz2 |
Convert to OPimMainWindow and UI tweaks. There is still a couple items yet to do...
Diffstat (limited to 'core/pim/addressbook/addressbook.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/addressbook/addressbook.h | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/core/pim/addressbook/addressbook.h b/core/pim/addressbook/addressbook.h index 7cc61bf..b04e2cc 100644 --- a/core/pim/addressbook/addressbook.h +++ b/core/pim/addressbook/addressbook.h | |||
@@ -24,5 +24,6 @@ | |||
24 | // #define __DEBUG_RELEASE | 24 | // #define __DEBUG_RELEASE |
25 | 25 | ||
26 | #include <qmainwindow.h> | 26 | #include <opie2/opimmainwindow.h> |
27 | |||
27 | #include <qvaluelist.h> | 28 | #include <qvaluelist.h> |
28 | #include <qstringlist.h> | 29 | #include <qstringlist.h> |
@@ -42,6 +43,7 @@ class Ir; | |||
42 | class QAction; | 43 | class QAction; |
43 | class LetterPicker; | 44 | class LetterPicker; |
45 | class Opie::OPimRecord; | ||
44 | 46 | ||
45 | class AddressbookWindow: public QMainWindow | 47 | class AddressbookWindow: public Opie::OPimMainWindow |
46 | { | 48 | { |
47 | Q_OBJECT | 49 | Q_OBJECT |
@@ -70,25 +72,32 @@ public slots: | |||
70 | #endif | 72 | #endif |
71 | 73 | ||
74 | protected slots: | ||
75 | int create(); | ||
76 | bool remove( int uid ); | ||
77 | void beam( int uid ); | ||
78 | void show( int uid ); | ||
79 | void edit( int uid ); | ||
80 | void add( const Opie::OPimRecord& ); | ||
81 | |||
72 | private slots: | 82 | private slots: |
83 | void slotItemNew(); | ||
84 | void slotItemEdit(); | ||
85 | void slotItemDuplicate(); | ||
86 | void slotItemDelete(); | ||
87 | void slotItemBeam(); | ||
88 | void slotItemFind(); | ||
89 | void slotConfigure(); | ||
90 | |||
73 | void importvCard(); | 91 | void importvCard(); |
74 | void exportvCard(); | 92 | void exportvCard(); |
75 | void slotListNew(); | ||
76 | /* void slotListView(); */ | ||
77 | void slotListDelete(); | ||
78 | void slotViewBack(); | 93 | void slotViewBack(); |
79 | void slotViewEdit(); | ||
80 | void slotPersonalView(); | 94 | void slotPersonalView(); |
81 | void listIsEmpty( bool ); | ||
82 | /* void slotSettings(); */ | ||
83 | void writeMail(); | 95 | void writeMail(); |
84 | void slotBeam(); | ||
85 | void beamDone( Ir * ); | 96 | void beamDone( Ir * ); |
86 | void slotSetCategory( int ); | 97 | void slotSetCategory( const QString &category ); |
87 | void slotSetLetter( char ); | 98 | void slotSetLetter( char ); |
88 | void slotUpdateToolbar(); | ||
89 | void slotSetFont(int); | 99 | void slotSetFont(int); |
90 | 100 | ||
91 | void slotFindOpen(); | 101 | void slotShowFind( bool show ); |
92 | void slotFindClose(); | ||
93 | void slotFind(); | 102 | void slotFind(); |
94 | void slotNotFound(); | 103 | void slotNotFound(); |
@@ -99,23 +108,17 @@ private slots: | |||
99 | void slotCardView(); | 108 | void slotCardView(); |
100 | 109 | ||
101 | void slotConfig(); | ||
102 | |||
103 | private: | 110 | private: |
104 | void populateCategories(); | ||
105 | |||
106 | QPopupMenu *catMenu; | ||
107 | QToolBar *listTools; | 111 | QToolBar *listTools; |
108 | QToolButton *deleteButton; | ||
109 | enum Panes { paneList=0, paneView, paneEdit }; | 112 | enum Panes { paneList=0, paneView, paneEdit }; |
110 | ContactEditor *abEditor; | 113 | ContactEditor *abEditor; |
111 | LetterPicker *pLabel; | 114 | LetterPicker *pLabel; |
112 | AbView* m_abView; | 115 | AbView* m_abView; |
113 | QWidget *listContainer; | 116 | QWidget *m_listContainer; |
114 | 117 | ||
115 | // Searching stuff | 118 | // Searching stuff |
116 | OFloatBar* searchBar; | 119 | OFloatBar* m_searchBar; |
117 | QLineEdit* searchEdit; | 120 | QLineEdit* m_searchEdit; |
118 | 121 | ||
119 | QAction *actionNew, *actionEdit, *actionTrash, *actionFind, *actionBeam, *actionPersonal, *actionMail; | 122 | QAction *m_actionPersonal, *m_actionMail; |
120 | 123 | ||
121 | int viewMargin; | 124 | int viewMargin; |
@@ -129,7 +132,4 @@ private: | |||
129 | AbConfig m_config; | 132 | AbConfig m_config; |
130 | 133 | ||
131 | QAction* m_tableViewButton; | ||
132 | QAction* m_cardViewButton; | ||
133 | |||
134 | int active_view; | 134 | int active_view; |
135 | }; | 135 | }; |