NAME
tlp::SpreadTable -
SYNOPSIS
#include <SpreadTable.h>
Public Types
enum View { NodesView, EdgesView }
enum { InsertAfter, InsertBefore }
enum { FindInFormula, FindInDisplayText }
enum { EditorRole = 32 }
enum { TextLineEditor = 0, DateEditor, TimeEditor, IntegerEditor,
DecimalEditor }
enum { ImageType }
Public Slots
void selectAll ()
===================================================================
void selectCurrentRow ()
void selectCurrentColumn ()
void userChangedItemDataSlot (int, int, QString &, QString &)
===================================================================
void verticalScroll (int)
void redrawView ()
Signals
void userChangedItemDataSignal (int, int, QString &, QString &)
void modified ()
void mouseReleasedSignal (SpreadTable *, QTableWidgetItem *)
Public Member Functions
SpreadTable (QWidget *=0)
void setView (View view)
void setGraph (Graph *graph)
===================================================================
void addRow (unsigned int id)
void delRow (unsigned int id)
void newSheet (int=10, int=10)
bool writeSheet (const QString &)
bool readSheet (const QString &)
QString getItemText (int, int, int=Qt::DisplayRole) const
===================================================================
QString getCurrentItemText (int=Qt::DisplayRole) const
QString getItemsText (const QTableWidgetSelectionRange &,
int=Qt::DisplayRole) const
bool setItemText (int, int, const QString &)
QByteArray getItemInByteArray (int, int) const
QByteArray getItemsInByteArray (const QTableWidgetSelectionRange &)
const
int getItemEditor (int, int) const
bool setItemEditor (int, int, int)
QString getCurrentItemLocation () const
QFont getItemFont (int, int) const
void setItemFont (int, int, const QFont &)
int getItemAlignment (int, int) const
void setItemAlignment (int, int, int)
QBrush getItemBackground (int, int) const
void setItemBackground (int, int, const QBrush &)
QBrush getItemForeground (int, int) const
void setItemForeground (int, int, const QBrush &)
void findNext (QString &, Qt::CaseSensitivity, int)
===================================================================
void findPrevious (QString &, Qt::CaseSensitivity, int)
void sort (SpreadTableSort)
===================================================================
void insertRows (int, int)
===================================================================
void insertColumns (int, int)
void deleteContents (const QTableWidgetSelectionRange &)
===================================================================
void deleteEntireRows (int, int)
void deleteEntireColumns (int, int)
void cut (QMimeData &)
===================================================================
void copy (QMimeData &)
bool paste (const QMimeData &, int, int)
QUndoStack * getUndoStack () const
===================================================================
QTableWidgetSelectionRange getSelectedRange ()
void paintEvent (QPaintEvent *)
void mousePressEvent (QMouseEvent *)
void mouseReleaseEvent (QMouseEvent *)
Static Public Member Functions
static void encodePosition (QString &, int)
===================================================================
static void encodePosition (QString &, int, int)
static void encodeRange (QString &, QTableWidgetSelectionRange)
static bool decodePosition (QString, int &, int &)
static bool decodeRange (QString, QTableWidgetSelectionRange &)
Member Enumeration Documentation
anonymous enum
Enumerator:
InsertAfter
InsertBefore
anonymous enum
Enumerator:
FindInFormula
FindInDisplayText
anonymous enum
Enumerator:
EditorRole
anonymous enum
Enumerator:
TextLineEditor
DateEditor
TimeEditor
IntegerEditor
DecimalEditor
anonymous enum
Enumerator:
ImageType
enum tlp::SpreadTable::View
Enumerator:
NodesView
EdgesView
Constructor & Destructor Documentation
tlp::SpreadTable::SpreadTable (QWidget * parent = 0)
Member Function Documentation
void tlp::SpreadTable::addRow (unsigned int id)
void tlp::SpreadTable::copy (QMimeData & mimeData)
void tlp::SpreadTable::cut (QMimeData & mimeData)
===================================================================
bool tlp::SpreadTable::decodePosition (QString text, int & row, int &
column) [static]
bool tlp::SpreadTable::decodeRange (QString text,
QTableWidgetSelectionRange & range) [static]
void tlp::SpreadTable::deleteContents (const QTableWidgetSelectionRange &
range)
===================================================================
void tlp::SpreadTable::deleteEntireColumns (int position, int amount)
void tlp::SpreadTable::deleteEntireRows (int position, int amount)
void tlp::SpreadTable::delRow (unsigned int id)
void tlp::SpreadTable::encodePosition (QString & text, int row, int column)
[static]
void tlp::SpreadTable::encodePosition (QString & text, int column) [static]
===================================================================
void tlp::SpreadTable::encodeRange (QString & text,
QTableWidgetSelectionRange range) [static]
void tlp::SpreadTable::findNext (QString & text, Qt::CaseSensitivity cs,
int findIn)
===================================================================
void tlp::SpreadTable::findPrevious (QString & text, Qt::CaseSensitivity
cs, int findIn)
QString tlp::SpreadTable::getCurrentItemLocation () const
QString tlp::SpreadTable::getCurrentItemText (int role = Qt::DisplayRole)
const
int tlp::SpreadTable::getItemAlignment (int row, int column) const
QBrush tlp::SpreadTable::getItemBackground (int row, int column) const
int tlp::SpreadTable::getItemEditor (int row, int column) const
QFont tlp::SpreadTable::getItemFont (int row, int column) const
QBrush tlp::SpreadTable::getItemForeground (int row, int column) const
QByteArray tlp::SpreadTable::getItemInByteArray (int row, int column) const
QByteArray tlp::SpreadTable::getItemsInByteArray (const
QTableWidgetSelectionRange & range) const
QString tlp::SpreadTable::getItemsText (const QTableWidgetSelectionRange &
range, int role = Qt::DisplayRole) const
QString tlp::SpreadTable::getItemText (int row, int column, int role =
Qt::DisplayRole) const
===================================================================
QTableWidgetSelectionRange tlp::SpreadTable::getSelectedRange ()
QUndoStack * tlp::SpreadTable::getUndoStack () const
===================================================================
void tlp::SpreadTable::insertColumns (int position, int amount)
void tlp::SpreadTable::insertRows (int position, int amount)
===================================================================
void tlp::SpreadTable::modified () [signal]
void tlp::SpreadTable::mousePressEvent (QMouseEvent * event)
void tlp::SpreadTable::mouseReleasedSignal (SpreadTable *, QTableWidgetItem
*) [signal]
void tlp::SpreadTable::mouseReleaseEvent (QMouseEvent * event)
void tlp::SpreadTable::newSheet (int rowCount = 10, int columnCount = 10)
void tlp::SpreadTable::paintEvent (QPaintEvent * event)
bool tlp::SpreadTable::paste (const QMimeData & mimeData, int row, int
column)
bool tlp::SpreadTable::readSheet (const QString & fileName)
void tlp::SpreadTable::redrawView () [slot]
void tlp::SpreadTable::selectAll () [slot]
===================================================================
void tlp::SpreadTable::selectCurrentColumn () [slot]
void tlp::SpreadTable::selectCurrentRow () [slot]
void tlp::SpreadTable::setGraph (Graph * graph)
===================================================================
void tlp::SpreadTable::setItemAlignment (int row, int column, int
alignment)
void tlp::SpreadTable::setItemBackground (int row, int column, const QBrush
& brush)
bool tlp::SpreadTable::setItemEditor (int row, int column, int editor)
void tlp::SpreadTable::setItemFont (int row, int column, const QFont &
font)
void tlp::SpreadTable::setItemForeground (int row, int column, const QBrush
& brush)
bool tlp::SpreadTable::setItemText (int row, int column, const QString &
text)
void tlp::SpreadTable::setView (View view)
void tlp::SpreadTable::sort (SpreadTableSort tableSort)
===================================================================
void tlp::SpreadTable::userChangedItemDataSignal (int, int, QString &,
QString &) [signal]
void tlp::SpreadTable::userChangedItemDataSlot (int row, int column,
QString & oldData, QString & newData) [slot]
===================================================================
void tlp::SpreadTable::verticalScroll (int id) [slot]
bool tlp::SpreadTable::writeSheet (const QString & fileName)
Author
Generated automatically by Doxygen for Tulip Plugins Library from the
source code.