summaryrefslogtreecommitdiff
path: root/core/pim/addressbook/addressbook.h
Unidiff
Diffstat (limited to 'core/pim/addressbook/addressbook.h') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/addressbook/addressbook.h52
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
@@ -23,7 +23,8 @@
23// Remove this for OPIE releae 1.0 ! 23// Remove this for OPIE releae 1.0 !
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>
29#include <qlineedit.h> 30#include <qlineedit.h>
@@ -41,8 +42,9 @@ class QDialog;
41class Ir; 42class Ir;
42class QAction; 43class QAction;
43class LetterPicker; 44class LetterPicker;
45class Opie::OPimRecord;
44 46
45class AddressbookWindow: public QMainWindow 47class AddressbookWindow: public Opie::OPimMainWindow
46{ 48{
47 Q_OBJECT 49 Q_OBJECT
48public: 50public:
@@ -69,27 +71,34 @@ public slots:
69 // void slotSave(); 71 // void slotSave();
70#endif 72#endif
71 73
74protected 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
72private slots: 82private 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();
95 void slotWrapAround(); 104 void slotWrapAround();
@@ -98,25 +107,19 @@ private slots:
98 void slotListView(); 107 void slotListView();
99 void slotCardView(); 108 void slotCardView();
100 109
101 void slotConfig();
102
103private: 110private:
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;
122 125
@@ -128,9 +131,6 @@ private:
128 131
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};
136 136