katebookmarks.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __KATE_BOOKMARKS_H__
00021 #define __KATE_BOOKMARKS_H__
00022
00023 #include <qobject.h>
00024 #include <qptrlist.h>
00025
00026 class KateView;
00027
00028 namespace KTextEditor { class Mark; }
00029
00030 class KAction;
00031 class KActionCollection;
00032
00033 class KateBookmarks : public QObject
00034 {
00035 Q_OBJECT
00036
00037 public:
00038 enum Sorting { Position, Creation };
00039 KateBookmarks( KateView* parent, Sorting sort=Position );
00040 virtual ~KateBookmarks();
00041
00042 void createActions( KActionCollection* );
00043
00044 KateBookmarks::Sorting sorting() { return m_sorting; };
00045 void setSorting( Sorting s ) { m_sorting = s; };
00046 protected:
00047 bool eventFilter( QObject *, class QEvent * );
00048
00049 private slots:
00050 void toggleBookmark();
00051 void clearBookmarks();
00052
00053 void bookmarkMenuAboutToShow();
00054 void bookmarkMenuAboutToHide();
00055
00056 void goNext();
00057 void goPrevious();
00058
00059 void marksChanged ();
00060 void connectMenuAndDisConnectAgain();
00061 private:
00062 KateView* m_view;
00063 KAction* m_bookmarkToggle;
00064 KAction* m_bookmarkClear;
00065 KAction* m_goNext;
00066 KAction* m_goPrevious;
00067 Sorting m_sorting;
00068
00069 int _tries;
00070 };
00071
00072 #endif // _KateBookmarks_H_
00073
00074
00075
This file is part of the documentation for kate Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Apr 21 18:45:16 2004 by
doxygen 1.3.6-20040222 written by
Dimitri van Heesch, © 1997-2003