1 | // -*- c-basic-offset:4; indent-tabs-mode:nil -*- |
---|---|
2 | /* |
3 | This file is part of the KDE libraries |
4 | SPDX-FileCopyrightText: 2013 Jignesh Kakadiya <jigneshhk1992@gmail.com> |
5 | |
6 | SPDX-License-Identifier: LGPL-2.0-only |
7 | */ |
8 | #ifndef __kbookmarkdialog_p_h__ |
9 | #define __kbookmarkdialog_p_h__ |
10 | |
11 | #include "kbookmark.h" |
12 | #include <QDialog> |
13 | |
14 | class KBookmarkDialog; |
15 | class KBookmarkManager; |
16 | class QDialogButtonBox; |
17 | class QLabel; |
18 | class QTreeWidget; |
19 | class QLineEdit; |
20 | class QTreeWidgetItem; |
21 | |
22 | class KBookmarkDialogPrivate |
23 | { |
24 | public: |
25 | explicit KBookmarkDialogPrivate(KBookmarkDialog *qq); |
26 | ~KBookmarkDialogPrivate(); |
27 | |
28 | typedef enum { NewFolder, NewBookmark, EditBookmark, NewMultipleBookmarks, SelectFolder } BookmarkDialogMode; |
29 | |
30 | void initLayout(); |
31 | void initLayoutPrivate(); |
32 | // selects the specified bookmark in the folder tree |
33 | void setParentBookmark(const KBookmark &bm); |
34 | KBookmarkGroup parentBookmark(); |
35 | void fillGroup(QTreeWidgetItem *parentItem, const KBookmarkGroup &group, const KBookmarkGroup &selectGroup = KBookmarkGroup()); |
36 | |
37 | KBookmarkDialog *const q; |
38 | BookmarkDialogMode mode; |
39 | QDialogButtonBox *buttonBox = nullptr; |
40 | QLineEdit *url = nullptr; |
41 | QLineEdit *title = nullptr; |
42 | QLineEdit *comment = nullptr; |
43 | QLabel *titleLabel = nullptr; |
44 | QLabel *urlLabel = nullptr; |
45 | QLabel *commentLabel; |
46 | QString icon; |
47 | QTreeWidget *folderTree = nullptr; |
48 | KBookmarkManager *mgr = nullptr; |
49 | KBookmark bm; |
50 | QList<KBookmarkOwner::FutureBookmark> list; |
51 | bool layout; |
52 | }; |
53 | |
54 | #endif |
55 |