/* KSysGuard, the KDE System Guard Copyright (c) 2003 Tobias Koenig This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef FANCYPLOTTERSETTINGS_H #define FANCYPLOTTERSETTINGS_H #include #include #include "SensorModel.h" class KIntNumInput; class KLineEdit; #include #include #include #include class FancyPlotterSettings : public KPageDialog { Q_OBJECT public: FancyPlotterSettings( QWidget* parent, bool locked ); ~FancyPlotterSettings(); void setTitle( const QString &title ); QString title() const; void setUseManualRange( bool value ); bool useManualRange() const; void setMinValue( double min ); double minValue() const; void setMaxValue( double max ); double maxValue() const; void setHorizontalScale( int scale ); int horizontalScale() const; void setShowVerticalLines( bool value ); bool showVerticalLines() const; void setVerticalLinesDistance( int distance ); int verticalLinesDistance() const; void setVerticalLinesScroll( bool value ); bool verticalLinesScroll() const; void setShowHorizontalLines( bool value ); bool showHorizontalLines() const; void setShowAxis( bool value ); bool showAxis() const; void setShowTopBar( bool value ); bool showTopBar() const; void setFontSize( int size ); int fontSize() const; void setStackBeams( bool stack ); bool stackBeams() const; void setSensors( const SensorModelEntry::List &list ); SensorModelEntry::List sensors() const; QList order() const; QList deleted() const; void clearDeleted(); void resetOrder(); void setRangeUnits( const QString & units ); void setHasIntegerRange( bool hasIntegerRange ); private Q_SLOTS: void editSensor(); void removeSensor(); void selectionChanged(const QModelIndex &newCurrent); void moveUpSensor(); void moveDownSensor(); void setColorForSelectedItem(const QColor &color); private: QDoubleSpinBox *mMinValue; QDoubleSpinBox *mMaxValue; QLabel *mMinValueLabel; QLabel *mMaxValueLabel; KLineEdit *mTitle; KIntNumInput *mHorizontalScale; KIntNumInput *mVerticalLinesDistance; KIntNumInput *mFontSize; QCheckBox *mShowVerticalLines; QCheckBox *mShowHorizontalLines; QCheckBox *mVerticalLinesScroll; QCheckBox *mManualRange; QCheckBox *mShowAxis; QCheckBox *mShowTopBar; QPushButton *mEditButton; QPushButton *mRemoveButton; QPushButton *mMoveUpButton; QPushButton *mMoveDownButton; QCheckBox *mStackBeams; QTreeView *mView; SensorModel *mModel; }; #endif