Changeset View
Changeset View
Standalone View
Standalone View
src/views/dolphinview.h
Show First 20 Lines • Show All 699 Lines • ▼ Show 20 Line(s) | 560 | private slots: | |||
---|---|---|---|---|---|
700 | 700 | | |||
701 | /** | 701 | /** | ||
702 | * Calculates the number of currently shown files into | 702 | * Calculates the number of currently shown files into | ||
703 | * \a fileCount and the number of folders into \a folderCount. | 703 | * \a fileCount and the number of folders into \a folderCount. | ||
704 | * The size of all files is written into \a totalFileSize. | 704 | * The size of all files is written into \a totalFileSize. | ||
705 | * It is recommend using this method instead of asking the | 705 | * It is recommend using this method instead of asking the | ||
706 | * directory lister or the model directly, as it takes | 706 | * directory lister or the model directly, as it takes | ||
707 | * filtering and hierarchical previews into account. | 707 | * filtering and hierarchical previews into account. | ||
708 | * | ||||
709 | * If selectionBased is true, do the calculation based on | ||||
710 | * the selection. If it is true while there is no selection | ||||
711 | * then it behaves the same as if false were given. | ||||
712 | * | ||||
713 | * If selectionBased is false then it will always work on | ||||
714 | * all items. | ||||
708 | */ | 715 | */ | ||
709 | void calculateItemCount(int& fileCount, int& folderCount, KIO::filesize_t& totalFileSize) const; | 716 | void calculateItemCount(int& fileCount, int& folderCount, KIO::filesize_t& totalFileSize, bool selectionBased = false) const; | ||
710 | 717 | | |||
711 | void slotTwoClicksRenamingTimerTimeout(); | 718 | void slotTwoClicksRenamingTimerTimeout(); | ||
712 | 719 | | |||
713 | private: | 720 | private: | ||
714 | void loadDirectory(const QUrl& url, bool reload = false); | 721 | void loadDirectory(const QUrl& url, bool reload = false); | ||
715 | 722 | | |||
716 | /** | 723 | /** | ||
717 | * Applies the view properties which are defined by the current URL | 724 | * Applies the view properties which are defined by the current URL | ||
▲ Show 20 Lines • Show All 107 Lines • Show Last 20 Lines |