diff options
| author | Kevin Ottens <[email protected]> | 2007-04-09 09:16:39 +0000 |
|---|---|---|
| committer | Kevin Ottens <[email protected]> | 2007-04-09 09:16:39 +0000 |
| commit | 30161a7b3fe76578f43a61381c98a5ae475ed52a (patch) | |
| tree | f79e987e472925336c33be52221a33613ae1cee3 /src/editbookmarkdialog.h | |
| parent | 714d08f17c9135704cf48534823611cb015590a0 (diff) | |
Dolphin is now KBookmark* free.
svn path=/trunk/KDE/kdebase/apps/; revision=651766
Diffstat (limited to 'src/editbookmarkdialog.h')
| -rw-r--r-- | src/editbookmarkdialog.h | 82 |
1 files changed, 0 insertions, 82 deletions
diff --git a/src/editbookmarkdialog.h b/src/editbookmarkdialog.h deleted file mode 100644 index 9e18980e0..000000000 --- a/src/editbookmarkdialog.h +++ /dev/null @@ -1,82 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2006 by Peter Penz * - * [email protected] * - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * - ***************************************************************************/ -#ifndef EDITBOOKMARKDIALOG_H -#define EDITBOOKMARKDIALOG_H - -#include <kbookmark.h> -#include <kdialog.h> - -class Bookmark; -class QLineEdit; -class QPushButton; - -/** - * @brief Allows to edit the icon, Url and name of a bookmark. - * - * The default usage is like this: - * \code - * KBookmark bookmark = EditBookmarkDialog::getBookmark(i18n("Add Bookmark"), - * i18n("New bookmark"), - * KUrl(), - * "bookmark"); - * if (!bookmark.isNull()) { - * // ... - * } - * \endcode - */ -class EditBookmarkDialog : public KDialog -{ - Q_OBJECT - -public: - virtual ~EditBookmarkDialog(); - - /** - * Opens a dialog where the current icon, Url and name of - * an Url are editable. The title of the dialog is set to \a title. - * @return A valid bookmark, if the user has pressed OK. Otherwise - * a null bookmark is returned (see Bookmark::isNull()). - */ - static KBookmark getBookmark(const QString& title, - const QString& name, - const KUrl& url, - const QString& icon); - -protected slots: - virtual void slotButtonClicked(int button); - -protected: - EditBookmarkDialog(const QString& title, - const QString& name, - const KUrl& url, - const QString& icon); - -private slots: - void selectIcon(); - void selectLocation(); - -private: - QString m_iconName; - QPushButton* m_iconButton; - QLineEdit* m_name; - QLineEdit* m_location; - KBookmark m_bookmark; -}; -#endif |
