Model for Item-Views displaying a library resource's contents. More...
#include <klflibview.h>
Public Types | |
enum | FlavorFlag { LinearList = 0x0001, IconViewList = LinearList, CategoryTree = 0x0002, DisplayTypeMask = 0x000f, GroupSubCategories = 0x1000 } |
enum | ItemKind { EntryKind, CategoryLabelKind } |
enum | { ItemKindItemRole = Qt::UserRole+768, EntryContentsTypeItemRole, EntryIdItemRole, FullEntryItemRole, CategoryLabelItemRole, FullCategoryPathItemRole } |
enum | { DropWillAccept = 0x0001, DropWillCategorize = 0x0002, DropWillMove = 0x0004 } |
Public Slots | |
virtual QModelIndex | searchFind (const QString &queryString, const QModelIndex &fromIndex=QModelIndex(), bool forward=true) |
virtual QModelIndex | searchFindNext (bool forward) |
virtual void | searchAbort () |
virtual void | completeRefresh () |
virtual void | setFetchBatchCount (int count) |
Signals | |
void | operationStartReportingProgress (KLFProgressReporter *progressReporter, const QString &descriptiveText) |
Public Member Functions | |
KLFLibModel (KLFLibResourceEngine *resource, uint flavorFlags=LinearList|GroupSubCategories, QObject *parent=NULL) | |
virtual | ~KLFLibModel () |
virtual void | setResource (KLFLibResourceEngine *resource) |
virtual KLFLibResourceEngine * | resource () |
virtual QUrl | url () const |
virtual void | setFlavorFlags (uint flags, uint modify_mask=0xffffffff) |
virtual uint | flavorFlags () const |
uint | displayType () const |
virtual void | prefetch (const QModelIndexList &index) const |
virtual QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const |
virtual Qt::ItemFlags | flags (const QModelIndex &index) const |
virtual bool | hasChildren (const QModelIndex &parent=QModelIndex()) const |
virtual QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
virtual bool | hasIndex (int row, int column, const QModelIndex &parent=QModelIndex()) const |
virtual QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const |
virtual QModelIndex | parent (const QModelIndex &index) const |
virtual int | rowCount (const QModelIndex &parent=QModelIndex()) const |
virtual int | columnCount (const QModelIndex &parent=QModelIndex()) const |
virtual bool | canFetchMore (const QModelIndex &parent) const |
virtual void | fetchMore (const QModelIndex &parent) |
virtual Qt::DropActions | supportedDropActions () const |
virtual QStringList | mimeTypes () const |
virtual QMimeData * | mimeData (const QModelIndexList &indexes) const |
virtual bool | dropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) |
virtual uint | dropFlags (QDragMoveEvent *event, QAbstractItemView *view) |
virtual QImage | dragImage (const QModelIndexList &indexes) |
virtual int | entryColumnContentsPropertyId (int column) const |
virtual int | columnForEntryPropertyId (int entryPropertyId) const |
virtual bool | isDesendantOf (const QModelIndex &child, const QModelIndex &ancestor) |
virtual QStringList | categoryList () const |
virtual void | updateData (const QList< KLFLib::entryId > &entryIdList, int modifyType) |
virtual QModelIndex | walkNextIndex (const QModelIndex &cur) |
Call repeatedly to walk all indexes (once each exactly, first column only) More... | |
virtual QModelIndex | walkPrevIndex (const QModelIndex &cur) |
Call repeatedly to walk all indexes in model in reverse order. More... | |
virtual KLFLib::entryId | entryIdForIndex (const QModelIndex &index) const |
virtual QModelIndex | findEntryId (KLFLib::entryId eid) const |
virtual QList< KLFLib::entryId > | entryIdForIndexList (const QModelIndexList &indexlist) const |
virtual QModelIndexList | findEntryIdList (const QList< KLFLib::entryId > &eidlist) const |
virtual int | fetchBatchCount () const |
virtual void | redoSort () |
notify the model that the entrySorter() settings were changed, and we need to re-sort. More... | |
virtual void | sort (int column, Qt::SortOrder order=Qt::AscendingOrder) |
change the entrySorter accordingly and re-sort the model. More... | |
virtual KLFLibEntrySorter * | entrySorter () |
The current KLFLibEntrySorter that sorts our items. More... | |
virtual void | setEntrySorter (KLFLibEntrySorter *entrySorter) |
![]() | |
QAbstractItemModel (QObject *parent=0) | |
beginInsertColumns (const QModelIndex &parent, int first, int last) | |
beginInsertRows (const QModelIndex &parent, int first, int last) | |
beginRemoveColumns (const QModelIndex &parent, int first, int last) | |
beginRemoveRows (const QModelIndex &parent, int first, int last) | |
buddy (const QModelIndex &index) | |
canFetchMore (const QModelIndex &parent) | |
changePersistentIndex (const QModelIndex &from, const QModelIndex &to) | |
changePersistentIndexList (const QModelIndexList &from, const QModelIndexList &to) | |
columnCount (const QModelIndex &parent=QModelIndex() | |
columnsAboutToBeInserted (const QModelIndex &parent, int start, int end) | |
columnsAboutToBeRemoved (const QModelIndex &parent, int start, int end) | |
columnsInserted (const QModelIndex &parent, int start, int end) | |
columnsRemoved (const QModelIndex &parent, int start, int end) | |
createIndex (int row, int column, void *ptr=0) | |
createIndex (int row, int column, quint32 id) | |
data (const QModelIndex &index, int role=Qt::DisplayRole) | |
dataChanged (const QModelIndex &topLeft, const QModelIndex &bottomRight) | |
dropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) | |
endInsertColumns () | |
endInsertRows () | |
endRemoveColumns () | |
endRemoveRows () | |
fetchMore (const QModelIndex &parent) | |
ItemFlags QAbstractItemModel::flags(const QModelIndex &index) | |
hasChildren (const QModelIndex &parent=QModelIndex() | |
hasIndex (int row, int column, const QModelIndex &parent=QModelIndex() | |
headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) | |
headerDataChanged (Qt::Orientation orientation, int first, int last) | |
index (int row, int column, const QModelIndex &parent=QModelIndex() | |
insertColumn (int column, const QModelIndex &parent=QModelIndex() | |
insertColumns (int column, int count, const QModelIndex &parent=QModelIndex() | |
insertRow (int row, const QModelIndex &parent=QModelIndex() | |
insertRows (int row, int count, const QModelIndex &parent=QModelIndex() | |
itemData (const QModelIndex &index) | |
layoutAboutToBeChanged () | |
layoutChanged () | |
match (const QModelIndex &start, int role, const QVariant &value, int hits=1, Qt::MatchFlags flags=Qt::MatchFlags(Qt::MatchStartsWith|Qt::MatchWrap) | |
mimeData (const QModelIndexList &indexes) | |
mimeTypes () | |
modelAboutToBeReset () | |
modelReset () | |
parent (const QModelIndex &index) | |
persistentIndexList () | |
removeColumn (int column, const QModelIndex &parent=QModelIndex() | |
removeColumns (int column, int count, const QModelIndex &parent=QModelIndex() | |
removeRow (int row, const QModelIndex &parent=QModelIndex() | |
removeRows (int row, int count, const QModelIndex &parent=QModelIndex() | |
reset () | |
revert () | |
rowCount (const QModelIndex &parent=QModelIndex() | |
rowsAboutToBeInserted (const QModelIndex &parent, int start, int end) | |
rowsAboutToBeRemoved (const QModelIndex &parent, int start, int end) | |
rowsInserted (const QModelIndex &parent, int start, int end) | |
rowsRemoved (const QModelIndex &parent, int start, int end) | |
setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) | |
setHeaderData (int section, Qt::Orientation orientation, const QVariant &value, int role=Qt::EditRole) | |
setItemData (const QModelIndex &index, const QMap< int, QVariant > &roles) | |
setSupportedDragActions (Qt::DropActions actions) | |
sibling (int row, int column, const QModelIndex &index) | |
sort (int column, Qt::SortOrder order=Qt::AscendingOrder) | |
span (const QModelIndex &index) | |
submit () | |
DropActions QAbstractItemModel::supportedDragActions() | |
DropActions QAbstractItemModel::supportedDropActions() | |
horizontalStepsPerItem () | |
setHorizontalStepsPerItem (int steps) | |
setVerticalStepsPerItem (int steps) | |
verticalStepsPerItem () | |
Static Public Member Functions | |
static int | entryItemRole (int propertyId) |
static int | entryPropIdForItemRole (int role) |
Friends | |
QDebug & | operator<< (QDebug &, const PersistentId &) |
Model for Item-Views displaying a library resource's contents.
The Model can morph into different forms, for simulating various common & useful displays (chronological list (history), category/tags tree (archive), maybe icons in the future, ...).
Definition at line 459 of file klflibview.h.
anonymous enum |
Enumerator | |
---|---|
ItemKindItemRole | |
EntryContentsTypeItemRole | |
EntryIdItemRole | |
FullEntryItemRole | |
CategoryLabelItemRole | |
FullCategoryPathItemRole |
Definition at line 477 of file klflibview.h.
anonymous enum |
Enumerator | |
---|---|
DropWillAccept | |
DropWillCategorize | |
DropWillMove |
Definition at line 541 of file klflibview.h.
Enumerator | |
---|---|
LinearList | |
IconViewList | |
CategoryTree | |
DisplayTypeMask | |
GroupSubCategories |
Definition at line 463 of file klflibview.h.
Enumerator | |
---|---|
EntryKind | |
CategoryLabelKind |
Definition at line 476 of file klflibview.h.
KLFLibModel::KLFLibModel | ( | KLFLibResourceEngine * | resource, |
uint | flavorFlags = LinearList|GroupSubCategories , |
||
QObject * | parent = NULL |
||
) |
Definition at line 1520 of file klflibview.cpp.
References KLFLibEntry::DateTime, KLF_DEBUG_TIME_BLOCK, KLF_FUNC_NAME, KLFLibModelCache, setFetchBatchCount(), and setResource().
|
virtual |
Definition at line 1546 of file klflibview.cpp.
References KLF_DEBUG_TIME_BLOCK, and KLF_FUNC_NAME.
|
virtual |
Definition at line 1874 of file klflibview.cpp.
References KLFLibModelCache::canFetchMore(), KLFLibModelCache::getNodeForIndex(), KLF_DEBUG_TIME_BLOCK, KLF_FUNC_NAME, KLFLibModelCache::NodeId::rootNode(), and KLFLibModelCache::NodeId::valid().
|
virtual |
Definition at line 2149 of file klflibview.cpp.
References KLFLibModelCache::categoryListCache().
Referenced by KLFLibDefaultView::getCategorySuggestions().
|
virtual |
Definition at line 1832 of file klflibview.cpp.
Referenced by KLFLibDefaultView::sortBy(), and KLFLibDefaultView::updateResourceEngine().
|
virtual |
Definition at line 1854 of file klflibview.cpp.
References KLFLibEntry::Category, KLFLibEntry::DateTime, KLFLibEntry::Latex, KLFLibEntry::Preview, and KLFLibEntry::Tags.
Referenced by setFlavorFlags(), KLFLibDefaultView::showColumns(), KLFLibDefaultView::sortBy(), and KLFLibDefaultView::updateResourceEngine().
|
virtualslot |
Definition at line 2341 of file klflibview.cpp.
References KLF_DEBUG_TIME_BLOCK, and KLF_FUNC_NAME.
Referenced by KLFLibDefaultView::slotRefresh().
|
virtual |
Definition at line 1621 of file klflibview.cpp.
References KLFLibEntry::Category, KLFLibEntry::category(), KLFLibModelCache::CategoryLabelNode::categoryLabel, CategoryLabelItemRole, CategoryLabelKind, QModelIndex::column(), QList::contains(), KLFLibEntry::DateTime, KLFLibEntry::dateTime(), KLFLibModelCache::ensureNotMinimalist(), KLFLibModelCache::EntryNode::entry, entryColumnContentsPropertyId(), EntryContentsTypeItemRole, KLFLibModelCache::EntryNode::entryid, EntryIdItemRole, entryItemRole(), EntryKind, entryPropIdForItemRole(), QVariant::fromValue(), KLFLibModelCache::CategoryLabelNode::fullCategoryPath, FullCategoryPathItemRole, FullEntryItemRole, KLFLibModelCache::getCategoryLabelNodeRef(), KLFLibModelCache::getEntryNodeRef(), KLFLibModelCache::getNode(), KLFLibModelCache::getNodeForIndex(), KLFLibModelCache::NodeId::isRoot(), ItemKindItemRole, KLFLibModelCache::NodeId::kind, KLF_DEBUG_TIME_BLOCK, KLF_FUNC_NAME, KLFLibEntry::Latex, KLFLibEntry::latex(), KLFLibModelCache::EntryNode::minimalist, KLFLibModelCache::minimalistEntryPropIds(), KLFLibModelCache::Node::parent, parent(), KLFLibEntry::Preview, KLFLibEntry::preview(), KLFLibEntry::PreviewSize, KLFLibEntry::previewSize(), KLFLibEntry::Style, KLFLibEntry::style(), KLFLibEntry::Tags, KLFLibEntry::tags(), and KLFLibModelCache::NodeId::valid().
|
inline |
Definition at line 513 of file klflibview.h.
Referenced by KLFLibModelCache::cacheFindCategoryLabel(), and KLFLibModelCache::treeInsertEntry().
|
virtual |
Definition at line 2082 of file klflibview.cpp.
References autocrop_image(), QList::contains(), QPainter::drawImage(), QPainter::drawPoint(), KLFLibModelCache::EntryNode::entry, KLFLibModelCache::EntryKind, QImage::fill(), KLFLibModelCache::getEntryNodeRef(), KLFLibModelCache::getNodeForIndex(), QList::isEmpty(), KLFLibModelCache::NodeId::kind, KLF_DEBUG_TIME_BLOCK, KLF_FUNC_NAME, pointToSizeF(), KLFLibEntry::preview(), QImage::scaled(), QPainter::setCompositionMode(), QPainter::setPen(), QList::size(), QImage::size(), sizeToPointF(), transparentify_image(), and KLFLibModelCache::NodeId::valid().
Referenced by KLFLibDefViewCommon::commonStartDrag().
|
virtual |
Definition at line 2060 of file klflibview.cpp.
References KLFAbstractLibEntryMimeEncoder::canDecodeMimeData(), KLFLibResourceEngine::canModifyData(), CategoryTree, KLFLibResourceEngine::ChangeData, QModelIndex::column(), DropWillAccept, DropWillCategorize, DropWillMove, QAbstractItemView::indexAt(), KLFLibResourceEngine::InsertData, QModelIndex::isValid(), KLF_DEBUG_TIME_BLOCK, and KLF_FUNC_NAME.
Referenced by KLFLibDefViewCommon::evDragEnter(), and KLFLibDefViewCommon::evDragMove().
|
virtual |
Definition at line 1969 of file klflibview.cpp.
References KLFAbstractLibEntryMimeEncoder::canDecodeMimeData(), KLFLibResourceEngine::canModifyData(), KLFLibEntry::Category, CategoryLabelKind, CategoryTree, KLFLibResourceEngine::ChangeData, KLFLibResourceEngine::changeEntries(), QString::chop(), QList::contains(), QMimeData::data(), KLFAbstractLibEntryMimeEncoder::decodeMimeData(), QString::endsWith(), QMimeData::formats(), KLFLibModelCache::CategoryLabelNode::fullCategoryPath, KLFLibModelCache::getCategoryLabelNodeRef(), KLFLibModelCache::getNodeForIndex(), QMimeData::hasFormat(), KLFLibResourceEngine::InsertData, KLFLibResourceEngine::insertEntries(), QList::isEmpty(), KLFLibModelCache::NodeId::kind, KLF_DEBUG_TIME_BLOCK, KLF_FUNC_NAME, klfDbg, KLFLibModelCache::NodeId::rootNode(), QDataStream::setVersion(), QList::size(), KLFLibModelCache::NodeId::valid(), and QMessageBox::warning().
|
virtual |
Definition at line 1836 of file klflibview.cpp.
References KLFLibEntry::Category, KLFLibEntry::DateTime, KLFLibEntry::Latex, KLFLibEntry::Preview, and KLFLibEntry::Tags.
Referenced by data(), headerData(), and sort().
|
virtual |
Definition at line 2174 of file klflibview.cpp.
References entryIdForIndexList(), KLF_DEBUG_TIME_BLOCK, and KLF_FUNC_NAME.
|
virtual |
Definition at line 2186 of file klflibview.cpp.
References KLFLibModelCache::entryIdForIndexList(), KLF_DEBUG_TIME_BLOCK, and KLF_FUNC_NAME.
Referenced by entryIdForIndex(), KLFLibDefaultView::selectedEntryIds(), and KLFLibDefaultView::slotResourceDataChanged().
|
inlinestatic |
For example use
to get LaTeX string for model index index
.
Definition at line 492 of file klflibview.h.
Referenced by data(), KLFLibViewDelegate::paintEntry(), and KLFLibViewDelegate::sizeHint().
|
inlinestatic |
inverse operation of entryItemRole
Definition at line 494 of file klflibview.h.
Referenced by data().
|
inlinevirtual |
The current KLFLibEntrySorter that sorts our items.
Definition at line 577 of file klflibview.h.
Referenced by KLFLibModelCache::nodeValue(), and setEntrySorter().
|
inlinevirtual |
Definition at line 567 of file klflibview.h.
|
virtual |
Definition at line 1885 of file klflibview.cpp.
References KLFLibModelCache::fetchMore(), KLFLibModelCache::getNodeForIndex(), KLF_DEBUG_TIME_BLOCK, and KLF_FUNC_NAME.
|
virtual |
Definition at line 2180 of file klflibview.cpp.
References findEntryIdList(), KLF_DEBUG_TIME_BLOCK, and KLF_FUNC_NAME.
|
virtual |
Definition at line 2191 of file klflibview.cpp.
References KLFLibModelCache::findEntryIdList(), KLF_DEBUG_TIME_BLOCK, and KLF_FUNC_NAME.
Referenced by findEntryId(), and KLFLibDefaultView::selectEntries().
|
virtual |
Definition at line 1710 of file klflibview.cpp.
References KLFLibResourceEngine::canModifyData(), KLFLibModelCache::CategoryLabelKind, KLFLibResourceEngine::ChangeData, QModelIndex::column(), KLFLibModelCache::EntryKind, KLFLibModelCache::getNodeForIndex(), KLFLibResourceEngine::InsertData, QModelIndex::isValid(), KLFLibModelCache::NodeId::kind, KLF_DEBUG_TIME_BLOCK, KLF_FUNC_NAME, QModelIndex::row(), and KLFLibModelCache::NodeId::valid().
|
virtual |
Definition at line 1600 of file klflibview.cpp.
|
virtual |
Definition at line 1735 of file klflibview.cpp.
References KLFLibModelCache::Node::allChildrenFetched, KLFLibModelCache::Node::children, QModelIndex::column(), KLFLibModelCache::getNode(), KLFLibModelCache::getNodeForIndex(), KLFLibModelCache::NodeId::isRoot(), KLF_DEBUG_TIME_BLOCK, KLF_FUNC_NAME, KLFLibModelCache::NodeId::rootNode(), and KLFLibModelCache::NodeId::valid().
|
virtual |
Definition at line 1776 of file klflibview.cpp.
References index(), QModelIndex::isValid(), KLF_DEBUG_TIME_BLOCK, and KLF_FUNC_NAME.
|
virtual |
Definition at line 1749 of file klflibview.cpp.
References KLFLibEntry::Category, entryColumnContentsPropertyId(), KLF_DEBUG_TIME_BLOCK, KLF_FUNC_NAME, KLFLibEntry::Latex, KLFLibEntry::Preview, KLFPropertizedObject::propertyNameForId(), and KLFLibEntry::Tags.
Referenced by KLFLibDefaultView::updateResourceEngine().
|
virtual |
Definition at line 1783 of file klflibview.cpp.
References KLFLibModelCache::CategoryLabelKind, KLFLibModelCache::Node::children, QAbstractItemModel::columnCount(), KLFLibModelCache::createIndexFromId(), KLFLibModelCache::getCategoryLabelNodeRef(), KLFLibModelCache::getNodeForIndex(), QModelIndex::isValid(), KLFLibModelCache::NodeId::kind, KLF_DEBUG_BLOCK, KLF_FUNC_NAME, klfDbgT, KLFLibModelCache::NodeId::rootNode(), and KLFLibModelCache::NodeId::valid().
Referenced by KLFLibDefaultView::expandRootNice(), and hasIndex().
|
virtual |
Definition at line 2140 of file klflibview.cpp.
References QModelIndex::isValid(), KLF_DEBUG_TIME_BLOCK, KLF_FUNC_NAME, and QModelIndex::parent().
|
virtual |
Definition at line 1902 of file klflibview.cpp.
References QList::contains(), KLFAbstractLibEntryMimeEncoder::createMimeData(), KLFLibResourceEngine::entry(), KLFLibModelCache::EntryNode::entryid, KLFLibModelCache::EntryKind, KLFLibModelCache::getEntryNodeRef(), KLFLibModelCache::getNodeForIndex(), KLFLibModelCache::NodeId::isRoot(), KLFLibModelCache::NodeId::kind, KLF_DEBUG_TIME_BLOCK, KLF_FUNC_NAME, QMimeData::setData(), QDataStream::setVersion(), url(), and KLFLibModelCache::NodeId::valid().
Referenced by KLFLibDefViewCommon::commonStartDrag().
|
virtual |
Definition at line 1897 of file klflibview.cpp.
References KLFAbstractLibEntryMimeEncoder::allEncodingMimeTypes().
|
signal |
Announces the beginning of a long operation (used for updates in updateData())
Referenced by KLFLibModelCache::rebuildCache(), and KLFLibModelCache::updateData().
|
virtual |
Definition at line 1803 of file klflibview.cpp.
References KLFLibModelCache::createIndexFromId(), KLFLibModelCache::getNode(), KLFLibModelCache::getNodeForIndex(), KLF_DEBUG_BLOCK, KLF_DEBUG_TEE, KLF_FUNC_NAME, klfDbgT, KLFLibModelCache::Node::parent, and KLFLibModelCache::NodeId::valid().
Referenced by data().
|
virtual |
ensures that the cache nodes of the given index list are not 'minimalist'
Definition at line 1605 of file klflibview.cpp.
References KLFLibModelCache::ensureNotMinimalist(), KLFLibModelCache::getNodeForIndex(), KLFLibModelCache::NodeId::isRoot(), KLF_DEBUG_TIME_BLOCK, KLF_FUNC_NAME, klfDbg, and KLFLibModelCache::NodeId::valid().
|
virtual |
notify the model that the entrySorter() settings were changed, and we need to re-sort.
Definition at line 2348 of file klflibview.cpp.
References KLF_DEBUG_TIME_BLOCK, and KLF_FUNC_NAME.
Referenced by sort().
|
inlinevirtual |
Definition at line 498 of file klflibview.h.
Referenced by KLFLibViewDelegate::paint(), and setResource().
|
virtual |
Definition at line 1815 of file klflibview.cpp.
References KLFLibModelCache::Node::children, QModelIndex::column(), KLFLibModelCache::getNode(), KLFLibModelCache::getNodeForIndex(), KLF_DEBUG_BLOCK, KLF_FUNC_NAME, klfDbg, KLFLibModelCache::NodeId::rootNode(), and KLFLibModelCache::NodeId::valid().
Referenced by KLFLibDefaultView::expandRootNice().
|
virtualslot |
Definition at line 2267 of file klflibview.cpp.
Referenced by KLFLibDefaultView::searchAbort().
|
virtualslot |
Definition at line 2213 of file klflibview.cpp.
References KLF_DEBUG_TIME_BLOCK, KLF_FUNC_NAME, klfDbg, and searchFindNext().
Referenced by KLFLibDefaultView::searchFind().
|
virtualslot |
Definition at line 2223 of file klflibview.cpp.
References QString::contains(), KLFLibModelCache::createIndexFromId(), QTime::elapsed(), KLFLibModelCache::getNodeForIndex(), QString::isEmpty(), KLF_DEBUG_TIME_BLOCK, KLF_FUNC_NAME, klfDbg, KLFLibModelCache::nextNode(), KLFLibModelCache::prevNode(), QTime::restart(), and KLFLibModelCache::searchNodeMatches().
Referenced by searchFind(), and KLFLibDefaultView::searchFindNext().
|
virtual |
Definition at line 2198 of file klflibview.cpp.
References entrySorter(), KLF_DEBUG_TIME_BLOCK, and KLF_FUNC_NAME.
|
inlinevirtualslot |
how many items to fetch at a time when fetching preview and style (non-minimalist)
Definition at line 600 of file klflibview.h.
Referenced by KLFLibModel(), and KLFLibDefaultView::showEvent().
|
virtual |
sets the flavor flags given by flags
. Only flags masked by modify_mask
are affected. Examples:
Definition at line 1580 of file klflibview.cpp.
References columnForEntryPropertyId(), DisplayTypeMask, GroupSubCategories, KLF_DEBUG_TIME_BLOCK, KLF_FUNC_NAME, KLFLibEntrySorter::order(), KLFLibEntrySorter::propId(), and sort().
|
virtual |
Definition at line 1554 of file klflibview.cpp.
References KLF_DEBUG_ASSIGN_SAME_REF_INSTANCE, KLF_DEBUG_TIME_BLOCK, KLF_FUNC_NAME, and resource().
Referenced by KLFLibModel().
|
virtual |
change the entrySorter accordingly and re-sort the model.
Definition at line 2368 of file klflibview.cpp.
References KLFLibEntry::DateTime, entryColumnContentsPropertyId(), KLF_DEBUG_TIME_BLOCK, KLF_FUNC_NAME, KLFLibEntry::Preview, redoSort(), KLFLibEntrySorter::setOrder(), KLFLibEntrySorter::setPropId(), and KLFLibModelCache::setSortingBy().
Referenced by setFlavorFlags().
|
virtual |
Definition at line 1892 of file klflibview.cpp.
|
virtual |
Definition at line 2154 of file klflibview.cpp.
References KLF_DEBUG_TIME_BLOCK, KLF_FUNC_NAME, and KLFLibModelCache::updateData().
Referenced by KLFLibDefaultView::updateResourceData().
|
virtual |
Definition at line 1564 of file klflibview.cpp.
References KLFLibResourceEngine::FeatureSubResources, KLF_DEBUG_TIME_BLOCK, KLF_FUNC_NAME, KLFLibResourceEngine::supportedFeatureFlags(), KLFLibResourceEngine::url(), and KLFLibResourceEngine::WantUrlDefaultSubResource.
Referenced by KLFLibModelCache::fetchMore(), mimeData(), and KLFLibDefaultView::url().
|
virtual |
Call repeatedly to walk all indexes (once each exactly, first column only)
Definition at line 2160 of file klflibview.cpp.
References KLFLibModelCache::createIndexFromId(), KLFLibModelCache::getNodeForIndex(), KLF_DEBUG_TIME_BLOCK, KLF_FUNC_NAME, and KLFLibModelCache::nextNode().
Referenced by KLFLibDefViewCommon::curVisibleIndex().
|
virtual |
Call repeatedly to walk all indexes in model in reverse order.
Definition at line 2167 of file klflibview.cpp.
References KLFLibModelCache::createIndexFromId(), KLFLibModelCache::getNodeForIndex(), KLF_DEBUG_TIME_BLOCK, KLF_FUNC_NAME, and KLFLibModelCache::prevNode().
Referenced by KLFLibDefaultView::searchFind().
|
friend |
Definition at line 369 of file klflibview.cpp.