Songbook-Client
0.7
This application is a manager of customguitar songbooks
Main Page
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Enumerations
Enumerator
Pages
src
progress-bar.hh
Go to the documentation of this file.
1
// Copyright (C) 2009-2011, Romain Goffe <romain.goffe@gmail.com>
2
// Copyright (C) 2009-2011, Alexandre Dupas <alexandre.dupas@gmail.com>
3
//
4
// This program is free software; you can redistribute it and/or
5
// modify it under the terms of the GNU General Public License as
6
// published by the Free Software Foundation; either version 2 of the
7
// License, or (at your option) any later version.
8
//
9
// This program is distributed in the hope that it will be useful, but
10
// WITHOUT ANY WARRANTY; without even the implied warranty of
11
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
// General Public License for more details.
13
//
14
// You should have received a copy of the GNU General Public License
15
// along with this program; if not, write to the Free Software
16
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17
// 02110-1301, USA.
18
//******************************************************************************
19
20
#ifndef __PROGRESS_BAR_HH__
21
#define __PROGRESS_BAR_HH__
22
23
#include <QProgressBar>
24
25
class
QProgressBar;
26
class
QToolButton;
27
42
class
CProgressBar
:
public
QWidget
43
{
44
Q_OBJECT
45
46
public
:
48
CProgressBar
(QWidget* parent=0);
49
51
~CProgressBar
();
52
53
public
:
58
void
setRange
(
int
start,
int
stop);
59
64
void
setTextVisible
(
bool
value);
65
70
bool
isCancelable
()
const
;
71
76
void
setCancelable
(
bool
value);
77
78
public
slots:
84
void
show
();
85
90
void
hide
();
91
96
void
setValue
(
int
value);
97
98
signals:
103
void
canceled
();
104
105
private
slots:
106
void
cancel();
107
108
private
:
109
QProgressBar *m_progressBar;
110
QToolButton *m_cancelButton;
111
bool
m_cancelable;
112
};
113
114
#endif // __FILE_CHOOSER_HH__
Generated on Fri Jul 20 2012 20:46:38 for Songbook-Client by
1.8.1.1