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