summaryrefslogtreecommitdiffabout
path: root/kaddressbook
authorulf69 <ulf69>2004-07-14 15:19:43 (UTC)
committer ulf69 <ulf69>2004-07-14 15:19:43 (UTC)
commit7868ec2225272318048026a602b842b38a05347f (patch) (unidiff)
tree5f74a46d29caf601ca52dba4df86cefb21c98e04 /kaddressbook
parent39df2ac65017a41891cd8f856d100378129faa4b (diff)
downloadkdepimpi-7868ec2225272318048026a602b842b38a05347f.zip
kdepimpi-7868ec2225272318048026a602b842b38a05347f.tar.gz
kdepimpi-7868ec2225272318048026a602b842b38a05347f.tar.bz2
implemented automatic update in case of external resource changes (kdirwatch)
Diffstat (limited to 'kaddressbook') (more/less context) (ignore whitespace changes)
-rw-r--r--kaddressbook/kabcore.cpp21
-rw-r--r--kaddressbook/kabcore.h2
2 files changed, 15 insertions, 8 deletions
diff --git a/kaddressbook/kabcore.cpp b/kaddressbook/kabcore.cpp
index 8daca33..2b07541 100644
--- a/kaddressbook/kabcore.cpp
+++ b/kaddressbook/kabcore.cpp
@@ -1007,231 +1007,240 @@ QString KABCore::getNameByPhone( const QString &phone )
1007 QString localPhone( phone ); 1007 QString localPhone( phone );
1008 1008
1009 bool found = false; 1009 bool found = false;
1010 QString ownerName = ""; 1010 QString ownerName = "";
1011 KABC::AddressBook::Iterator iter; 1011 KABC::AddressBook::Iterator iter;
1012 KABC::PhoneNumber::List::Iterator phoneIter; 1012 KABC::PhoneNumber::List::Iterator phoneIter;
1013 KABC::PhoneNumber::List phoneList; 1013 KABC::PhoneNumber::List phoneList;
1014 for ( iter = mAddressBook->begin(); !found && ( iter != mAddressBook->end() ); ++iter ) { 1014 for ( iter = mAddressBook->begin(); !found && ( iter != mAddressBook->end() ); ++iter ) {
1015 phoneList = (*iter).phoneNumbers(); 1015 phoneList = (*iter).phoneNumbers();
1016 for ( phoneIter = phoneList.begin(); !found && ( phoneIter != phoneList.end() ); 1016 for ( phoneIter = phoneList.begin(); !found && ( phoneIter != phoneList.end() );
1017 ++phoneIter) { 1017 ++phoneIter) {
1018 // Get rid of separator chars so just the numbers are compared. 1018 // Get rid of separator chars so just the numbers are compared.
1019 if ( (*phoneIter).number().replace( r, "" ) == localPhone.replace( r, "" ) ) { 1019 if ( (*phoneIter).number().replace( r, "" ) == localPhone.replace( r, "" ) ) {
1020 ownerName = (*iter).formattedName(); 1020 ownerName = (*iter).formattedName();
1021 found = true; 1021 found = true;
1022 } 1022 }
1023 } 1023 }
1024 } 1024 }
1025 1025
1026 return ownerName; 1026 return ownerName;
1027#else //KAB_EMBEDDED 1027#else //KAB_EMBEDDED
1028 qDebug("KABCore::getNameByPhone finsih method"); 1028 qDebug("KABCore::getNameByPhone finsih method");
1029 return ""; 1029 return "";
1030#endif //KAB_EMBEDDED 1030#endif //KAB_EMBEDDED
1031 1031
1032} 1032}
1033 1033
1034void KABCore::openConfigDialog() 1034void KABCore::openConfigDialog()
1035{ 1035{
1036 KCMultiDialog* ConfigureDialog = new KCMultiDialog( "PIM", this ,"kabconfigdialog", true ); 1036 KCMultiDialog* ConfigureDialog = new KCMultiDialog( "PIM", this ,"kabconfigdialog", true );
1037 KCMKabConfig* kabcfg = new KCMKabConfig( ConfigureDialog->getNewVBoxPage(i18n( "Addressbook")) , "KCMKabConfig" ); 1037 KCMKabConfig* kabcfg = new KCMKabConfig( ConfigureDialog->getNewVBoxPage(i18n( "Addressbook")) , "KCMKabConfig" );
1038 ConfigureDialog->addModule(kabcfg ); 1038 ConfigureDialog->addModule(kabcfg );
1039 connect( ConfigureDialog, SIGNAL( applyClicked() ), 1039 connect( ConfigureDialog, SIGNAL( applyClicked() ),
1040 this, SLOT( configurationChanged() ) ); 1040 this, SLOT( configurationChanged() ) );
1041 connect( ConfigureDialog, SIGNAL( okClicked() ), 1041 connect( ConfigureDialog, SIGNAL( okClicked() ),
1042 this, SLOT( configurationChanged() ) ); 1042 this, SLOT( configurationChanged() ) );
1043 saveSettings(); 1043 saveSettings();
1044 ConfigureDialog->showMaximized(); 1044 ConfigureDialog->showMaximized();
1045 if ( ConfigureDialog->exec() ) 1045 if ( ConfigureDialog->exec() )
1046 KMessageBox::information( this, i18n("If you configured \nExtensions,\nplease restart!\n") ); 1046 KMessageBox::information( this, i18n("If you configured \nExtensions,\nplease restart!\n") );
1047 delete ConfigureDialog; 1047 delete ConfigureDialog;
1048} 1048}
1049 1049
1050void KABCore::openLDAPDialog() 1050void KABCore::openLDAPDialog()
1051{ 1051{
1052#ifndef KAB_EMBEDDED 1052#ifndef KAB_EMBEDDED
1053 if ( !mLdapSearchDialog ) { 1053 if ( !mLdapSearchDialog ) {
1054 mLdapSearchDialog = new LDAPSearchDialog( mAddressBook, this ); 1054 mLdapSearchDialog = new LDAPSearchDialog( mAddressBook, this );
1055 connect( mLdapSearchDialog, SIGNAL( addresseesAdded() ), mViewManager, 1055 connect( mLdapSearchDialog, SIGNAL( addresseesAdded() ), mViewManager,
1056 SLOT( refreshView() ) ); 1056 SLOT( refreshView() ) );
1057 connect( mLdapSearchDialog, SIGNAL( addresseesAdded() ), this, 1057 connect( mLdapSearchDialog, SIGNAL( addresseesAdded() ), this,
1058 SLOT( setModified() ) ); 1058 SLOT( setModified() ) );
1059 } else 1059 } else
1060 mLdapSearchDialog->restoreSettings(); 1060 mLdapSearchDialog->restoreSettings();
1061 1061
1062 if ( mLdapSearchDialog->isOK() ) 1062 if ( mLdapSearchDialog->isOK() )
1063 mLdapSearchDialog->exec(); 1063 mLdapSearchDialog->exec();
1064#else //KAB_EMBEDDED 1064#else //KAB_EMBEDDED
1065 qDebug("KABCore::openLDAPDialog() finsih method"); 1065 qDebug("KABCore::openLDAPDialog() finsih method");
1066#endif //KAB_EMBEDDED 1066#endif //KAB_EMBEDDED
1067} 1067}
1068 1068
1069void KABCore::print() 1069void KABCore::print()
1070{ 1070{
1071#ifndef KAB_EMBEDDED 1071#ifndef KAB_EMBEDDED
1072 KPrinter printer; 1072 KPrinter printer;
1073 if ( !printer.setup( this ) ) 1073 if ( !printer.setup( this ) )
1074 return; 1074 return;
1075 1075
1076 KABPrinting::PrintingWizard wizard( &printer, mAddressBook, 1076 KABPrinting::PrintingWizard wizard( &printer, mAddressBook,
1077 mViewManager->selectedUids(), this ); 1077 mViewManager->selectedUids(), this );
1078 1078
1079 wizard.exec(); 1079 wizard.exec();
1080#else //KAB_EMBEDDED 1080#else //KAB_EMBEDDED
1081 qDebug("KABCore::print() finsih method"); 1081 qDebug("KABCore::print() finsih method");
1082#endif //KAB_EMBEDDED 1082#endif //KAB_EMBEDDED
1083 1083
1084} 1084}
1085 1085
1086 1086
1087void KABCore::addGUIClient( KXMLGUIClient *client ) 1087void KABCore::addGUIClient( KXMLGUIClient *client )
1088{ 1088{
1089 if ( mGUIClient ) 1089 if ( mGUIClient )
1090 mGUIClient->insertChildClient( client ); 1090 mGUIClient->insertChildClient( client );
1091 else 1091 else
1092 KMessageBox::error( this, "no KXMLGUICLient"); 1092 KMessageBox::error( this, "no KXMLGUICLient");
1093} 1093}
1094 1094
1095 1095
1096void KABCore::configurationChanged() 1096void KABCore::configurationChanged()
1097{ 1097{
1098 mExtensionManager->reconfigure(); 1098 mExtensionManager->reconfigure();
1099} 1099}
1100 1100
1101void KABCore::addressBookChanged() 1101void KABCore::addressBookChanged()
1102{ 1102{
1103#ifndef KAB_EMBEDDED 1103/*US
1104 QDictIterator<AddresseeEditorDialog> it( mEditorDict ); 1104 QDictIterator<AddresseeEditorDialog> it( mEditorDict );
1105 while ( it.current() ) { 1105 while ( it.current() ) {
1106 if ( it.current()->dirty() ) { 1106 if ( it.current()->dirty() ) {
1107 QString text = i18n( "Data has been changed externally. Unsaved " 1107 QString text = i18n( "Data has been changed externally. Unsaved "
1108 "changes will be lost." ); 1108 "changes will be lost." );
1109 KMessageBox::information( this, text ); 1109 KMessageBox::information( this, text );
1110 } 1110 }
1111 it.current()->setAddressee( mAddressBook->findByUid( it.currentKey() ) ); 1111 it.current()->setAddressee( mAddressBook->findByUid( it.currentKey() ) );
1112 ++it; 1112 ++it;
1113 } 1113 }
1114 1114*/
1115 if (mEditorDialog)
1116 {
1117 if (mEditorDialog->dirty())
1118 {
1119 QString text = i18n( "Data has been changed externally. Unsaved "
1120 "changes will be lost." );
1121 KMessageBox::information( this, text );
1122 }
1123 QString currentuid = mEditorDialog->addressee().uid();
1124 mEditorDialog->setAddressee( mAddressBook->findByUid( currentuid ) );
1125 }
1115 mViewManager->refreshView(); 1126 mViewManager->refreshView();
1116#else //KAB_EMBEDDED 1127
1117 qDebug("KABCore::addressBookChanged() finsih method"); 1128
1118#endif //KAB_EMBEDDED
1119} 1129}
1120 1130
1121AddresseeEditorDialog *KABCore::createAddresseeEditorDialog( QWidget *parent, 1131AddresseeEditorDialog *KABCore::createAddresseeEditorDialog( QWidget *parent,
1122 const char *name ) 1132 const char *name )
1123{ 1133{
1124 1134
1125 if ( mEditorDialog == 0 ) { 1135 if ( mEditorDialog == 0 ) {
1126 mEditorDialog = new AddresseeEditorDialog( this, parent, 1136 mEditorDialog = new AddresseeEditorDialog( this, parent,
1127 name ? name : "editorDialog" ); 1137 name ? name : "editorDialog" );
1128 1138
1129 1139
1130 connect( mEditorDialog, SIGNAL( contactModified( const KABC::Addressee& ) ), 1140 connect( mEditorDialog, SIGNAL( contactModified( const KABC::Addressee& ) ),
1131 SLOT( contactModified( const KABC::Addressee& ) ) ); 1141 SLOT( contactModified( const KABC::Addressee& ) ) );
1132 //connect( mEditorDialog, SIGNAL( editorDestroyed( const QString& ) ), 1142 //connect( mEditorDialog, SIGNAL( editorDestroyed( const QString& ) ),
1133 // SLOT( slotEditorDestroyed( const QString& ) ) ); 1143 // SLOT( slotEditorDestroyed( const QString& ) ) );
1134 } 1144 }
1135 1145
1136 return mEditorDialog; 1146 return mEditorDialog;
1137} 1147}
1138 1148
1139void KABCore::slotEditorDestroyed( const QString &uid ) 1149void KABCore::slotEditorDestroyed( const QString &uid )
1140{ 1150{
1141 qDebug("KABCore::slotEditorDestroyed called. maybe a problem! ");
1142 //mEditorDict.remove( uid ); 1151 //mEditorDict.remove( uid );
1143} 1152}
1144 1153
1145void KABCore::initGUI() 1154void KABCore::initGUI()
1146{ 1155{
1147#ifndef KAB_EMBEDDED 1156#ifndef KAB_EMBEDDED
1148 QHBoxLayout *topLayout = new QHBoxLayout( this ); 1157 QHBoxLayout *topLayout = new QHBoxLayout( this );
1149 topLayout->setSpacing( KDialogBase::spacingHint() ); 1158 topLayout->setSpacing( KDialogBase::spacingHint() );
1150 1159
1151 mExtensionBarSplitter = new QSplitter( this ); 1160 mExtensionBarSplitter = new QSplitter( this );
1152 mExtensionBarSplitter->setOrientation( Qt::Vertical ); 1161 mExtensionBarSplitter->setOrientation( Qt::Vertical );
1153 1162
1154 mDetailsSplitter = new QSplitter( mExtensionBarSplitter ); 1163 mDetailsSplitter = new QSplitter( mExtensionBarSplitter );
1155 1164
1156 QVBox *viewSpace = new QVBox( mDetailsSplitter ); 1165 QVBox *viewSpace = new QVBox( mDetailsSplitter );
1157 mIncSearchWidget = new IncSearchWidget( viewSpace ); 1166 mIncSearchWidget = new IncSearchWidget( viewSpace );
1158 connect( mIncSearchWidget, SIGNAL( doSearch( const QString& ) ), 1167 connect( mIncSearchWidget, SIGNAL( doSearch( const QString& ) ),
1159 SLOT( incrementalSearch( const QString& ) ) ); 1168 SLOT( incrementalSearch( const QString& ) ) );
1160 1169
1161 mViewManager = new ViewManager( this, viewSpace ); 1170 mViewManager = new ViewManager( this, viewSpace );
1162 viewSpace->setStretchFactor( mViewManager, 1 ); 1171 viewSpace->setStretchFactor( mViewManager, 1 );
1163 1172
1164 mDetails = new ViewContainer( mDetailsSplitter ); 1173 mDetails = new ViewContainer( mDetailsSplitter );
1165 1174
1166 mJumpButtonBar = new JumpButtonBar( this, this ); 1175 mJumpButtonBar = new JumpButtonBar( this, this );
1167 1176
1168 mExtensionManager = new ExtensionManager( this, mExtensionBarSplitter ); 1177 mExtensionManager = new ExtensionManager( this, mExtensionBarSplitter );
1169 1178
1170 topLayout->addWidget( mExtensionBarSplitter ); 1179 topLayout->addWidget( mExtensionBarSplitter );
1171 topLayout->setStretchFactor( mExtensionBarSplitter, 100 ); 1180 topLayout->setStretchFactor( mExtensionBarSplitter, 100 );
1172 topLayout->addWidget( mJumpButtonBar ); 1181 topLayout->addWidget( mJumpButtonBar );
1173 topLayout->setStretchFactor( mJumpButtonBar, 1 ); 1182 topLayout->setStretchFactor( mJumpButtonBar, 1 );
1174 1183
1175 mXXPortManager = new XXPortManager( this, this ); 1184 mXXPortManager = new XXPortManager( this, this );
1176 1185
1177#else //KAB_EMBEDDED 1186#else //KAB_EMBEDDED
1178 //US initialize viewMenu before settingup viewmanager. 1187 //US initialize viewMenu before settingup viewmanager.
1179 // Viewmanager needs this menu to plugin submenues. 1188 // Viewmanager needs this menu to plugin submenues.
1180 viewMenu = new QPopupMenu( this ); 1189 viewMenu = new QPopupMenu( this );
1181 settingsMenu = new QPopupMenu( this ); 1190 settingsMenu = new QPopupMenu( this );
1182 //filterMenu = new QPopupMenu( this ); 1191 //filterMenu = new QPopupMenu( this );
1183 ImportMenu = new QPopupMenu( this ); 1192 ImportMenu = new QPopupMenu( this );
1184 ExportMenu = new QPopupMenu( this ); 1193 ExportMenu = new QPopupMenu( this );
1185 1194
1186 changeMenu= new QPopupMenu( this ); 1195 changeMenu= new QPopupMenu( this );
1187 1196
1188//US since we have no splitter for the embedded system, setup 1197//US since we have no splitter for the embedded system, setup
1189// a layout with two frames. One left and one right. 1198// a layout with two frames. One left and one right.
1190 1199
1191 QBoxLayout *topLayout; 1200 QBoxLayout *topLayout;
1192 1201
1193 // = new QHBoxLayout( this ); 1202 // = new QHBoxLayout( this );
1194// QBoxLayout *topLayout = (QBoxLayout*)layout(); 1203// QBoxLayout *topLayout = (QBoxLayout*)layout();
1195 1204
1196// QWidget *mainBox = new QWidget( this ); 1205// QWidget *mainBox = new QWidget( this );
1197// QBoxLayout * mainBoxLayout = new QHBoxLayout(mainBox); 1206// QBoxLayout * mainBoxLayout = new QHBoxLayout(mainBox);
1198 1207
1199#ifdef DESKTOP_VERSION 1208#ifdef DESKTOP_VERSION
1200 topLayout = new QHBoxLayout( this ); 1209 topLayout = new QHBoxLayout( this );
1201 1210
1202 1211
1203 mMiniSplitter = new KDGanttMinimizeSplitter( Qt::Horizontal, this); 1212 mMiniSplitter = new KDGanttMinimizeSplitter( Qt::Horizontal, this);
1204 mMiniSplitter->setMinimizeDirection ( KDGanttMinimizeSplitter::Right ); 1213 mMiniSplitter->setMinimizeDirection ( KDGanttMinimizeSplitter::Right );
1205 1214
1206 topLayout->addWidget(mMiniSplitter ); 1215 topLayout->addWidget(mMiniSplitter );
1207 1216
1208 mExtensionBarSplitter = new KDGanttMinimizeSplitter( Qt::Vertical,mMiniSplitter ); 1217 mExtensionBarSplitter = new KDGanttMinimizeSplitter( Qt::Vertical,mMiniSplitter );
1209 mExtensionBarSplitter->setMinimizeDirection ( KDGanttMinimizeSplitter::Down ); 1218 mExtensionBarSplitter->setMinimizeDirection ( KDGanttMinimizeSplitter::Down );
1210 mViewManager = new ViewManager( this, mExtensionBarSplitter ); 1219 mViewManager = new ViewManager( this, mExtensionBarSplitter );
1211 mDetails = new ViewContainer( mMiniSplitter ); 1220 mDetails = new ViewContainer( mMiniSplitter );
1212 mExtensionManager = new ExtensionManager( this, mExtensionBarSplitter ); 1221 mExtensionManager = new ExtensionManager( this, mExtensionBarSplitter );
1213#else 1222#else
1214 if ( QApplication::desktop()->width() > 480 ) { 1223 if ( QApplication::desktop()->width() > 480 ) {
1215 topLayout = new QHBoxLayout( this ); 1224 topLayout = new QHBoxLayout( this );
1216 mMiniSplitter = new KDGanttMinimizeSplitter( Qt::Horizontal, this); 1225 mMiniSplitter = new KDGanttMinimizeSplitter( Qt::Horizontal, this);
1217 mMiniSplitter->setMinimizeDirection ( KDGanttMinimizeSplitter::Right ); 1226 mMiniSplitter->setMinimizeDirection ( KDGanttMinimizeSplitter::Right );
1218 } else { 1227 } else {
1219 1228
1220 topLayout = new QHBoxLayout( this ); 1229 topLayout = new QHBoxLayout( this );
1221 mMiniSplitter = new KDGanttMinimizeSplitter( Qt::Vertical, this); 1230 mMiniSplitter = new KDGanttMinimizeSplitter( Qt::Vertical, this);
1222 mMiniSplitter->setMinimizeDirection ( KDGanttMinimizeSplitter::Down ); 1231 mMiniSplitter->setMinimizeDirection ( KDGanttMinimizeSplitter::Down );
1223 } 1232 }
1224 1233
1225 topLayout->addWidget(mMiniSplitter ); 1234 topLayout->addWidget(mMiniSplitter );
1226 mViewManager = new ViewManager( this, mMiniSplitter ); 1235 mViewManager = new ViewManager( this, mMiniSplitter );
1227 mDetails = new ViewContainer( mMiniSplitter ); 1236 mDetails = new ViewContainer( mMiniSplitter );
1228 1237
1229 1238
1230 mExtensionManager = new ExtensionManager( this, mMiniSplitter ); 1239 mExtensionManager = new ExtensionManager( this, mMiniSplitter );
1231#endif 1240#endif
1232 //eh->hide(); 1241 //eh->hide();
1233 // topLayout->addWidget(mExtensionManager ); 1242 // topLayout->addWidget(mExtensionManager );
1234 1243
1235 1244
1236/*US 1245/*US
1237#ifndef KAB_NOSPLITTER 1246#ifndef KAB_NOSPLITTER
diff --git a/kaddressbook/kabcore.h b/kaddressbook/kabcore.h
index 69a98a5..6446974 100644
--- a/kaddressbook/kabcore.h
+++ b/kaddressbook/kabcore.h
@@ -263,164 +263,162 @@ class KABCore : public QWidget
263 void newContact(); 263 void newContact();
264 QString getNameByPhone( const QString& phone ); 264 QString getNameByPhone( const QString& phone );
265 /** 265 /**
266 END DCOP METHODS 266 END DCOP METHODS
267 */ 267 */
268 268
269 /** 269 /**
270 Saves the contents of the AddressBook back to disk. 270 Saves the contents of the AddressBook back to disk.
271 */ 271 */
272 void save(); 272 void save();
273 273
274 /** 274 /**
275 Undos the last command using the undo stack. 275 Undos the last command using the undo stack.
276 */ 276 */
277 void undo(); 277 void undo();
278 278
279 /** 279 /**
280 Redos the last command that was undone, using the redo stack. 280 Redos the last command that was undone, using the redo stack.
281 */ 281 */
282 void redo(); 282 void redo();
283 283
284 /** 284 /**
285 Shows the edit dialog for the given uid. If the uid is QString::null, 285 Shows the edit dialog for the given uid. If the uid is QString::null,
286 the method will try to find a selected addressee in the view. 286 the method will try to find a selected addressee in the view.
287 */ 287 */
288 void editContact( const QString &uid /*US = QString::null*/ ); 288 void editContact( const QString &uid /*US = QString::null*/ );
289//US added a second method without defaultparameter 289//US added a second method without defaultparameter
290 void editContact2(); 290 void editContact2();
291 291
292 /** 292 /**
293 Launches the configuration dialog. 293 Launches the configuration dialog.
294 */ 294 */
295 void openConfigDialog(); 295 void openConfigDialog();
296 296
297 /** 297 /**
298 Launches the ldap search dialog. 298 Launches the ldap search dialog.
299 */ 299 */
300 void openLDAPDialog(); 300 void openLDAPDialog();
301 301
302 /** 302 /**
303 Creates a KAddressBookPrinter, which will display the print 303 Creates a KAddressBookPrinter, which will display the print
304 dialog and do the printing. 304 dialog and do the printing.
305 */ 305 */
306 void print(); 306 void print();
307 307
308 /** 308 /**
309 Registers a new GUI client, so plugins can register its actions. 309 Registers a new GUI client, so plugins can register its actions.
310 */ 310 */
311 void addGUIClient( KXMLGUIClient *client ); 311 void addGUIClient( KXMLGUIClient *client );
312 312
313 signals: 313 signals:
314 void contactSelected( const QString &name ); 314 void contactSelected( const QString &name );
315 void contactSelected( const QPixmap &pixmap ); 315 void contactSelected( const QPixmap &pixmap );
316 public slots: 316 public slots:
317 void setDetailsVisible( bool visible ); 317 void setDetailsVisible( bool visible );
318 void setDetailsToState(); 318 void setDetailsToState();
319 private slots: 319 private slots:
320 void setJumpButtonBarVisible( bool visible ); 320 void setJumpButtonBarVisible( bool visible );
321 void importFromOL(); 321 void importFromOL();
322 void extensionModified( const KABC::Addressee::List &list ); 322 void extensionModified( const KABC::Addressee::List &list );
323 void clipboardDataChanged(); 323 void clipboardDataChanged();
324 void updateActionMenu(); 324 void updateActionMenu();
325 void configureKeyBindings(); 325 void configureKeyBindings();
326 void removeVoice(); 326 void removeVoice();
327#ifdef KAB_EMBEDDED 327#ifdef KAB_EMBEDDED
328 void configureResources(); 328 void configureResources();
329#endif //KAB_EMBEDDED 329#endif //KAB_EMBEDDED
330 330
331 void slotEditorDestroyed( const QString &uid ); 331 void slotEditorDestroyed( const QString &uid );
332 void configurationChanged(); 332 void configurationChanged();
333 void addressBookChanged(); 333 void addressBookChanged();
334 334
335 private: 335 private:
336 void initGUI(); 336 void initGUI();
337 void initActions(); 337 void initActions();
338 338
339 AddresseeEditorDialog *createAddresseeEditorDialog( QWidget *parent, 339 AddresseeEditorDialog *createAddresseeEditorDialog( QWidget *parent,
340 const char *name = 0 ); 340 const char *name = 0 );
341 341
342 KXMLGUIClient *mGUIClient; 342 KXMLGUIClient *mGUIClient;
343 343
344 KABC::AddressBook *mAddressBook; 344 KABC::AddressBook *mAddressBook;
345 345
346 ViewManager *mViewManager; 346 ViewManager *mViewManager;
347 // QSplitter *mDetailsSplitter; 347 // QSplitter *mDetailsSplitter;
348 KDGanttMinimizeSplitter *mExtensionBarSplitter; 348 KDGanttMinimizeSplitter *mExtensionBarSplitter;
349 ViewContainer *mDetails; 349 ViewContainer *mDetails;
350 KDGanttMinimizeSplitter* mMiniSplitter; 350 KDGanttMinimizeSplitter* mMiniSplitter;
351 XXPortManager *mXXPortManager; 351 XXPortManager *mXXPortManager;
352 JumpButtonBar *mJumpButtonBar; 352 JumpButtonBar *mJumpButtonBar;
353 IncSearchWidget *mIncSearchWidget; 353 IncSearchWidget *mIncSearchWidget;
354 ExtensionManager *mExtensionManager; 354 ExtensionManager *mExtensionManager;
355 355
356 KCMultiDialog *mConfigureDialog; 356 KCMultiDialog *mConfigureDialog;
357 357
358#ifndef KAB_EMBEDDED 358#ifndef KAB_EMBEDDED
359
360 KCMultiDialog *mConfigureDialog;
361 LDAPSearchDialog *mLdapSearchDialog; 359 LDAPSearchDialog *mLdapSearchDialog;
362#endif //KAB_EMBEDDED 360#endif //KAB_EMBEDDED
363 // QDict<AddresseeEditorDialog> mEditorDict; 361 // QDict<AddresseeEditorDialog> mEditorDict;
364 AddresseeEditorDialog *mEditorDialog; 362 AddresseeEditorDialog *mEditorDialog;
365 bool mReadWrite; 363 bool mReadWrite;
366 bool mModified; 364 bool mModified;
367 bool mIsPart; 365 bool mIsPart;
368 366
369 //US file menu 367 //US file menu
370 KAction *mActionMail; 368 KAction *mActionMail;
371 KAction* mActionPrint; 369 KAction* mActionPrint;
372 KAction* mActionNewContact; 370 KAction* mActionNewContact;
373 KAction *mActionSave; 371 KAction *mActionSave;
374 KAction *mActionEditAddressee; 372 KAction *mActionEditAddressee;
375 KAction *mActionMailVCard; 373 KAction *mActionMailVCard;
376 KAction *mActionQuit; 374 KAction *mActionQuit;
377 375
378 //US edit menu 376 //US edit menu
379 KAction *mActionCopy; 377 KAction *mActionCopy;
380 KAction *mActionCut; 378 KAction *mActionCut;
381 KAction *mActionPaste; 379 KAction *mActionPaste;
382 KAction *mActionSelectAll; 380 KAction *mActionSelectAll;
383 KAction *mActionUndo; 381 KAction *mActionUndo;
384 KAction *mActionRedo; 382 KAction *mActionRedo;
385 KAction *mActionDelete; 383 KAction *mActionDelete;
386 384
387 //US settings menu 385 //US settings menu
388 KAction *mActionConfigResources; 386 KAction *mActionConfigResources;
389 KAction *mActionConfigKAddressbook; 387 KAction *mActionConfigKAddressbook;
390 KAction *mActionConfigShortcuts; 388 KAction *mActionConfigShortcuts;
391 KAction *mActionConfigureToolbars; 389 KAction *mActionConfigureToolbars;
392 KAction *mActionKeyBindings; 390 KAction *mActionKeyBindings;
393 KToggleAction *mActionJumpBar; 391 KToggleAction *mActionJumpBar;
394 KToggleAction *mActionDetails; 392 KToggleAction *mActionDetails;
395 KAction *mActionWhoAmI; 393 KAction *mActionWhoAmI;
396 KAction *mActionCategories; 394 KAction *mActionCategories;
397 KAction *mActionAboutKAddressbook; 395 KAction *mActionAboutKAddressbook;
398 396
399 KAction *mActionDeleteView; 397 KAction *mActionDeleteView;
400 398
401 QPopupMenu *viewMenu; 399 QPopupMenu *viewMenu;
402 QPopupMenu *filterMenu; 400 QPopupMenu *filterMenu;
403 QPopupMenu *settingsMenu; 401 QPopupMenu *settingsMenu;
404 QPopupMenu *changeMenu; 402 QPopupMenu *changeMenu;
405 403
406//US QAction *mActionSave; 404//US QAction *mActionSave;
407 QPopupMenu *ImportMenu; 405 QPopupMenu *ImportMenu;
408 QPopupMenu *ExportMenu; 406 QPopupMenu *ExportMenu;
409 //LR additional methods 407 //LR additional methods
410 KAction *mActionRemoveVoice; 408 KAction *mActionRemoveVoice;
411 KAction * mActionImportOL; 409 KAction * mActionImportOL;
412 410
413#ifndef KAB_EMBEDDED 411#ifndef KAB_EMBEDDED
414 KAddressBookService *mAddressBookService; 412 KAddressBookService *mAddressBookService;
415#endif //KAB_EMBEDDED 413#endif //KAB_EMBEDDED
416 414
417 class KABCorePrivate; 415 class KABCorePrivate;
418 KABCorePrivate *d; 416 KABCorePrivate *d;
419 417
420#ifdef KAB_EMBEDDED 418#ifdef KAB_EMBEDDED
421 KAddressBookMain *mMainWindow; // should be the same like mGUIClient 419 KAddressBookMain *mMainWindow; // should be the same like mGUIClient
422#endif //KAB_EMBEDDED 420#endif //KAB_EMBEDDED
423 421
424}; 422};
425 423
426#endif 424#endif