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
QWidget * source() const
void truncate(int position)
int width() const
const QMimeData * mimeData() const
QPixmap DesktopIcon(const QString &name, int force_size, int state, const QStringList &overlays)
int childCount() const
virtual void clear()
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
virtual void setPixmap(QPixmap pm)
K3FileTreeViewItem * currentKFileTreeViewItem() const
Definition: k3filetreeview.cpp:587
virtual bool removeBranch(KFileTreeBranch *branch)
removes the branch from the treeview.
Definition: k3filetreeview.cpp:415
const T & at(int i) const
void contentsToViewport(int x, int y, int &vx, int &vy) const
const QPoint & pos() const
virtual KFileItem findByUrl(const KUrl &_url) const
virtual QPixmap itemIcon(K3FileTreeViewItem *, int gap=0) const
Definition: k3filetreeview.cpp:475
bool isOpen() const
QString toLocalFile(AdjustPathOption trailing=LeaveTrailingSlash) const
const QPixmap * icon() 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)
void acceptProposedAction()
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
void ensureItemVisible(const Q3ListViewItem *i)
bool isEmpty() const
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
type * current() const
int size() const
virtual void setOpen(bool o)
void append(const type *item)
void collapsed(Q3ListViewItem *item)
void addPath(const QString &txt)
QString number(int n, int base)
int count(const T &value) const
void append(const T &value)
void ignore()
virtual void setDirOnlyMode(bool dirsOnly)
Q3ListViewItem * selectedItem() const
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 setCurrentItem(Q3ListViewItem *i)
virtual void startAnimation(K3FileTreeViewItem *item, const char *iconBaseName="kde", uint iconCount=6)
Definition: k3filetreeview.cpp:539
bool isEmpty() const
bool isEmpty() const
Q3ListViewItem * itemAt(const QPoint &viewPos) const
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
bool endsWith(const QString &s, Qt::CaseSensitivity cs) const
bool isOpen(const Q3ListViewItem *item) const
void hide()
iterator end()
virtual void stopAnimation(K3FileTreeViewItem *item)
Definition: k3filetreeview.cpp:556
iterator begin()
virtual QString key(int column, bool ascending) const
This Widget extends the functionality of Q3ListView to honor the system wide settings for Single Clic...
Definition: k3listview.h:57
bool acceptDrops() const
void ignore()
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
void expanded(Q3ListViewItem *item)
bool isNull() const
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 &)
int height() const
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
bool isRelativePath(const QString &path)
void stop()
virtual void movableDropEvent(Q3ListViewItem *parent, Q3ListViewItem *afterme)
Handle dropEvent when itemsMovable() is set to true.
Definition: k3listview.cpp:926
int startDragTime()
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
uint contains(const type *item) const
virtual void setDirOnlyMode(KFileTreeBranch *branch, bool)
set the directory mode for branches.
Definition: k3filetreeview.cpp:429
int length() const
void setX(int x)
void setY(int y)
Qt::DropAction dropAction() const
void repaint() const
QString fromLatin1(const char *str, int size)
void start(int msec)
void dropped(QWidget *, QDropEvent *)
iterator insert(const Key &key, const T &value)
bool remove(uint index)
QString url(AdjustPathOption trailing=LeaveTrailingSlash) const
bool isEmpty() const
typedef Iterator
Definition: k3listview.h:109
virtual void setPixmap(int column, const QPixmap &pm)
QWidget * viewport() const
bool isLocalFile() const
virtual void contentsDragMoveEvent(QDragMoveEvent *e)
Reimplemented for internal reasons.
Definition: k3filetreeview.cpp:130
bool isActive() const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QList< Q3ListViewItem * > selectedItems(bool includeHiddenItems=true) const
Definition: k3listview.cpp:1215
QObject * parent() const
const KShortcut & end()
bool equals(const KUrl &u, const EqualsOptions &options=0) const
iterator find(const Key &key)
QString prettyUrl(AdjustPathOption trailing=LeaveTrailingSlash) const
void selectionChanged()
QPixmap pixmap(int _size, int _state=0) const
virtual void clear()
virtual void slotNewTreeViewItems(KFileTreeBranch *, const K3FileTreeViewItemList &)
Definition: k3filetreeview.cpp:444
int remove(const Key &key)
virtual void setSelected(Q3ListViewItem *item, bool selected)
virtual void slotSetNextUrlToSelect(const KUrl &url)
Definition: k3filetreeview.cpp:671
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:26:47 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:26:47 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.