Songbook-Client
0.7
This application is a manager of customguitar songbooks
Main Page
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Enumerations
Enumerator
Pages
src
diagram-editor.hh
Go to the documentation of this file.
1
// Copyright (C) 2009-2012, Romain Goffe <romain.goffe@gmail.com>
2
// Copyright (C) 2009-2012, Alexandre Dupas <alexandre.dupas@gmail.com>
3
//
4
// This program is free software; you can redistribute it and/or
5
// modify it under the terms of the GNU General Public License as
6
// published by the Free Software Foundation; either version 2 of the
7
// License, or (at your option) any later version.
8
//
9
// This program is distributed in the hope that it will be useful, but
10
// WITHOUT ANY WARRANTY; without even the implied warranty of
11
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
// General Public License for more details.
13
//
14
// You should have received a copy of the GNU General Public License
15
// along with this program; if not, write to the Free Software
16
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17
// 02110-1301, USA.
18
//******************************************************************************
19
#ifndef __DIAGRAM_EDITOR_HH__
20
#define __DIAGRAM_EDITOR_HH__
21
22
#include <QDialog>
23
#include <QString>
24
#include "
chord.hh
"
25
26
class
QLineEdit;
27
class
QSpinBox;
28
class
QRadioButton;
29
class
QCheckBox;
30
class
QLabel;
31
32
class
CChord
;
33
class
CDiagramArea
;
34
49
class
CDiagramEditor
:
public
QDialog
50
{
51
Q_OBJECT
52
53
public
:
55
CDiagramEditor
(QWidget *parent=0);
56
58
~CDiagramEditor
();
59
63
QString
chordName
()
const
;
64
68
QString
chordStrings
()
const
;
69
73
QString
chordFret
()
const
;
74
78
CChord::Instrument
chordInstrument
()
const
;
79
83
bool
isChordImportant
()
const
;
84
88
virtual
QSize
sizeHint
()
const
;
89
93
CChord
*
chord
()
const
;
94
95
public
slots:
100
void
setChord
(
CChord
*chord);
101
102
private
slots:
103
bool
checkChord();
104
void
onInstrumentChanged(
bool
);
105
void
reset();
106
107
private
:
108
//chord
109
QRadioButton *m_guitar;
110
QRadioButton *m_ukulele;
111
QLineEdit *m_nameLineEdit;
112
QLineEdit *m_stringsLineEdit;
113
QSpinBox *m_fretSpinBox;
114
QCheckBox *m_importantCheckBox;
115
//info
116
QLabel *m_infoIconLabel;
117
QLabel *m_messageLabel;
118
119
CDiagramArea
*m_diagramArea;
120
CChord
*m_chord;
121
};
122
123
#endif // __DIAGRAM_EDITOR_HH__
Generated on Fri Jul 20 2012 20:46:38 for Songbook-Client by
1.8.1.1