look_basic.cpp
00001 /* -*- C++ -*- 00002 This file implements the base class for kabīs looks.. 00003 00004 the KDE addressbook 00005 00006 $ Author: Mirko Boehm $ 00007 $ Copyright: (C) 1996-2001, Mirko Boehm $ 00008 $ Contact: mirko@kde.org 00009 http://www.kde.org $ 00010 $ License: GPL with the following explicit clarification: 00011 This code may be linked against any version of the Qt toolkit 00012 from Troll Tech, Norway. $ 00013 00014 $Revision: 1.1 $ 00015 */ 00016 00017 #include "look_basic.h" 00018 #include <kdebug.h> 00019 00020 KABBasicLook::KABBasicLook(QWidget* parent, const char* name) 00021 : QWidget(parent, name), 00022 m_ro(false) 00023 { 00024 } 00025 00026 void KABBasicLook::setReadonly(bool state) 00027 { 00028 00029 m_ro=state; 00030 } 00031 00032 bool KABBasicLook::readonly() const 00033 { 00034 return m_ro; 00035 } 00036 00037 void KABBasicLook::setEntry(const KABC::Addressee& e) 00038 { 00039 if ( current == e ) 00040 return; 00041 00042 current = e; 00043 repaint( false ); 00044 } 00045 00046 KABC::Addressee KABBasicLook::entry() 00047 { 00048 return current; 00049 } 00050 00051 void KABBasicLook::configure(KConfig*) 00052 { 00053 } 00054 00055 KABLookFactory::KABLookFactory(QWidget* parent_, const char* name_) 00056 : parent(parent_), name(name_) 00057 { 00058 } 00059 00060 KABLookFactory::~KABLookFactory() 00061 { 00062 } 00063 00064 #include "look_basic.moc"