MuseScore  3.4
Music composition and notation
continuouspanel.h
Go to the documentation of this file.
1 //=============================================================================
2 // MuseScore
3 // Music Composition & Notation
4 //
5 // Copyright (C) 2013 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 __CONTINUOUSPANEL_H__
14 #define __CONTINUOUSPANEL_H__
15 
16 namespace Ms {
17 
18 class ScoreView;
19 
20 //---------------------------------------------------------
21 // ContinuousPanel
22 //---------------------------------------------------------
23 
27  QRectF _rect;
28  bool _active; // Used to active or desactive the panel
29  bool _visible; // False if beginning of the score is visible
30  qreal _width; // Actual panel width (final or transitional)
31 
32  public:
34 
35  QRectF rect() const { return _rect; }
36  void setRect(const QRectF& r) { _rect = r; }
37  bool active() const { return _active; }
38  void setActive(bool val) { _active = val; }
39  bool visible() { return _active ? _visible : false; }
40  void setScore(Score* s) { _score = s; }
41  qreal width() { return _width; }
42 
43  void paint(const QRect& r, QPainter& p);
44  };
45 
46 }
47 
48 #endif
49 
Score * _score
Definition: continuouspanel.h:26
bool visible()
Definition: continuouspanel.h:39
Definition: scoreview.h:90
Definition: score.h:391
void setScore(Score *s)
Definition: continuouspanel.h:40
qreal width()
Definition: continuouspanel.h:41
QRectF _rect
Definition: continuouspanel.h:27
bool active() const
Definition: continuouspanel.h:37
Definition: aeolus.cpp:26
ContinuousPanel(ScoreView *sv)
Definition: continuouspanel.cpp:38
Definition: continuouspanel.h:24
qreal _width
Definition: continuouspanel.h:30
bool _visible
Definition: continuouspanel.h:29
QRectF rect() const
Definition: continuouspanel.h:35
bool _active
Definition: continuouspanel.h:28
ScoreView * _sv
Definition: continuouspanel.h:25
void paint(const QRect &r, QPainter &p)
Definition: continuouspanel.cpp:50
void setRect(const QRectF &r)
Definition: continuouspanel.h:36
void setActive(bool val)
Definition: continuouspanel.h:38