MuseScore  3.4
Music composition and notation
pagesettings.h
Go to the documentation of this file.
1 //=============================================================================
2 // MuseScore
3 // Music Composition & Notation
4 //
5 // Copyright (C) 2002-2017 Werner Schweer
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 version 2
9 // as published by the Free Software Foundation and appearing in
10 // the file LICENCE.GPL
11 //=============================================================================
12 
13 #ifndef __PAGESETTINGS_H__
14 #define __PAGESETTINGS_H__
15 
16 #include "ui_pagesettings.h"
17 #include "abstractdialog.h"
18 
19 namespace Ms {
20 
21 class MasterScore;
22 class Score;
23 class Navigator;
24 
25 //---------------------------------------------------------
26 // PageSettings
27 //---------------------------------------------------------
28 
29 class PageSettings : public AbstractDialog, private Ui::PageSettingsBase {
30  Q_OBJECT
31 
33  bool mmUnit;
36 
37 // std::unique_ptr<Score> clonedScoreForNavigator;
38 
39  virtual void hideEvent(QHideEvent*);
40  void updateValues();
41  void updatePreview(int);
42  void blockSignals(bool);
43  void applyToScore(Score*);
44  void setMarginsMax(double);
45 
46  private slots:
47  void mmClicked();
48  void inchClicked();
49  void pageFormatSelected(int);
50 
51  void apply();
52  void applyToAllParts();
53  void ok();
54  void done(int val);
55 
56  void twosidedToggled(bool);
57  void otmChanged(double val);
58  void obmChanged(double val);
59  void olmChanged(double val);
60  void ormChanged(double val);
61  void etmChanged(double val);
62  void ebmChanged(double val);
63  void elmChanged(double val);
64  void ermChanged(double val);
65  void spatiumChanged(double val);
66  void pageHeightChanged(double);
67  void pageWidthChanged(double);
68  void pageOffsetChanged(int val);
69  void orientationClicked();
70 
71  protected:
72  virtual void retranslate() { retranslateUi(this); }
73 
74  public:
75  PageSettings(QWidget* parent = 0);
76  ~PageSettings();
77  void setScore(Score*);
78  };
79 
80 
81 } // namespace Ms
82 #endif
83 
void pageFormatSelected(int)
Definition: pagesettings.cpp:347
Definition: navigator.h:63
void spatiumChanged(double val)
Definition: pagesettings.cpp:507
void elmChanged(double val)
Definition: pagesettings.cpp:455
void updateValues()
Definition: pagesettings.cpp:149
void applyToScore(Score *)
Definition: pagesettings.cpp:291
void etmChanged(double val)
Definition: pagesettings.cpp:443
void ok()
Definition: pagesettings.cpp:327
void inchClicked()
Definition: pagesettings.cpp:231
Navigator * preview
Definition: pagesettings.h:32
void pageHeightChanged(double)
Definition: pagesettings.cpp:530
void setMarginsMax(double)
Definition: pagesettings.cpp:136
void twosidedToggled(bool)
Definition: pagesettings.cpp:270
void blockSignals(bool)
Definition: pagesettings.cpp:120
PageSettings(QWidget *parent=0)
Definition: pagesettings.cpp:29
Definition: score.h:391
void pageWidthChanged(double)
Definition: pagesettings.cpp:548
Score * clonedScore
Definition: pagesettings.h:35
Definition: abstractdialog.h:29
void ermChanged(double val)
Definition: pagesettings.cpp:475
void updatePreview(int)
Definition: pagesettings.cpp:566
void obmChanged(double val)
Definition: pagesettings.cpp:431
void setScore(Score *)
Definition: pagesettings.cpp:102
void ebmChanged(double val)
Definition: pagesettings.cpp:495
void olmChanged(double val)
Definition: pagesettings.cpp:380
Definition: aeolus.cpp:26
Score * cs
Definition: pagesettings.h:34
bool mmUnit
Definition: pagesettings.h:33
void applyToAllParts()
Definition: pagesettings.cpp:317
void apply()
Definition: pagesettings.cpp:281
void otmChanged(double val)
Definition: pagesettings.cpp:368
void mmClicked()
Definition: pagesettings.cpp:241
virtual void retranslate()
Definition: pagesettings.h:72
void done(int val)
Definition: pagesettings.cpp:337
virtual void hideEvent(QHideEvent *)
Definition: pagesettings.cpp:92
void ormChanged(double val)
Definition: pagesettings.cpp:406
Definition: pagesettings.h:29
void pageOffsetChanged(int val)
Definition: pagesettings.cpp:520
void orientationClicked()
Definition: pagesettings.cpp:252
~PageSettings()
Definition: pagesettings.cpp:83