KDE3Support
k3filetreeview.cpp
Go to the documentation of this file.
79 m_openFolderPixmap = DesktopIcon( "folder-open",KIconLoader::SizeSmall,KIconLoader::ActiveState );
360 const QPixmap& folderPix = KIconLoader::global()->loadMimeTypeIcon( KMimeType::mimeType("inode/directory")->iconName(),
444 void K3FileTreeView::slotNewTreeViewItems( KFileTreeBranch* branch, const K3FileTreeViewItemList& itemList )
465 if( m_nextUrlToSelect.equals(url, KUrl::CompareWithoutTrailingSlash )) // ignore trailing / on dirs
526 QString icon = QString::fromLatin1( it.value().iconBaseName ).append( QString::number( iconNumber ) );
528 item->setPixmap( 0, DesktopIcon( icon,KIconLoader::SizeSmall,KIconLoader::ActiveState )); // KFileTreeViewFactory::instance() ) );
539 void K3FileTreeView::startAnimation( K3FileTreeViewItem * item, const char * iconBaseName, uint iconCount )
620 K3FileTreeViewItem *K3FileTreeView::findItem( const QString& branchName, const QString& relUrl )
virtual void setShowFolderOpenPixmap(bool showIt=true)
set the flag to show 'extended' folder icons on or off.
Definition: k3filetreeview.cpp:666
QPixmap DesktopIcon(const QString &name, int force_size, int state, const QStringList &overlays)
static KIconLoader * global()
int timeout
bool isNull() const
This is the branch class of the K3FileTreeView, which represents one branch in the treeview...
Definition: kfiletreebranch.h:49
virtual void setDragEnabled(bool b)
Enable/Disable the dragging of items.
Definition: k3listview.cpp:1185
K3FileTreeViewItem * currentKFileTreeViewItem() const
Definition: k3filetreeview.cpp:587
virtual bool removeBranch(KFileTreeBranch *branch)
removes the branch from the treeview.
Definition: k3filetreeview.cpp:415
virtual KFileItem findByUrl(const KUrl &_url) const
virtual QPixmap itemIcon(K3FileTreeViewItem *, int gap=0) const
Definition: k3filetreeview.cpp:475
Q3PtrListIterator< K3FileTreeViewItem > K3FileTreeViewItemListIterator
Iterator for KFileTreeViewItemList.
Definition: k3filetreeviewitem.h:103
QString toLocalFile(AdjustPathOption trailing=LeaveTrailingSlash) const
KFileTreeBranch * addBranch(const KUrl &path, const QString &name, bool showHidden=false)
Adds a branch to the treeview item.
Definition: k3filetreeview.cpp:357
static bool canDecode(const QMimeData *mimeData)
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
bool showFolderOpenPixmap() const
Definition: k3filetreeview.cpp:661
K3FileTreeViewItem * findItem(KFileTreeBranch *brnch, const QString &relUrl)
searches a branch for a K3FileTreeViewItem identified by the relative url given as second parameter...
Definition: k3filetreeview.cpp:626
void addPath(const QString &txt)
virtual void setDirOnlyMode(bool dirsOnly)
virtual void contentsDropEvent(QDropEvent *ev)
Reimplemented for internal reasons.
Definition: k3filetreeview.cpp:179
static KUrl::List fromMimeData(const QMimeData *mimeData, KUrl::MetaDataMap *metaData=0)
bool itemsMovable() const
KFileTreeBranch * branch(const QString &searchName)
Definition: k3filetreeview.cpp:391
virtual void startAnimation(K3FileTreeViewItem *item, const char *iconBaseName="kde", uint iconCount=6)
Definition: k3filetreeview.cpp:539
const void * extraData(const void *key) const
QPixmap loadMimeTypeIcon(const QString &iconName, KIconLoader::Group group, int size=0, int state=KIconLoader::DefaultState, const QStringList &overlays=QStringList(), QString *path_store=0) const
KAction * clear(const QObject *recvr, const char *slot, QObject *parent)
virtual void stopAnimation(K3FileTreeViewItem *item)
Definition: k3filetreeview.cpp:556
This Widget extends the functionality of Q3ListView to honor the system wide settings for Single Clic...
Definition: k3listview.h:57
void itemRenamed(Q3ListViewItem *item, const QString &str, int col)
This signal gets emitted when an item is renamed via in-place renaming.
virtual void findDrop(const QPoint &pos, Q3ListViewItem *&parent, Q3ListViewItem *&after)
Where is the nearest Q3ListViewItem that I'm going to drop?
Definition: k3listview.cpp:1050
virtual bool acceptDrag(QDropEvent *event) const
Definition: k3filetreeview.cpp:226
virtual void contentsDragEnterEvent(QDragEnterEvent *e)
Reimplemented for internal reasons.
Definition: k3filetreeview.cpp:108
void onItem(const QString &)
void executed(Q3ListViewItem *item)
This signal is emitted whenever the user executes an listview item.
void setSelectionModeExt(SelectionModeExt mode)
Set the selection mode.
Definition: k3listview.cpp:1824
virtual void movableDropEvent(Q3ListViewItem *parent, Q3ListViewItem *afterme)
Handle dropEvent when itemsMovable() is set to true.
Definition: k3listview.cpp:926
virtual bool populate(const KUrl &url, K3FileTreeViewItem *currItem)
populates a branch.
Definition: kfiletreebranch.cpp:540
An item for a K3FileTreeView that knows about its own KFileItem.
Definition: k3filetreeviewitem.h:41
virtual void contentsDragLeaveEvent(QDragLeaveEvent *e)
Reimplemented for internal reasons.
Definition: k3filetreeview.cpp:164
virtual void setDirOnlyMode(KFileTreeBranch *branch, bool)
set the directory mode for branches.
Definition: k3filetreeview.cpp:429
void dropped(QWidget *, QDropEvent *)
QString url(AdjustPathOption trailing=LeaveTrailingSlash) const
Definition: k3listview.h:109
bool isLocalFile() const
virtual void contentsDragMoveEvent(QDragMoveEvent *e)
Reimplemented for internal reasons.
Definition: k3filetreeview.cpp:130
QList< Q3ListViewItem * > selectedItems(bool includeHiddenItems=true) const
Definition: k3listview.cpp:1215
const KShortcut & end()
bool equals(const KUrl &u, const EqualsOptions &options=0) const
QString prettyUrl(AdjustPathOption trailing=LeaveTrailingSlash) const
QPixmap pixmap(int _size, int _state=0) const
virtual void slotNewTreeViewItems(KFileTreeBranch *, const K3FileTreeViewItemList &)
Definition: k3filetreeview.cpp:444
virtual void slotSetNextUrlToSelect(const KUrl &url)
Definition: k3filetreeview.cpp:671
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:51:58 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:51:58 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.