kexi

kexiapppart.cpp

00001 /***************************************************************************
00002  * kexiapppart.cpp
00003  * This file is part of the KDE project
00004  * copyright (C)2006 by Sebastian Sauer (mail@dipe.org)
00005  *
00006  * This program is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Library General Public
00008  * License as published by the Free Software Foundation; either
00009  * version 2 of the License, or (at your option) any later version.
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  * Library General Public License for more details.
00014  * You should have received a copy of the GNU Library General Public License
00015  * along with this program; see the file COPYING.  If not, write to
00016  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017  * Boston, MA 02110-1301, USA.
00018  ***************************************************************************/
00019 
00020 #include "kexiapppart.h"
00021 
00022 #include "core/kexipart.h"
00023 #include "core/kexipartitem.h"
00024 //#include "core/kexiproject.h"
00025 
00026 using namespace Kross::KexiApp;
00027 
00028 KexiAppPartItem::KexiAppPartItem(KexiPart::Item* item)
00029     : Kross::Api::Class<KexiAppPartItem>("KexiAppPartItem")
00030 {
00031     this->addProxyFunction< Kross::Api::ProxyValue<Kross::Api::Variant,int> >
00032         ("identifier", item, &::KexiPart::Item::identifier );
00033     this->addProxyFunction< Kross::Api::ProxyValue<Kross::Api::Variant,void>, Kross::Api::ProxyValue<Kross::Api::Variant,int> >
00034         ("setIdentifier", item, &::KexiPart::Item::setIdentifier );
00035 
00036     this->addProxyFunction< Kross::Api::ProxyValue<Kross::Api::Variant,QCString> >
00037         ("mimeType", item, &::KexiPart::Item::mimeType );
00038     this->addProxyFunction< Kross::Api::ProxyValue<Kross::Api::Variant,void>, Kross::Api::ProxyValue<Kross::Api::Variant,QCString> >
00039         ("setMimeType", item, &::KexiPart::Item::setMimeType );
00040 
00041     this->addProxyFunction< Kross::Api::ProxyValue<Kross::Api::Variant,QString> >
00042         ("name", item, &::KexiPart::Item::name );
00043     this->addProxyFunction< Kross::Api::ProxyValue<Kross::Api::Variant,void>, Kross::Api::ProxyValue<Kross::Api::Variant,QString> >
00044         ("setName", item, &::KexiPart::Item::setName );
00045 
00046     this->addProxyFunction< Kross::Api::ProxyValue<Kross::Api::Variant,QString> >
00047         ("caption", item, &::KexiPart::Item::caption );
00048     this->addProxyFunction< Kross::Api::ProxyValue<Kross::Api::Variant,void>, Kross::Api::ProxyValue<Kross::Api::Variant,QString> >
00049         ("setCaption", item, &::KexiPart::Item::setCaption );
00050 
00051     this->addProxyFunction< Kross::Api::ProxyValue<Kross::Api::Variant,QString> >
00052         ("description", item, &::KexiPart::Item::description );
00053     this->addProxyFunction< Kross::Api::ProxyValue<Kross::Api::Variant,void>, Kross::Api::ProxyValue<Kross::Api::Variant,QString> >
00054         ("setDescription", item, &::KexiPart::Item::setDescription );
00055 }
KDE Home | KDE Accessibility Home | Description of Access Keys