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

kate

  • kate
  • part
katebookmarks.h
1 /* This file is part of the KDE libraries
2  Copyright (C) 2002, 2003 Anders Lund <anders.lund@lund.tdcadsl.dk>
3  Copyright (C) 2002 John Firebaugh <jfirebaugh@kde.org>
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Library General Public
7  License version 2 as published by the Free Software Foundation.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Library General Public License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to
16  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  Boston, MA 02110-1301, USA.
18 */
19 
20 #ifndef __KATE_BOOKMARKS_H__
21 #define __KATE_BOOKMARKS_H__
22 
23 #include <tqobject.h>
24 #include <tqptrlist.h>
25 
26 class KateView;
27 
28 namespace KTextEditor { class Mark; }
29 
30 namespace Kate { class View; }
31 
32 class KAction;
33 class KToggleAction;
34 class KActionCollection;
35 class TQPopupMenu;
36 class TQMenuData;
37 
38 class KateBookmarks : public TQObject
39 {
40  Q_OBJECT
41 
42  public:
43  enum Sorting { Position, Creation };
44  KateBookmarks( KateView* parent, Sorting sort=Position );
45  virtual ~KateBookmarks();
46 
47  void createActions( KActionCollection* );
48 
49  KateBookmarks::Sorting sorting() { return m_sorting; };
50  void setSorting( Sorting s ) { m_sorting = s; };
51 
52  protected:
53  void insertBookmarks( TQPopupMenu& menu);
54 
55  private slots:
56  void toggleBookmark();
57  void clearBookmarks();
58 
59  void slotViewGotFocus( Kate::View * );
60  void slotViewLostFocus( Kate::View * );
61 
62  void bookmarkMenuAboutToShow();
63  void bookmarkMenuAboutToHide();
64 
65  void goNext();
66  void goPrevious();
67 
68  void marksChanged ();
69 
70  private:
71  KateView* m_view;
72  KToggleAction* m_bookmarkToggle;
73  KAction* m_bookmarkClear;
74  KAction* m_goNext;
75  KAction* m_goPrevious;
76 
77  Sorting m_sorting;
78  TQPopupMenu* m_bookmarksMenu;
79 
80  uint _tries;
81 };
82 
83 #endif
84 
85 // kate: space-indent on; indent-width 2; replace-tabs on;
86 // vim: noet ts=2

kate

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

kate

Skip menu "kate"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kate by doxygen 1.8.1.2
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |