lmms
Cross-platform music production software
Toggle main menu visibility
Loading...
Searching...
No Matches
include
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
32
class
QAction;
33
class
QComboBox;
34
class
QTextCharFormat;
35
class
QTextEdit;
36
37
namespace
lmms::gui
38
{
39
40
41
class
LMMS_EXPORT
ProjectNotes
:
public
QMainWindow,
public
SerializingObject
42
{
43
Q_OBJECT
44
public
:
45
ProjectNotes
();
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
60
protected
:
61
void
setupActions();
62
63
64
private
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
77
private
:
78
QTextEdit *
m_edit
;
79
QAction *
m_actionTextBold
,
80
*
m_actionTextUnderline
,
81
*
m_actionTextItalic
,
82
*
m_actionTextColor
,
83
*
m_actionAlignLeft
,
84
*
m_actionAlignCenter
,
85
*
m_actionAlignRight
,
86
*
m_actionAlignJustify
;
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.h
lmms::SerializingObject::SerializingObject
SerializingObject()
Definition
SerializingObject.cpp:32
lmms::gui::ProjectNotes::setText
void setText(const QString &_text)
Definition
ProjectNotes.cpp:101
lmms::gui::ProjectNotes::m_actionAlignCenter
QAction * m_actionAlignCenter
Definition
ProjectNotes.h:84
lmms::gui::ProjectNotes::clear
void clear()
Definition
ProjectNotes.cpp:88
lmms::gui::ProjectNotes::m_actionTextColor
QAction * m_actionTextColor
Definition
ProjectNotes.h:82
lmms::gui::ProjectNotes::m_comboSize
QComboBox * m_comboSize
Definition
ProjectNotes.h:88
lmms::gui::ProjectNotes::m_comboFont
QComboBox * m_comboFont
Definition
ProjectNotes.h:87
lmms::gui::ProjectNotes::m_actionAlignRight
QAction * m_actionAlignRight
Definition
ProjectNotes.h:85
lmms::gui::ProjectNotes::loadSettings
void loadSettings(const QDomElement &_this) override
Definition
ProjectNotes.cpp:387
lmms::gui::ProjectNotes::m_actionTextUnderline
QAction * m_actionTextUnderline
Definition
ProjectNotes.h:80
lmms::gui::ProjectNotes::~ProjectNotes
~ProjectNotes() override=default
lmms::gui::ProjectNotes::nodeName
QString nodeName() const override
Definition
ProjectNotes.h:54
lmms::gui::ProjectNotes::m_actionTextBold
QAction * m_actionTextBold
Definition
ProjectNotes.h:79
lmms::gui::ProjectNotes::m_actionTextItalic
QAction * m_actionTextItalic
Definition
ProjectNotes.h:81
lmms::gui::ProjectNotes::m_edit
QTextEdit * m_edit
Definition
ProjectNotes.h:78
lmms::gui::ProjectNotes::m_actionAlignJustify
QAction * m_actionAlignJustify
Definition
ProjectNotes.h:86
lmms::gui::ProjectNotes::ProjectNotes
ProjectNotes()
Definition
ProjectNotes.cpp:52
lmms::gui::ProjectNotes::m_actionAlignLeft
QAction * m_actionAlignLeft
Definition
ProjectNotes.h:83
lmms::gui::ProjectNotes::saveSettings
void saveSettings(QDomDocument &_doc, QDomElement &_parent) override
Definition
ProjectNotes.cpp:376
lmms::gui
Definition
AudioPortAudio.cpp:209
Generated on
for lmms by
1.18.0