src/statusbar.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
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
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
This file is part of the documentation for KDevelop Version 3.0.4.