Changeset View
Changeset View
Standalone View
Standalone View
src/filewidgets/kdiroperator.h
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Line(s) | |||||
53 | * @class KDirOperator kdiroperator.h <KDirOperator> | 53 | * @class KDirOperator kdiroperator.h <KDirOperator> | ||
54 | * | 54 | * | ||
55 | * This widget works as a network transparent filebrowser. You specify a URL | 55 | * This widget works as a network transparent filebrowser. You specify a URL | ||
56 | * to display and this url will be loaded via KDirLister. The user can | 56 | * to display and this url will be loaded via KDirLister. The user can | ||
57 | * browse through directories, highlight and select files, delete or rename | 57 | * browse through directories, highlight and select files, delete or rename | ||
58 | * files. | 58 | * files. | ||
59 | * | 59 | * | ||
60 | * It supports different views, e.g. a detailed view (see KFileDetailView), | 60 | * It supports different views, e.g. a detailed view (see KFileDetailView), | ||
61 | * a simple icon view (see KFileIconView), a combination of two views, | 61 | * an icon view (see KFileIconView), a combination of two views, | ||
62 | * separating directories and files ( KCombiView). | 62 | * separating directories and files ( KCombiView). | ||
63 | * | 63 | * | ||
64 | * Additionally, a preview view is available (see KFilePreview), which can | 64 | * Additionally, a preview view is available (see KFilePreview), which can | ||
65 | * show either a simple or detailed view and additionally a preview widget | 65 | * show either an icon or detailed view and additionally a preview widget | ||
66 | * (see setPreviewWidget()). KImageFilePreview is one implementation | 66 | * (see setPreviewWidget()). KImageFilePreview is one implementation | ||
67 | * of a preview widget, that displays previews for all supported filetypes | 67 | * of a preview widget, that displays previews for all supported filetypes | ||
68 | * utilizing KIO::PreviewJob. | 68 | * utilizing KIO::PreviewJob. | ||
69 | * | 69 | * | ||
70 | * Currently, those classes don't support Drag&Drop out of the box -- there | 70 | * Currently, those classes don't support Drag&Drop out of the box -- there | ||
71 | * you have to use your own view-classes. You can use some DnD-aware views | 71 | * you have to use your own view-classes. You can use some DnD-aware views | ||
72 | * from Björn Sahlström <bjorn@kbear.org> until they will be integrated | 72 | * from Björn Sahlström <bjorn@kbear.org> until they will be integrated | ||
73 | * into this library. See http://devel-home.kde.org/~pfeiffer/DnD-classes.tar.gz | 73 | * into this library. See http://devel-home.kde.org/~pfeiffer/DnD-classes.tar.gz | ||
▲ Show 20 Lines • Show All 324 Lines • ▼ Show 20 Line(s) | 107 | public: | |||
398 | * @li delete : deletes the selected files/directories | 398 | * @li delete : deletes the selected files/directories | ||
399 | * @li sorting menu : an ActionMenu containing all sort-options | 399 | * @li sorting menu : an ActionMenu containing all sort-options | ||
400 | * @li by name : sorts by name | 400 | * @li by name : sorts by name | ||
401 | * @li by size : sorts by size | 401 | * @li by size : sorts by size | ||
402 | * @li by date : sorts by date | 402 | * @li by date : sorts by date | ||
403 | * @li by type : sorts by type | 403 | * @li by type : sorts by type | ||
404 | * @li descending : reverses the sort order | 404 | * @li descending : reverses the sort order | ||
405 | * @li view menu : an ActionMenu containing all actions concerning the view | 405 | * @li view menu : an ActionMenu containing all actions concerning the view | ||
406 | * @li short view : shows a simple fileview | 406 | * @li icon view : shows an icon fileview | ||
407 | * @li compact view : shows a compact fileview | ||||
407 | * @li detailed view : shows a detailed fileview (dates, permissions ,...) | 408 | * @li detailed view : shows a detailed fileview (dates, permissions ,...) | ||
408 | * @li show hidden : shows hidden files | 409 | * @li show hidden : shows hidden files | ||
409 | * @li preview : shows a preview next to the fileview | 410 | * @li preview : shows a preview next to the fileview | ||
410 | * @li properties : shows a KPropertiesDialog for the selected files | 411 | * @li properties : shows a KPropertiesDialog for the selected files | ||
411 | * | 412 | * | ||
412 | * The short and detailed view are in an exclusive group. The sort-by | 413 | * The short and detailed view are in an exclusive group. The sort-by | ||
413 | * actions are in an exclusive group as well. Also the "separate dirs", | 414 | * actions are in an exclusive group as well. Also the "separate dirs", | ||
414 | * "preview" and "single" actions are in an exclusive group. | 415 | * "preview" and "single" actions are in an exclusive group. | ||
▲ Show 20 Lines • Show All 45 Lines • ▼ Show 20 Line(s) | |||||
460 | * | 461 | * | ||
461 | * @see setView | 462 | * @see setView | ||
462 | * @see setViewConfig | 463 | * @see setViewConfig | ||
463 | * @see writeConfig | 464 | * @see writeConfig | ||
464 | */ | 465 | */ | ||
465 | virtual void readConfig(const KConfigGroup &configGroup); | 466 | virtual void readConfig(const KConfigGroup &configGroup); | ||
466 | 467 | | |||
467 | /** | 468 | /** | ||
468 | * Saves the current settings like sorting, simple or detailed view. | 469 | * Saves the current settings like sorting, current view. | ||
469 | * | 470 | * | ||
470 | * @see readConfig | 471 | * @see readConfig | ||
471 | * @see setViewConfig | 472 | * @see setViewConfig | ||
472 | */ | 473 | */ | ||
473 | virtual void writeConfig(KConfigGroup &configGroup); | 474 | virtual void writeConfig(KConfigGroup &configGroup); | ||
474 | 475 | | |||
475 | /** | 476 | /** | ||
476 | * This toggles between double/single click file and directory selection mode. | 477 | * This toggles between double/single click file and directory selection mode. | ||
▲ Show 20 Lines • Show All 441 Lines • ▼ Show 20 Line(s) | 868 | Q_SIGNALS: | |||
918 | */ | 919 | */ | ||
919 | void keyEnterReturnPressed(); | 920 | void keyEnterReturnPressed(); | ||
920 | 921 | | |||
921 | private: | 922 | private: | ||
922 | class Private; | 923 | class Private; | ||
923 | Private *const d; | 924 | Private *const d; | ||
924 | 925 | | |||
925 | Q_PRIVATE_SLOT(d, void _k_slotDetailedView()) | 926 | Q_PRIVATE_SLOT(d, void _k_slotDetailedView()) | ||
926 | Q_PRIVATE_SLOT(d, void _k_slotSimpleView()) | 927 | Q_PRIVATE_SLOT(d, void _k_slotIconView()) | ||
927 | Q_PRIVATE_SLOT(d, void _k_slotTreeView()) | 928 | Q_PRIVATE_SLOT(d, void _k_slotCompactView()) | ||
928 | Q_PRIVATE_SLOT(d, void _k_slotDetailedTreeView()) | 929 | Q_PRIVATE_SLOT(d, void _k_slotDetailedTreeView()) | ||
929 | Q_PRIVATE_SLOT(d, void _k_slotToggleHidden(bool)) | 930 | Q_PRIVATE_SLOT(d, void _k_slotToggleHidden(bool)) | ||
930 | Q_PRIVATE_SLOT(d, void _k_togglePreview(bool)) | 931 | Q_PRIVATE_SLOT(d, void _k_togglePreview(bool)) | ||
931 | Q_PRIVATE_SLOT(d, void _k_toggleInlinePreviews(bool)) | 932 | Q_PRIVATE_SLOT(d, void _k_toggleInlinePreviews(bool)) | ||
932 | Q_PRIVATE_SLOT(d, void _k_slotOpenFileManager()) | 933 | Q_PRIVATE_SLOT(d, void _k_slotOpenFileManager()) | ||
933 | Q_PRIVATE_SLOT(d, void _k_slotSortByName()) | 934 | Q_PRIVATE_SLOT(d, void _k_slotSortByName()) | ||
934 | Q_PRIVATE_SLOT(d, void _k_slotSortBySize()) | 935 | Q_PRIVATE_SLOT(d, void _k_slotSortBySize()) | ||
935 | Q_PRIVATE_SLOT(d, void _k_slotSortByDate()) | 936 | Q_PRIVATE_SLOT(d, void _k_slotSortByDate()) | ||
Show All 11 Lines | |||||
947 | Q_PRIVATE_SLOT(d, void _k_slotActivated(const QModelIndex &)) | 948 | Q_PRIVATE_SLOT(d, void _k_slotActivated(const QModelIndex &)) | ||
948 | Q_PRIVATE_SLOT(d, void _k_slotSelectionChanged()) | 949 | Q_PRIVATE_SLOT(d, void _k_slotSelectionChanged()) | ||
949 | Q_PRIVATE_SLOT(d, void _k_openContextMenu(const QPoint &)) | 950 | Q_PRIVATE_SLOT(d, void _k_openContextMenu(const QPoint &)) | ||
950 | Q_PRIVATE_SLOT(d, void _k_triggerPreview(const QModelIndex &)) | 951 | Q_PRIVATE_SLOT(d, void _k_triggerPreview(const QModelIndex &)) | ||
951 | Q_PRIVATE_SLOT(d, void _k_showPreview()) | 952 | Q_PRIVATE_SLOT(d, void _k_showPreview()) | ||
952 | Q_PRIVATE_SLOT(d, void _k_slotSplitterMoved(int, int)) | 953 | Q_PRIVATE_SLOT(d, void _k_slotSplitterMoved(int, int)) | ||
953 | Q_PRIVATE_SLOT(d, void _k_assureVisibleSelection()) | 954 | Q_PRIVATE_SLOT(d, void _k_assureVisibleSelection()) | ||
954 | Q_PRIVATE_SLOT(d, void _k_synchronizeSortingState(int, Qt::SortOrder)) | 955 | Q_PRIVATE_SLOT(d, void _k_synchronizeSortingState(int, Qt::SortOrder)) | ||
955 | Q_PRIVATE_SLOT(d, void _k_slotChangeDecorationPosition()) | | |||
956 | Q_PRIVATE_SLOT(d, void _k_slotExpandToUrl(const QModelIndex &)) | 956 | Q_PRIVATE_SLOT(d, void _k_slotExpandToUrl(const QModelIndex &)) | ||
957 | Q_PRIVATE_SLOT(d, void _k_slotItemsChanged()) | 957 | Q_PRIVATE_SLOT(d, void _k_slotItemsChanged()) | ||
958 | Q_PRIVATE_SLOT(d, void _k_slotDirectoryCreated(const QUrl &)) | 958 | Q_PRIVATE_SLOT(d, void _k_slotDirectoryCreated(const QUrl &)) | ||
959 | }; | 959 | }; | ||
960 | 960 | | |||
961 | #endif | 961 | #endif |