LMMS
Loading...
Searching...
No Matches
ProjectNotes.h
Go to the documentation of this file.
1/*
2 * ProjectNotes.h - header for project-notes-editor
3 *
4 * Copyright (c) 2005-2007 Tobias Doerffel <tobydox/at/users.sourceforge.net>
5 *
6 * This file is part of LMMS - https://lmms.io
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public
10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public
19 * License along with this program (see COPYING); if not, write to the
20 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 * Boston, MA 02110-1301 USA.
22 *
23 */
24
25#ifndef LMMS_GUI_PROJECT_NOTES_H
26#define LMMS_GUI_PROJECT_NOTES_H
27
28#include <QMainWindow>
29
30#include "SerializingObject.h"
31
32class QAction;
33class QComboBox;
34class QTextCharFormat;
35class QTextEdit;
36
37namespace lmms::gui
38{
39
40
41class LMMS_EXPORT ProjectNotes : public QMainWindow, public SerializingObject
42{
43 Q_OBJECT
44public:
46 ~ProjectNotes() override = default;
47
48 void clear();
49 void setText( const QString & _text );
50
51 void saveSettings( QDomDocument & _doc, QDomElement & _parent ) override;
52 void loadSettings( const QDomElement & _this ) override;
53
54 inline QString nodeName() const override
55 {
56 return "projectnotes";
57 }
58
59
60protected:
61 void setupActions();
62
63
64private slots:
65 void textBold();
66 void textUnderline();
67 void textItalic();
68 void textFamily( const QString & _f );
69 void textSize( const QString & _p );
70 void textColor();
71 void textAlign( QAction * _a );
72
73 void formatChanged( const QTextCharFormat & _f );
74 void alignmentChanged( int _a );
75
76
77private:
78 QTextEdit * m_edit;
87 QComboBox * m_comboFont;
88 QComboBox * m_comboSize;
89
90} ;
91
92
93} // namespace lmms::gui
94
95#endif // LMMS_GUI_PROJECT_NOTES_H
SerializingObject()
Definition SerializingObject.cpp:32
void setText(const QString &_text)
Definition ProjectNotes.cpp:101
QAction * m_actionAlignCenter
Definition ProjectNotes.h:84
void clear()
Definition ProjectNotes.cpp:88
QAction * m_actionTextColor
Definition ProjectNotes.h:82
QComboBox * m_comboSize
Definition ProjectNotes.h:88
QComboBox * m_comboFont
Definition ProjectNotes.h:87
QAction * m_actionAlignRight
Definition ProjectNotes.h:85
void loadSettings(const QDomElement &_this) override
Definition ProjectNotes.cpp:387
QAction * m_actionTextUnderline
Definition ProjectNotes.h:80
~ProjectNotes() override=default
QString nodeName() const override
Definition ProjectNotes.h:54
QAction * m_actionTextBold
Definition ProjectNotes.h:79
QAction * m_actionTextItalic
Definition ProjectNotes.h:81
QTextEdit * m_edit
Definition ProjectNotes.h:78
QAction * m_actionAlignJustify
Definition ProjectNotes.h:86
ProjectNotes()
Definition ProjectNotes.cpp:52
QAction * m_actionAlignLeft
Definition ProjectNotes.h:83
void saveSettings(QDomDocument &_doc, QDomElement &_parent) override
Definition ProjectNotes.cpp:376
Definition AudioPortAudio.cpp:223