interfaces
templateinterface.cpp File Reference
#include "templateinterface.h"
#include "document.h"
#include <stdaddressbook.h>
#include <addressee.h>
#include <addresseedialog.h>
#include <qstring.h>
#include <klocale.h>
#include <kglobal.h>
#include <qdatetime.h>
#include <qregexp.h>
#include <kmessagebox.h>
#include <kcalendarsystem.h>
#include <unistd.h>
#include <kdebug.h>
Include dependency graph for templateinterface.cpp:
Go to the source code of this file.
Defines | |
#define | INITKABC |
Define Documentation
#define INITKABC |
Value:
do { \ if (addrBook==0) { \ addrBook=KABC::StdAddressBook::self(); \ userAddress=addrBook->whoAmI(); \ if (userAddress.isEmpty()) { \ if ( KMessageBox::questionYesNo(parentWindow, \ i18n( "This template uses personal data that is stored in the KDE addressbook, but you have not selected a personal entry. You can still use the template without one, but you will have to type personal data. Would you like to select one now?" ), \ "Personal data requested", \ KStdGuiItem::yes(), KStdGuiItem::no(), "select personal data entry") == KMessageBox::Yes ) { \ userAddress = KABC::AddresseeDialog::getAddressee(parentWindow); \ if ( ! userAddress.isEmpty() ) \ KABC::StdAddressBook::self()->setWhoAmI( userAddress ); \ }\ /*return false;//no, why??*/ \ } \ } \ } while(false)
Definition at line 55 of file templateinterface.cpp.