Entropy Piano Tuner  1.1.3 (documentation not yet complete)
An open-source experimental software for piano tuning by entropy minimization
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
initializedialog.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright 2015 Haye Hinrichsen, Christoph Wick
3  *
4  * This file is part of Entropy Piano Tuner.
5  *
6  * Entropy Piano Tuner is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by the
8  * Free Software Foundation, either version 3 of the License, or (at your
9  * option) any later version.
10  *
11  * Entropy Piano Tuner is distributed in the hope that it will be useful, but
12  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14  * more details.
15  *
16  * You should have received a copy of the GNU General Public License along with
17  * Entropy Piano Tuner. If not, see http://www.gnu.org/licenses/.
18  *****************************************************************************/
19 
20 #ifndef INITIALIZEDIALOG_H
21 #define INITIALIZEDIALOG_H
22 
23 #include <QDialog>
24 #include <QProgressDialog>
25 #include "../core/adapters/coreinitialisationadapter.h"
26 
27 
28 class InitializeDialog;
29 
32 
34 public:
35  explicit QtCoreInitialisation(QWidget *parent = 0);
37 
38 private:
39  virtual void updateProgress (int percentage) override;
40 
41  virtual void create() override;
42  virtual void destroy() override;
43 
44 
45 private:
46  QWidget *mParent;
48 };
49 
50 
51 
52 
53 class InitializeDialog : public QProgressDialog {
54  Q_OBJECT
55 public:
56  explicit InitializeDialog(QWidget *parent = 0);
58 
59  bool onceDrawn() const {return mOnceDrawn;}
60  void updateProgress (int percentage);
61 
62 protected:
63  virtual void paintEvent(QPaintEvent *p) override;
64 private:
65  bool mOnceDrawn;
66 };
67 
68 #endif // INITIALIZEDIALOG_H
bool onceDrawn() const
InitializeDialog(QWidget *parent=0)
QtCoreInitialisation(QWidget *parent=0)
Core initialization adapter (singleton class).
Implementation of the core initializ.
virtual void paintEvent(QPaintEvent *p) override
void updateProgress(int percentage)
virtual void destroy() override
Destroy the initialization dialog box.
virtual void create() override
Create the initialization dialog box.
virtual void updateProgress(int percentage) override
Show the current progress as a progress bar in the initialization message box.
InitializeDialog * mInitializeDialog