RootFolderTableItem Class Reference

#include <foldertableitem.h>

List of all members.

Public Member Functions

 RootFolderTableItem (const QList< QString > &headerNames, const QList< QPair< QString, QVariant > > &headerTypes)
 ~RootFolderTableItem ()
QList< FolderTableItem * > getChildren () const
void appendChild (FolderTableItem *child)
void insertChild (FolderTableItem *child, int row=0)
void removeChildAt (int row)
FolderTableItemchild (int row)
int childCount () const
int columnCount () const
QString header (int column) const
int headerPos (const QString &headerName) const
QPair< QString, QVariant > headerType (int column) const
bool setHeader (const QString &headerName, int column=0)
QList< FolderTableItem * > newItems () const
bool anyNew () const
bool isFiltered () const
QMap< int, FolderTableItem * > filteredChildren () const
int find (unsigned channelId) const
void sort (int column, Qt::SortOrder order)
template<typename ColumnType>
void sort1 (int column, Qt::SortOrder order)

Public Attributes

QSettings settings

Private Attributes

QList< FolderTableItem * > childTableItems
QList< QString > headerNameList
QList< QPair< QString, QVariant > > headerTypeList

Friends

class FolderTableItem


Detailed Description

Definition at line 44 of file foldertableitem.h.


Constructor & Destructor Documentation

RootFolderTableItem::RootFolderTableItem ( const QList< QString > &  headerNames,
const QList< QPair< QString, QVariant > > &  headerTypes 
)

Definition at line 85 of file foldertableitem.cpp.

RootFolderTableItem::~RootFolderTableItem (  ) 

Definition at line 90 of file foldertableitem.cpp.

References childTableItems.


Member Function Documentation

QList< FolderTableItem * > RootFolderTableItem::getChildren (  )  const

Definition at line 95 of file foldertableitem.cpp.

References childTableItems.

void RootFolderTableItem::appendChild ( FolderTableItem child  ) 

Definition at line 100 of file foldertableitem.cpp.

References childTableItems.

Referenced by FolderTableModel::setupFolderTableModelData().

void RootFolderTableItem::insertChild ( FolderTableItem child,
int  row = 0 
)

Definition at line 105 of file foldertableitem.cpp.

References childTableItems.

Referenced by FolderTableModel::insertRows().

void RootFolderTableItem::removeChildAt ( int  row  ) 

Definition at line 110 of file foldertableitem.cpp.

References childTableItems.

Referenced by FolderTableModel::removeRows().

FolderTableItem * RootFolderTableItem::child ( int  row  ) 

int RootFolderTableItem::childCount (  )  const

int RootFolderTableItem::columnCount (  )  const

QString RootFolderTableItem::header ( int  column  )  const

Definition at line 130 of file foldertableitem.cpp.

References headerNameList.

Referenced by FolderTableModel::commit(), and FolderTableModel::headerData().

int RootFolderTableItem::headerPos ( const QString &  headerName  )  const

Definition at line 135 of file foldertableitem.cpp.

References headerNameList.

Referenced by FolderTableModel::getQVariantType().

QPair< QString, QVariant > RootFolderTableItem::headerType ( int  column  )  const

bool RootFolderTableItem::setHeader ( const QString &  headerName,
int  column = 0 
)

Definition at line 147 of file foldertableitem.cpp.

References headerNameList.

QList< FolderTableItem * > RootFolderTableItem::newItems (  )  const

Definition at line 153 of file foldertableitem.cpp.

References childTableItems, and FolderTableItem::isNew().

Referenced by anyNew(), FolderTableModel::commit(), and FolderTableModel::newRowChannelIds().

Here is the call graph for this function:

bool RootFolderTableItem::anyNew (  )  const

Definition at line 164 of file foldertableitem.cpp.

References newItems().

Referenced by FolderTableDockWidget::closeEvent(), MainWindow::commitAll(), FolderTableModel::removeRows(), and MainWindow::slotCheckButtons().

Here is the call graph for this function:

bool RootFolderTableItem::isFiltered (  )  const

Definition at line 170 of file foldertableitem.cpp.

References childTableItems, and FolderTableItem::isHidden().

Referenced by sort1().

Here is the call graph for this function:

QMap< int, FolderTableItem * > RootFolderTableItem::filteredChildren (  )  const

Definition at line 180 of file foldertableitem.cpp.

References childTableItems, and FolderTableItem::isHidden().

Referenced by sort1().

Here is the call graph for this function:

int RootFolderTableItem::find ( unsigned  channelId  )  const

Definition at line 195 of file foldertableitem.cpp.

References childTableItems, FolderTableItem::getChannelId(), and FolderTableItem::row().

Referenced by FolderTableModel::_updateValidityKeys().

Here is the call graph for this function:

void RootFolderTableItem::sort ( int  column,
Qt::SortOrder  order 
)

Definition at line 205 of file foldertableitem.cpp.

References headerType().

Referenced by FolderTableModel::sort().

Here is the call graph for this function:

template<typename ColumnType>
void RootFolderTableItem::sort1 ( int  column,
Qt::SortOrder  order 
) [inline]

Definition at line 229 of file foldertableitem.cpp.

References childTableItems, filteredChildren(), isFiltered(), and FolderTableItem::tableItemData.

Here is the call graph for this function:


Friends And Related Function Documentation

friend class FolderTableItem [friend]

Definition at line 46 of file foldertableitem.h.


Member Data Documentation

Definition at line 71 of file foldertableitem.h.

QList<QString> RootFolderTableItem::headerNameList [private]

Definition at line 75 of file foldertableitem.h.

Referenced by columnCount(), header(), headerPos(), and setHeader().

QList< QPair< QString, QVariant > > RootFolderTableItem::headerTypeList [private]

Definition at line 76 of file foldertableitem.h.

Referenced by headerType().


Generated on Wed Oct 8 14:59:50 2008 for ACE - A COOL Editor by  doxygen 1.5.6