diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-30 18:16:06 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-30 18:16:06 +0000 |
commit | 02a6c8f36311eb6225066df35adf8d00f9cd942b (patch) | |
tree | ceb91c373877f7a69209e184c81b53dc6f9402d7 /src/knemod/signalplotter.h | |
parent | 09e6e27fe85b2efb28072f1c81f6581fa6837d92 (diff) | |
download | knemo-02a6c8f36311eb6225066df35adf8d00f9cd942b.tar.gz knemo-02a6c8f36311eb6225066df35adf8d00f9cd942b.zip |
TQt4 port knemo
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/knemo@1238869 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/knemod/signalplotter.h')
-rw-r--r-- | src/knemod/signalplotter.h | 61 |
1 files changed, 31 insertions, 30 deletions
diff --git a/src/knemod/signalplotter.h b/src/knemod/signalplotter.h index f0dabfb..22c5039 100644 --- a/src/knemod/signalplotter.h +++ b/src/knemod/signalplotter.h @@ -25,23 +25,24 @@ #ifndef KSG_SIGNALPLOTTER_H #define KSG_SIGNALPLOTTER_H -#include <qpoint.h> -#include <qdialog.h> -#include <qptrlist.h> -#include <qstring.h> -#include <qvaluelist.h> +#include <tqpoint.h> +#include <tqdialog.h> +#include <tqptrlist.h> +#include <tqstring.h> +#include <tqvaluelist.h> #define GRAPH_POLYGON 0 #define GRAPH_ORIGINAL 1 -class QColor; +class TQColor; -class SignalPlotter : public QDialog +class SignalPlotter : public TQDialog { Q_OBJECT + TQ_OBJECT public: - SignalPlotter( QWidget *parent = 0, const char *name = 0 ); + SignalPlotter( TQWidget *tqparent = 0, const char *name = 0 ); ~SignalPlotter(); /** @@ -50,17 +51,17 @@ class SignalPlotter : public QDialog void hide(); void show(); - bool addBeam( const QColor &color ); - void addSample( const QValueList<double> &samples ); + bool addBeam( const TQColor &color ); + void addSample( const TQValueList<double> &samples ); void removeBeam( uint pos ); void changeRange( int beam, double min, double max ); - QValueList<QColor> &beamColors(); + TQValueList<TQColor> &beamColors(); - void setTitle( const QString &title ); - QString title() const; + void setTitle( const TQString &title ); + TQString title() const; void setUseAutoRange( bool value ); bool useAutoRange() const; @@ -80,8 +81,8 @@ class SignalPlotter : public QDialog void setShowVerticalLines( bool value ); bool showVerticalLines() const; - void setVerticalLinesColor( const QColor &color ); - QColor verticalLinesColor() const; + void setVerticalLinesColor( const TQColor &color ); + TQColor verticalLinesColor() const; void setVerticalLinesDistance( int distance ); int verticalLinesDistance() const; @@ -92,8 +93,8 @@ class SignalPlotter : public QDialog void setShowHorizontalLines( bool value ); bool showHorizontalLines() const; - void setHorizontalLinesColor( const QColor &color ); - QColor horizontalLinesColor() const; + void setHorizontalLinesColor( const TQColor &color ); + TQColor horizontalLinesColor() const; void setHorizontalLinesCount( int count ); int horizontalLinesCount() const; @@ -107,17 +108,17 @@ class SignalPlotter : public QDialog void setFontSize( int size ); int fontSize() const; - void setBackgroundColor( const QColor &color ); - QColor backgroundColor() const; + void setBackgroundColor( const TQColor &color ); + TQColor backgroundColor() const; protected: void updateDataBuffers(); - virtual void resizeEvent( QResizeEvent* ); - virtual void paintEvent( QPaintEvent* ); + virtual void resizeEvent( TQResizeEvent* ); + virtual void paintEvent( TQPaintEvent* ); private: - QPoint mPos; + TQPoint mPos; bool mPosInitialized; double mMinValue; @@ -127,34 +128,34 @@ class SignalPlotter : public QDialog uint mGraphStyle; bool mShowVerticalLines; - QColor mVerticalLinesColor; + TQColor mVerticalLinesColor; uint mVerticalLinesDistance; bool mVerticalLinesScroll; uint mVerticalLinesOffset; uint mHorizontalScale; bool mShowHorizontalLines; - QColor mHorizontalLinesColor; + TQColor mHorizontalLinesColor; uint mHorizontalLinesCount; bool mShowLabels; bool mShowTopBar; uint mFontSize; - QColor mBackgroundColor; + TQColor mBackgroundColor; - QPtrList<double> mBeamData; - QValueList<QColor> mBeamColor; + TQPtrList<double> mBeamData; + TQValueList<TQColor> mBeamColor; int mSamples; /** * The name of the interface. - * Needed to store the geometry of the plotter in the right + * Needed to store the tqgeometry of the plotter in the right * group of the config file. */ - QString mName; - QString mTitle; + TQString mName; + TQString mTitle; }; #endif |