TDE personal information management applications
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
1.8KB

  1. /*
  2. This file is part of KAddressbook.
  3. Copyright (c) 2004 Tobias Koenig <tokoe@kde.org>
  4. Copyright (c) 2004 Cornelius Schumacher <schumacher@kde.org>
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program; if not, write to the Free Software
  15. Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16. As a special exception, permission is given to link this program
  17. with any edition of TQt, and distribute the resulting executable,
  18. without including the source code for TQt in the source distribution.
  19. */
  20. #ifndef ADVANCEDCUSTOMFIELDS_H
  21. #define ADVANCEDCUSTOMFIELDS_H
  22. #include <klocale.h>
  23. #include <tqmap.h>
  24. #include <tqpair.h>
  25. #include <tqstringlist.h>
  26. #include <libtdepim/designerfields.h>
  27. #include "contacteditorwidget.h"
  28. class AdvancedCustomFields : public KAB::ContactEditorWidget
  29. {
  30. Q_OBJECT
  31. TQ_OBJECT
  32. public:
  33. AdvancedCustomFields( const TQString &uiFile, KABC::AddressBook *ab,
  34. TQWidget *parent, const char *name = 0 );
  35. void loadContact( KABC::Addressee *addr );
  36. void storeContact( KABC::Addressee *addr );
  37. void setReadOnly( bool readOnly );
  38. TQString pageIdentifier() const;
  39. TQString pageTitle() const;
  40. private:
  41. void initGUI( const TQString& );
  42. KPIM::DesignerFields *mFields;
  43. };
  44. #endif