mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-20 08:51:24 +00:00
properly seperate bookmarkinfo.cpp out (was included in a .cpp)
svn path=/trunk/kdebase/konqueror/keditbookmarks/; revision=253355
This commit is contained in:
parent
3dce2e6484
commit
5182b8d83c
|
@ -6,7 +6,8 @@ bin_PROGRAMS =
|
|||
lib_LTLIBRARIES =
|
||||
kdeinit_LTLIBRARIES = keditbookmarks.la
|
||||
|
||||
keditbookmarks_la_SOURCES = main.cpp listview.cpp toplevel.cpp actionsimpl.cpp commands.cpp importers.cpp dcop.skel dcop.cpp bookmarkiterator.cpp testlink.cpp favicons.cpp updater.cpp exporters.cpp search.cpp kbookmarknotifier.stub
|
||||
keditbookmarks_la_SOURCES = main.cpp listview.cpp toplevel.cpp actionsimpl.cpp commands.cpp importers.cpp dcop.skel dcop.cpp bookmarkiterator.cpp \
|
||||
testlink.cpp favicons.cpp updater.cpp exporters.cpp search.cpp kbookmarknotifier.stub bookmarkinfo.cpp
|
||||
kbookmarknotifier_DIR = $(includedir)
|
||||
keditbookmarks_la_LIBADD = $(top_builddir)/libkonq/libkonq.la
|
||||
keditbookmarks_la_LDFLAGS = $(all_libraries) -module -avoid-version
|
||||
|
|
|
@ -1,3 +1,48 @@
|
|||
/* This file is part of the KDE project
|
||||
Copyright (C) 2003 Alexander Kellett <lypanov@kde.org>
|
||||
|
||||
This program is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU General Public
|
||||
License version 2 as published by the Free Software Foundation.
|
||||
|
||||
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; see the file COPYING. If not, write to
|
||||
the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include "bookmarkinfo.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <qclipboard.h>
|
||||
#include <qsplitter.h>
|
||||
#include <qlayout.h>
|
||||
#include <qlabel.h>
|
||||
|
||||
#include <klocale.h>
|
||||
#include <kdebug.h>
|
||||
|
||||
#include <kapplication.h>
|
||||
#include <kstdaction.h>
|
||||
#include <kaction.h>
|
||||
#include <dcopclient.h>
|
||||
#include <dcopref.h>
|
||||
|
||||
#include <kkeydialog.h>
|
||||
#include <kedittoolbar.h>
|
||||
#include <kmessagebox.h>
|
||||
#include <klineedit.h>
|
||||
#include <kfiledialog.h>
|
||||
|
||||
#include <kbookmarkdrag.h>
|
||||
#include <kbookmarkmanager.h>
|
||||
|
||||
void BookmarkInfoWidget::showBookmark(const KBookmark &bk) {
|
||||
m_title_le->setText(bk.text());
|
||||
m_url_le->setText(bk.url().url());
|
||||
|
|
37
keditbookmarks/bookmarkinfo.h
Normal file
37
keditbookmarks/bookmarkinfo.h
Normal file
|
@ -0,0 +1,37 @@
|
|||
/* This file is part of the KDE project
|
||||
Copyright (C) 2000 David Faure <faure@kde.org>
|
||||
Copyright (C) 2002-2003 Alexander Kellett <lypanov@kde.org>
|
||||
|
||||
This program is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU General Public
|
||||
License version 2 as published by the Free Software Foundation.
|
||||
|
||||
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; see the file COPYING. If not, write to
|
||||
the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef __bookmarkinfo_h
|
||||
#define __bookmarkinfo_h
|
||||
|
||||
#include <kbookmark.h>
|
||||
#include <qwidget.h>
|
||||
|
||||
class KLineEdit;
|
||||
|
||||
class BookmarkInfoWidget : public QWidget {
|
||||
public:
|
||||
BookmarkInfoWidget(QWidget * = 0, const char * = 0);
|
||||
void showBookmark(const KBookmark &bk);
|
||||
private:
|
||||
KLineEdit *m_title_le, *m_url_le, *m_comment_le, *m_moddate_le, *m_credate_le;
|
||||
KBookmark m_bk;
|
||||
};
|
||||
|
||||
#endif
|
|
@ -20,6 +20,7 @@
|
|||
#include "listview.h"
|
||||
|
||||
#include "toplevel.h"
|
||||
#include "bookmarkinfo.h"
|
||||
#include "commands.h"
|
||||
#include "testlink.h" // paintCellHelper
|
||||
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
|
||||
#include "toplevel.h"
|
||||
|
||||
#include "bookmarkinfo.h"
|
||||
#include "listview.h"
|
||||
#include "actionsimpl.h"
|
||||
#include "dcop.h"
|
||||
|
@ -153,8 +154,6 @@ QString CurrentMgr::correctAddress(const QString &address) const {
|
|||
|
||||
/* -------------------------- */
|
||||
|
||||
#include "bookmarkinfo.cpp"
|
||||
|
||||
KEBApp *KEBApp::s_topLevel = 0;
|
||||
|
||||
KEBApp::KEBApp(
|
||||
|
|
|
@ -29,6 +29,7 @@ class KToggleAction;
|
|||
class KBookmarkEditorIface;
|
||||
class ImportCommand;
|
||||
class MagicKLineEdit;
|
||||
class BookmarkInfoWidget;
|
||||
|
||||
struct SelcAbilities {
|
||||
bool itemSelected:1;
|
||||
|
@ -97,15 +98,6 @@ private:
|
|||
static CurrentMgr *s_mgr;
|
||||
};
|
||||
|
||||
class BookmarkInfoWidget : public QWidget {
|
||||
public:
|
||||
BookmarkInfoWidget(QWidget * = 0, const char * = 0);
|
||||
void showBookmark(const KBookmark &bk);
|
||||
private:
|
||||
KLineEdit *m_title_le, *m_url_le, *m_comment_le, *m_moddate_le, *m_credate_le;
|
||||
KBookmark m_bk;
|
||||
};
|
||||
|
||||
class KEBApp : public KMainWindow {
|
||||
Q_OBJECT
|
||||
public:
|
||||
|
|
Loading…
Reference in a new issue