1 // Copyright 2004 "Gilles Degottex"
3 // This file is part of "fmit"
5 // "fmit" is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation; either version 2 of the License, or
8 // (at your option) any later version.
10 // "fmit" is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software
17 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 #include <qsettings.h>
28 class DialView : public QFrame, public View
32 virtual void paintEvent(QPaintEvent* event);
33 virtual void mouseReleaseEvent(QMouseEvent* e){View::mouseReleaseEvent(e);}
34 void drawTextTickCent(QPainter& p, int bigw, int bigh, int r);
35 void drawTicksCent(QPainter& p, int bigw, int bigh, int r, int ticks_size, int h);
36 void drawTextTickFrac(QPainter& p, int bigw, int bigh, int num, int den);
37 void drawTicksFrac(QPainter& p, int bigw, int bigh, float r, int ticks_size, int h);
42 DialView(QWidget* parent);
44 void setError(float error);
51 QAction* setting_showTolerance;
52 QAction* setting_showTrace;
53 QAction* setting_useCents;
54 QSpinBox* setting_spinScale;
57 virtual void clearSettings();
60 #endif // _DialView_h_