2
KSysGuard, the KDE System Guard
4
Copyright (c) 2003 Tobias Koenig <tokoe@kde.org>
6
This program is free software; you can redistribute it and/or
7
modify it under the terms of version 2 of the GNU General Public
8
License as published by the Free Software Foundation.
10
This program 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19
KSysGuard is currently maintained by Chris Schlaeger <cs@kde.org>.
20
Please do not commit any changes without consulting me first. Thanks!
24
#ifndef FANCYPLOTTERSETTINGS_H
25
#define FANCYPLOTTERSETTINGS_H
27
#include <kdialogbase.h>
39
class FancyPlotterSettings : public KDialogBase
44
FancyPlotterSettings( QWidget* parent = 0, const char* name = 0 );
45
~FancyPlotterSettings();
47
void setTitle( const QString &title );
48
QString title() const;
50
void setUseAutoRange( bool value );
51
bool useAutoRange() const;
53
void setMinValue( double min );
54
double minValue() const;
56
void setMaxValue( double max );
57
double maxValue() const;
59
void setUsePolygonStyle( bool value );
60
bool usePolygonStyle() const;
62
void setHorizontalScale( int scale );
63
int horizontalScale() const;
65
void setShowVerticalLines( bool value );
66
bool showVerticalLines() const;
68
void setVerticalLinesColor( const QColor &color );
69
QColor verticalLinesColor() const;
71
void setVerticalLinesDistance( int distance );
72
int verticalLinesDistance() const;
74
void setVerticalLinesScroll( bool value );
75
bool verticalLinesScroll() const;
77
void setShowHorizontalLines( bool value );
78
bool showHorizontalLines() const;
80
void setHorizontalLinesColor( const QColor &color );
81
QColor horizontalLinesColor() const;
83
void setHorizontalLinesCount( int count );
84
int horizontalLinesCount() const;
86
void setShowLabels( bool value );
87
bool showLabels() const;
89
void setShowTopBar( bool value );
90
bool showTopBar() const;
92
void setFontSize( int size );
95
void setBackgroundColor( const QColor &color );
96
QColor backgroundColor() const;
98
void setSensors( const QValueList< QStringList > &list );
99
QValueList< QStringList > sensors() const;
100
QValueList<int> order() const;
101
QValueList<int> deleted() const;
109
void moveDownSensor();
110
void selectionChanged( QListViewItem* );
114
KColorButton *mVerticalLinesColor;
115
KColorButton *mHorizontalLinesColor;
116
KColorButton *mBackgroundColor;
117
KLineEdit *mMinValue;
118
KLineEdit *mMaxValue;
120
KIntNumInput *mHorizontalScale;
121
KIntNumInput *mVerticalLinesDistance;
122
KIntNumInput *mHorizontalLinesCount;
123
KIntNumInput *mFontSize;
124
KListView *mSensorView;
126
QCheckBox *mShowVerticalLines;
127
QCheckBox *mShowHorizontalLines;
128
QCheckBox *mVerticalLinesScroll;
129
QCheckBox *mUseAutoRange;
130
QCheckBox *mShowLabels;
131
QCheckBox *mShowTopBar;
132
QPushButton *mEditButton;
133
QPushButton *mRemoveButton;
134
QPushButton *mMoveUpButton;
135
QPushButton *mMoveDownButton;
136
QRadioButton *mUsePolygonStyle;
137
QRadioButton *mUseOriginalStyle;
139
/** The numbers of the sensors to be delete.*/
140
QValueList<int> mDeleted;