MuseScore  3.4
Music composition and notation
poslabel.h
Go to the documentation of this file.
1 //=============================================================================
2 // Awl
3 // Audio Widget Library
4 //
5 // Copyright (C) 2002-2009 by Werner Schweer and others
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 //
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
14 //
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software
17 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 //=============================================================================
19 
20 #ifndef __AWLPOSLABEL_H__
21 #define __AWLPOSLABEL_H__
22 
23 #include "libmscore/pos.h"
24 
25 namespace Awl {
26 using namespace Ms;
27 
28 //---------------------------------------------------------
29 // PosLabel
30 //---------------------------------------------------------
31 
32 class PosLabel : public QLabel {
33  bool _smpte;
35  Q_OBJECT
36 
37  void updateValue();
38 
39  protected:
40  QSize sizeHint() const;
41 
42  public slots:
43  void setValue(const Pos&);
44 
45  public:
46  PosLabel(QWidget* parent = 0);
47  PosLabel(TempoMap*, TimeSigMap*, QWidget* parent = 0);
48  void setContext(TempoMap*, TimeSigMap*);
49 
50  Pos value() const { return pos; }
51 
52  void setSmpte(bool);
53  bool smpte() const { return _smpte; }
54  };
55 
56 }
57 
58 #endif
59 
bool smpte() const
Definition: poslabel.h:53
Pos value() const
Definition: poslabel.h:50
bool _smpte
Definition: poslabel.h:33
Definition: aeolus.cpp:26
Definition: poslabel.h:32
Definition: tempo.h:45
Definition: aslider.cpp:23
Definition: sig.h:127
Pos pos
Definition: poslabel.h:34
Definition: pos.h:42