Changeset View
Changeset View
Standalone View
Standalone View
krusader/BookMan/krbookmark.h
Show All 22 Lines | |||||
23 | #define KRBOOKMARK_H | 23 | #define KRBOOKMARK_H | ||
24 | 24 | | |||
25 | // QtCore | 25 | // QtCore | ||
26 | #include <QList> | 26 | #include <QList> | ||
27 | #include <QUrl> | 27 | #include <QUrl> | ||
28 | // QtWidgets | 28 | // QtWidgets | ||
29 | #include <QAction> | 29 | #include <QAction> | ||
30 | 30 | | |||
31 | | ||||
32 | class KActionCollection; | 31 | class KActionCollection; | ||
32 | class ListPanelActions; | ||||
33 | | ||||
33 | 34 | | |||
34 | class KrBookmark: public QAction | 35 | class KrBookmark: public QAction | ||
35 | { | 36 | { | ||
36 | Q_OBJECT | 37 | Q_OBJECT | ||
37 | public: | 38 | public: | ||
38 | KrBookmark(QString name, QUrl url, KActionCollection *parent, QString icon = "", QString actionName = QString()); | 39 | KrBookmark(QString name, QUrl url, KActionCollection *parent, QString icon = "", QString actionName = QString()); | ||
39 | explicit KrBookmark(QString name, QString icon = ""); // creates a folder | 40 | explicit KrBookmark(QString name, QString icon = ""); // creates a folder | ||
40 | ~KrBookmark(); | 41 | ~KrBookmark(); | ||
Show All 13 Lines | |||||
54 | } | 55 | } | ||
55 | inline bool isSeparator() const { | 56 | inline bool isSeparator() const { | ||
56 | return _separator; | 57 | return _separator; | ||
57 | } | 58 | } | ||
58 | QList<KrBookmark *>& children() { | 59 | QList<KrBookmark *>& children() { | ||
59 | return _children; | 60 | return _children; | ||
60 | } | 61 | } | ||
61 | 62 | | |||
62 | static KrBookmark* getExistingBookmark(QString actionName, KActionCollection *collection); | 63 | static KrBookmark * getExistingBookmark(QString actionName, KActionCollection *collection); | ||
64 | | ||||
63 | // ----- special bookmarks | 65 | // ----- special bookmarks | ||
64 | static KrBookmark* trash(KActionCollection *collection); | 66 | static KrBookmark * trash(KActionCollection *collection); | ||
65 | static KrBookmark* virt(KActionCollection *collection); | 67 | static KrBookmark * virt(KActionCollection *collection); | ||
66 | static KrBookmark* lan(KActionCollection *collection); | 68 | static KrBookmark * lan(KActionCollection *collection); | ||
69 | static QAction * jumpBackAction(KActionCollection *collection, bool isSetter = false, ListPanelActions *sourceActions = 0); | ||||
67 | static KrBookmark* separator(); | 70 | static KrBookmark * separator(); | ||
68 | 71 | | |||
69 | signals: | 72 | signals: | ||
70 | void activated(const QUrl &url); | 73 | void activated(const QUrl &url); | ||
71 | 74 | | |||
72 | protected slots: | 75 | protected slots: | ||
73 | void activatedProxy(); | 76 | void activatedProxy(); | ||
74 | 77 | | |||
75 | 78 | | |||
Show All 10 Lines |