Public Methods
Public Slots
- void back ()
- void forward ()
- void home ()
- void cdUp ()
- void rereadDir ()
- void mkdir ()
- QString makeCompletion (const QString&)
- QString makeDirCompletion (const QString&)
Signals
- void urlEntered (const KURL& )
- void updateInformation (int files, int dirs)
- void completion (const QString&)
- void finishedLoading ()
- void fileHighlighted (const KFileViewItem*)
- void dirActivated (const KFileViewItem*)
- void fileSelected (const KFileViewItem*)
Protected Methods
- void setFileReader ( KFileReader *reader )
- void resizeEvent ( QResizeEvent * )
- void setupActions ()
- void updateSortActions ()
- void updateViewActions ()
- void setupMenu ()
- void prepareCompletionObjects ()
Protected Slots
- void resetCursor ()
- void readNextMimeType ()
- void slotKIOError (int, const QString& )
- void pathChanged ()
- void filterChanged ()
- void insertNewFiles (const KFileViewItemList &newone, bool ready)
- void itemsDeleted (const KFileViewItemList &)
- void selectDir (const KFileViewItem*)
- void selectFile (const KFileViewItem*)
- void highlightFile (const KFileViewItem* i)
- void activatedMenu ( const KFileViewItem * )
- void sortByName ()
- void sortBySize ()
- void sortByDate ()
- void sortReversed ()
- void toggleDirsFirst ()
- void toggleIgnoreCase ()
- void deleteOldView ()
- void slotCompletionMatch (const QString&)
- void slotCompletionMatches (const QStringList&)
void setCurrentItem ( const QString& filename )
|
Clears the current selection and attempts to set @param filename
the current file. filename is just the name, no path or url.
[const]
Returns: a KCompletion object, containing all filenames and
directories of the current directory/URL.
You can use it to insert it into a KLineEdit or KComboBox
Note: it will only contain files, after prepareCompletionObjects()
has been called. It will be implicitly called from makeCompletion()
or makeDirCompletion()
[const]
Returns: a KCompletion object, containing only all directories of the
current directory/URL.
You can use it to insert it into a KLineEdit or KComboBox
Note: it will only contain directories, after
prepareCompletionObjects() has been called. It will be implicitly
called from makeCompletion() or makeDirCompletion()
[const]
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:
- popupMenu : an ActionMenu presenting a popupmenu with all actions
- up : changes to the parent directory
- back : goes back to the previous directory
- forward : goes forward in the history
- home : changes to the user's home directory
- reload : reloads the current directory
- separator : a separator
- mkdir : opens a dialog box to create a directory
- sorting menu : an ActionMenu containing all sort-options
- by name : sorts by name
- by date : sorts by date
- by size : sorts by size
- reversed : reverses the sort order
- dirs first : sorts directories before files
- case insensitive : sorts case insensitively
- view menu : an ActionMenu containing all actions concerning the view
- short view : shows a simple fileview
- detailed view : shows a detailed fileview (dates, permissions ,...)
- show hidden : shows hidden files
- separate dirs : shows directories in a separate pane
The short and detailed view are in an exclusive group. The sort-by
actions are in an exclusive group as well.
You can e.g. use
actionCollection()->action( "up" )->plug( someToolBar );</pre>
to add a button into a toolbar, which makes the dirOperator change to
its parent directory.
@returns all available Actions
[virtual]
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
@ref setView( KFile::Default )</pre> to apply it.
Generated by: root@porky.devel.redhat.com on Wed May 10 08:56:57 2000, using kdoc 2.0a35. |