KDE3Support
k3fileview.cpp
Go to the documentation of this file.
65 void K3FileViewSignaler::dropURLs( const KFileItem &item, QDropEvent *event, const KUrl::List &urls )
107 const QDir::SortFlags K3FileView::K3FileViewPrivate::defaultSortFlags = (QDir::Name | QDir::IgnoreCase | QDir::DirsFirst);
virtual KFileItem firstFileItem() const =0
void dropped(const KFileItem &item, QDropEvent *event, const KUrl::List &urls)
QString i18n(const char *text)
virtual bool isSelected(const KFileItem &) const =0
qulonglong filesize_t
void changeSorting(QDir::SortFlags sorting)
Definition: k3fileview.cpp:60
static QString sortingKey(const QString &value, bool isDir, QDir::SortFlags SortFlags)
This method calculates a QString from the given parameters, that is suitable for sorting with e...
Definition: k3fileview.cpp:465
bool isDir() const
bool isReversed() const
Tells whether the current items are in reversed order (shortcut to sorting() & QDir::Reversed).
Definition: k3fileview.cpp:210
void activateMenu(const KFileItem &item, const QPoint &pos)
Definition: k3fileview.cpp:55
bool isNull() const
virtual void insertItem(const KFileItem &i)
The derived view must implement this function to add the file in the widget.
Definition: k3fileview.cpp:184
void dirActivated(const KFileItem &item)
QDir::SortFlags sorting() const
Returns the sorting order of the internal list.
Definition: k3fileview.cpp:193
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
virtual void listingCompleted()
This hook is called when all items of the currently listed directory are listed and inserted into the...
Definition: k3fileview.cpp:438
Definition: k3fileview.h:216
void setCurrentItem(const QString &filename)
Sets filename the current item in the view, if available.
Definition: k3fileview.cpp:334
virtual void setSorting(QDir::SortFlags sort)
Sets the sorting order of the view.
Definition: k3fileview.cpp:198
virtual void setSelected(const KFileItem &, bool enable)=0
Tells the view that it should highlight the item.
virtual void removeItem(const KFileItem &item)
Removes an item from the list; has to be implemented by the view.
Definition: k3fileview.cpp:427
virtual void setParentView(K3FileView *parent)
Definition: k3fileview.cpp:134
void highlightFile(const KFileItem &item)
emits the highlighted signal for item.
Definition: k3fileview.cpp:50
Definition: k3fileview.h:218
virtual KActionCollection * actionCollection() const
Definition: k3fileview.cpp:443
virtual void setSelectionMode(KFile::SelectionMode sm)
Definition: k3fileview.cpp:397
virtual KFile::SelectionMode selectionMode() const
Definition: k3fileview.cpp:402
void activate(const KFileItem &item)
Call this method when an item is selected (depends on single click / double click configuration)...
Definition: k3fileview.cpp:42
bool isFile() const
bool updateNumbers(const KFileItem &i)
increases the number of dirs and files.
Definition: k3fileview.cpp:154
KIO::filesize_t size() const
SelectionMode
void activatedMenu(const KFileItem &item, const QPoint &pos)
KDateTime time(FileTimes which) const
virtual QWidget * widget()=0
a pure virtual function to get a QWidget, that can be added to other widgets.
void setViewName(const QString &name)
Sets the name of the view, which could be displayed somewhere.
Definition: k3fileview.cpp:422
QString name(bool lowerCase=false) const
void fileHighlighted(const KFileItem &item)
the item maybe be a null item, indicating that we're in multiselection mode and the selection has cha...
virtual void clearView()=0
pure virtual function, that should be implemented to clear the view.
void fileSelected(const KFileItem &item)
const QString & staticQString(const char *str)
virtual KFileItem nextItem(const KFileItem &) const =0
bool onlyDoubleClickSelectsFiles() const
Definition: k3fileview.cpp:363
void sortingChanged(QDir::SortFlags)
const int kfile_area
void setOnlyDoubleClickSelectsFiles(bool enable)
This is a KFileDialog specific hack: we want to select directories with single click, but not files.
Definition: k3fileview.cpp:359
Definition: k3fileview.h:217
void dropURLs(const KFileItem &item, QDropEvent *event, const KUrl::List &urls)
Definition: k3fileview.cpp:65
QString number(KIO::filesize_t size)
QStringList list(const QString &fileClass)
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.