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 KActionMenu;
00032 class KActionCollection;
00033 
00034 class KateBookmarks : public QObject
00035 {
00036   Q_OBJECT
00037 
00038   public:
00039     enum Sorting { Position, Creation };
00040     KateBookmarks( KateView* parent, Sorting sort=Position );
00041     virtual ~KateBookmarks();
00042 
00043     void createActions( KActionCollection* );
00044 
00045     KateBookmarks::Sorting sorting() { return m_sorting; };
00046     void setSorting( Sorting s ) { m_sorting = s; };
00047 
00048   private slots:
00049     void toggleBookmark();
00050     void clearBookmarks();
00051     void bookmarkMenuAboutToShow();
00052     void bookmarkMenuAboutToHide();
00053     void goNext();
00054     void goPrevious();
00055 
00056     void marksChanged ();
00057 
00058   private:
00059     KateView*                    m_view;
00060     KAction*                     m_bookmarkToggle;
00061     KAction*                     m_bookmarkClear;
00062     KAction*                     m_goNext;
00063     KAction*                     m_goPrevious;
00064     KActionMenu*                 m_bookmarkMenu;
00065     Sorting                      m_sorting;
00066 };
00067 
00068 #endif // _KateBookmarks_H_
00069 
00070 
 
This file is part of the documentation for kate Library Version 3.2.0.