From f008adb5a77e094eaf6abf3fc0f36958e66896a5 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 25 Jun 2011 05:28:35 +0000 Subject: TQt4 port koffice This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kspread/plugins/calculator/kcalc.h | 207 +++++++++++++++++++------------------ 1 file changed, 104 insertions(+), 103 deletions(-) (limited to 'kspread/plugins/calculator/kcalc.h') diff --git a/kspread/plugins/calculator/kcalc.h b/kspread/plugins/calculator/kcalc.h index 752ae96e..7e665e6c 100644 --- a/kspread/plugins/calculator/kcalc.h +++ b/kspread/plugins/calculator/kcalc.h @@ -2,7 +2,7 @@ $Id: kcalc.h 466447 2005-10-02 17:54:10Z zander $ KCalc, a scientific calculator for the X window system using the - Qt widget libraries, available at no cost at http://www.troll.no + TQt widget libraries, available at no cost at http://www.troll.no Copyright (C) 1996 Bernd Johannes Wuebben wuebben@math.cornell.edu @@ -24,8 +24,8 @@ */ -#ifndef QTCALC_H -#define QTCALC_H +#ifndef TQTCALC_H +#define TQTCALC_H #include using std::queue; @@ -34,28 +34,28 @@ using std::queue; #include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include "dlabel.h" @@ -184,30 +184,31 @@ item_contents *TopTypeStack(item_type rqstd_type); typedef struct _DefStruct{ - QColor forecolor; - QColor backcolor; + TQColor forecolor; + TQColor backcolor; int precision; int fixedprecision; int style; bool fixed; bool beep; - QFont font; + TQFont font; }DefStruct; class Calculator; -class QtCalculator : public QDialog +class TQtCalculator : public TQDialog { Q_OBJECT + TQ_OBJECT public: - QtCalculator( Calculator* _corba, QWidget *parent=0, const char *name=0 ); - ~QtCalculator(); + TQtCalculator( Calculator* _corba, TQWidget *tqparent=0, const char *name=0 ); + ~TQtCalculator(); - void keyPressEvent( QKeyEvent *e ); - void keyReleaseEvent( QKeyEvent *e ); - void closeEvent( QCloseEvent *e ); + void keyPressEvent( TQKeyEvent *e ); + void keyReleaseEvent( TQKeyEvent *e ); + void closeEvent( TQCloseEvent *e ); void readSettings(); void writeSettings(); void set_precision(); @@ -228,7 +229,7 @@ public: void setLabel( const char *_text ); void setValue( double _value ); - void setData( const QRect& _range, const char *_sheet ); + void setData( const TQRect& _range, const char *_sheet ); void useData(); public slots: @@ -240,7 +241,7 @@ public slots: void selection_timed_out(); void clear_buttons(); void clear_status_label(); - void setStatusLabel(const QString&); + void setStatusLabel(const TQString&); void EnterDigit(int data); void EnterDecimal(); void EnterStackFunction(int data); @@ -369,79 +370,79 @@ public: private: void updateGeometry(); - QTimer* selection_timer; - QLabel* statusINVLabel; - QLabel* statusHYPLabel; - QLabel* statusERRORLabel; + TQTimer* selection_timer; + TQLabel* statusINVLabel; + TQLabel* statusHYPLabel; + TQLabel* statusERRORLabel; DLabel* calc_display; - QRadioButton* anglebutton[3]; - QRadioButton* basebutton[4]; - QPushButton* pbhyp; - QPushButton* pbEE; - QPushButton* pbinv; - QPushButton* pbMR; - QPushButton* pbA; - QPushButton* pbSin; - QPushButton* pbplusminus; - QPushButton* pbMplusminus; - QPushButton* pbB; - QPushButton* pbCos; - QPushButton* pbreci; - QPushButton* pbC; - QPushButton* pbTan; - QPushButton* pbfactorial; - QPushButton* pbD; - QPushButton* pblog; - QPushButton* pbsquare; - QPushButton* pbE; - QPushButton* pbln; - QPushButton* pbpower; - QPushButton* pbF; - QPushButton* pbMC; - QPushButton* pbClear; - QPushButton* pbAC; - QPushButton* pb7; - QPushButton* pb8; - QPushButton* pb9; - QPushButton* pbparenopen; - QPushButton* pbparenclose; - QPushButton* pband; - QPushButton* pb4; - QPushButton* pb5; - QPushButton* pb6; - QPushButton* pbX; - QPushButton* pbdivision; - QPushButton* pbor; - QPushButton* pb1; - QPushButton* pb2; - QPushButton* pb3; - QPushButton* pbplus; - QPushButton* pbminus; - QPushButton* pbshift; - QPushButton* pbperiod; - QPushButton* pb0; - QPushButton* pbequal; - QPushButton* pbpercent; - QPushButton* pbnegate; - QPushButton* pbmod; - - QPtrList mNumButtonList; - QPtrList mFunctionButtonList; - QPtrList mHexButtonList; - QPtrList mMemButtonList; - QPtrList mOperationButtonList; + TQRadioButton* anglebutton[3]; + TQRadioButton* basebutton[4]; + TQPushButton* pbhyp; + TQPushButton* pbEE; + TQPushButton* pbinv; + TQPushButton* pbMR; + TQPushButton* pbA; + TQPushButton* pbSin; + TQPushButton* pbplusminus; + TQPushButton* pbMplusminus; + TQPushButton* pbB; + TQPushButton* pbCos; + TQPushButton* pbreci; + TQPushButton* pbC; + TQPushButton* pbTan; + TQPushButton* pbfactorial; + TQPushButton* pbD; + TQPushButton* pblog; + TQPushButton* pbsquare; + TQPushButton* pbE; + TQPushButton* pbln; + TQPushButton* pbpower; + TQPushButton* pbF; + TQPushButton* pbMC; + TQPushButton* pbClear; + TQPushButton* pbAC; + TQPushButton* pb7; + TQPushButton* pb8; + TQPushButton* pb9; + TQPushButton* pbparenopen; + TQPushButton* pbparenclose; + TQPushButton* pband; + TQPushButton* pb4; + TQPushButton* pb5; + TQPushButton* pb6; + TQPushButton* pbX; + TQPushButton* pbdivision; + TQPushButton* pbor; + TQPushButton* pb1; + TQPushButton* pb2; + TQPushButton* pb3; + TQPushButton* pbplus; + TQPushButton* pbminus; + TQPushButton* pbshift; + TQPushButton* pbperiod; + TQPushButton* pb0; + TQPushButton* pbequal; + TQPushButton* pbpercent; + TQPushButton* pbnegate; + TQPushButton* pbmod; + + TQPtrList mNumButtonList; + TQPtrList mFunctionButtonList; + TQPtrList mHexButtonList; + TQPtrList mMemButtonList; + TQPtrList mOperationButtonList; bool key_pressed; KStats stats; - QListBox *paper; - QTimer *status_timer; + TQListBox *paper; + TQTimer *status_timer; - QRect sheet_range; - QString sheet_name; + TQRect sheet_range; + TQString sheet_name; Calculator* corba; - QWidget *mSmallPage; - QWidget *mLargePage; + TQWidget *mSmallPage; + TQWidget *mLargePage; int mInternalSpacing; }; -#endif //QTCLAC_H +#endif //TQTCLAC_H -- cgit v1.2.1