author | drw <drw> | 2004-03-25 23:40:52 (UTC) |
---|---|---|
committer | drw <drw> | 2004-03-25 23:40:52 (UTC) |
commit | 98721c16aa480c4a160d3492462cb8f0de783268 (patch) (unidiff) | |
tree | 2be8dcd6cf985d98912cbb18e5d23e4b567396ff /core/pim/addressbook/contacteditor.h | |
parent | 03091cd727701bdb2aa6ac623cd606131546d686 (diff) | |
download | opie-98721c16aa480c4a160d3492462cb8f0de783268.zip opie-98721c16aa480c4a160d3492462cb8f0de783268.tar.gz opie-98721c16aa480c4a160d3492462cb8f0de783268.tar.bz2 |
libopie -> libopie2
Diffstat (limited to 'core/pim/addressbook/contacteditor.h') (more/less context) (show whitespace changes)
-rw-r--r-- | core/pim/addressbook/contacteditor.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/core/pim/addressbook/contacteditor.h b/core/pim/addressbook/contacteditor.h index 72d14a9..1b86e6f 100644 --- a/core/pim/addressbook/contacteditor.h +++ b/core/pim/addressbook/contacteditor.h | |||
@@ -12,26 +12,26 @@ | |||
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 | * | 14 | * |
15 | * This is a rewrite of the abeditor.h file, modified to provide a more | 15 | * This is a rewrite of the abeditor.h file, modified to provide a more |
16 | * intuitive interface to TrollTech's original Address Book editor. This | 16 | * intuitive interface to TrollTech's original Address Book editor. This |
17 | * is made to operate exactly in interface with the exception of name. | 17 | * is made to operate exactly in interface with the exception of name. |
18 | * | 18 | * |
19 | */ | 19 | */ |
20 | 20 | ||
21 | #ifndef CONTACTEDITOR_H | 21 | #ifndef CONTACTEDITOR_H |
22 | #define CONTACTEDITOR_H | 22 | #define CONTACTEDITOR_H |
23 | 23 | ||
24 | #include <opie/ocontact.h> | 24 | #include <opie2/opimcontact.h> |
25 | #include <opie/ocontactfields.h> | 25 | #include <opie2/opimcontactfields.h> |
26 | 26 | ||
27 | #include <qpe/datebookmonth.h> | 27 | #include <qpe/datebookmonth.h> |
28 | 28 | ||
29 | #include <qdialog.h> | 29 | #include <qdialog.h> |
30 | #include <qlist.h> | 30 | #include <qlist.h> |
31 | #include <qmap.h> | 31 | #include <qmap.h> |
32 | #include <qstringlist.h> | 32 | #include <qstringlist.h> |
33 | #include <qwidgetstack.h> | 33 | #include <qwidgetstack.h> |
34 | 34 | ||
35 | const int NAME_LF = 0; | 35 | const int NAME_LF = 0; |
36 | const int NAME_LFM = 1; | 36 | const int NAME_LFM = 1; |
37 | const int NAME_FL = 2; | 37 | const int NAME_FL = 2; |
@@ -47,37 +47,37 @@ class QScrollView; | |||
47 | class QTabWidget; | 47 | class QTabWidget; |
48 | class QMultiLineEdit; | 48 | class QMultiLineEdit; |
49 | class QLineEdit; | 49 | class QLineEdit; |
50 | class QComboBox; | 50 | class QComboBox; |
51 | class QPushButton; | 51 | class QPushButton; |
52 | class CategorySelect; | 52 | class CategorySelect; |
53 | class QLabel; | 53 | class QLabel; |
54 | 54 | ||
55 | class ContactEditor : public QDialog { | 55 | class ContactEditor : public QDialog { |
56 | Q_OBJECT | 56 | Q_OBJECT |
57 | 57 | ||
58 | public: | 58 | public: |
59 | ContactEditor(const OContact &entry, | 59 | ContactEditor(const Opie::OPimContact &entry, |
60 | QWidget *parent = 0, | 60 | QWidget *parent = 0, |
61 | const char *name = 0, | 61 | const char *name = 0, |
62 | WFlags fl = 0 ); | 62 | WFlags fl = 0 ); |
63 | ~ContactEditor(); | 63 | ~ContactEditor(); |
64 | void setNameFocus(); | 64 | void setNameFocus(); |
65 | void setPersonalView( bool personal = true ); | 65 | void setPersonalView( bool personal = true ); |
66 | OContact entry() const { return ent; } | 66 | Opie::OPimContact entry() const { return ent; } |
67 | 67 | ||
68 | public slots: | 68 | public slots: |
69 | void slotNote(); | 69 | void slotNote(); |
70 | void slotName(); | 70 | void slotName(); |
71 | void setEntry(const OContact &entry); | 71 | void setEntry(const Opie::OPimContact &entry); |
72 | 72 | ||
73 | protected slots: | 73 | protected slots: |
74 | void accept(); | 74 | void accept(); |
75 | 75 | ||
76 | private: | 76 | private: |
77 | void init(); | 77 | void init(); |
78 | void saveEntry(); | 78 | void saveEntry(); |
79 | bool isEmpty(); | 79 | bool isEmpty(); |
80 | void cleanupFields(); | 80 | void cleanupFields(); |
81 | void updateDatePicker(); | 81 | void updateDatePicker(); |
82 | QString parseName( QString fullName, int type ); | 82 | QString parseName( QString fullName, int type ); |
83 | void chooserError( int index ); | 83 | void chooserError( int index ); |
@@ -104,27 +104,27 @@ class ContactEditor : public QDialog { | |||
104 | void slotAnniversaryDateChanged( int year, int month, int day); | 104 | void slotAnniversaryDateChanged( int year, int month, int day); |
105 | void slotBirthdayDateChanged( int year, int month, int day); | 105 | void slotBirthdayDateChanged( int year, int month, int day); |
106 | void slotRemoveBirthday(); | 106 | void slotRemoveBirthday(); |
107 | void slotRemoveAnniversary(); | 107 | void slotRemoveAnniversary(); |
108 | void defaultEmailChanged(int); | 108 | void defaultEmailChanged(int); |
109 | 109 | ||
110 | private: | 110 | private: |
111 | enum StackWidgets { TextField = 1, Combo }; | 111 | enum StackWidgets { TextField = 1, Combo }; |
112 | int defaultEmailChooserPosition; | 112 | int defaultEmailChooserPosition; |
113 | void populateDefaultEmailCmb(); | 113 | void populateDefaultEmailCmb(); |
114 | void chooserChange( const QString&, int , QLineEdit*, int ); | 114 | void chooserChange( const QString&, int , QLineEdit*, int ); |
115 | bool cmbChooserChange( int , QWidgetStack*, int ); | 115 | bool cmbChooserChange( int , QWidgetStack*, int ); |
116 | OContactFields contactfields; | 116 | Opie::OPimContactFields contactfields; |
117 | 117 | ||
118 | OContact ent; | 118 | Opie::OPimContact ent; |
119 | 119 | ||
120 | QDialog *dlgNote; | 120 | QDialog *dlgNote; |
121 | QDialog *dlgName; | 121 | QDialog *dlgName; |
122 | 122 | ||
123 | QList<QLineEdit> listValue; | 123 | QList<QLineEdit> listValue; |
124 | QList<QLabel> listName; | 124 | QList<QLabel> listName; |
125 | 125 | ||
126 | QStringList slDynamicEntries; | 126 | QStringList slDynamicEntries; |
127 | QStringList trlDynamicEntries; | 127 | QStringList trlDynamicEntries; |
128 | 128 | ||
129 | bool m_personalView; | 129 | bool m_personalView; |
130 | 130 | ||