contexthelp.h

00001 /***************************************************************************
00002  *   Copyright (C) 2003-2005 by David Saxton                               *
00003  *   david@bluehaze.org                                                    *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  ***************************************************************************/
00010 
00011 #ifndef CONTEXTHELP_H
00012 #define CONTEXTHELP_H
00013 
00014 #include <qwidget.h>
00015 
00016 class Item;
00017 class ContextHelp;
00018 class QLabel;
00019 class QTextBrowser;
00020 namespace KateMDI { class ToolView; }
00021 
00030 class ContextHelp : public QWidget
00031 {
00032         Q_OBJECT
00033         public:
00034                 static ContextHelp * self( KateMDI::ToolView * parent = 0 );
00035                 static QString toolViewIdentifier() { return "ContextHelp"; }
00036                 
00037                 ~ContextHelp();
00041                 void parseInfo( QString &info );
00042         
00043         public slots:
00044                 void slotClear();
00045                 void slotMultipleSelected();
00046                 void slotUpdate( Item *item );
00047                 void setContextHelp(const QString& name, const QString &help);
00048         
00049         private:
00050                 ContextHelp( KateMDI::ToolView * parent );
00051         
00052                 QLabel *m_nameLbl;
00053                 QTextBrowser *m_info;
00054                 static ContextHelp * m_pSelf;
00055 };
00056 
00057 #endif
00058 

Generated on Tue May 8 17:05:28 2007 for KTechLab by  doxygen 1.5.1