Fix crash if key bindings specified in profile cannot be found. Improve
[personal-kdebase.git] / apps / keditbookmarks / bookmarkinfo.h
blob5a4456b7d7d222f8e1c6d004419170cf17181c7a
1 // vim: set ts=4 sts=4 sw=4 et:
2 /* This file is part of the KDE project
3 Copyright (C) 2000 David Faure <faure@kde.org>
4 Copyright (C) 2002-2003 Alexander Kellett <lypanov@kde.org>
6 This program is free software; you can redistribute it and/or
7 modify it under the terms of the GNU General Public License as
8 published by the Free Software Foundation; either version 2 of
9 the License, or (at your option) version 3.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>
20 #ifndef __bookmarkinfo_h
21 #define __bookmarkinfo_h
23 #include <kbookmark.h>
24 #include <QtGui/QWidget>
26 class BookmarkListView;
27 class EditCommand;
29 class KLineEdit;
31 class QTimer;
33 class BookmarkInfoWidget : public QWidget {
34 Q_OBJECT
35 public:
36 explicit BookmarkInfoWidget(BookmarkListView * lv, QWidget * = 0);
38 KBookmark bookmark() { return m_bk; }
39 void updateStatus(); //FIXME where was this called?
41 public Q_SLOTS:
42 void slotTextChangedURL(const QString &);
43 void slotTextChangedTitle(const QString &);
44 void slotTextChangedComment(const QString &);
46 void slotUpdate();
48 void commitChanges();
49 void commitTitle();
50 void commitURL();
51 void commitComment();
53 private:
54 void showBookmark(const KBookmark &bk);
55 EditCommand * titlecmd, * urlcmd, * commentcmd;
56 QTimer * timer;
57 KLineEdit *m_title_le, *m_url_le,
58 *m_comment_le;
59 KLineEdit *m_visitdate_le, *m_credate_le,
60 *m_visitcount_le;
61 KBookmark m_bk;
62 BookmarkListView * mBookmarkListView;
65 #endif