Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

fretboard.cpp File Reference

#include "fretboard.h"
#include <opie2/odebug.h>
#include <qpainter.h>

Include dependency graph for fretboard.cpp:

Go to the source code of this file.

Functions

 Graph::FretBoard::FretBoard (TonleiterData *data, QWidget *parent, const char *name, WFlags f)
 Graph::FretBoard::~FretBoard ()
void Graph::FretBoard::dataChange ()
void Graph::FretBoard::paintEvent (QPaintEvent *pe)
void Graph::FretBoard::resizeEvent (QResizeEvent *re)
void Graph::FretBoard::mouseReleaseEvent (QMouseEvent *me)
void Graph::FretBoard::paintBoard (QPainter *p)
void Graph::FretBoard::paintFrets (QPainter *p)
void Graph::FretBoard::paintStrings (QPainter *p)
void Graph::FretBoard::paintScale (QPainter *p)


Function Documentation

void Graph::FretBoard::dataChange  ) 
 

Definition at line 24 of file fretboard.cpp.

Graph::FretBoard::FretBoard TonleiterData *  data,
QWidget *  parent,
const char *  name,
WFlags  f
 

Definition at line 10 of file fretboard.cpp.

void Graph::FretBoard::mouseReleaseEvent QMouseEvent *  me  ) 
 

Definition at line 61 of file fretboard.cpp.

References Graph::FretBoard::pressed().

void Graph::FretBoard::paintBoard QPainter *  p  ) 
 

Definition at line 67 of file fretboard.cpp.

References Graph::FretBoard::xmin, Graph::FretBoard::xwidth, Graph::FretBoard::yheight, and Graph::FretBoard::ymin.

void Graph::FretBoard::paintEvent QPaintEvent *  pe  ) 
 

Definition at line 29 of file fretboard.cpp.

References Graph::FretBoard::data, Graph::FretBoard::inst, p, Graph::FretBoard::paintBoard(), Graph::FretBoard::paintFrets(), Graph::FretBoard::paintScale(), Graph::FretBoard::paintStrings(), Graph::FretBoard::xmargin, Graph::FretBoard::xmax, Graph::FretBoard::xmin, Graph::FretBoard::xwidth, Graph::FretBoard::yheight, Graph::FretBoard::ymargin, Graph::FretBoard::ymax, and Graph::FretBoard::ymin.

void Graph::FretBoard::paintFrets QPainter *  p  ) 
 

Definition at line 77 of file fretboard.cpp.

References f, Graph::FretBoard::fretdist, Graph::FretBoard::fretpen, Graph::FretBoard::inst, marker, Graph::FretBoard::markerbrush, Graph::FretBoard::xmin, Graph::FretBoard::xwidth, Graph::FretBoard::ymargin, Graph::FretBoard::ymax, and Graph::FretBoard::ymin.

void Graph::FretBoard::paintScale QPainter *  p  ) 
 

Definition at line 130 of file fretboard.cpp.

References Graph::FretBoard::data, f, Graph::FretBoard::fretdist, Data::Note::getNameOfNote(), Graph::FretBoard::inst, Data::Note::octaveOfBaseNote(), odebug, oendl, s, scale(), Graph::FretBoard::stringdist, Opie::MM::x, Graph::FretBoard::xmin, Opie::MM::y, and Graph::FretBoard::ymin.

void Graph::FretBoard::paintStrings QPainter *  p  ) 
 

Definition at line 113 of file fretboard.cpp.

References Data::Note::getNameOfNote(), Graph::FretBoard::inst, s, Graph::FretBoard::stringdist, Graph::FretBoard::stringpen, Graph::FretBoard::xmargin, Graph::FretBoard::xmax, Graph::FretBoard::xmin, Graph::FretBoard::yheight, and Graph::FretBoard::ymin.

void Graph::FretBoard::resizeEvent QResizeEvent *  re  ) 
 

Definition at line 56 of file fretboard.cpp.

Graph::FretBoard::~FretBoard  ) 
 

Definition at line 20 of file fretboard.cpp.


Generated on Sat Nov 5 17:01:14 2005 for OPIE by  doxygen 1.4.2