Table Class Reference

Inheritance diagram for Table:
MdiSubWindow

List of all members.

Public Types

enum  ImportMode { NewColumns, NewRows, Overwrite }
enum  NumericFormat { Default = 0, Decimal = 1, Scientific = 2 }
enum  PlotDesignation {
  None = 0, X = 1, Y = 2, Z = 3,
  xErr = 4, yErr = 5, Label = 6
}

Public Member Functions

End void __delitem__ (SIP_PYSLICE)
void __delitem__ (int)
End SIP_PYTUPLE __getitem__ (int)
int __len__ ()
End void __setitem__ (int, SIP_PYTUPLE)
void addCol (PlotDesignation pd=Y)/PyName
int addRow ()
End bool calculate (SIP_PYOBJECT col, int startRow=1, int endRow=-1, bool forceMuParser=false, bool notifyChanges=true)/PyName
End double cell (SIP_PYOBJECT, int)
End SIP_PYOBJECT cellData (SIP_PYOBJECT, int)
 CHECK_TABLE_COL (a0)
 CHECK_TABLE_COL (a0)
 CHECK_TABLE_COL (a0)
 CHECK_TABLE_COL (a0)
 CHECK_TABLE_COL (a0)
 CHECK_TABLE_COL (a0)
 CHECK_TABLE_COL (a0)
 CHECK_TABLE_COL (a0)
 CHECK_TABLE_COL (a0)
 CHECK_TABLE_COL (a0)
 CHECK_TABLE_COL (a0)
 CHECK_TABLE_COL (a0)
 CHECK_TABLE_COL (a0)
 CHECK_TABLE_COL (a0)
 CHECK_TABLE_COL (a0)
 CHECK_TABLE_COL (a0)
 CHECK_TABLE_COL (a0)
 CHECK_TABLE_COL (a0)
 CHECK_TABLE_COL (a0)
 CHECK_TABLE_COL (a0)
 CHECK_TABLE_COL (a0)
 CHECK_TABLE_COL (a0)
 CHECK_TABLE_COL (a0)
 CHECK_TABLE_COL (a0)
 CHECK_TABLE_COL (a0)
 CHECK_TABLE_COL (a0)
 CHECK_TABLE_COL (a0)
 CHECK_TABLE_COL (a0)
 CHECK_TABLE_COL (a0)
 CHECK_TABLE_COL (a0)
 CHECK_TABLE_COL (a0)
 CHECK_TABLE_ROW (a1)
 CHECK_TABLE_ROW (a0)
 CHECK_TABLE_ROW (a1)
 CHECK_TABLE_ROW (a1)
 CHECK_TABLE_ROW (a1)
 CHECK_TABLE_ROW (a0)
 CHECK_TABLE_ROW (a0)
 CHECK_TABLE_ROW (a1)
 CHECK_TABLE_ROW (a1)
 CHECK_TABLE_ROW (a1)
End SIP_PYOBJECT colName (int)
End SIP_PYTUPLE colNames ()
sipCpp comment (col).toAscii().constData())
End QString comment (SIP_PYOBJECT)
else sipCpp deleteRows (a0+1, a0+1)
void deleteRows (int, int)
bool exportASCII (const QString &, const QString &="\t", bool=false, bool=false, bool=false)
End int firstSelectedColumn ()
 for (int i=0;i< n;i++)
void hideColumn (SIP_PYOBJECT, bool=true)
 if (sipIsErr==0) sipCpp->table()->ensureCellVisible(row
 if (PyInt_Check(a1))
 if (sipIsErr==0) sipCpp->insertCols(col
 if (sipIsErr==0) sipCpp->setSelectedCol(col)
 if (sipIsErr==0) return Py_BuildValue("b"
 if (sipIsErr==0) return Py_BuildValue("b"
 if (sipIsErr==0) sipCpp->hideColumn(col
 if (sipIsErr==0) sipCpp->setColumnWidth(col
 if (sipIsErr==0) sipCpp->setDayFormat(*a1
 if (sipIsErr==0) sipCpp->setMonthFormat(*a1
 if (sipIsErr==0) sipCpp->setTimeFormat(*a1
 if (sipIsErr==0) sipCpp->setDateFormat(*a1
 if (sipIsErr==0) sipCpp->setColNumericFormat(a1
 if (sipIsErr==0) sipCpp->setTextFormat(col)
 if (sipIsErr==0)
 if (sipIsErr==0) sipCpp->setReadOnlyColumn(col
 if (sipIsErr==0) sipCpp->setColComment(col
 if (sipIsErr==0) return Py_BuildValue("s"
 if (sipIsErr==0) sipCpp->calculate(col
 if (a2==-1) a2
 if (sipIsErr==0) sipCpp->setCommand(col
 if (sipIsErr==0) sipCpp->sortColumn(col
 if (sipIsErr==0) sipCpp->normalizeCol(col)
 if (sipIsErr==0) sipCpp->setColName(col
 if (sipRes)
MethodCode if (a0< 1||a0 > sipCpp->numCols())
 if (sipIsErr==0) sipIsErr
 if (sipIsErr==0) sipCpp->setCell(row
 if (sipIsErr==0) sipCpp->setText(row
 if (iterator==NULL)
 if (ret==NULL) sipIsErr
 if (idx< 0) sipIsErr
 if (sipIsErr==0)
 if (n!=size)
 if (sipIsErr==0)
 if (PySlice_GetIndicesEx((PySliceObject *) a0, len,&start,&stop,&step,&slicelength)< 0) sipIsErr
 if (idx< 0) sipIsErr
 if (sipIsErr==0)
 if (sipIsErr==0) sipIsErr
 if (sipIsErr==0)
 if (sipIsErr==0)
 if (sipIsErr==0)
 if (PySlice_GetIndicesEx((PySliceObject *) a0, len,&start,&stop,&step,&slicelength)< 0) sipIsErr
 if ((a0=(int) sipConvertFromSequenceIndex(a0, len))< 0) sipIsErr
void importASCII (const QString &, const QString &="\t", int=0, bool=false, bool=true, bool=false, bool=false, const QString &="#", bool=false, ImportMode=Overwrite, const QLocale &=QLocale(), int=0, int=-1, const QList< int > &=QList< int >(), const QStringList &=QStringList())
End void insertColumns (SIP_PYOBJECT, int)
sipCpp isColumnSelected (col, a1))
End bool isColumnSelected (SIP_PYOBJECT, bool=false)/PyName
sipCpp isRowSelected (row, a1))
End bool isRowSelected (int, bool=false)
End void normalize ()
End void normalizeCol (SIP_PYOBJECT)/PyName
void notifyChanges ()
End int numCols ()
int numRows ()
int numSelectedRows ()
 Py_DECREF (methodName)
 Py_DECREF (rowNumber)
else Py_DECREF (ret)
End void removeCol (SIP_PYOBJECT)
sipCpp resizeRows (sipRes)
sipCpp resizeRows (sipRes)
End SIP_PYTUPLE rowData (int)
End void scrollToCell (SIP_PYOBJECT, int)
End int selectedColumn ()
End void setCell (SIP_PYOBJECT, int, double)
End void setCellData (SIP_PYOBJECT, int, SIP_PYOBJECT)
End void setColData (SIP_PYOBJECT, SIP_PYOBJECT, int=0)
End void setColDateFormat (SIP_PYOBJECT, const QString &, bool=true)
End void setColDayFormat (SIP_PYOBJECT, const QString &, bool=true)
End void setColMonthFormat (SIP_PYOBJECT, const QString &, bool=true)
End void setColName (SIP_PYOBJECT, const QString &, bool=false)
End void setColNumericFormat (SIP_PYOBJECT, int, int, bool=true)
End void setColTextFormat (SIP_PYOBJECT)
End void setColTimeFormat (SIP_PYOBJECT, const QString &, bool=true)
End void setColumnRole (SIP_PYOBJECT, PlotDesignation)
End void setColumnWidth (SIP_PYOBJECT, int)
End void setCommand (SIP_PYOBJECT, const QString &)
End void setComment (SIP_PYOBJECT, const QString &)
void setDecimalSeparators (int, bool=true)
End void setHeader (QStringList header)/PyName
void setNumCols (int)
void setNumRows (int)
void setReadOnlyColumn (SIP_PYOBJECT, bool=true)
End void setRowData (int, SIP_PYTUPLE)
void setSelectedCol (SIP_PYOBJECT)
End void setText (SIP_PYOBJECT, int, const QString &)
End void showAllColumns ()
End void showComments (bool on=true)
End void sort (int type=0, int order=0, const QString &leadCol=QString())
void sortColumn (SIP_PYOBJECT, int order=0)
sipCpp sortColumns (l, a1, a2,*a3)
void sortColumns (SIP_PYTUPLE, int=0, int=0, const QString &=QString())
End void swapColumns (SIP_PYOBJECT, SIP_PYOBJECT)
 switch (a0)

Public Attributes

 a1
a1
 a2
a2
 a3
 a4
 col
int col2
MethodCode SIP_SSIZE_T idx = sipConvertFromSequenceIndex(a0, sipCpp->numRows())
MethodCode PyObject * item
PyObject * iterator = PyObject_GetIter(a1)
MethodCode QStringList l = sipCpp->colNames()
 len = sipCpp->numRows()
MethodCode SIP_SSIZE_T len
MethodCode int len = sipCpp->numRows()
MethodCode QLocale locale
PyObject * methodName = PyString_FromString("setRowData")
int n = PyTuple_Size(a1)
PyObject * ret = PyObject_CallMethodObjArgs(sipSelf, methodName, rowNumber, a0, NULL)
PyObject * rowNumber = PyInt_FromLong(sipRes)
else sipIsErr = 1
 sipIsErr = 0
MethodCode sipIsErr = 0
 sipRes = PyTuple_New(size)
else sipRes = PyString_FromString(sipCpp->colLabel(a0-1))
MethodCode sipRes = sipCpp->numRows()
int size = sipCpp->numCols()
MethodCode SIP_SSIZE_T slicelength
MethodCode SIP_SSIZE_T start
MethodCode SIP_SSIZE_T step
MethodCode SIP_SSIZE_T stop
int tableLength = sipCpp->numRows()

Private Member Functions

 Table (const Table &)

Static Private Member Functions

static int cellDataHelper (Table *table, int row, int col, PyObject **item)
static int setCellDataHelper (Table *table, int row, int col, PyObject *item)

Member Enumeration Documentation

Enumerator:
NewColumns 
NewRows 
Overwrite 
Enumerator:
Default 
Decimal 
Scientific 
Enumerator:
None 
X 
Y 
Z 
xErr 
yErr 
Label 

Constructor & Destructor Documentation

Table::Table ( const Table  )  [private]

Member Function Documentation

End void Table::__delitem__ ( SIP_PYSLICE   ) 
void Table::__delitem__ ( int   ) 
End SIP_PYTUPLE Table::__getitem__ ( int   ) 
int Table::__len__ (  ) 
End void Table::__setitem__ ( int  ,
SIP_PYTUPLE   
)
void Table::addCol ( PlotDesignation  pd = Y  ) 
int Table::addRow (  ) 
End bool Table::calculate ( SIP_PYOBJECT  col,
int  startRow = 1,
int  endRow = -1,
bool  forceMuParser = false,
bool  notifyChanges = true 
)
End double Table::cell ( SIP_PYOBJECT  ,
int   
)

Referenced by cellDataHelper().

End SIP_PYOBJECT Table::cellData ( SIP_PYOBJECT  ,
int   
)
static int Table::cellDataHelper ( Table table,
int  row,
int  col,
PyObject **  item 
) [inline, static, private]

References cell().

Referenced by if().

Table::CHECK_TABLE_COL ( a0   ) 
Table::CHECK_TABLE_COL ( a0   ) 
Table::CHECK_TABLE_COL ( a0   ) 
Table::CHECK_TABLE_COL ( a0   ) 
Table::CHECK_TABLE_COL ( a0   ) 
Table::CHECK_TABLE_COL ( a0   ) 
Table::CHECK_TABLE_COL ( a0   ) 
Table::CHECK_TABLE_COL ( a0   ) 
Table::CHECK_TABLE_COL ( a0   ) 
Table::CHECK_TABLE_COL ( a0   ) 
Table::CHECK_TABLE_COL ( a0   ) 
Table::CHECK_TABLE_COL ( a0   ) 
Table::CHECK_TABLE_COL ( a0   ) 
Table::CHECK_TABLE_COL ( a0   ) 
Table::CHECK_TABLE_COL ( a0   ) 
Table::CHECK_TABLE_COL ( a0   ) 
Table::CHECK_TABLE_COL ( a0   ) 
Table::CHECK_TABLE_COL ( a0   ) 
Table::CHECK_TABLE_COL ( a0   ) 
Table::CHECK_TABLE_COL ( a0   ) 
Table::CHECK_TABLE_COL ( a0   ) 
Table::CHECK_TABLE_COL ( a0   ) 
Table::CHECK_TABLE_COL ( a0   ) 
Table::CHECK_TABLE_COL ( a0   ) 
Table::CHECK_TABLE_COL ( a0   ) 
Table::CHECK_TABLE_COL ( a0   ) 
Table::CHECK_TABLE_COL ( a0   ) 
Table::CHECK_TABLE_COL ( a0   ) 
Table::CHECK_TABLE_COL ( a0   ) 
Table::CHECK_TABLE_COL ( a0   ) 
Table::CHECK_TABLE_COL ( a0   ) 
Table::CHECK_TABLE_ROW ( a1   ) 
Table::CHECK_TABLE_ROW ( a0   ) 
Table::CHECK_TABLE_ROW ( a1   ) 
Table::CHECK_TABLE_ROW ( a1   ) 
Table::CHECK_TABLE_ROW ( a1   ) 
Table::CHECK_TABLE_ROW ( a0   ) 
Table::CHECK_TABLE_ROW ( a0   ) 
Table::CHECK_TABLE_ROW ( a1   ) 
Table::CHECK_TABLE_ROW ( a1   ) 
Table::CHECK_TABLE_ROW ( a1   ) 
End SIP_PYOBJECT Table::colName ( int   ) 
End SIP_PYTUPLE Table::colNames (  ) 
sipCpp Table::comment ( col   )  const
End QString Table::comment ( SIP_PYOBJECT   ) 
else sipCpp Table::deleteRows ( a0+  1,
a0+  1 
)
void Table::deleteRows ( int  ,
int   
)
bool Table::exportASCII ( const QString &  ,
const QString &  = "\t",
bool  = false,
bool  = false,
bool  = false 
)
End int Table::firstSelectedColumn (  ) 
Table::for (  )  [inline]

References l, Py_DECREF(), and sipIsErr.

void Table::hideColumn ( SIP_PYOBJECT  ,
bool  = true 
)
Table::if ( sipIsErr  = = 0  ) 
Table::if ( PyInt_Check(a1  )  [inline]

References a1, col2, and sipIsErr.

Table::if ( sipIsErr  = = 0  ) 
Table::if ( sipIsErr  = =0  ) 
Table::if ( sipIsErr  = = 0  ) 
Table::if ( sipIsErr  = = 0  ) 
Table::if ( sipIsErr  = = 0  ) 
Table::if ( sipIsErr  = = 0  ) 
Table::if ( sipIsErr  = = 0  ) 
Table::if ( sipIsErr  = = 0  ) 
Table::if ( sipIsErr  = = 0  ) 
Table::if ( sipIsErr  = = 0  ) 
Table::if ( sipIsErr  = = 0  ) 
Table::if ( sipIsErr  = =0  ) 
Table::if ( sipIsErr  = = 0  )  [inline]

References a1, and col.

Table::if ( sipIsErr  = = 0  ) 
Table::if ( sipIsErr  = = 0  ) 
Table::if ( sipIsErr  = = 0  ) 
Table::if ( sipIsErr  = = 0  ) 
Table::if ( a2  = =-1  ) 
Table::if ( sipIsErr  = = 0  ) 
Table::if ( sipIsErr  = = 0  ) 
Table::if ( sipIsErr  = =0  ) 
Table::if ( sipIsErr  = = 0  ) 
Table::if ( sipRes   )  [inline]

References l, sipRes, and size.

MethodCode Table::if ( a0< 1||a0 > sipCpp->  numCols()  )  [inline]

References sipIsErr.

Table::if ( sipIsErr  = =0  ) 
Table::if ( sipIsErr  = = 0  ) 
Table::if ( sipIsErr  = = 0  ) 
Table::if ( iterator  = = NULL  )  [inline]

References sipIsErr.

Table::if ( ret  = =NULL  ) 
Table::if (  ) 
Table::if ( sipIsErr  = = 0  )  [inline]

References a1, col, setCellDataHelper(), sipIsErr, and size.

Table::if ( n!  = size  )  [inline]

References sipIsErr.

Table::if ( sipIsErr  = = 0  )  [inline]
Table::if (  ) 
Table::if (  ) 
Table::if ( sipIsErr  = = 0  )  [inline]
Table::if ( sipIsErr  = =0  ) 
Table::if ( sipIsErr  = = 0  )  [inline]

References col, and sipRes.

Table::if ( sipIsErr  = = 0  )  [inline]

References col.

Table::if ( sipIsErr  = = 0  )  [inline]

References col, Py_DECREF(), sipIsErr, and sipRes.

Table::if (  ) 
Table::if (  ) 
void Table::importASCII ( const QString &  ,
const QString &  = "\t",
int  = 0,
bool  = false,
bool  = true,
bool  = false,
bool  = false,
const QString &  = "#",
bool  = false,
ImportMode  = Overwrite,
const QLocale &  = QLocale(),
int  = 0,
int  = -1,
const QList< int > &  = QList< int >(),
const QStringList &  = QStringList() 
)
End void Table::insertColumns ( SIP_PYOBJECT  ,
int   
)
sipCpp Table::isColumnSelected ( col  ,
a1   
)
End bool Table::isColumnSelected ( SIP_PYOBJECT  ,
bool  = false 
)
sipCpp Table::isRowSelected ( row  ,
a1   
)
End bool Table::isRowSelected ( int  ,
bool  = false 
)
End void Table::normalize (  ) 
End void Table::normalizeCol ( SIP_PYOBJECT   ) 
void Table::notifyChanges (  ) 
End int Table::numCols (  ) 
int Table::numRows (  ) 
int Table::numSelectedRows (  ) 
Table::Py_DECREF ( methodName   ) 
Table::Py_DECREF ( rowNumber   ) 
else Table::Py_DECREF ( ret   ) 

Referenced by for(), if(), and setCellDataHelper().

End void Table::removeCol ( SIP_PYOBJECT   ) 
sipCpp Table::resizeRows ( sipRes   ) 
sipCpp Table::resizeRows ( sipRes   ) 
End SIP_PYTUPLE Table::rowData ( int   ) 
End void Table::scrollToCell ( SIP_PYOBJECT  ,
int   
)
End int Table::selectedColumn (  ) 
End void Table::setCell ( SIP_PYOBJECT  ,
int  ,
double   
)

Referenced by setCellDataHelper().

End void Table::setCellData ( SIP_PYOBJECT  ,
int  ,
SIP_PYOBJECT   
)
static int Table::setCellDataHelper ( Table table,
int  row,
int  col,
PyObject *  item 
) [inline, static, private]

References Py_DECREF(), setCell(), and setText().

Referenced by if().

End void Table::setColData ( SIP_PYOBJECT  ,
SIP_PYOBJECT  ,
int  = 0 
)
End void Table::setColDateFormat ( SIP_PYOBJECT  ,
const QString &  ,
bool  = true 
)
End void Table::setColDayFormat ( SIP_PYOBJECT  ,
const QString &  ,
bool  = true 
)
End void Table::setColMonthFormat ( SIP_PYOBJECT  ,
const QString &  ,
bool  = true 
)
End void Table::setColName ( SIP_PYOBJECT  ,
const QString &  ,
bool  = false 
)
End void Table::setColNumericFormat ( SIP_PYOBJECT  ,
int  ,
int  ,
bool  = true 
)
End void Table::setColTextFormat ( SIP_PYOBJECT   ) 
End void Table::setColTimeFormat ( SIP_PYOBJECT  ,
const QString &  ,
bool  = true 
)
End void Table::setColumnRole ( SIP_PYOBJECT  ,
PlotDesignation   
)
End void Table::setColumnWidth ( SIP_PYOBJECT  ,
int   
)
End void Table::setCommand ( SIP_PYOBJECT  ,
const QString &   
)
End void Table::setComment ( SIP_PYOBJECT  ,
const QString &   
)
void Table::setDecimalSeparators ( int  ,
bool  = true 
)
End void Table::setHeader ( QStringList  header  ) 
void Table::setNumCols ( int   ) 
void Table::setNumRows ( int   ) 
void Table::setReadOnlyColumn ( SIP_PYOBJECT  ,
bool  = true 
)
End void Table::setRowData ( int  ,
SIP_PYTUPLE   
)
void Table::setSelectedCol ( SIP_PYOBJECT   ) 
End void Table::setText ( SIP_PYOBJECT  ,
int  ,
const QString &   
)

Referenced by setCellDataHelper().

End void Table::showAllColumns (  ) 
End void Table::showComments ( bool  on = true  ) 
End void Table::sort ( int  type = 0,
int  order = 0,
const QString &  leadCol = QString() 
)
void Table::sortColumn ( SIP_PYOBJECT  ,
int  order = 0 
)
sipCpp Table::sortColumns ( l  ,
a1  ,
a2  ,
a3 
)
void Table::sortColumns ( SIP_PYTUPLE  ,
int  = 0,
int  = 0,
const QString &  = QString() 
)
End void Table::swapColumns ( SIP_PYOBJECT  ,
SIP_PYOBJECT   
)
Table::switch ( a0   )  [inline]

References locale.


Member Data Documentation

Referenced by if().

Referenced by if().

Referenced by if().

MethodCode SIP_SSIZE_T Table::idx = sipConvertFromSequenceIndex(a0, sipCpp->numRows())
MethodCode PyObject * Table::item

Referenced by if().

PyObject* Table::iterator = PyObject_GetIter(a1)
MethodCode QStringList Table::l = sipCpp->colNames()

Referenced by for(), and if().

Table::len = sipCpp->numRows()
MethodCode SIP_SSIZE_T Table::len
MethodCode SIP_SSIZE_T Table::len = sipCpp->numRows()
MethodCode QLocale Table::locale

Referenced by switch().

PyObject* Table::methodName = PyString_FromString("setRowData")
int Table::n = PyTuple_Size(a1)
PyObject* Table::ret = PyObject_CallMethodObjArgs(sipSelf, methodName, rowNumber, a0, NULL)
PyObject* Table::rowNumber = PyInt_FromLong(sipRes)
else Table::sipIsErr = 1
MethodCode Table::sipIsErr = 0

Referenced by for(), and if().

Table::sipRes = PyTuple_New(size)

Reimplemented from MdiSubWindow.

else Table::sipRes = PyString_FromString(sipCpp->colLabel(a0-1))

Reimplemented from MdiSubWindow.

MethodCode Table::sipRes = sipCpp->numRows()

Reimplemented from MdiSubWindow.

Referenced by if().

int Table::size = sipCpp->numCols()

Referenced by if().

MethodCode SIP_SSIZE_T Table::slicelength
MethodCode SIP_SSIZE_T Table::start
MethodCode SIP_SSIZE_T Table::step
MethodCode SIP_SSIZE_T Table::stop
int Table::tableLength = sipCpp->numRows()

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

Generated on Wed Oct 27 12:11:20 2010 for QtiPlot_Python_API by  doxygen 1.6.1