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->addFunction0<Kross::Api::Variant>("identifier", item, &::KexiPart::Item::identifier );
00032 
00033     this->addFunction1<void, Kross::Api::Variant>("setIdentifier", item, &::KexiPart::Item::setIdentifier );
00034 
00035     this->addFunction0<Kross::Api::Variant>("mimeType", item, &::KexiPart::Item::mimeType );
00036     this->addFunction1<void, Kross::Api::Variant>("setMimeType", item, &::KexiPart::Item::setMimeType );
00037 
00038     this->addFunction0<Kross::Api::Variant>("name", item, &::KexiPart::Item::name );
00039     this->addFunction1<void, Kross::Api::Variant>("setName", item, &::KexiPart::Item::setName );
00040 
00041     this->addFunction0<Kross::Api::Variant>("caption", item, &::KexiPart::Item::caption );
00042     this->addFunction1<void, Kross::Api::Variant>("setCaption", item, &::KexiPart::Item::setCaption );
00043 
00044     this->addFunction0<Kross::Api::Variant>("description", item, &::KexiPart::Item::description );
00045     this->addFunction1<void, Kross::Api::Variant>("setDescription", item, &::KexiPart::Item::setDescription );
00046 }
KDE Home | KDE Accessibility Home | Description of Access Keys