From 02a6c8f36311eb6225066df35adf8d00f9cd942b Mon Sep 17 00:00:00 2001 From: tpearson Date: Thu, 30 Jun 2011 18:16:06 +0000 Subject: 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 --- src/knemod/signalplotter.h | 61 +++++++++++++++++++++++----------------------- 1 file changed, 31 insertions(+), 30 deletions(-) (limited to 'src/knemod/signalplotter.h') 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 -#include -#include -#include -#include +#include +#include +#include +#include +#include #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 &samples ); + bool addBeam( const TQColor &color ); + void addSample( const TQValueList &samples ); void removeBeam( uint pos ); void changeRange( int beam, double min, double max ); - QValueList &beamColors(); + TQValueList &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 mBeamData; - QValueList mBeamColor; + TQPtrList mBeamData; + TQValueList 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 -- cgit v1.2.1