blob: 1ce3c39fa80075297919c42f45cdd917a47a0778 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
/***************************************************************************
copyright : (C) 2005-2006 by Robby Stephenson
email : [email protected]
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of version 2 of the GNU General Public License as *
* published by the Free Software Foundation; *
* *
***************************************************************************/
// much of this code is adapted from amarok
// which is GPL licensed, Copyright (C) 2005 by Max Howell
#ifndef TELLICO_STATUSBAR_H
#define TELLICO_STATUSBAR_H
#include <kstatusbar.h>
namespace Tellico {
namespace GUI {
class Progress;
}
class MainWindow;
/**
* @author Robby Stephenson
*/
class StatusBar : public KStatusBar {
Q_OBJECT
public:
void clearStatus();
void setStatus(const QString& status);
void setCount(const QString& count);
static StatusBar* self() { return s_self; }
protected:
virtual void polish();
private slots:
void slotProgress(uint progress);
void slotUpdate();
private:
static StatusBar* s_self;
friend class MainWindow;
StatusBar(QWidget* parent);
KStatusBarLabel* m_mainLabel;
KStatusBarLabel* m_countLabel;
GUI::Progress* m_progress;
QWidget* m_cancelButton;
};
}
#endif
|