Kexi API Documentation (2.0 alpha)

KexiPart::Item Class Reference

#include <kexipartitem.h>

List of all members.


Detailed Description

Information about a single object that can be instantiated using Kexi Part.

KexiPart::Item stores:

Definition at line 46 of file kexipartitem.h.

Public Member Functions

 Item ()
 ~Item ()
int identifier () const
void setIdentifier (int id)
QCString mimeType () const
void setMimeType (const QCString &mime)
QString name () const
void setName (const QString &name)
QString caption () const
void setCaption (const QString &c)
QString description () const
void setDescription (const QString &d)
bool neverSaved () const
void setNeverSaved (bool set)
bool isNull () const
QString captionOrName () const


Constructor & Destructor Documentation

Item::Item  ) 
 

Definition at line 24 of file kexipartitem.cpp.

Item::~Item  ) 
 

Definition at line 30 of file kexipartitem.cpp.


Member Function Documentation

QString KexiPart::Item::caption  )  const [inline]
 

Definition at line 62 of file kexipartitem.h.

Referenced by KexiMainWindowImpl::getNewObjectInfo(), Kross::KexiApp::KexiAppPartItem::KexiAppPartItem(), KexiPart::Part::openInstance(), and KexiDialogBase::storeNewData().

QString KexiPart::Item::captionOrName  )  const [inline]
 

Returns:
caption if not empty, else returns name.

Definition at line 82 of file kexipartitem.h.

Referenced by KexiSimplePrintingPageSetup::KexiSimplePrintingPageSetup().

QString KexiPart::Item::description  )  const [inline]
 

Definition at line 65 of file kexipartitem.h.

Referenced by Kross::KexiApp::KexiAppPartItem::KexiAppPartItem(), KexiPart::Part::openInstance(), and KexiDialogBase::storeNewData().

int KexiPart::Item::identifier  )  const [inline]
 

Definition at line 53 of file kexipartitem.h.

Referenced by KexiMacro::DataTableAction::activate(), KexiBrowser::addItem(), KexiMainWindowImpl::Private::addItemToPendingDialogs(), KexiMainWindowImpl::copyItemToClipboardAsDataTable(), KexiScriptPart::execute(), KexiMacroPart::execute(), KexiMainWindowImpl::exportItemAsDataTable(), KexiProject::items(), Kross::KexiApp::KexiAppPartItem::KexiAppPartItem(), KexiMainWindowImpl::Private::openedCustomObjectsForItem(), KexiMainWindowImpl::Private::openedDialogFor(), KexiPart::Part::openInstance(), KexiMainWindowImpl::printActionForItem(), KexiMainWindowImpl::printItem(), KexiTablePart::remove(), KexiQueryPart::remove(), KexiPart::Part::remove(), KexiProject::removeObject(), KexiMainWindowImpl::removeObject(), KexiTablePart::rename(), KexiProject::renameObject(), KexiBrowser::selectItem(), KexiBrowser::slotRemoveItem(), and KexiBrowser::updateItemName().

bool KexiPart::Item::isNull  )  const [inline]
 

Definition at line 79 of file kexipartitem.h.

QCString KexiPart::Item::mimeType  )  const [inline]
 

Definition at line 56 of file kexipartitem.h.

Referenced by KexiBrowser::addItem(), KexiActionSelectionDialog::currentAction(), KexiMainWindowImpl::executeItem(), Kross::KexiApp::KexiAppPartItem::KexiAppPartItem(), KexiSimplePrintingPageSetup::KexiSimplePrintingPageSetup(), KexiMainWindowImpl::openingAllowed(), KexiMainWindowImpl::printActionForItem(), KexiMainWindowImpl::removeObject(), KexiProject::renameObject(), KexiQueryDesignerGuiEditor::slotItemRemoved(), KexiQueryDesignerGuiEditor::slotItemRenamed(), KexiDataSourceComboBox::slotItemRenamed(), KexiQueryDesignerGuiEditor::slotNewItemStored(), and KexiDataSourceComboBox::slotNewItemStored().

QString KexiPart::Item::name  )  const [inline]
 

Definition at line 59 of file kexipartitem.h.

Referenced by KexiTablePart::createView(), KexiScriptPart::createView(), KexiReportPart::createView(), KexiMacroPart::createView(), KexiFormPart::createView(), KexiActionSelectionDialog::currentAction(), KexiMacroPart::execute(), KexiMainWindowImpl::getNewObjectInfo(), Kross::KexiApp::KexiAppPartItem::KexiAppPartItem(), KexiSimplePrintingPageSetup::KexiSimplePrintingPageSetup(), KexiPart::Part::openInstance(), KexiProject::openObject(), KexiMainWindowImpl::removeObject(), KexiQueryPart::rename(), KexiProject::renameObject(), KexiQueryDesignerGuiEditor::slotItemRemoved(), KexiQueryDesignerGuiEditor::slotItemRenamed(), KexiDataSourceComboBox::slotItemRenamed(), KexiQueryDesignerGuiEditor::slotNewItemStored(), KexiDataSourceComboBox::slotNewItemStored(), KexiDialogBase::storeNewData(), KexiDialogBase::updateCaption(), and KexiBrowser::updateItemName().

bool KexiPart::Item::neverSaved  )  const [inline]
 

Returns:
"neverSaved" flag for this item what mean that is used when new item is created in-memory-only, so we need to indicate for KexiProject about that state. By default this flag is false. Used by KexiMainWindowImpl::newObject().

Definition at line 73 of file kexipartitem.h.

Referenced by KexiDialogBase::neverSaved(), KexiMainWindowImpl::newObject(), KexiPart::Part::openInstance(), and KexiProject::removeObject().

void KexiPart::Item::setCaption const QString c  )  [inline]
 

Definition at line 63 of file kexipartitem.h.

Referenced by KexiProject::createPartItem(), KexiMainWindowImpl::getNewObjectInfo(), KexiProject::items(), and Kross::KexiApp::KexiAppPartItem::KexiAppPartItem().

void KexiPart::Item::setDescription const QString d  )  [inline]
 

Definition at line 66 of file kexipartitem.h.

Referenced by Kross::KexiApp::KexiAppPartItem::KexiAppPartItem().

void KexiPart::Item::setIdentifier int  id  )  [inline]
 

Definition at line 54 of file kexipartitem.h.

Referenced by KexiProject::createPartItem(), KexiProject::items(), Kross::KexiApp::KexiAppPartItem::KexiAppPartItem(), and KexiDialogBase::storeNewData().

void KexiPart::Item::setMimeType const QCString &  mime  )  [inline]
 

Definition at line 57 of file kexipartitem.h.

Referenced by KexiProject::createPartItem(), KexiProject::items(), and Kross::KexiApp::KexiAppPartItem::KexiAppPartItem().

void KexiPart::Item::setName const QString name  )  [inline]
 

Definition at line 60 of file kexipartitem.h.

Referenced by KexiProject::createPartItem(), KexiMainWindowImpl::getNewObjectInfo(), KexiProject::items(), Kross::KexiApp::KexiAppPartItem::KexiAppPartItem(), and KexiProject::renameObject().

void KexiPart::Item::setNeverSaved bool  set  )  [inline]
 

See also:
neverSaved(). Used by KexiMainWindowImpl::newObject().

Definition at line 77 of file kexipartitem.h.

Referenced by KexiProject::addStoredItem(), and KexiProject::createPartItem().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for Kexi 2.0 alpha.
Documentation copyright © 2002-2007 the Kexi Team.
Generated on Tue Apr 1 20:50:53 2008 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003