00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef FANCYPLOTTERSETTINGS_H
00025 #define FANCYPLOTTERSETTINGS_H
00026
00027 #include <kdialogbase.h>
00028
00029 class KColorButton;
00030 class KIntNumInput;
00031 class KLineEdit;
00032 class KListView;
00033
00034 class TQCheckBox;
00035 class TQListViewItem;
00036 class TQPushButton;
00037 class TQRadioButton;
00038
00039 class FancyPlotterSettings : public KDialogBase
00040 {
00041 Q_OBJECT
00042
00043 public:
00044 FancyPlotterSettings( TQWidget* parent = 0, const char* name = 0 );
00045 ~FancyPlotterSettings();
00046
00047 void setTitle( const TQString &title );
00048 TQString title() const;
00049
00050 void setUseAutoRange( bool value );
00051 bool useAutoRange() const;
00052
00053 void setMinValue( double min );
00054 double minValue() const;
00055
00056 void setMaxValue( double max );
00057 double maxValue() const;
00058
00059 void setUsePolygonStyle( bool value );
00060 bool usePolygonStyle() const;
00061
00062 void setHorizontalScale( int scale );
00063 int horizontalScale() const;
00064
00065 void setShowVerticalLines( bool value );
00066 bool showVerticalLines() const;
00067
00068 void setVerticalLinesColor( const TQColor &color );
00069 TQColor verticalLinesColor() const;
00070
00071 void setVerticalLinesDistance( int distance );
00072 int verticalLinesDistance() const;
00073
00074 void setVerticalLinesScroll( bool value );
00075 bool verticalLinesScroll() const;
00076
00077 void setShowHorizontalLines( bool value );
00078 bool showHorizontalLines() const;
00079
00080 void setHorizontalLinesColor( const TQColor &color );
00081 TQColor horizontalLinesColor() const;
00082
00083 void setHorizontalLinesCount( int count );
00084 int horizontalLinesCount() const;
00085
00086 void setShowLabels( bool value );
00087 bool showLabels() const;
00088
00089 void setShowTopBar( bool value );
00090 bool showTopBar() const;
00091
00092 void setFontSize( int size );
00093 int fontSize() const;
00094
00095 void setBackgroundColor( const TQColor &color );
00096 TQColor backgroundColor() const;
00097
00098 void setSensors( const TQValueList< TQStringList > &list );
00099 TQValueList< TQStringList > sensors() const;
00100 TQValueList<int> order() const;
00101 TQValueList<int> deleted() const;
00102 void clearDeleted();
00103 void resetOrder();
00104
00105 private slots:
00106 void editSensor();
00107 void removeSensor();
00108 void moveUpSensor();
00109 void moveDownSensor();
00110 void selectionChanged( TQListViewItem* );
00111
00112 private:
00113
00114 KColorButton *mVerticalLinesColor;
00115 KColorButton *mHorizontalLinesColor;
00116 KColorButton *mBackgroundColor;
00117 KLineEdit *mMinValue;
00118 KLineEdit *mMaxValue;
00119 KLineEdit *mTitle;
00120 KIntNumInput *mHorizontalScale;
00121 KIntNumInput *mVerticalLinesDistance;
00122 KIntNumInput *mHorizontalLinesCount;
00123 KIntNumInput *mFontSize;
00124 KListView *mSensorView;
00125
00126 TQCheckBox *mShowVerticalLines;
00127 TQCheckBox *mShowHorizontalLines;
00128 TQCheckBox *mVerticalLinesScroll;
00129 TQCheckBox *mUseAutoRange;
00130 TQCheckBox *mShowLabels;
00131 TQCheckBox *mShowTopBar;
00132 TQPushButton *mEditButton;
00133 TQPushButton *mRemoveButton;
00134 TQPushButton *mMoveUpButton;
00135 TQPushButton *mMoveDownButton;
00136 TQRadioButton *mUsePolygonStyle;
00137 TQRadioButton *mUseOriginalStyle;
00138
00140 TQValueList<int> mDeleted;
00141 };
00142
00143 #endif