KDevelop API Documentation

src/statusbar.h

Go to the documentation of this file.
00001 /*************************************************************************** 00002 * Copyright (C) 2001 by Bernd Gehrmann * 00003 * bernd@kdevelop.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 00012 #ifndef _STATUSBAR_H_ 00013 #define _STATUSBAR_H_ 00014 00015 #include <kstatusbar.h> 00016 #include <qmap.h> 00017 00018 class QLabel; 00019 00020 #if defined(KDE_MAKE_VERSION) 00021 # if KDE_VERSION >= KDE_MAKE_VERSION(3,1,0) 00022 namespace KTextEditor { class ViewStatusMsgInterface; } 00023 # endif 00024 #endif 00025 00026 namespace KTextEditor { class ViewCursorInterface; } 00027 namespace KParts { class Part; } 00028 00029 class StatusBar : public KStatusBar 00030 { 00031 Q_OBJECT 00032 00033 public: 00034 StatusBar( QWidget *parent=0, const char *name=0 ); 00035 ~StatusBar(); 00036 void addWidget ( QWidget *widget, int stretch = 0, bool permanent = FALSE ); 00037 00038 private slots: 00039 void cursorPositionChanged(); 00040 void activePartChanged(KParts::Part *part); 00041 void setStatus(const QString &str); 00042 void setCursorPosition(int line, int col); 00043 00044 private: 00045 QLabel *_status; 00046 00047 KTextEditor::ViewCursorInterface * _cursorIface; 00048 #if defined(KDE_MAKE_VERSION) 00049 # if KDE_VERSION >= KDE_MAKE_VERSION(3,1,0) 00050 KTextEditor::ViewStatusMsgInterface * _viewmsgIface; 00051 # endif 00052 #endif 00053 KParts::Part *_activePart; 00054 00055 // still hoping for a fix for KDE-3.1 00056 #if defined(KDE_MAKE_VERSION) 00057 # if KDE_VERSION < KDE_MAKE_VERSION(3,1,90) 00058 QMap<KParts::Part*, QString> _map; 00059 # endif 00060 #endif 00061 00062 }; 00063 00064 #endif
KDE Logo
This file is part of the documentation for KDevelop Version 3.0.4.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Oct 6 17:39:14 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003