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
14class KBookmarkDialog;
15class KBookmarkManager;
16class QDialogButtonBox;
17class QLabel;
18class QTreeWidget;
19class QLineEdit;
20class QTreeWidgetItem;
21
22class KBookmarkDialogPrivate
23{
24public:
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

source code of kbookmarks/src/widgets/kbookmarkdialog_p.h