KDevelop API Documentation

historypart.h

Go to the documentation of this file.
00001 #ifndef __HISTORYPART_H__
00002 #define __HISTORYPART_H__
00003 
00004 
00005 #include <qguardedptr.h>
00006 #include <qptrlist.h>
00007 #include <qlistbox.h> 
00008 
00009 
00010 #include <kparts/part.h>
00011 #include <kaction.h>
00012 #include <kurl.h>
00013 
00014 
00015 #include "kdevplugin.h"
00016 
00017 
00018 class HistoryEntry;
00019 
00020 class HistoryPart : public KDevPlugin
00021 {
00022   Q_OBJECT
00023 
00024 public:
00025    
00026   HistoryPart(QObject *parent, const char *name, const QStringList &);
00027   ~HistoryPart();
00028 
00029  
00030 private slots:
00031 
00032   void partRemoved(KParts::Part *part);
00033   void activePartChanged(KParts::Part *part);
00034 
00035   void backActivated();
00036   void forwardActivated();
00037 
00038   void backAboutToShow();
00039   void forwardAboutToShow();
00040 
00041   void backPopupActivated(int id);
00042   void forwardPopupActivated(int id);
00043 
00044   void updateActions();
00045 
00046 
00047 private:
00048 
00049   void saveState(KParts::Part *part);
00050   void restoreState();
00051 
00052   void setupActions();
00053 
00054   void addHistoryEntry(HistoryEntry *entry);
00055   QPtrList<HistoryEntry> m_history;
00056 
00057   KToolBarPopupAction *m_backAction, *m_forwardAction;
00058 
00059   bool m_restoring;
00060 
00061 };
00062 
00063 #endif
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Feb 22 09:22:41 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003