Public Methods
- KDirOperator (const KURL& urlName = KURL(), QWidget *parent = 0, const char* name = 0)
- virtual ~ KDirOperator ()
- void setShowHiddenFiles ( bool s )
- bool showHiddenFiles () const
- void close ()
- void setNameFilter (const QString& filter)
- KURL url () const
- void setURL (const KURL& url, bool clearforward)
- void setCurrentItem ( const QString& filename )
- void setView (KFileView *view)
- const KFileView * view () const
- void setView (KFile::FileView view)
- void setSorting ( QDir::SortSpec )
- QDir::SortSpec sorting () const
- bool isRoot () const
- KFileReader * fileReader () const
- void setMode ( KFile::Mode m )
- KFile::Mode mode () const
- void setPreviewWidget (const QWidget *w)
- const KFileViewItemList * selectedItems () const
- inline bool isSelected ( const KFileViewItem *item ) const
- int numDirs () const
- int numFiles () const
- KCompletion * completionObject () const
- QActionCollection * actionCollection () const
- virtual void readConfig ( KConfig *, const QString& group = QString::null )
- virtual void saveConfig ( KConfig *, const QString& group = QString::null )
Public Slots
- void back ()
- void forward ()
- void home ()
- void cdUp ()
- void rereadDir ()
- void mkdir ()
- QString makeCompletion (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 ()
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 of the current
directory/URL.
You can use it to insert it into a KLineEdit or KComboBox
QActionCollection * actionCollection ()
|
[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 QActionCollection::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: dfaure@faure on Sun Mar 26 14:24:49 2000, using kdoc 2.0a35. |