diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-08-28 22:44:34 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-08-31 23:30:34 +0900 |
commit | f9abd9d505434c9244c03eac708e29a0ca042f6b (patch) | |
tree | 30a197ab4c413849188bc131ff859212e636c821 /src/app/BookMan/krbookmark.h | |
parent | 14d42d284de233f9937becf3fc9ee0dabede3b21 (diff) | |
download | krusader-r14.1.x.tar.gz krusader-r14.1.x.zip |
Restructure source foldersr14.1.x
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 086012dcad8a976a0dabbb7cbc20c9cb612cdfa9)
Diffstat (limited to 'src/app/BookMan/krbookmark.h')
-rw-r--r-- | src/app/BookMan/krbookmark.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/src/app/BookMan/krbookmark.h b/src/app/BookMan/krbookmark.h new file mode 100644 index 0000000..567b3c8 --- /dev/null +++ b/src/app/BookMan/krbookmark.h @@ -0,0 +1,46 @@ +#ifndef KRBOOKMARK_H +#define KRBOOKMARK_H + +#include <tdeaction.h> +#include <tqptrlist.h> +#include <kurl.h> + +class TDEActionCollection; + +class KrBookmark: public TDEAction { + TQ_OBJECT + +public: + KrBookmark(TQString name, KURL url, TDEActionCollection *parent, TQString icon = "", TQString actionName = TQString() ); + KrBookmark(TQString name, TQString icon = ""); // creates a folder + // text() and setText() to change the name of the bookmark + // icon() and setIcon() to change icons (by name) + inline const KURL& url() const { return _url; } + inline void setURL(const KURL& url) { _url = url; } + inline bool isFolder() const { return _folder; } + inline bool isSeparator() const { return _separator; } + TQPtrList<KrBookmark>& children() { return _children; } + + static KrBookmark* getExistingBookmark(TQString actionName, TDEActionCollection *collection); + // ----- special bookmarks + static KrBookmark* devices(TDEActionCollection *collection); + static KrBookmark* virt(TDEActionCollection *collection); + static KrBookmark* lan(TDEActionCollection *collection); + static KrBookmark* separator(); + +signals: + void activated(const KURL& url); + +protected slots: + void activatedProxy(); + + +private: + KURL _url; + TQString _icon; + bool _folder; + bool _separator; + TQPtrList<KrBookmark> _children; +}; + +#endif // KRBOOKMARK_H |