Kexi API Documentation (2.0 alpha)

kexitableviewdata.cpp File Reference

#include "kexitableviewdata.h"
#include <kexiutils/validator.h>
#include <kexidb/field.h>
#include <kexidb/queryschema.h>
#include <kexidb/roweditbuffer.h>
#include <kexidb/cursor.h>
#include <kexidb/utils.h>
#include <kexi.h>
#include <kdebug.h>
#include <klocale.h>
#include <qapplication.h>
#include "chartable.txt"
#include "kexitableviewdata.moc"

Go to the source code of this file.

Defines

#define CMP_NULLS(item1, item2)
 compare NULLs : NULL is smaller than everything
#define CAST_AND_COMPARE(casting, item1, item2)
#define GET_VALUE


Define Documentation

#define CAST_AND_COMPARE casting,
item1,
item2   ) 
 

Value:

CMP_NULLS(item1, item2); \
    if (m_leftTmp.casting() < m_rightTmp.casting()) \
        return -m_order; \
    if (m_leftTmp.casting() > m_rightTmp.casting()) \
        return m_order; \
    return 0

Definition at line 448 of file kexitableviewdata.cpp.

Referenced by KexiTableViewData::cmpDate(), KexiTableViewData::cmpDateTime(), KexiTableViewData::cmpDouble(), KexiTableViewData::cmpInt(), KexiTableViewData::cmpLongLong(), KexiTableViewData::cmpTime(), KexiTableViewData::cmpUInt(), and KexiTableViewData::cmpULongLong().

#define CMP_NULLS item1,
item2   ) 
 

Value:

m_leftTmp = ((KexiTableItem *)item1)->at(m_realSortedColumn); \
    if (m_leftTmp.isNull()) \
        return -m_order; \
    m_rightTmp = ((KexiTableItem *)item2)->at(m_realSortedColumn); \
    if (m_rightTmp.isNull()) \
        return m_order
compare NULLs : NULL is smaller than everything

Definition at line 440 of file kexitableviewdata.cpp.

Referenced by KexiTableViewData::cmpBLOB(), and KexiTableViewData::cmpStr().

#define GET_VALUE
 

Value:

if (!val) { \
    val = m_cursor \
                ? m_pRowEditBuffer->at( *it_f.current()->columnInfo, true /* useDefaultValueIfPossible */ ) \
                : m_pRowEditBuffer->at( *f ); \
    if (!val) \
        val = &(*it_r); /* get old value */ \
    }

Definition at line 619 of file kexitableviewdata.cpp.

Referenced by KexiTableViewData::saveRow().

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