MuseScore  3.4
Music composition and notation
textpalette.h
Go to the documentation of this file.
1 //=============================================================================
2 // MusE Score
3 // Linux Music Score Editor
4 //
5 // Copyright (C) 2002-2010 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 __TEXTPALETTE_H__
21 #define __TEXTPALETTE_H__
22 
23 #include "ui_textpalette.h"
24 
25 namespace Ms {
26 
27 class TextBase;
28 class Palette;
29 
30 //---------------------------------------------------------
31 // TextPalette
32 //---------------------------------------------------------
33 
34 class TextPalette : public QWidget, public Ui::TextPaletteBase {
35  Q_OBJECT
36 
38  QFont _font;
42 
43  QListWidget* lws;
44  QListWidget* lwu;
45 
46  virtual void hideEvent(QHideEvent*);
47  void closeEvent(QCloseEvent* ev);
48  void populateCommon();
49 
50  private slots:
51  void populateSmufl();
52  void populateUnicode();
53 
54  public:
55  TextPalette(QWidget* parent);
56  void setText(TextBase* te);
57  TextBase* text() { return _textElement; }
58  void setFont(const QFont& font);
59  };
60 }
61 
62 #endif
63 
void populateSmufl()
Definition: textpalette.cpp:766
virtual void hideEvent(QHideEvent *)
Definition: textpalette.cpp:810
TextPalette(QWidget *parent)
Definition: textpalette.cpp:538
Palette * pUnicode
Definition: textpalette.h:41
void setFont(const QFont &font)
Definition: textpalette.cpp:830
QListWidget * lwu
Definition: textpalette.h:44
TextBase * _textElement
Definition: textpalette.h:37
void setText(TextBase *te)
Definition: textpalette.cpp:801
void populateUnicode()
Definition: textpalette.cpp:784
Palette * pSmufl
Definition: textpalette.h:40
Definition: textbase.h:217
Definition: aeolus.cpp:26
QFont _font
Definition: textpalette.h:38
QListWidget * lws
Definition: textpalette.h:43
Definition: palette.h:72
Definition: textpalette.h:34
Palette * pCommon
Definition: textpalette.h:39
void closeEvent(QCloseEvent *ev)
Definition: textpalette.cpp:820
TextBase * text()
Definition: textpalette.h:57
void populateCommon()
Definition: textpalette.cpp:737