• 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 TDEAction;
33 class TDEToggleAction;
34 class TDEActionCollection;
35 class TQPopupMenu;
36 class TQMenuData;
37 
38 class KateBookmarks : public TQObject
39 {
40  TQ_OBJECT
41 
42  public:
43  enum Sorting { Position, Creation };
44  KateBookmarks( KateView* parent, Sorting sort=Position );
45  virtual ~KateBookmarks();
46 
47  void createActions( TDEActionCollection* );
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  TDEToggleAction* m_bookmarkToggle;
73  TDEAction* m_bookmarkClear;
74  TDEAction* m_goNext;
75  TDEAction* m_goPrevious;
76 
77  Sorting m_sorting;
78  TQPopupMenu* m_bookmarksMenu;
79 
80  uint _tries;
81 };
82 
83 #endif
Kate::View
The Kate::View text editor interface.
Definition: view.h:45
TDEActionCollection
TDEAction
TDEToggleAction
Kate
Kate namespace All classes in this namespace must stay BC during one major release series (e....
Definition: document.h:51

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
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for kate by doxygen 1.9.1
This website is maintained by Timothy Pearson.