MuseScore  3.4
Music composition and notation
texttools.h
Go to the documentation of this file.
1 //=============================================================================
2 // MuseScore
3 // Music Composition & Notation
4 //
5 // Copyright (C) 2002-2011 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 __TEXTTOOLS_H__
14 #define __TEXTTOOLS_H__
15 
16 namespace Ms {
17 
18 class TextBase;
19 class TextCursor;
20 class EditData;
21 class ScoreView;
22 
23 //---------------------------------------------------------
24 // TextTools
25 //---------------------------------------------------------
26 
27 class TextTools : public QDockWidget {
28  Q_OBJECT
29 
32 
33  QDoubleSpinBox* typefaceSize;
34  QFontComboBox* typefaceFamily;
35  QAction* typefaceBold;
36  QAction* typefaceItalic;
40  QAction* showKeyboard;
41 
42  void blockAllSignals(bool val);
43  void updateText();
44  void layoutText();
45 
46  private slots:
47  void sizeChanged(double value);
48  void fontChanged(const QFont&);
49  void boldClicked(bool);
50  void italicClicked(bool);
51  void underlineClicked(bool);
52  void subscriptClicked(bool);
53  void superscriptClicked(bool);
54  void showKeyboardClicked(bool);
55 
56  public:
57  TextTools(QWidget* parent = 0);
58  void updateTools(EditData&);
59  QAction* kbAction() const { return showKeyboard; }
60  void toggleBold();
61  void toggleItalic();
62  void toggleUnderline();
64  };
65 }
66 
67 #endif
68 
void underlineClicked(bool)
Definition: texttools.cpp:250
void italicClicked(bool)
Definition: texttools.cpp:260
void fontChanged(const QFont &)
Definition: texttools.cpp:197
QDoubleSpinBox * typefaceSize
Definition: texttools.h:33
Definition: textbase.h:102
void boldClicked(bool)
Definition: texttools.cpp:210
void blockAllSignals(bool val)
Definition: texttools.cpp:122
void superscriptClicked(bool)
Definition: texttools.cpp:283
void updateTools(EditData &)
Definition: texttools.cpp:139
void subscriptClicked(bool)
Definition: texttools.cpp:270
void layoutText()
Definition: texttools.cpp:176
Definition: texttools.h:27
QAction * typefaceSuperscript
Definition: texttools.h:39
void toggleItalic()
Definition: texttools.cpp:230
QAction * typefaceUnderline
Definition: texttools.h:37
void updateText()
Definition: texttools.cpp:165
Definition: textbase.h:217
Definition: aeolus.cpp:26
QAction * typefaceBold
Definition: texttools.h:35
void toggleBold()
Definition: texttools.cpp:220
TextCursor * cursor
Definition: texttools.h:31
QAction * showKeyboard
Definition: texttools.h:40
TextBase * text
Definition: texttools.h:30
Definition: element.h:111
void sizeChanged(double value)
Definition: texttools.cpp:186
QFontComboBox * typefaceFamily
Definition: texttools.h:34
QAction * kbAction() const
Definition: texttools.h:59
void showKeyboardClicked(bool)
Definition: texttools.cpp:296
TextBase * textElement()
QAction * typefaceSubscript
Definition: texttools.h:38
TextTools(QWidget *parent=0)
Definition: texttools.cpp:52
void toggleUnderline()
Definition: texttools.cpp:240
QAction * typefaceItalic
Definition: texttools.h:36