Kexi API Documentation (2.0 alpha)

KexiTableDesignerViewPrivate Class Reference

#include <kexitabledesignerview_p.h>

List of all members.

Public Member Functions

 KexiTableDesignerViewPrivate (KexiTableDesignerView *aDesignerView)
 ~KexiTableDesignerViewPrivate ()
int generateUniqueId ()
void setPropertyValueIfNeeded (const KoProperty::Set &set, const QCString &propertyName, const QVariant &newValue, CommandGroup *commandGroup, bool forceAddCommand=false, bool rememberOldValue=true, QStringList *const slist=0, QStringList *const nlist=0)
void setPropertyValueIfNeeded (const KoProperty::Set &set, const QCString &propertyName, const QVariant &newValue, const QVariant &oldValue, CommandGroup *commandGroup, bool forceAddCommand=false, bool rememberOldValue=true, QStringList *const slist=0, QStringList *const nlist=0)
void setVisibilityIfNeeded (const KoProperty::Set &set, KoProperty::Property *prop, bool visible, bool &changed, CommandGroup *commandGroup)
bool updatePropertiesVisibility (KexiDB::Field::Type fieldType, KoProperty::Set &set, CommandGroup *commandGroup=0)
QString messageForSavingChanges (bool &emptyTable)
void updateIconForItem (KexiTableItem &item, KoProperty::Set &set)

Public Attributes

KexiTableDesignerViewdesignerView
KexiTableViewview
 helper
KexiTableViewDatadata
KexiDataAwarePropertySetsets
int row
 used to know if a new row is selected in slotCellSelected()
KToggleActionaction_toggle_pkey
KPopupTitle * contextMenuTitle
int uniqueIdCounter
int maxTypeNameTextWidth
 internal
bool dontAskOnStoreData: 1
 Set to true in beforeSwitchTo() to avoid asking again in storeData().
bool slotTogglePrimaryKeyCalled: 1
bool primaryKeyExists: 1
bool slotPropertyChanged_primaryKey_enabled: 1
 Used in slotPropertyChanged() to avoid infinite recursion.
bool slotPropertyChanged_subType_enabled: 1
 Used in slotPropertyChanged() to avoid infinite recursion.
bool addHistoryCommand_in_slotPropertyChanged_enabled: 1
 used in slotPropertyChanged() to disable addHistoryCommand()
bool addHistoryCommand_in_slotRowUpdated_enabled: 1
 used in slotRowUpdated() to disable addHistoryCommand()
bool addHistoryCommand_in_slotAboutToDeleteRow_enabled: 1
 used in slotAboutToDeleteRow() to disable addHistoryCommand()
bool addHistoryCommand_in_slotRowInserted_enabled: 1
 used in slotRowInserted() to disable addHistoryCommand()
bool slotBeforeCellChanged_enabled: 1
 used to disable slotBeforeCellChanged()
bool tempStoreDataUsingRealAlterTable: 1
 Temporary flag, used for testingu the Alter Table machinery.
tristate recentResultOfStoreData
KActionCollection * historyActionCollection
CommandHistoryhistory
QAsciiDict< char > internalPropertyNames
 A cache used in KexiTableDesignerView::buildField() to quickly identify properties internal to the designer.


Constructor & Destructor Documentation

KexiTableDesignerViewPrivate::KexiTableDesignerViewPrivate KexiTableDesignerView aDesignerView  ) 
 

Definition at line 92 of file kexitabledesignerview_p.cpp.

References history, historyActionCollection, and internalPropertyNames.

KexiTableDesignerViewPrivate::~KexiTableDesignerViewPrivate  ) 
 

Definition at line 120 of file kexitabledesignerview_p.cpp.

References history, historyActionCollection, and sets.


Member Function Documentation

int KexiTableDesignerViewPrivate::generateUniqueId  ) 
 

Definition at line 126 of file kexitabledesignerview_p.cpp.

References uniqueIdCounter.

Referenced by KexiTableDesignerView::createPropertySet().

QString KexiTableDesignerViewPrivate::messageForSavingChanges bool &  emptyTable  ) 
 

Definition at line 268 of file kexitabledesignerview_p.cpp.

References designerView, KexiDB::Connection::isEmpty(), KexiViewBase::mainWin(), KexiViewBase::parentDialog(), KexiViewBase::part(), and KexiTableDesignerView::tempData().

Referenced by KexiTableDesignerView::beforeSwitchTo(), and KexiTableDesignerView::storeData().

void KexiTableDesignerViewPrivate::setPropertyValueIfNeeded const KoProperty::Set &  set,
const QCString &  propertyName,
const QVariant &  newValue,
const QVariant &  oldValue,
CommandGroup commandGroup,
bool  forceAddCommand = false,
bool  rememberOldValue = true,
QStringList *const   slist = 0,
QStringList *const   nlist = 0
 

Like above but allows to specify oldValue.

Definition at line 131 of file kexitabledesignerview_p.cpp.

References addHistoryCommand_in_slotPropertyChanged_enabled, and designerView.

void KexiTableDesignerViewPrivate::setPropertyValueIfNeeded const KoProperty::Set &  set,
const QCString &  propertyName,
const QVariant &  newValue,
CommandGroup commandGroup,
bool  forceAddCommand = false,
bool  rememberOldValue = true,
QStringList *const   slist = 0,
QStringList *const   nlist = 0
 

Definition at line 171 of file kexitabledesignerview_p.cpp.

Referenced by KexiTableDesignerView::slotBeforeCellChanged(), KexiTableDesignerView::slotPropertyChanged(), KexiTableDesignerView::switchPrimaryKey(), and updatePropertiesVisibility().

void KexiTableDesignerViewPrivate::setVisibilityIfNeeded const KoProperty::Set &  set,
KoProperty::Property *  prop,
bool  visible,
bool &  changed,
CommandGroup commandGroup
 

Definition at line 183 of file kexitabledesignerview_p.cpp.

References designerView.

Referenced by updatePropertiesVisibility().

void KexiTableDesignerViewPrivate::updateIconForItem KexiTableItem item,
KoProperty::Set &  set
 

Updates icon in the first column, depending on property set set. For example, when "rowSource" and "rowSourceType" propertiesa are not empty, "combo" icon appears.

Definition at line 279 of file kexitabledesignerview_p.cpp.

References COLUMN_ID_ICON, KexiDataAwareObjectInterface::data(), and view.

Referenced by KexiTableDesignerView::slotPropertyChanged().

bool KexiTableDesignerViewPrivate::updatePropertiesVisibility KexiDB::Field::Type  fieldType,
KoProperty::Set &  set,
CommandGroup commandGroup = 0
 

rememberOldValue

Todo:
remove this when BLOB supports default value

Definition at line 196 of file kexitabledesignerview_p.cpp.

References KexiDB::Field::BLOB, KexiDB::Field::defaultTextLength(), KexiDB::Field::hasEmptyProperty(), KexiDB::Field::isAutoIncrementAllowed(), KexiDB::Field::isFPNumericType(), KexiDB::Field::isNumericType(), kexipluginsdbg, setPropertyValueIfNeeded(), setVisibilityIfNeeded(), KexiDB::supportsVisibleDecimalPlacesProperty(), and KexiDB::Field::Text.

Referenced by KexiTableDesignerView::createPropertySet(), KexiTableDesignerView::slotBeforeCellChanged(), and KexiTableDesignerView::slotPropertyChanged().


Member Data Documentation

KToggleAction* KexiTableDesignerViewPrivate::action_toggle_pkey
 

Definition at line 137 of file kexitabledesignerview_p.h.

Referenced by KexiTableDesignerView::KexiTableDesignerView(), KexiTableDesignerView::switchPrimaryKey(), and KexiTableDesignerView::updateActions().

bool KexiTableDesignerViewPrivate::addHistoryCommand_in_slotAboutToDeleteRow_enabled
 

used in slotAboutToDeleteRow() to disable addHistoryCommand()

Definition at line 160 of file kexitabledesignerview_p.h.

Referenced by KexiTableDesignerView::deleteRow(), and KexiTableDesignerView::slotAboutToDeleteRow().

bool KexiTableDesignerViewPrivate::addHistoryCommand_in_slotPropertyChanged_enabled
 

used in slotPropertyChanged() to disable addHistoryCommand()

Definition at line 156 of file kexitabledesignerview_p.h.

Referenced by KexiTableDesignerView::changeFieldPropertyForRow(), KexiTableDesignerView::clearRow(), KexiTableDesignerView::insertFieldInternal(), setPropertyValueIfNeeded(), KexiTableDesignerView::slotBeforeCellChanged(), and KexiTableDesignerView::slotPropertyChanged().

bool KexiTableDesignerViewPrivate::addHistoryCommand_in_slotRowInserted_enabled
 

used in slotRowInserted() to disable addHistoryCommand()

Definition at line 162 of file kexitabledesignerview_p.h.

Referenced by KexiTableDesignerView::insertEmptyRow(), and KexiTableDesignerView::slotRowInserted().

bool KexiTableDesignerViewPrivate::addHistoryCommand_in_slotRowUpdated_enabled
 

used in slotRowUpdated() to disable addHistoryCommand()

Definition at line 158 of file kexitabledesignerview_p.h.

Referenced by KexiTableDesignerView::changeFieldPropertyForRow(), KexiTableDesignerView::clearRow(), KexiTableDesignerView::insertFieldInternal(), and KexiTableDesignerView::slotRowUpdated().

KPopupTitle* KexiTableDesignerViewPrivate::contextMenuTitle
 

Definition at line 139 of file kexitabledesignerview_p.h.

Referenced by KexiTableDesignerView::KexiTableDesignerView(), and KexiTableDesignerView::slotAboutToShowContextMenu().

KexiTableViewData* KexiTableDesignerViewPrivate::data
 

Definition at line 131 of file kexitabledesignerview_p.h.

Referenced by KexiTableDesignerView::initData(), and KexiTableDesignerView::KexiTableDesignerView().

KexiTableDesignerView* KexiTableDesignerViewPrivate::designerView
 

Definition at line 127 of file kexitabledesignerview_p.h.

Referenced by messageForSavingChanges(), setPropertyValueIfNeeded(), and setVisibilityIfNeeded().

bool KexiTableDesignerViewPrivate::dontAskOnStoreData
 

Set to true in beforeSwitchTo() to avoid asking again in storeData().

Definition at line 146 of file kexitabledesignerview_p.h.

Referenced by KexiTableDesignerView::beforeSwitchTo(), and KexiTableDesignerView::storeData().

CommandHistory* KexiTableDesignerViewPrivate::history
 

Definition at line 178 of file kexitabledesignerview_p.h.

Referenced by KexiTableDesignerView::addHistoryCommand(), KexiTableDesignerView::buildAlterTableActions(), KexiTableDesignerView::KexiTableDesignerView(), KexiTableDesignerViewPrivate(), KexiTableDesignerView::slotRedo(), KexiTableDesignerView::slotUndo(), and ~KexiTableDesignerViewPrivate().

KActionCollection* KexiTableDesignerViewPrivate::historyActionCollection
 

Definition at line 177 of file kexitabledesignerview_p.h.

Referenced by KexiTableDesignerViewPrivate(), KexiTableDesignerView::updateUndoRedoActions(), and ~KexiTableDesignerViewPrivate().

QAsciiDict<char> KexiTableDesignerViewPrivate::internalPropertyNames
 

A cache used in KexiTableDesignerView::buildField() to quickly identify properties internal to the designer.

Definition at line 182 of file kexitabledesignerview_p.h.

Referenced by KexiTableDesignerView::buildField(), and KexiTableDesignerViewPrivate().

int KexiTableDesignerViewPrivate::maxTypeNameTextWidth
 

internal

Definition at line 144 of file kexitabledesignerview_p.h.

Referenced by KexiTableDesignerView::initData(), and KexiTableDesignerView::KexiTableDesignerView().

bool KexiTableDesignerViewPrivate::primaryKeyExists
 

Definition at line 150 of file kexitabledesignerview_p.h.

Referenced by KexiTableDesignerView::buildSchema(), KexiTableDesignerView::initData(), KexiTableDesignerView::slotAboutToDeleteRow(), KexiTableDesignerView::slotPropertyChanged(), and KexiTableDesignerView::switchPrimaryKey().

tristate KexiTableDesignerViewPrivate::recentResultOfStoreData
 

Set to a recent result of calling tristate KexiTableDesignerView::storeData(bool dontAsk). Then, it is used in void KexiTableDesignerView::executeRealAlterTable() to know what return value should be.

Definition at line 175 of file kexitabledesignerview_p.h.

Referenced by KexiTableDesignerView::executeRealAlterTable(), and KexiTableDesignerView::storeData().

int KexiTableDesignerViewPrivate::row
 

used to know if a new row is selected in slotCellSelected()

Definition at line 135 of file kexitabledesignerview_p.h.

KexiDataAwarePropertySet* KexiTableDesignerViewPrivate::sets
 

Definition at line 133 of file kexitabledesignerview_p.h.

Referenced by KexiTableDesignerView::buildSchema(), KexiTableDesignerView::changeFieldProperty(), KexiTableDesignerView::changeFieldPropertyForRow(), KexiTableDesignerView::changePropertyVisibility(), KexiTableDesignerView::clearRow(), KexiTableDesignerView::createPropertySet(), KexiTableDesignerView::insertFieldInternal(), KexiTableDesignerView::KexiTableDesignerView(), KexiTableDesignerView::propertySet(), KexiTableDesignerView::slotAboutToDeleteRow(), KexiTableDesignerView::slotBeforeCellChanged(), KexiTableDesignerView::slotPropertyChanged(), KexiTableDesignerView::slotRowUpdated(), KexiTableDesignerView::switchPrimaryKey(), and ~KexiTableDesignerViewPrivate().

bool KexiTableDesignerViewPrivate::slotBeforeCellChanged_enabled
 

used to disable slotBeforeCellChanged()

Definition at line 165 of file kexitabledesignerview_p.h.

Referenced by KexiTableDesignerView::changeFieldPropertyForRow(), KexiTableDesignerView::clearRow(), KexiTableDesignerView::insertFieldInternal(), KexiTableDesignerView::slotBeforeCellChanged(), and KexiTableDesignerView::switchPrimaryKey().

bool KexiTableDesignerViewPrivate::slotPropertyChanged_primaryKey_enabled
 

Used in slotPropertyChanged() to avoid infinite recursion.

Definition at line 152 of file kexitabledesignerview_p.h.

Referenced by KexiTableDesignerView::slotPropertyChanged().

bool KexiTableDesignerViewPrivate::slotPropertyChanged_subType_enabled
 

Used in slotPropertyChanged() to avoid infinite recursion.

Definition at line 154 of file kexitabledesignerview_p.h.

Referenced by KexiTableDesignerView::changeFieldPropertyForRow(), and KexiTableDesignerView::slotPropertyChanged().

bool KexiTableDesignerViewPrivate::slotTogglePrimaryKeyCalled
 

Definition at line 148 of file kexitabledesignerview_p.h.

Referenced by KexiTableDesignerView::slotTogglePrimaryKey(), and KexiTableDesignerView::updateActions().

bool KexiTableDesignerViewPrivate::tempStoreDataUsingRealAlterTable
 

Temporary flag, used for testingu the Alter Table machinery.

Affects storeData() Used in slotExecuteRealAlterTable() to switch on real alter table for a while.

Definition at line 170 of file kexitabledesignerview_p.h.

Referenced by KexiTableDesignerView::executeRealAlterTable(), and KexiTableDesignerView::storeData().

int KexiTableDesignerViewPrivate::uniqueIdCounter
 

Definition at line 141 of file kexitabledesignerview_p.h.

Referenced by generateUniqueId().

KexiTableView* KexiTableDesignerViewPrivate::view
 

helper

Definition at line 129 of file kexitabledesignerview_p.h.

Referenced by KexiTableDesignerView::beforeSwitchTo(), KexiTableDesignerView::buildSchema(), KexiTableDesignerView::changeFieldPropertyForRow(), KexiTableDesignerView::changePropertyVisibility(), KexiTableDesignerView::clearRow(), KexiTableDesignerView::deleteRow(), KexiTableDesignerView::initData(), KexiTableDesignerView::insertEmptyRow(), KexiTableDesignerView::insertFieldInternal(), KexiTableDesignerView::KexiTableDesignerView(), KexiTableDesignerView::slotAboutToDeleteRow(), KexiTableDesignerView::slotBeforeCellChanged(), KexiTableDesignerView::slotPropertyChanged(), KexiTableDesignerView::slotRowInserted(), KexiTableDesignerView::slotRowUpdated(), KexiTableDesignerView::switchPrimaryKey(), and updateIconForItem().


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:28 2008 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003