1 /* This file is part of the KDE project
2 Copyright 2007 Hamish Rodda <rodda@kde.org>
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 Boston, MA 02110-1301, USA.
20 #ifndef KDEVSTATUSBAR_H
21 #define KDEVSTATUSBAR_H
46 class StatusBar
: public KStatusBar
52 * Constructs a status bar.
54 StatusBar(QWidget
* parent
);
56 void registerStatus(QObject
* status
);
60 void viewChanged(Sublime::View
* view
);
64 void showMessage(const QString
& message
, int timeout
);
66 void showProgress(int minimum
, int maximum
, int value
);
68 void viewStatusChanged(Sublime::View
* view
);
69 void showErrorMessage(const QString
& message
, int timeout
);
71 void pluginLoaded(KDevelop::IPlugin
*);
72 void removeError(QWidget
*);
75 QTimer
* errorTimeout(QWidget
* error
, int timeout
);
83 QMap
<IStatus
*, Message
> m_messages
;
84 QMap
<IStatus
*, QProgressBar
*> m_progressBars
;
87 Sublime::View
* m_currentView
;
88 QSignalMapper
* m_errorRemovalMapper
;
93 #endif // KDEVSTATUSBAR_H