• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kate
 

kate

kbookmarkhandler.h

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 TDEActionMenu;
00029 
00030 class TQTextStream;
00031 class TDEPopupMenu;
00032 
00033 class KBookmarkHandler : public TQObject, public KBookmarkOwner
00034 {
00035     Q_OBJECT
00036 
00037 public:
00038     KBookmarkHandler( KateFileSelector *parent, TDEPopupMenu *tdepopupmenu=0 );
00039     ~KBookmarkHandler();
00040 
00041     // KBookmarkOwner interface:
00042     virtual void openBookmarkURL( const TQString& url ) { emit openURL( url ); }
00043     virtual TQString currentURL() const;
00044 
00045     TDEPopupMenu *menu() const { return m_menu; }
00046 
00047 signals:
00048     void openURL( const TQString& url );
00049 
00050 private slots:
00051     void slotNewBookmark( const TQString& text, const TQCString& url,
00052                           const TQString& additionalInfo );
00053     void slotNewFolder( const TQString& text, bool open,
00054                         const TQString& 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     TDEPopupMenu *m_menu;
00064     KBookmarkMenu *m_bookmarkMenu;
00065 
00066     TQTextStream *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

kate

Skip menu "kate"
  • kate
  • libkonq
  • twin
  •   lib
Generated for kate by doxygen 1.7.1
This website is maintained by Timothy Pearson.