MuseScore  3.4
Music composition and notation
startupWizard.h
Go to the documentation of this file.
1 //=============================================================================
2 // MuseScore
3 // Music Composition & Notation
4 // Copyright (C) 2009-2017 Werner Schweer and others
5 //
6 // This program is free software; you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License version 2.
8 //
9 // This program 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
12 // GNU 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., 675 Mass Ave, Cambridge, MA 02139, USA.
17 //=============================================================================
18 
19 #ifndef __STARTUPWIZARD_H__
20 #define __STARTUPWIZARD_H__
21 
22 #include <QWizard>
23 
24 namespace Ms {
25 
26 class StartupWizardIntroPage : public QWizardPage {
27  Q_OBJECT
28 
29  public:
30  StartupWizardIntroPage(QWidget* parent = 0);
31  void init();
32  };
33 
34 class StartupWizardPage1 : public QWizardPage {
35  Q_OBJECT
36 
37  QComboBox* _languages;
38 
39  public:
40  StartupWizardPage1(QWidget* parent = 0);
41  QString language();
42  void init();
43  QComboBox* getLanguages() { return _languages; }
44  QString getCurrentLangCode();
45  };
46 
47 class StartupWizardPage2 : public QWizardPage {
48  Q_OBJECT
49 
50  QComboBox* _keyLayouts;
51 
52  public:
53  StartupWizardPage2(QWidget* parent = 0);
54  QString keyboardLayout() { return _keyLayouts->currentText(); }
55  void init();
56  void setCurrentLayout(QString langCode);
57  };
58 
59 class StartupWizardPage4 : public QWizardPage {
60  Q_OBJECT
61 
62  QRadioButton* yesButton;
63  QRadioButton* noButton;
64 
65  public:
66  StartupWizardPage4(QWidget* parent = 0);
67  bool showTours() { return yesButton->isChecked(); }
68  void init();
69  };
70 
71 class StartupWizardFinalPage : public QWizardPage {
72  Q_OBJECT
73 
74  public:
75  StartupWizardFinalPage(QWidget* parent = 0);
76  void init();
77  };
78 
79 class StartupWizard : public QWizard {
80  Q_OBJECT
81 
87 
88  public:
89  StartupWizard(QWidget* parent = 0);
90  static void autoSelectShortcuts(QString keyboardLayout);
91  QString keyboardLayout() { return p2->keyboardLayout(); }
92  QString language() { return p1->language(); }
93  bool showTours() { return p4->showTours(); }
94 
95  private slots:
96  void langChanged();
97  };
98 }
99 #endif
QString keyboardLayout()
Definition: startupWizard.h:54
StartupWizardPage1 * p1
Definition: startupWizard.h:83
QRadioButton * yesButton
Definition: startupWizard.h:62
Definition: startupWizard.h:79
Definition: startupWizard.h:47
QString language()
Definition: startupWizard.cpp:96
StartupWizardPage4 * p4
Definition: startupWizard.h:85
StartupWizardIntroPage * p0
Definition: startupWizard.h:82
bool showTours()
Definition: startupWizard.h:93
QString keyboardLayout()
Definition: startupWizard.h:91
QRadioButton * noButton
Definition: startupWizard.h:63
QComboBox * getLanguages()
Definition: startupWizard.h:43
Definition: startupWizard.h:34
StartupWizardIntroPage(QWidget *parent=0)
Definition: startupWizard.cpp:65
Definition: startupWizard.h:71
Definition: startupWizard.h:26
Definition: aeolus.cpp:26
StartupWizardPage2 * p2
Definition: startupWizard.h:84
QComboBox * _languages
Definition: startupWizard.h:37
QString language()
Definition: startupWizard.h:92
Definition: startupWizard.h:59
bool showTours()
Definition: startupWizard.h:67
QComboBox * _keyLayouts
Definition: startupWizard.h:50
StartupWizardFinalPage * p5
Definition: startupWizard.h:86