┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/views/dolphinview.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2012-04-11 16:42:46 +0200
committerPeter Penz <[email protected]>2012-04-11 16:43:11 +0200
commitb28a5a6248059566e16c9fcf887b5545034ba52f (patch)
tree0e0d81cf4727c479f44649ae3c02de598800698a /src/views/dolphinview.h
parent6c3d9acbc22ea9463ba40ef84c9e8c8419dfacf3 (diff)
Minor API-cleanups for DolphinView
Diffstat (limited to 'src/views/dolphinview.h')
-rw-r--r--src/views/dolphinview.h51
1 files changed, 14 insertions, 37 deletions
diff --git a/src/views/dolphinview.h b/src/views/dolphinview.h
index 9c674d03a..b181ea3ab 100644
--- a/src/views/dolphinview.h
+++ b/src/views/dolphinview.h
@@ -189,7 +189,7 @@ public:
* All items that match to the pattern \a pattern will get selected
* if \a enabled is true and deselected if \a enabled is false.
*/
- void setItemSelectionEnabled(const QRegExp& pattern, bool enabled);
+ void selectItems(const QRegExp& pattern, bool enabled);
/**
* Sets the zoom level to \a level. It is assured that the used
@@ -199,18 +199,6 @@ public:
void setZoomLevel(int level);
int zoomLevel() const;
- /**
- * Returns true, if zooming in is possible. If false is returned,
- * the maximum zooming level has been reached.
- */
- bool isZoomInPossible() const;
-
- /**
- * Returns true, if zooming out is possible. If false is returned,
- * the minimum zooming level has been reached.
- */
- bool isZoomOutPossible() const;
-
void setSortRole(const QByteArray& role);
QByteArray sortRole() const;
@@ -227,9 +215,7 @@ public:
/** Returns the additional information which should be shown for the items. */
QList<QByteArray> visibleRoles() const;
- /** Reloads the current directory. */
void reload();
-
void stopLoading();
/**
@@ -251,16 +237,6 @@ public:
QString nameFilter() const;
/**
- * Calculates the number of currently shown files into
- * \a fileCount and the number of folders into \a folderCount.
- * The size of all files is written into \a totalFileSize.
- * It is recommend using this method instead of asking the
- * directory lister or the model directly, as it takes
- * filtering and hierarchical previews into account.
- */
- void calculateItemCount(int& fileCount, int& folderCount, KIO::filesize_t& totalFileSize) const;
-
- /**
* Returns a textual representation of the state of the current
* folder or selected items, suitable for use in the status bar.
*/
@@ -304,9 +280,6 @@ public:
*/
void saveState(QDataStream& stream);
- /** Returns true, if at least one item is selected. */
- bool hasSelection() const;
-
/**
* Returns the root item which represents the current URL.
*/
@@ -479,17 +452,17 @@ signals:
/**
* Is emitted after DolphinView::setUrl() has been invoked and
- * the directory \a url is currently loaded. If this signal is emitted,
+ * the current directory is loaded. If this signal is emitted,
* it is assured that the view contains already the correct root
* URL and property settings.
*/
- void startedDirLoading(const KUrl& url);
+ void dirLoadingStarted();
/**
* Is emitted after the directory triggered by DolphinView::setUrl()
* has been loaded.
*/
- void finishedDirLoading(const KUrl& url);
+ void dirLoadingCompleted();
/**
* Is emitted after DolphinView::setUrl() has been invoked and provides
@@ -504,12 +477,6 @@ signals:
void dirSortingProgress(int percent);
/**
- * Is emitted if the DolphinView::setUrl() is invoked but the URL is not
- * a directory.
- */
- void urlIsFileError(const KUrl& file);
-
- /**
* Emitted when the file-item-model emits redirection.
* Testcase: fish://localhost
*/
@@ -679,6 +646,16 @@ private slots:
void hideToolTip();
+ /**
+ * Calculates the number of currently shown files into
+ * \a fileCount and the number of folders into \a folderCount.
+ * The size of all files is written into \a totalFileSize.
+ * It is recommend using this method instead of asking the
+ * directory lister or the model directly, as it takes
+ * filtering and hierarchical previews into account.
+ */
+ void calculateItemCount(int& fileCount, int& folderCount, KIO::filesize_t& totalFileSize) const;
+
private:
KFileItemModel* fileItemModel() const;