21 #ifndef KDIROPERATOR_H_
22 #define KDIROPERATOR_H_
24 #include <QtGui/QWidget>
25 #include <QtCore/QStack>
26 #include <QtGui/QStyleOptionViewItem>
135 virtual void setShowHiddenFiles(
bool s);
140 bool showHiddenFiles()
const;
154 void setNameFilter(
const QString& filter);
206 void setNewFileMenuSupportedMimeTypes(
const QStringList& mime);
233 virtual void setUrl(
const KUrl& url,
bool clearforward);
240 void setCurrentItem(
const QString& url);
246 void setCurrentItem(
const KFileItem& item);
321 virtual void setMode(KFile::Modes m);
325 KFile::Modes mode()
const;
343 bool isSelected(
const KFileItem &item)
const;
355 int numFiles()
const;
477 void setOnlyDoubleClickSelectsFiles(
bool enable);
484 bool onlyDoubleClickSelectsFiles()
const;
494 virtual bool mkdir(
const QString& directory,
bool enterDirectory =
true);
505 bool ask =
true,
bool showProgress =
true);
521 virtual void setEnableDirHighlighting(
bool enable);
529 bool dirHighlighting()
const;
535 bool dirOnlyMode()
const;
537 static bool dirOnlyMode(uint mode);
543 void setupMenu(
int whichActions);
555 virtual void setDropOptions(
int options);
566 bool ask =
true,
bool showProgress =
true);
580 void setInlinePreviewShown(
bool show);
587 QStyleOptionViewItem::Position decorationPosition()
const;
594 void setDecorationPosition(QStyleOptionViewItem::Position position);
600 bool isInlinePreviewShown()
const;
606 int iconsZoom()
const;
614 void setIsSaving(
bool isSaving);
621 bool isSaving()
const;
639 virtual void setDirLister(
KDirLister *lister);
655 void updateSortActions();
661 void updateViewActions();
676 void prepareCompletionObjects();
683 bool checkPreviewSupport();
723 virtual void rereadDir();
728 virtual void mkdir();
733 virtual void deleteSelected();
740 void updateSelectionDependentActions();
761 virtual void trashSelected();
768 void setIconsZoom(
int value);
786 virtual void selectDir(
const KFileItem &item);
796 void highlightFile(
const KFileItem &item);
826 void toggleDirsFirst();
831 void toggleIgnoreCase();
837 void slotCompletionMatch(
const QString &match);
840 void urlEntered(
const KUrl&);
841 void updateInformation(
int files,
int dirs);
843 void finishedLoading();
857 void fileHighlighted(
const KFileItem &item);
858 void dirActivated(
const KFileItem &item);
859 void fileSelected(
const KFileItem &item);
885 void currentIconSizeChanged(
int size);
891 Q_PRIVATE_SLOT( d,
void _k_slotDetailedView() )
892 Q_PRIVATE_SLOT( d,
void _k_slotSimpleView() )
893 Q_PRIVATE_SLOT( d,
void _k_slotTreeView() )
894 Q_PRIVATE_SLOT( d,
void _k_slotDetailedTreeView() )
895 Q_PRIVATE_SLOT( d,
void _k_slotToggleHidden(
bool) )
896 Q_PRIVATE_SLOT( d,
void _k_togglePreview(
bool) )
897 Q_PRIVATE_SLOT( d,
void _k_toggleInlinePreviews(
bool) )
898 Q_PRIVATE_SLOT( d,
void _k_slotOpenFileManager() )
899 Q_PRIVATE_SLOT( d,
void _k_slotSortByName() )
900 Q_PRIVATE_SLOT( d,
void _k_slotSortBySize() )
901 Q_PRIVATE_SLOT( d,
void _k_slotSortByDate() )
902 Q_PRIVATE_SLOT( d,
void _k_slotSortByType() )
903 Q_PRIVATE_SLOT( d,
void _k_slotSortReversed(
bool) )
904 Q_PRIVATE_SLOT( d,
void _k_slotToggleDirsFirst() )
905 Q_PRIVATE_SLOT( d,
void _k_slotToggleIgnoreCase() )
906 Q_PRIVATE_SLOT( d,
void _k_slotStarted() )
907 Q_PRIVATE_SLOT( d,
void _k_slotProgress(
int) )
908 Q_PRIVATE_SLOT( d,
void _k_slotShowProgress() )
909 Q_PRIVATE_SLOT( d,
void _k_slotIOFinished() )
910 Q_PRIVATE_SLOT( d,
void _k_slotCanceled() )
911 Q_PRIVATE_SLOT( d,
void _k_slotRedirected(const
KUrl&) )
912 Q_PRIVATE_SLOT( d,
void _k_slotProperties() )
913 Q_PRIVATE_SLOT( d,
void _k_slotActivated(const
QModelIndex&) )
914 Q_PRIVATE_SLOT( d,
void _k_slotSelectionChanged() )
915 Q_PRIVATE_SLOT( d,
void _k_openContextMenu(const
QPoint&) )
916 Q_PRIVATE_SLOT( d,
void _k_triggerPreview(const
QModelIndex&) )
917 Q_PRIVATE_SLOT( d,
void _k_showPreview() )
918 Q_PRIVATE_SLOT( d,
void _k_slotSplitterMoved(
int,
int) )
919 Q_PRIVATE_SLOT( d,
void _k_assureVisibleSelection() )
920 Q_PRIVATE_SLOT( d,
void _k_synchronizeSortingState(
int, Qt::SortOrder) )
921 Q_PRIVATE_SLOT( d,
void _k_slotChangeDecorationPosition() )
922 Q_PRIVATE_SLOT( d,
void _k_slotExpandToUrl(const
QModelIndex&) )
923 Q_PRIVATE_SLOT( d,
void _k_slotItemsChanged() )
924 Q_PRIVATE_SLOT( d,
void _k_slotDirectoryCreated(const
KUrl&) )
KAction * back(const QObject *recvr, const char *slot, QObject *parent)
Generates previews for files of an item view.
int mkdir(const QString &pathname, mode_t)
TsConfig readConfig(const QString &fname)
ActionType
The various action types.
This widget works as a network transparent filebrowser.
KAction * home(const QObject *recvr, const char *slot, QObject *parent)
virtual bool eventFilter(QObject *watched, QEvent *event)
KAction * forward(const QObject *recvr, const char *slot, QObject *parent)
const KShortcut & completion()
CopyJob * trash(const KUrl &src, JobFlags flags=DefaultFlags)