• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • applications API Reference
  • KDE Home
  • Contact Us
 

Kate

  • kde-4.14
  • applications
  • kate
  • part
  • utils
katebookmarks.h
Go to the documentation of this file.
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 <QtCore/QObject>
24 
25 class KateView;
26 
27 namespace KTextEditor { class Mark; class View; }
28 
29 class KAction;
30 class KToggleAction;
31 class KActionCollection;
32 class QMenu;
33 
34 class KateBookmarks : public QObject
35 {
36  Q_OBJECT
37 
38  public:
39  enum Sorting { Position, Creation };
40  explicit KateBookmarks( KateView* parent, Sorting sort=Position );
41  virtual ~KateBookmarks();
42 
43  void createActions( KActionCollection* );
44 
45  KateBookmarks::Sorting sorting() { return m_sorting; }
46  void setSorting( Sorting s ) { m_sorting = s; }
47 
48  protected:
49  void insertBookmarks( QMenu& menu);
50 
51  private Q_SLOTS:
52  void toggleBookmark();
53  void clearBookmarks();
54 
55  void gotoLine();
56  void gotoLine (int line);
57 
58  void bookmarkMenuAboutToShow();
59 
60  void goNext();
61  void goPrevious();
62 
63  void marksChanged ();
64 
65  private:
66  KateView* m_view;
67  KToggleAction* m_bookmarkToggle;
68  KAction* m_bookmarkClear;
69  KAction* m_goNext;
70  KAction* m_goPrevious;
71 
72  Sorting m_sorting;
73  QMenu* m_bookmarksMenu;
74 
75  uint _tries;
76 };
77 
78 #endif
79 
80 // kate: space-indent on; indent-width 2; replace-tabs on;
81 // vim: noet ts=2
KateBookmarks::Position
Definition: katebookmarks.h:39
KateBookmarks
Definition: katebookmarks.h:34
KateBookmarks::insertBookmarks
void insertBookmarks(QMenu &menu)
Definition: katebookmarks.cpp:125
KateBookmarks::createActions
void createActions(KActionCollection *)
Definition: katebookmarks.cpp:60
KateBookmarks::Creation
Definition: katebookmarks.h:39
QObject
Kate::Mark
Mark
Definition: katedefaultcolors.h:55
KateBookmarks::~KateBookmarks
virtual ~KateBookmarks()
Definition: katebookmarks.cpp:56
KateView
Definition: kateview.h:77
QMenu
KateBookmarks::Sorting
Sorting
Definition: katebookmarks.h:39
KateBookmarks::KateBookmarks
KateBookmarks(KateView *parent, Sorting sort=Position)
Definition: katebookmarks.cpp:44
KAction
KateBookmarks::setSorting
void setSorting(Sorting s)
Definition: katebookmarks.h:46
QObject::parent
QObject * parent() const
KateBookmarks::sorting
KateBookmarks::Sorting sorting()
Definition: katebookmarks.h:45
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:57 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Kate

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

applications API Reference

Skip menu "applications API Reference"
  •   kate
  •       kate
  •   KTextEditor
  •   Kate
  • Konsole

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal