Sayonara Player
ProgressBar.h
1 /* ProgressBar.h */
2 
3 /* Copyright (C) 2011-2017 Lucio Carreras
4  *
5  * This file is part of sayonara player
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11 
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16 
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  */
20 
21 
22 /* ProgressBar.h */
23 
24 #ifndef SAYONARALOADINGBAR_H
25 #define SAYONARALOADINGBAR_H
26 
27 #include "Utils/Pimpl.h"
28 #include <QProgressBar>
29 
30 namespace Gui
31 {
36  class ProgressBar :
37  public QProgressBar
38  {
39  Q_OBJECT
40  PIMPL(ProgressBar)
41 
42  public:
43  enum class Position
44  {
45  Top=0,
46  Middle,
47  Bottom
48  };
49 
50  public:
51  explicit ProgressBar(QWidget* parent);
52  ~ProgressBar();
53 
54  void set_position(ProgressBar::Position o);
55 
56  protected:
57  void showEvent(QShowEvent* e) override;
58  };
59 }
60 
61 #endif // SAYONARALOADINGBAR_H
The ProgressBar class.
Definition: ProgressBar.h:36
Definition: GUI_ControlsBase.h:43