• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kate

kbookmarkhandler.h

Go to the documentation of this file.
00001 /* This file is part of the KDE project
00002    Copyright (C) xxxx KFile Authors
00003    Copyright (C) 2002 Anders Lund <anders.lund@lund.tdcadsl.dk>
00004 
00005    This library is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU Library General Public
00007    License version 2 as published by the Free Software Foundation.
00008 
00009    This library is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Library General Public License for more details.
00013 
00014    You should have received a copy of the GNU Library General Public License
00015    along with this library; see the file COPYING.LIB.  If not, write to
00016    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017    Boston, MA 02110-1301, USA.
00018 */
00019 
00020 #ifndef _KBOOKMARKHANDLER_H_
00021 #define _KBOOKMARKHANDLER_H_
00022 
00023 #include <kbookmarkmanager.h>
00024 #include <kbookmarkmenu.h>
00025 
00026 class KateFileSelector;
00027 
00028 class KActionMenu;
00029 
00030 class QTextStream;
00031 class KPopupMenu;
00032 
00033 class KBookmarkHandler : public QObject, public KBookmarkOwner
00034 {
00035     Q_OBJECT
00036 
00037 public:
00038     KBookmarkHandler( KateFileSelector *parent, KPopupMenu *kpopupmenu=0 );
00039     ~KBookmarkHandler();
00040 
00041     // KBookmarkOwner interface:
00042     virtual void openBookmarkURL( const QString& url ) { emit openURL( url ); }
00043     virtual QString currentURL() const;
00044 
00045     KPopupMenu *menu() const { return m_menu; }
00046 
00047 signals:
00048     void openURL( const QString& url );
00049 
00050 private slots:
00051     void slotNewBookmark( const QString& text, const QCString& url,
00052                           const QString& additionalInfo );
00053     void slotNewFolder( const QString& text, bool open,
00054                         const QString& additionalInfo );
00055     void newSeparator();
00056     void endFolder();
00057 
00058 protected:
00059     virtual void virtual_hook( int id, void* data );
00060 
00061 private:
00062     KateFileSelector *mParent;
00063     KPopupMenu *m_menu;
00064     KBookmarkMenu *m_bookmarkMenu;
00065 
00066     QTextStream *m_importStream;
00067 
00068     //class KBookmarkHandlerPrivate *d;
00069 };
00070 
00071 
00072 #endif // _KBOOKMARKHANDLER_H_

kate

Skip menu "kate"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

API Reference

Skip menu "API Reference"
  • kate
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal