kexi

#include <kexitableviewdata.h>

Inherits TQObject, and TQPtrList< type >.

Public Types

typedef TQPtrListIterator< KexiTableItem > Iterator
 

Public Slots

void deleteLater ()
 

Signals

void destroying ()
 
void aboutToChangeCell (KexiTableItem *item, int colnum, TQVariant &newValue, KexiDB::ResultInfo *result)
 
void aboutToInsertRow (KexiTableItem *item, KexiDB::ResultInfo *result, bool repaint)
 
void aboutToUpdateRow (KexiTableItem *item, KexiDB::RowEditBuffer *buffer, KexiDB::ResultInfo *result)
 
void rowUpdated (KexiTableItem *)
 
void rowInserted (KexiTableItem *, bool repaint)
 
void rowInserted (KexiTableItem *, uint index, bool repaint)
 
void aboutToDeleteRow (KexiTableItem &item, KexiDB::ResultInfo *result, bool repaint)
 
void rowDeleted ()
 
void rowsDeleted (const TQValueList< int > &rowsToDelete)
 
void reloadRequested ()
 
void rowRepaintRequested (KexiTableItem &)
 

Public Member Functions

 KexiTableViewData ()
 
 KexiTableViewData (KexiDB::Cursor *c)
 
 KexiTableViewData (const TQValueList< TQVariant > &keys, const TQValueList< TQVariant > &values, KexiDB::Field::Type keyType=KexiDB::Field::Text, KexiDB::Field::Type valueType=KexiDB::Field::Text)
 
 KexiTableViewData (KexiDB::Field::Type keyType, KexiDB::Field::Type valueType)
 
void preloadAllRows ()
 
void setSorting (int column, bool ascending=true)
 
int sortedColumn () const
 
int sortingOrder () const
 
void addColumn (KexiTableViewColumn *col)
 
int globalColumnID (int visibleID)
 
int visibleColumnID (int globalID)
 
bool isDBAware ()
 
TQString dbTableName () const
 
KexiDB::Cursor * cursor () const
 
uint columnsCount () const
 
KexiTableViewColumn * column (uint c)
 
virtual bool isReadOnly () const
 
virtual void setReadOnly (bool set)
 
virtual bool isInsertingEnabled () const
 
virtual void setInsertingEnabled (bool set)
 
void clearRowEditBuffer ()
 
bool updateRowEditBufferRef (KexiTableItem *item, int colnum, KexiTableViewColumn *col, TQVariant &newval, bool allowSignals=true, TQVariant *visibleValueForLookupField=0)
 
bool updateRowEditBuffer (KexiTableItem *item, int colnum, KexiTableViewColumn *col, TQVariant newval, bool allowSignals=true)
 
bool updateRowEditBuffer (KexiTableItem *item, int colnum, TQVariant newval, bool allowSignals=true)
 
KexiDB::RowEditBuffer * rowEditBuffer () const
 
KexiDB::ResultInfo * result ()
 
bool saveRowChanges (KexiTableItem &item, bool repaint=false)
 
bool saveNewRow (KexiTableItem &item, bool repaint=false)
 
bool deleteRow (KexiTableItem &item, bool repaint=false)
 
void deleteRows (const TQValueList< int > &rowsToDelete, bool repaint=false)
 
virtual bool deleteAllRows (bool repaint=false)
 
virtual void clearInternal ()
 
void insertRow (KexiTableItem &item, uint index, bool repaint=false)
 
int autoIncrementedColumn ()
 
void reload ()
 
KexiTableItem * at (uint index)
 
virtual uint count () const
 
bool isEmpty () const
 
KexiTableItem * first ()
 
KexiTableItem * last ()
 
int findRef (const KexiTableItem *item)
 
void sort ()
 
bool removeFirst ()
 
bool removeLast ()
 
void append (const KexiTableItem *item)
 
void prepend (const KexiTableItem *item)
 
Iterator iterator ()
 
Iterator * createIterator ()
 
bool containsROWIDInfo () const
 
KexiTableItem * createItem () const
 

Public Attributes

KexiTableViewColumn::List columns
 

Protected Member Functions

void init ()
 
void init (const TQValueList< TQVariant > &keys, const TQValueList< TQVariant > &values, KexiDB::Field::Type keyType, KexiDB::Field::Type valueType)
 
virtual int compareItems (Item item1, Item item2)
 
int cmpStr (Item item1, Item item2)
 
int cmpInt (Item item1, Item item2)
 
int cmpUInt (Item item1, Item item2)
 
int cmpLongLong (Item item1, Item item2)
 
int cmpULongLong (Item item1, Item item2)
 
int cmpDouble (Item item1, Item item2)
 
int cmpDate (Item item1, Item item2)
 
int cmpDateTime (Item item1, Item item2)
 
int cmpTime (Item item1, Item item2)
 
int cmpBLOB (Item item1, Item item2)
 
bool saveRow (KexiTableItem &item, bool insert, bool repaint)
 

Protected Attributes

int m_sortedColumn
 
int m_realSortedColumn
 
short m_order
 
short m_type
 
int m_itemSize
 
KexiDB::RowEditBuffer * m_pRowEditBuffer
 
TQGuardedPtr< KexiDB::Cursor > m_cursor
 
KexiDB::ResultInfo m_result
 
uint m_visibleColumnsCount
 
TQValueVector< int > m_visibleColumnsIDs
 
TQValueVector< int > m_globalColumnsIDs
 
bool m_readOnly: 1
 
bool m_insertingEnabled: 1
 
bool m_inside_acceptEditor: 1
 
bool m_containsROWIDInfo: 1
 
int m_autoIncrementedColumn
 
int(KexiTableViewData::* cmpFunc )(void *, void *)
 
TQVariant m_leftTmp
 
TQVariant m_rightTmp
 

Static Protected Attributes

static unsigned short charTable []
 

Detailed Description

Reimplements TQPtrList to allow configurable sorting and more. Original author: Till Busch. Reimplemented by Jaroslaw Staniek.

Definition at line 222 of file kexitableviewdata.h.

Member Typedef Documentation

◆ Iterator

typedef TQPtrListIterator<KexiTableItem> KexiTableViewData::Iterator

Definition at line 228 of file kexitableviewdata.h.

Constructor & Destructor Documentation

◆ KexiTableViewData() [1/4]

KexiTableViewData::KexiTableViewData ( )

not db-aware version

Definition at line 239 of file kexitableviewdata.cpp.

◆ KexiTableViewData() [2/4]

KexiTableViewData::KexiTableViewData ( KexiDB::Cursor *  c)

db-aware version

Definition at line 247 of file kexitableviewdata.cpp.

◆ KexiTableViewData() [3/4]

KexiTableViewData::KexiTableViewData ( const TQValueList< TQVariant > &  keys,
const TQValueList< TQVariant > &  values,
KexiDB::Field::Type  keyType = KexiDB::Field::Text,
KexiDB::Field::Type  valueType = KexiDB::Field::Text 
)

Defines two-column table usually used with comboboxes. First column is invisible and contains key values. Second column and contains user-visible value.

Parameters
keysa list of keys
valuesa list of text values (must be of the same length as keys list)
keyTypea type for keys
valueTypea type for values

Definition at line 284 of file kexitableviewdata.cpp.

◆ KexiTableViewData() [4/4]

KexiTableViewData::KexiTableViewData ( KexiDB::Field::Type  keyType,
KexiDB::Field::Type  valueType 
)

Like above constructor, but keys and values are not provided. You can do this later by calling append(KexiTableItem*) method. (KexiTableItem object must have exactly two columns)

Definition at line 293 of file kexitableviewdata.cpp.

◆ ~KexiTableViewData()

KexiTableViewData::~KexiTableViewData ( )
virtual

Definition at line 300 of file kexitableviewdata.cpp.

Member Function Documentation

◆ aboutToChangeCell

void KexiTableViewData::aboutToChangeCell ( KexiTableItem *  item,
int  colnum,
TQVariant &  newValue,
KexiDB::ResultInfo *  result 
)
signal

Emitted before change of the single, currently edited cell. Connect this signal to your slot and set result->success to false to disallow this change. You can also change newValue to other value, or change other columns in item row.

◆ aboutToDeleteRow

void KexiTableViewData::aboutToDeleteRow ( KexiTableItem &  item,
KexiDB::ResultInfo *  result,
bool  repaint 
)
signal

Emited before deleting of a current row. Connect this signal to your slot and set result->success to false to disallow this deleting.

◆ aboutToInsertRow

void KexiTableViewData::aboutToInsertRow ( KexiTableItem *  item,
KexiDB::ResultInfo *  result,
bool  repaint 
)
signal

Emited before inserting of a new, current row. Connect this signal to your slot and set result->success to false to disallow this inserting. You can also change columns in item row.

◆ aboutToUpdateRow

void KexiTableViewData::aboutToUpdateRow ( KexiTableItem *  item,
KexiDB::RowEditBuffer *  buffer,
KexiDB::ResultInfo *  result 
)
signal

Emited before changing of an edited, current row. Connect this signal to your slot and set result->success to false to disallow this change. You can also change columns in item row.

◆ addColumn()

void KexiTableViewData::addColumn ( KexiTableViewColumn *  col)

Adds column col. Warning: col will be owned by this object, and deleted on its destruction.

Definition at line 361 of file kexitableviewdata.cpp.

◆ append()

void KexiTableViewData::append ( const KexiTableItem *  item)
inline

Definition at line 415 of file kexitableviewdata.h.

◆ at()

KexiTableItem * KexiTableViewData::at ( uint  index)
inline

Definition at line 406 of file kexitableviewdata.h.

◆ autoIncrementedColumn()

int KexiTableViewData::autoIncrementedColumn ( )
Returns
index of autoincremented column. The result is cached.
Todo:

what about multiple autoinc columns?

what about changing column order?

Definition at line 845 of file kexitableviewdata.cpp.

◆ clearInternal()

void KexiTableViewData::clearInternal ( )
virtual

Definition at line 814 of file kexitableviewdata.cpp.

◆ clearRowEditBuffer()

void KexiTableViewData::clearRowEditBuffer ( )

Clears and initializes internal row edit buffer for incoming editing. Creates buffer using KexiDB::RowEditBuffer(false) (false means not db-aware type) if our data is not db-aware, or db-aware buffer if data is db-aware (isDBAware()==true).

See also
KexiDB::RowEditBuffer

Definition at line 571 of file kexitableviewdata.cpp.

◆ cmpBLOB()

int KexiTableViewData::cmpBLOB ( Item  item1,
Item  item2 
)
protected

Compare function for BLOB data (TQByteArray). Uses size as the weight.

Definition at line 547 of file kexitableviewdata.cpp.

◆ cmpDate()

int KexiTableViewData::cmpDate ( Item  item1,
Item  item2 
)
protected

Definition at line 491 of file kexitableviewdata.cpp.

◆ cmpDateTime()

int KexiTableViewData::cmpDateTime ( Item  item1,
Item  item2 
)
protected

Definition at line 496 of file kexitableviewdata.cpp.

◆ cmpDouble()

int KexiTableViewData::cmpDouble ( Item  item1,
Item  item2 
)
protected

Definition at line 486 of file kexitableviewdata.cpp.

◆ cmpInt()

int KexiTableViewData::cmpInt ( Item  item1,
Item  item2 
)
protected

Definition at line 466 of file kexitableviewdata.cpp.

◆ cmpLongLong()

int KexiTableViewData::cmpLongLong ( Item  item1,
Item  item2 
)
protected

Definition at line 476 of file kexitableviewdata.cpp.

◆ cmpStr()

int KexiTableViewData::cmpStr ( Item  item1,
Item  item2 
)
protected

Definition at line 506 of file kexitableviewdata.cpp.

◆ cmpTime()

int KexiTableViewData::cmpTime ( Item  item1,
Item  item2 
)
protected

Definition at line 501 of file kexitableviewdata.cpp.

◆ cmpUInt()

int KexiTableViewData::cmpUInt ( Item  item1,
Item  item2 
)
protected

Definition at line 471 of file kexitableviewdata.cpp.

◆ cmpULongLong()

int KexiTableViewData::cmpULongLong ( Item  item1,
Item  item2 
)
protected

Definition at line 481 of file kexitableviewdata.cpp.

◆ column()

KexiTableViewColumn * KexiTableViewData::column ( uint  c)
inline

Definition at line 295 of file kexitableviewdata.h.

◆ columnsCount()

uint KexiTableViewData::columnsCount ( ) const
inline

Definition at line 293 of file kexitableviewdata.h.

◆ compareItems()

int KexiTableViewData::compareItems ( Item  item1,
Item  item2 
)
protectedvirtual

Definition at line 444 of file kexitableviewdata.cpp.

◆ containsROWIDInfo()

bool KexiTableViewData::containsROWIDInfo ( ) const
inline
Returns
true if ROWID information is stored within every row. Only reasonable for db-aware version. ROWID information is available if DriverBehaviour::ROW_ID_FIELD_RETURNS_LAST_AUTOINCREMENTED_VALUE == false for a KexiDB database driver and a table has no primary key defined. Phisically, ROWID information is stored after last KexiTableItem's element, so every KexiTableItem's length is expanded by one.

Definition at line 426 of file kexitableviewdata.h.

◆ count()

virtual uint KexiTableViewData::count ( ) const
inlinevirtual

Definition at line 407 of file kexitableviewdata.h.

◆ createItem()

KexiTableItem * KexiTableViewData::createItem ( ) const
inline

Definition at line 428 of file kexitableviewdata.h.

◆ createIterator()

Iterator * KexiTableViewData::createIterator ( )
inline

Definition at line 418 of file kexitableviewdata.h.

◆ cursor()

KexiDB::Cursor * KexiTableViewData::cursor ( ) const
inline

Definition at line 291 of file kexitableviewdata.h.

◆ dbTableName()

TQString KexiTableViewData::dbTableName ( ) const

For db-aware data set only: table name is returned; equivalent to cursor()->query()->parentTable()->name().

Definition at line 389 of file kexitableviewdata.cpp.

◆ deleteAllRows()

bool KexiTableViewData::deleteAllRows ( bool  repaint = false)
virtual

Deletes all rows. Works either for db-aware and non db-aware tables. Column's definition is not changed. For db-aware version, all rows are removed from a database. Row-edit buffer is cleared.

If repaint is true, reloadRequested() signal is emitted after deleting (if at least one row was deleted), so presenters can repaint their contents.

Returns
true on success.

Definition at line 830 of file kexitableviewdata.cpp.

◆ deleteLater

void KexiTableViewData::deleteLater ( )
slot

Definition at line 355 of file kexitableviewdata.cpp.

◆ deleteRow()

bool KexiTableViewData::deleteRow ( KexiTableItem &  item,
bool  repaint = false 
)

Definition at line 759 of file kexitableviewdata.cpp.

◆ deleteRows()

void KexiTableViewData::deleteRows ( const TQValueList< int > &  rowsToDelete,
bool  repaint = false 
)

Deletes rows (by number) passed with rowsToDelete. Currently, this method is only for non data-aware tables.

Definition at line 787 of file kexitableviewdata.cpp.

◆ findRef()

int KexiTableViewData::findRef ( const KexiTableItem *  item)
inline

Definition at line 411 of file kexitableviewdata.h.

◆ first()

KexiTableItem * KexiTableViewData::first ( )
inline

Definition at line 409 of file kexitableviewdata.h.

◆ globalColumnID()

int KexiTableViewData::globalColumnID ( int  visibleID)
inline

Definition at line 280 of file kexitableviewdata.h.

◆ init() [1/2]

void KexiTableViewData::init ( )
protected

Definition at line 332 of file kexitableviewdata.cpp.

◆ init() [2/2]

void KexiTableViewData::init ( const TQValueList< TQVariant > &  keys,
const TQValueList< TQVariant > &  values,
KexiDB::Field::Type  keyType,
KexiDB::Field::Type  valueType 
)
protected

Definition at line 306 of file kexitableviewdata.cpp.

◆ insertRow()

void KexiTableViewData::insertRow ( KexiTableItem &  item,
uint  index,
bool  repaint = false 
)

Inserts new item at index index. item will be owned by this data object. Note: Reasonable only for not not-db-aware version.

Definition at line 807 of file kexitableviewdata.cpp.

◆ isDBAware()

bool KexiTableViewData::isDBAware ( )
inline
Returns
true if this db-aware data set.

Definition at line 285 of file kexitableviewdata.h.

◆ isEmpty()

bool KexiTableViewData::isEmpty ( ) const
inline

Definition at line 408 of file kexitableviewdata.h.

◆ isInsertingEnabled()

virtual bool KexiTableViewData::isInsertingEnabled ( ) const
inlinevirtual
Returns
true if data inserting is enabled (the default).

Definition at line 311 of file kexitableviewdata.h.

◆ isReadOnly()

bool KexiTableViewData::isReadOnly ( ) const
virtual
Returns
true if data is not editable. Can be set using setReadOnly() but it's still true if database cursor returned by cursor() is not 0 and has read-only connection.

Definition at line 881 of file kexitableviewdata.cpp.

◆ iterator()

Iterator KexiTableViewData::iterator ( )
inline

Definition at line 417 of file kexitableviewdata.h.

◆ last()

KexiTableItem * KexiTableViewData::last ( )
inline

Definition at line 410 of file kexitableviewdata.h.

◆ preloadAllRows()

void KexiTableViewData::preloadAllRows ( )

Preloads all rows provided by cursor (only for db-aware version).

Todo:
change to bool and return false on error!

Definition at line 861 of file kexitableviewdata.cpp.

◆ prepend()

void KexiTableViewData::prepend ( const KexiTableItem *  item)
inline

Definition at line 416 of file kexitableviewdata.h.

◆ reload()

void KexiTableViewData::reload ( )
inline

Emits reloadRequested() signal to reload presenters.

Definition at line 404 of file kexitableviewdata.h.

◆ reloadRequested

void KexiTableViewData::reloadRequested ( )
signal

Displayed data needs to be reloaded in all presenters.

◆ removeFirst()

bool KexiTableViewData::removeFirst ( )
inline

Definition at line 413 of file kexitableviewdata.h.

◆ removeLast()

bool KexiTableViewData::removeLast ( )
inline

Definition at line 414 of file kexitableviewdata.h.

◆ result()

KexiDB::ResultInfo * KexiTableViewData::result ( )
inline
Returns
last operation's result information (always not null).

Definition at line 360 of file kexitableviewdata.h.

◆ rowDeleted

void KexiTableViewData::rowDeleted ( )
signal

Current row has been deleted.

◆ rowEditBuffer()

KexiDB::RowEditBuffer * KexiTableViewData::rowEditBuffer ( ) const
inline

Definition at line 357 of file kexitableviewdata.h.

◆ rowInserted [1/2]

void KexiTableViewData::rowInserted ( KexiTableItem *  ,
bool  repaint 
)
signal

A row has been inserted.

◆ rowInserted [2/2]

void KexiTableViewData::rowInserted ( KexiTableItem *  ,
uint  index,
bool  repaint 
)
signal

A row has been inserted at index position (not db-aware data only)

◆ rowsDeleted

void KexiTableViewData::rowsDeleted ( const TQValueList< int > &  rowsToDelete)
signal

Rows have been deleted.

◆ rowUpdated

void KexiTableViewData::rowUpdated ( KexiTableItem *  )
signal

Current row has been updated.

◆ saveNewRow()

bool KexiTableViewData::saveNewRow ( KexiTableItem &  item,
bool  repaint = false 
)

Definition at line 744 of file kexitableviewdata.cpp.

◆ saveRow()

bool KexiTableViewData::saveRow ( KexiTableItem &  item,
bool  insert,
bool  repaint 
)
protected

internal: for saveRowChanges() and saveNewRow()

Todo:
if there're multiple views for this data, we need multiple buffers!
Todo:
set m_result.column if possible

Definition at line 638 of file kexitableviewdata.cpp.

◆ saveRowChanges()

bool KexiTableViewData::saveRowChanges ( KexiTableItem &  item,
bool  repaint = false 
)

Definition at line 729 of file kexitableviewdata.cpp.

◆ setInsertingEnabled()

void KexiTableViewData::setInsertingEnabled ( bool  set)
virtual

Sets insertingEnabled flag. If true, empty row is available If set is true, read-only flag will be cleared automatically.

See also
setReadOnly()

Definition at line 562 of file kexitableviewdata.cpp.

◆ setReadOnly()

void KexiTableViewData::setReadOnly ( bool  set)
virtual

Sets readOnly flag for this data. If set is true, insertingEnabled flag will be cleared automatically.

See also
isInsertingEnabled()

Definition at line 553 of file kexitableviewdata.cpp.

◆ setSorting()

void KexiTableViewData::setSorting ( int  column,
bool  ascending = true 
)

Sets sorting for column. If column is -1, sorting is disabled.

TODO allow users to define BLOB sorting function?

Definition at line 396 of file kexitableviewdata.cpp.

◆ sort()

void KexiTableViewData::sort ( )
inline

Definition at line 412 of file kexitableviewdata.h.

◆ sortedColumn()

int KexiTableViewData::sortedColumn ( ) const
inline
Returns
the column number by which the data is sorted, or -1 if sorting is disabled. In this case sortingOrder() will return 0. Initial sorted column number for data after instantiating object is -1.

Definition at line 269 of file kexitableviewdata.h.

◆ sortingOrder()

int KexiTableViewData::sortingOrder ( ) const
inline
Returns
1 if ascending sort order is set, -1 id descending sort order is set, or 0 if no sorting is set. This is independent of whether data is sorted now. Initial sorting for data after instantiating object is 0.

Definition at line 274 of file kexitableviewdata.h.

◆ updateRowEditBuffer() [1/2]

bool KexiTableViewData::updateRowEditBuffer ( KexiTableItem *  item,
int  colnum,
KexiTableViewColumn *  col,
TQVariant  newval,
bool  allowSignals = true 
)
inline

Added for convenience. Like above but newval is passed by value.

Definition at line 341 of file kexitableviewdata.h.

◆ updateRowEditBuffer() [2/2]

bool KexiTableViewData::updateRowEditBuffer ( KexiTableItem *  item,
int  colnum,
TQVariant  newval,
bool  allowSignals = true 
)
inline

Added for convenience. Like above but it's assumed that item item's columns are ordered like in table view, not like in form view. Don't use this with form views.

Definition at line 350 of file kexitableviewdata.h.

◆ updateRowEditBufferRef()

bool KexiTableViewData::updateRowEditBufferRef ( KexiTableItem *  item,
int  colnum,
KexiTableViewColumn *  col,
TQVariant &  newval,
bool  allowSignals = true,
TQVariant *  visibleValueForLookupField = 0 
)

Updates internal row edit buffer: currently edited column col (number colnum) has now assigned new value of newval. Uses column's caption to address the column in buffer if the buffer is of simple type, or db-aware buffer if (isDBAware()==true). (then fields are addressed with KexiDB::Field, instead of caption strings). If allowSignals is true (the default), aboutToChangeCell() signal is emitted. visibleValueForLookupField allows to pass visible value (usually a text) for a lookup field (only reasonable if col->visibleLookupColumnInfo != 0). Note that newval may be changed in aboutToChangeCell() signal handler.

See also
KexiDB::RowEditBuffer

Definition at line 580 of file kexitableviewdata.cpp.

◆ visibleColumnID()

int KexiTableViewData::visibleColumnID ( int  globalID)
inline

Definition at line 281 of file kexitableviewdata.h.

Member Data Documentation

◆ charTable

unsigned short KexiTableViewData::charTable
staticprotected
Initial value:
=
{
}

Definition at line 41 of file kexitableviewdata.h.

◆ cmpFunc

int(KexiTableViewData::* KexiTableViewData::cmpFunc) (void *, void *)
protected

Definition at line 534 of file kexitableviewdata.h.

◆ columns

KexiTableViewColumn::List KexiTableViewData::columns

Columns information

Definition at line 298 of file kexitableviewdata.h.

◆ m_autoIncrementedColumn

int KexiTableViewData::m_autoIncrementedColumn
protected

Definition at line 532 of file kexitableviewdata.h.

◆ m_containsROWIDInfo

bool KexiTableViewData::m_containsROWIDInfo
protected
See also
containsROWIDInfo()

Definition at line 530 of file kexitableviewdata.h.

◆ m_cursor

TQGuardedPtr<KexiDB::Cursor> KexiTableViewData::m_cursor
protected

Definition at line 512 of file kexitableviewdata.h.

◆ m_globalColumnsIDs

TQValueVector<int> KexiTableViewData::m_globalColumnsIDs
protected

Definition at line 520 of file kexitableviewdata.h.

◆ m_insertingEnabled

bool KexiTableViewData::m_insertingEnabled
protected

Definition at line 523 of file kexitableviewdata.h.

◆ m_inside_acceptEditor

bool KexiTableViewData::m_inside_acceptEditor
protected

Used in acceptEditor() to avoid infinite recursion, eg. when we're calling acceptRowEdit() during cell accepting phase.

Definition at line 527 of file kexitableviewdata.h.

◆ m_itemSize

int KexiTableViewData::m_itemSize
protected

Definition at line 509 of file kexitableviewdata.h.

◆ m_leftTmp

TQVariant KexiTableViewData::m_leftTmp
protected

Temporary, used in compare functions like cmpInt(), cmpString() to avoid memory allocations.

Definition at line 538 of file kexitableviewdata.h.

◆ m_order

short KexiTableViewData::m_order
protected

Definition at line 507 of file kexitableviewdata.h.

◆ m_pRowEditBuffer

KexiDB::RowEditBuffer* KexiTableViewData::m_pRowEditBuffer
protected

Definition at line 511 of file kexitableviewdata.h.

◆ m_readOnly

bool KexiTableViewData::m_readOnly
protected

Definition at line 522 of file kexitableviewdata.h.

◆ m_realSortedColumn

int KexiTableViewData::m_realSortedColumn
protected

real sorted column number, set by setSorting(), used by cmp*() methods

Definition at line 506 of file kexitableviewdata.h.

◆ m_result

KexiDB::ResultInfo KexiTableViewData::m_result
protected

used to faster lookup columns of simple type (not dbaware)

Definition at line 517 of file kexitableviewdata.h.

◆ m_rightTmp

TQVariant KexiTableViewData::m_rightTmp
protected

Definition at line 538 of file kexitableviewdata.h.

◆ m_sortedColumn

int KexiTableViewData::m_sortedColumn
protected

(logical) sorted column number, set by setSorting() can differ from m_realSortedColumn if there's lookup column used

Definition at line 504 of file kexitableviewdata.h.

◆ m_type

short KexiTableViewData::m_type
protected

Definition at line 508 of file kexitableviewdata.h.

◆ m_visibleColumnsCount

uint KexiTableViewData::m_visibleColumnsCount
protected

Definition at line 519 of file kexitableviewdata.h.

◆ m_visibleColumnsIDs

TQValueVector<int> KexiTableViewData::m_visibleColumnsIDs
protected

Definition at line 520 of file kexitableviewdata.h.


The documentation for this class was generated from the following files: