Songbook-Client  0.7
This application is a manager of customguitar songbooks
 All Classes Files Functions Variables Enumerations Enumerator Pages
Public Slots | Public Member Functions
CDiagramEditor Class Reference

CDiagramEditor is a dialog for editing or creating chords. More...

#include <diagram-editor.hh>

List of all members.

Public Slots

void setChord (CChord *chord)

Public Member Functions

 CDiagramEditor (QWidget *parent=0)
 Constructor.
 ~CDiagramEditor ()
 Destructor.
QString chordName () const
QString chordStrings () const
QString chordFret () const
CChord::Instrument chordInstrument () const
bool isChordImportant () const
virtual QSize sizeHint () const
CChordchord () const

Detailed Description

CDiagramEditor is a dialog for editing or creating chords.

The CDiagramEditor class provides a dialog widget for editing or creating chords. It is composed of a form where fields are the properties of a CChord object and of a list of common chords (a CDiagramArea object) that may be selected.

chord-editor.png
See also:
CChord, CDiagramArea

Member Function Documentation

CChord * CDiagramEditor::chord ( ) const

Returns the CChord object associated with the dialog.

QString CDiagramEditor::chordFret ( ) const

Returns the fret of the chord.

CChord::Instrument CDiagramEditor::chordInstrument ( ) const

Returns the instrument of the chord.

QString CDiagramEditor::chordName ( ) const

Returns the name of the chord.

QString CDiagramEditor::chordStrings ( ) const

Returns the strings of the chord.

bool CDiagramEditor::isChordImportant ( ) const

Returns the true if chord is important; false otherwise.

void CDiagramEditor::setChord ( CChord chord)
slot

Associates the CDiagram object diagram with dialog. The properties of diagram are used to fill the form of the dialog.

QSize CDiagramEditor::sizeHint ( ) const
virtual

Returns the preferred size for the dialog.


The documentation for this class was generated from the following files: