File: look_edit.h

package info (click to toggle)
kdeutils 4%3A2.2.2-9.2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 8,892 kB
  • ctags: 10,879
  • sloc: cpp: 82,942; sh: 11,754; ansic: 4,638; perl: 1,852; makefile: 706; python: 258
file content (72 lines) | stat: -rw-r--r-- 1,828 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/* -*- C++ -*-
   This file implements the editing look.
 
   the KDE addressbook

   $ Author: Mirko Boehm $
   $ Copyright: (C) 1996-2000, Mirko Boehm $
   $ Contact: mirko@kde.org
         http://www.kde.org $
   $ License: GPL with the following explicit clarification:
         This code may be linked against any version of the Qt toolkit
         from Troll Tech, Norway. $

   $Revision: 1.14 $	 
*/

#ifndef LOOK_EDIT_H
#define LOOK_EDIT_H

#include "look_basic.h"

class QTabWidget;
class TabPerson;
class TabAddresses;
class TabBirthday;
class TabBasic;
class TabComment;
class TabUser;
class TabContact;
class TabTelephone;

class KABEditLook : public KABBasicLook
{
  Q_OBJECT
public:
  /** The constructor. */
  KABEditLook(KabAPI*, QWidget* parent=0, const char* name=0);
  /** Overload basic set entry method. */
  void setEntry(const AddressBook::Entry&);
  /** Overload method to get the entry. */
  void getEntry(AddressBook::Entry& entry);
  QSize minimumSizeHint() const;
protected:
  /** The tabulator widget. */
  QTabWidget *tabs;
  // WORK_TO_DO: check if pointers are really needed
  /** The person tab. */
  TabPerson *tabperson;
  /** The telephone tab. */
  TabTelephone *tabtelephone;
  /** The birthday tab. */
  TabBirthday *tabbirthday;
  /** The comment tab. */
  TabComment *tabcomment;
  /** The user fields tab. */
  TabUser *tabuser;
  /** The tab to enter contact information. */
  TabContact *tabcontact;
  /** The tab to edit the addresses. */
  TabAddresses *tabaddresses;
  /** A list of all tabs. */
  QList<TabBasic*> allTabs;
  /** The resize event. */
  void resizeEvent(QResizeEvent*);
public slots:
  /** Emitted by the different tabs to notify changes. */
  void changed();
  /** Catch the save me messages emitted by the tabs. */
  void saveMeSlot();
};

#endif // LOOK_EDIT_H