KDirOperator Class Reference
This widget works as a network transparent filebrowser. A widget for displaying files and browsing directories. More...
#include <kdiroperator.h>
Inheritance diagram for KDirOperator:


Public Types | |
enum | ActionTypes { SortActions = 1, ViewActions = 2, NavActions = 4, FileActions = 8, AllActions = 15 } |
Public Slots | |
void | back () |
void | forward () |
void | home () |
void | cdUp () |
void | updateDir () |
void | rereadDir () |
void | mkdir () |
void | deleteSelected () |
void | updateSelectionDependentActions () |
QString | makeCompletion (const QString &) |
QString | makeDirCompletion (const QString &) |
void | trashSelected (KAction::ActivationReason, Qt::ButtonState) |
Signals | |
void | urlEntered (const KURL &) |
void | updateInformation (int files, int dirs) |
void | completion (const QString &) |
void | finishedLoading () |
void | viewChanged (KFileView *newView) |
void | fileHighlighted (const KFileItem *item) |
void | dirActivated (const KFileItem *item) |
void | fileSelected (const KFileItem *item) |
void | dropped (const KFileItem *item, QDropEvent *event, const KURL::List &urls) |
Public Member Functions | |
KDirOperator (const KURL &urlName=KURL(), QWidget *parent=0, const char *name=0) | |
virtual | ~KDirOperator () |
void | setShowHiddenFiles (bool s) |
bool | showHiddenFiles () const |
void | close () |
virtual bool | close (bool alsoDelete) |
void | setNameFilter (const QString &filter) |
const QString & | nameFilter () const |
void | setMimeFilter (const QStringList &mimetypes) |
QStringList | mimeFilter () const |
void | clearFilter () |
KURL | url () const |
void | setURL (const KURL &url, bool clearforward) |
void | setCurrentItem (const QString &filename) |
void | setView (KFileView *view) |
KFileView * | view () const |
QWidget * | viewWidget () const |
void | setView (KFile::FileView view) |
void | setSorting (QDir::SortSpec) |
QDir::SortSpec | sorting () const |
bool | isRoot () const |
KDirLister * | dirLister () const |
KProgress * | progressBar () const |
void | setMode (KFile::Mode m) |
KFile::Mode | mode () const |
void | setPreviewWidget (const QWidget *w) |
const KFileItemList * | selectedItems () const |
bool | isSelected (const KFileItem *item) const |
int | numDirs () const |
int | numFiles () const |
KCompletion * | completionObject () const |
KCompletion * | dirCompletionObject () const |
KActionCollection * | actionCollection () const |
void | setViewConfig (KConfig *config, const QString &group) |
KConfig * | viewConfig () |
QString | viewConfigGroup () const |
virtual void | readConfig (KConfig *, const QString &group=QString::null) |
virtual void | writeConfig (KConfig *, const QString &group=QString::null) |
void | setOnlyDoubleClickSelectsFiles (bool enable) |
bool | onlyDoubleClickSelectsFiles () const |
bool | mkdir (const QString &directory, bool enterDirectory=true) |
KIO::DeleteJob * | del (const KFileItemList &items, bool ask=true, bool showProgress=true) |
KIO::DeleteJob * | del (const KFileItemList &items, QWidget *parent, bool ask=true, bool showProgress=true) |
void | clearHistory () |
void | setEnableDirHighlighting (bool enable) |
bool | dirHighlighting () const |
bool | dirOnlyMode () const |
void | setupMenu (int whichActions) |
virtual void | setAcceptDrops (bool b) |
void | setDropOptions (int options) |
KIO::CopyJob * | trash (const KFileItemList &items, QWidget *parent, bool ask=true, bool showProgress=true) |
Static Public Member Functions | |
bool | dirOnlyMode (uint mode) |
Protected Slots | |
void | resetCursor () |
void | pathChanged () |
void | insertNewFiles (const KFileItemList &newone) |
void | itemDeleted (KFileItem *) |
void | selectDir (const KFileItem *item) |
void | selectFile (const KFileItem *item) |
void | highlightFile (const KFileItem *i) |
virtual void | activatedMenu (const KFileItem *, const QPoint &pos) |
void | sortByName () |
void | sortBySize () |
void | sortByDate () |
void | sortReversed () |
void | toggleDirsFirst () |
void | toggleIgnoreCase () |
void | slotCompletionMatch (const QString &match) |
Protected Member Functions | |
virtual KFileView * | createView (QWidget *parent, KFile::FileView view) |
void | setDirLister (KDirLister *lister) |
virtual void | resizeEvent (QResizeEvent *) |
void | setupActions () |
void | updateSortActions () |
void | updateViewActions () |
void | setupMenu () |
void | prepareCompletionObjects () |
bool | checkPreviewSupport () |
virtual void | virtual_hook (int id, void *data) |
Detailed Description
This widget works as a network transparent filebrowser. A widget for displaying files and browsing directories.You specify a URL to display and this url will be loaded via KDirLister. The user can browse through directories, highlight and select files, delete or rename files.
It supports different views, e.g. a detailed view (see KFileDetailView), a simple icon view (see KFileIconView), a combination of two views, separating directories and files ( KCombiView).
Additionally, a preview view is available (see KFilePreview), which can show either a simple or detailed view and additionally a preview widget (see setPreviewWidget()). KImageFilePreview is one implementation of a preview widget, that displays previews for all supported filetypes utilizing KIO::PreviewJob.
Currently, those classes don't support Drag&Drop out of the box -- there you have to use your own view-classes. You can use some DnD-aware views from Bj�n Sahlstr� <bjorn@kbear.org> until they will be integrated into this library. See http://devel-home.kde.org/~pfeiffer/DnD-classes.tar.gz
This widget is the one used in the KFileDialog.
Basic usage is like this:
KDirOperator *op = new KDirOperator( KURL( "file:/home/gis" ), this ); // some signals you might be interested in connect(op, SIGNAL(urlEntered(const KURL&)), SLOT(urlEntered(const KURL&))); connect(op, SIGNAL(fileHighlighted(const KFileItem *)), SLOT(fileHighlighted(const KFileItem *))); connect(op, SIGNAL(fileSelected(const KFileItem *)), SLOT(fileSelected(const KFileItem *))); connect(op, SIGNAL(finishedLoading()), SLOT(slotLoadingFinished())); op->readConfig( KGlobal::config(), "Your KDiroperator ConfigGroup" ); op->setView(KFile::Default);
This will create a childwidget of 'this' showing the directory contents of /home/gis in the default-view. The view is determined by the readConfig() call, which will read the KDirOperator settings, the user left your program with (and which you saved with op->writeConfig()).
- Author:
- Stephan Kulow <coolo@kde.org>, Carsten Pfeiffer <pfeiffer@kde.org>
Definition at line 97 of file kdiroperator.h.
Member Enumeration Documentation
|
The various action types. These values can be or'd together
Definition at line 106 of file kdiroperator.h. |
Constructor & Destructor Documentation
|
Constructs the KDirOperator with no initial view. As the views are configurable, call readConfig() to load the user's configuration and then setView to explicitly set a view. This constructor doesn't start loading the url, setView will do it. Definition at line 97 of file kdiroperator.cpp. References KURL::addPath(), KURL::isEmpty(), KDirOperator(), KURL::protocol(), setDirLister(), KURL::setPath(), KURL::setProtocol(), setupActions(), setupMenu(), and slotCompletionMatch(). Referenced by KDirOperator(). |
|
Destroys the KDirOperator.
Definition at line 150 of file kdiroperator.cpp. References resetCursor(), and KFileView::writeConfig(). |
Member Function Documentation
|
Enables/disables showing hidden files.
Definition at line 129 of file kdiroperator.h. |
|
Definition at line 134 of file kdiroperator.h. |
|
Stops loading immediately. You don't need to call this, usually. Definition at line 573 of file kdiroperator.cpp. References KCompletion::clear(), resetCursor(), and KDirLister::stop(). |
|
Reimplemented to avoid "hidden virtual" warnings.
Definition at line 141 of file kdiroperator.h. |
|
Sets a filter like "*.cpp *.h *.o". Only files matching that filter will be shown. Call updateDir() to apply it.
Definition at line 788 of file kdiroperator.cpp. References checkPreviewSupport(), KDirLister::setNameFilter(), and setNameFilter(). Referenced by KFileDialog::setFilter(), and setNameFilter(). |
|
Definition at line 156 of file kdiroperator.h. |
|
Sets a list of mimetypes as filter. Only files of those mimetypes will be shown. Example:
Node: Without the mimetype inode/directory, only files would be shown. Call updateDir() to apply it.
Definition at line 794 of file kdiroperator.cpp. References checkPreviewSupport(), KDirLister::setMimeFilter(), and setMimeFilter(). Referenced by KFileDialog::setMimeFilter(), and setMimeFilter(). |
|
Definition at line 180 of file kdiroperator.h. |
|
Clears both the namefilter and mimetype filter, so that all files and directories will be shown. Call updateDir() to apply it.
Definition at line 781 of file kdiroperator.cpp. References checkPreviewSupport(), KDirLister::clearMimeFilter(), and KDirLister::setNameFilter(). Referenced by KFileDialog::clearFilter(), KFileDialog::setFilter(), and KFileDialog::setMimeFilter(). |
|
Definition at line 762 of file kdiroperator.cpp. Referenced by KFileDialog::baseURL(), del(), KFileDialog::getCompleteURL(), mkdir(), KFileDialog::readConfig(), KFileDialog::setSelection(), setView(), KFileDialog::tokenize(), and trash(). |
|
Sets a new url to list.
Definition at line 636 of file kdiroperator.cpp. References KURL::cd(), KURL::equals(), isRoot(), KURL::isValid(), KDirLister::openURL(), KURL::path(), pathChanged(), resetCursor(), KAction::setEnabled(), KURL::setPath(), setURL(), KURL::url(), and viewWidget(). Referenced by back(), cdUp(), forward(), home(), mkdir(), selectDir(), KFileDialog::setURL(), and setURL(). |
|
Clears the current selection and attempts to set filename is just the name, no path or url. Definition at line 1181 of file kdiroperator.cpp. References KFileView::clearSelection(), KFileView::ensureItemVisible(), KDirLister::findByName(), KFileView::setCurrentItem(), setCurrentItem(), and KFileView::setSelected(). Referenced by setCurrentItem(), and slotCompletionMatch(). |
|
Sets a new KFileView to be used for showing and browsing files. Note: this will read the current url() to fill the view.
Definition at line 1089 of file kdiroperator.cpp. References KFileView::setOnlyDoubleClickSelectsFiles(), KFileView::setSorting(), setView(), viewChanged(), and KFileView::widget(). Referenced by setMode(), setPreviewWidget(), and setView(). |
|
Definition at line 227 of file kdiroperator.h. |
|
Returns the widget of the current view. 0L if there is no view/widget. (KFileView itself is not a widget.) Definition at line 233 of file kdiroperator.h. Referenced by mkdir(), pathChanged(), and setURL(). |
|
Sets one of the predefined fileviews.
Definition at line 936 of file kdiroperator.cpp. References KActionCollection::action(), createView(), KAction::isEnabled(), mode(), KToggleAction::setChecked(), KAction::setEnabled(), setView(), and url(). |
|
Sets the way to sort files and directories.
Definition at line 168 of file kdiroperator.cpp. References KFileView::setSorting(), setSorting(), and updateSortActions(). Referenced by readConfig(), and setSorting(). |
|
Definition at line 250 of file kdiroperator.h. |
|
Definition at line 255 of file kdiroperator.h. References KURL::path(). Referenced by setURL(). |
|
Definition at line 260 of file kdiroperator.h. |
|
Definition at line 1612 of file kdiroperator.cpp. |
|
Sets the listing/selection mode for the views, an OR'ed combination of
You cannot mix File and Files of course, as the former means single-selection mode, the latter multi-selection. Definition at line 1076 of file kdiroperator.cpp. References dirOnlyMode(), KDirLister::setDirOnlyMode(), setMode(), and setView(). Referenced by KFileDialog::setMode(), and setMode(). |
|
Definition at line 1071 of file kdiroperator.cpp. Referenced by KFileDialog::mode(), KFileDialog::selectedFiles(), KFileDialog::selectedURLs(), and setView(). |
|
Sets a preview-widget to be shown next to the file-view.
The ownership of Definition at line 264 of file kdiroperator.cpp. References KActionCollection::action(), KToggleAction::setChecked(), KAction::setEnabled(), setPreviewWidget(), and setView(). Referenced by KFileDialog::setPreviewWidget(), and setPreviewWidget(). |
|
Definition at line 298 of file kdiroperator.h. Referenced by KFileDialog::multiSelectionChanged(). |
|
Definition at line 305 of file kdiroperator.h. |
|
Definition at line 280 of file kdiroperator.cpp. References KFileView::numDirs(). |
|
Definition at line 285 of file kdiroperator.cpp. References KFileView::numFiles(). |
|
Definition at line 329 of file kdiroperator.h. |
|
Definition at line 341 of file kdiroperator.h. |
|
an accessor to a collection of all available Actions. The actions are static, they will be there all the time (no need to connect to the signals KActionCollection::inserted() or removed(). There are the following actions:
You can e.g. use to add a button into a toolbar, which makes the dirOperator change to its parent directory.
Definition at line 390 of file kdiroperator.h. Referenced by KFileDialog::actionCollection(), KFileDialog::init(), and KFileDialog::toggleSpeedbar(). |
|
Sets the config object and the to be used group in KDirOperator. This will be used to store the view's configuration via KFileView::writeConfig() (and for KFileView::readConfig()). If you don't set this, the views cannot save and restore their configuration. Usually you call this right after KDirOperator creation so that the view instantiation can make use of it already. Note that KDirOperator does NOT take ownership of that object (typically it's KGlobal::config() anyway.
Definition at line 1710 of file kdiroperator.cpp. References setViewConfig(). Referenced by KFileDialog::init(), and setViewConfig(). |
|
Returns the KConfig object used for saving and restoring view's configuration.
Definition at line 1716 of file kdiroperator.cpp. |
|
Returns the group name used for saving and restoring view's configuration.
Definition at line 1721 of file kdiroperator.cpp. |
|
Reads the default settings for a view, i.e. the default KFile::FileView. Also reads the sorting and whether hidden files should be shown. Note: the default view will not be set - you have to call to apply it.
Definition at line 1431 of file kdiroperator.cpp. References KConfigBase::group(), KConfigBase::readBoolEntry(), readConfig(), KConfigBase::readEntry(), KToggleAction::setChecked(), KConfigBase::setGroup(), KDirLister::setShowingDotFiles(), and setSorting(). Referenced by KFileDialog::readConfig(), and readConfig(). |
|
Saves the current settings like sorting, simple or detailed view.
Definition at line 1487 of file kdiroperator.cpp. References KActionCollection::action(), KConfigBase::group(), KToggleAction::isChecked(), KAction::isEnabled(), KConfigBase::setGroup(), writeConfig(), and KConfigBase::writeEntry(). Referenced by KFileDialog::writeConfig(), and writeConfig(). |
|
This is a KFileDialog specific hack: we want to select directories with single click, but not files. But as a generic class, we have to be able to select files on single click as well. This gives us the opportunity to do both. The default is false, set it to true if you don't want files selected with single click. Definition at line 1556 of file kdiroperator.cpp. References KFileView::setOnlyDoubleClickSelectsFiles(), and setOnlyDoubleClickSelectsFiles(). Referenced by KFileDialog::init(), and setOnlyDoubleClickSelectsFiles(). |
|
Definition at line 1563 of file kdiroperator.cpp. |
|
Creates the given directory/url. If it is a relative path, it will be completed with the current directory. If enterDirectory is true, the directory will be entered after a successful operation. If unsuccessful, a messagebox will be presented to the user.
Definition at line 400 of file kdiroperator.cpp. References KURL::addPath(), KIO::mkdir(), KURL::pathOrURL(), setURL(), url(), and viewWidget(). |
|
Starts and returns a KIO::DeleteJob to delete the given
Definition at line 436 of file kdiroperator.cpp. References del(). Referenced by del(), and deleteSelected(). |
|
Starts and returns a KIO::DeleteJob to delete the given
Definition at line 442 of file kdiroperator.cpp. References KIO::del(), KStdGuiItem::del(), del(), KURL::isLocalFile(), KURL::path(), KURL::prettyURL(), KIO::Job::setAutoErrorHandlingEnabled(), KIO::Job::setWindow(), KURL::url(), and url(). |
|
Clears the forward and backward history.
Definition at line 1617 of file kdiroperator.cpp. References KAction::setEnabled(). Referenced by KFileDialog::getOpenFileName(), KEncodingFileDialog::getOpenFileNameAndEncoding(), KFileDialog::getOpenFileNames(), KEncodingFileDialog::getOpenFileNamesAndEncoding(), KFileDialog::getOpenFileNameWId(), KFileDialog::getOpenURL(), KEncodingFileDialog::getOpenURLAndEncoding(), KFileDialog::getOpenURLs(), KEncodingFileDialog::getOpenURLsAndEncoding(), and KFileDialog::setPreviewWidget(). |
|
When going up in the directory hierarchy, KDirOperator can highlight the directory that was just left. I.e. when you go from /home/gis/src to /home/gis, the item "src" will be made the current item. Default is off. Definition at line 1647 of file kdiroperator.cpp. References setEnableDirHighlighting(). Referenced by setEnableDirHighlighting(). |
|
Definition at line 1652 of file kdiroperator.cpp. |
|
Definition at line 537 of file kdiroperator.h. Referenced by KFileDialog::setMode(), and setMode(). |
|
Sets up the action menu.
Definition at line 1349 of file kdiroperator.cpp. References KActionCollection::action(), KGlobal::config(), KActionMenu::insert(), KURL::isLocalFile(), KApplication::keyboardMouseState(), KActionMenu::popupMenu(), and KConfigBase::readBoolEntry(). Referenced by KFileDialog::init(). |
|
Reimplemented - allow dropping of files if
Definition at line 922 of file kdiroperator.cpp. References setAcceptDrops(), and KFileView::widget(). Referenced by setAcceptDrops(). |
|
Sets the options for dropping files.
Definition at line 929 of file kdiroperator.cpp. References KFileView::setDropOptions(), and setDropOptions(). Referenced by setDropOptions(). |
|
Starts and returns a KIO::CopyJob to trash the given
Definition at line 505 of file kdiroperator.cpp. References KURL::isLocalFile(), KURL::path(), KURL::prettyURL(), KIO::Job::setAutoErrorHandlingEnabled(), KIO::Job::setWindow(), KIO::trash(), trash(), KURL::url(), and url(). Referenced by setupActions(), trash(), and trashSelected(). |
|
A view factory for creating predefined fileviews. Called internally by setView , but you can also call it directly. Reimplement this if you depend on self defined fileviews.
Definition at line 874 of file kdiroperator.cpp. References createView(), KFileView::setOnlyDoubleClickSelectsFiles(), KCombiView::setRight(), KFileView::setViewName(), and KFileView::widget(). Referenced by createView(), and setView(). |
|
Sets a custom KDirLister to list directories.
Definition at line 1103 of file kdiroperator.cpp. References endl(), insertNewFiles(), itemDeleted(), kdDebug(), KDirLister::setAutoUpdate(), setDirLister(), and KDirLister::setMainWindow(). Referenced by KDirOperator(), and setDirLister(). |
|
Sets up all the actions. Called from the constructor, you usually better not call this. Definition at line 1244 of file kdiroperator.cpp. References back(), KStdAction::back(), cdUp(), deleteSelected(), forward(), KStdAction::forward(), home(), KStdAction::home(), mkdir(), KActionMenu::popupMenu(), KStdAction::redisplay(), rereadDir(), KToggleAction::setCheckedState(), KToggleAction::setExclusiveGroup(), KAction::setIcon(), KAction::setShortcut(), KAction::setText(), trash(), trashSelected(), and KStdAction::up(). Referenced by KDirOperator(). |
|
Updates the sorting-related actions to comply with the current sorting.
Definition at line 1403 of file kdiroperator.cpp. References KFileView::isReversed(), KToggleAction::setChecked(), and KAction::setEnabled(). Referenced by setSorting(). |
|
Updates the view-related actions to comply with the current KFile::FileView.
Definition at line 1420 of file kdiroperator.cpp. References KAction::isEnabled(), and KToggleAction::setChecked(). |
|
Sets up the context-menu with all the necessary actions. Called from the constructor, you usually don't need to call this.
Definition at line 1344 of file kdiroperator.cpp. Referenced by activatedMenu(), and KDirOperator(). |
|
Synchronizes the completion objects with the entries of the currently listed url. Automatically called from makeCompletion() and makeDirCompletion() Definition at line 1220 of file kdiroperator.cpp. References KCompletion::addItem(), KFileItem::isDir(), KFileView::items(), and KFileItem::name(). Referenced by makeCompletion(), and makeDirCompletion(). |
|
Checks if there support from KIO::PreviewJob for the currently shown files, taking mimeFilter() and nameFilter() into account Enables/disables the preview-action accordingly.
Definition at line 800 of file kdiroperator.cpp. References KActionCollection::action(), KGlobal::config(), KConfigBase::readBoolEntry(), and KAction::setEnabled(). Referenced by clearFilter(), setMimeFilter(), and setNameFilter(). |
|
Goes one step back in the history and opens that url.
Definition at line 736 of file kdiroperator.cpp. References setURL(). Referenced by pathChanged(), and setupActions(). |
|
Goes one step forward in the history and opens that url.
Definition at line 750 of file kdiroperator.cpp. References setURL(). Referenced by setupActions(). |
|
Enters the home directory.
Definition at line 774 of file kdiroperator.cpp. References KURL::setPath(), and setURL(). Referenced by pathChanged(), and setupActions(). |
|
Goes one directory up from the current url.
Definition at line 767 of file kdiroperator.cpp. References KURL::cd(), and setURL(). Referenced by setupActions(). |
|
to update the view after changing the settings
Definition at line 684 of file kdiroperator.cpp. References KDirLister::emitChanges(), and KFileView::listingCompleted(). |
|
Re-reads the current url.
Definition at line 691 of file kdiroperator.cpp. References KDirLister::openURL(), and pathChanged(). Referenced by setupActions(). |
|
Opens a dialog to create a new directory.
Definition at line 385 of file kdiroperator.cpp. References KURL::isLocalFile(), KURL::pathOrURL(), and url(). Referenced by setupActions(). |
|
Deletes the currently selected files/directories.
Definition at line 495 of file kdiroperator.cpp. References del(), and KFileView::selectedItems(). Referenced by setupActions(), and trashSelected(). |
|
Enables/disables actions that are selection dependent. Call this e.g. when you are about to show a popup menu using some of KDirOperators actions. Definition at line 255 of file kdiroperator.cpp. References KActionCollection::action(), KFileView::selectedItems(), and KAction::setEnabled(). Referenced by activatedMenu(). |
|
Tries to complete the given string (only completes files).
Definition at line 1198 of file kdiroperator.cpp. References KFileView::clearSelection(), KCompletion::makeCompletion(), makeCompletion(), and prepareCompletionObjects(). Referenced by makeCompletion(). |
|
Tries to complete the given string (only completes directores).
Definition at line 1209 of file kdiroperator.cpp. References KFileView::clearSelection(), KCompletion::makeCompletion(), makeDirCompletion(), and prepareCompletionObjects(). Referenced by makeDirCompletion(). |
|
Trashes the currently selected files/directories.
Definition at line 558 of file kdiroperator.cpp. References deleteSelected(), KFileView::selectedItems(), trash(), and trashSelected(). Referenced by setupActions(), and trashSelected(). |
|
Restores the normal cursor after showing the busy-cursor. Also hides the progressbar. Definition at line 176 of file kdiroperator.cpp. Referenced by close(), insertNewFiles(), setURL(), and ~KDirOperator(). |
|
Called after setURL() to load the directory, update the history, etc.
Definition at line 698 of file kdiroperator.cpp. References back(), KCompletion::clear(), KFileView::clear(), home(), and viewWidget(). Referenced by rereadDir(), and setURL(). |
|
Adds a new list of KFileItems to the view (coming from KDirLister).
Definition at line 1133 of file kdiroperator.cpp. References KFileView::addItemList(), KFileView::ensureItemVisible(), insertNewFiles(), KFileItem::isDir(), KFileView::numDirs(), KFileView::numFiles(), resetCursor(), KFileView::setCurrentItem(), KURL::url(), and KFileItem::url(). Referenced by insertNewFiles(), and setDirLister(). |
|
Removes the given KFileItem item from the view (usually called from KDirLister).
Definition at line 1164 of file kdiroperator.cpp. References itemDeleted(), KFileView::numDirs(), KFileView::numFiles(), and KFileView::removeItem(). Referenced by itemDeleted(), and setDirLister(). |
|
Enters the directory specified by the given
Definition at line 1159 of file kdiroperator.cpp. References selectDir(), setURL(), and KFileItem::url(). Referenced by selectDir(). |
|
Emits fileSelected( item ).
Definition at line 1174 of file kdiroperator.cpp. References selectFile(). Referenced by selectFile(). |
|
Emits fileHighlighted( i ).
Definition at line 753 of file kdiroperator.h. |
|
Called upon right-click to activate the popupmenu.
Definition at line 247 of file kdiroperator.cpp. References activatedMenu(), KActionMenu::popup(), setupMenu(), and updateSelectionDependentActions(). Referenced by activatedMenu(). |
|
Changes sorting to sort by name.
Definition at line 763 of file kdiroperator.h. |
|
Changes sorting to sort by size.
Definition at line 768 of file kdiroperator.h. |
|
Changes sorting to sort by date.
Definition at line 773 of file kdiroperator.h. |
|
Changes sorting to reverse sorting.
Definition at line 778 of file kdiroperator.h. |
|
Toggles showing directories first / having them sorted like files.
Definition at line 783 of file kdiroperator.h. |
|
Toggles case sensitive / case insensitive sorting.
Definition at line 788 of file kdiroperator.h. |
|
Tries to make the given
Definition at line 1238 of file kdiroperator.cpp. References setCurrentItem(), and slotCompletionMatch(). Referenced by KDirOperator(), and slotCompletionMatch(). |
|
Emitted whenever the current fileview is changed, either by an explicit call to setView() or by the user selecting a different view thru the GUI.
Referenced by setView(). |
|
Emitted when a file is highlighted or generally the selection changes in multiselection mode.
In the latter case, |
|
Emitted when files are dropped. Dropping files is disabled by default. You need to enable it with setAcceptDrops()
|
The documentation for this class was generated from the following files: