summaryrefslogtreecommitdiffstats
path: root/kspread/plugins/calculator/kcalc.h
diff options
context:
space:
mode:
Diffstat (limited to 'kspread/plugins/calculator/kcalc.h')
-rw-r--r--kspread/plugins/calculator/kcalc.h207
1 files changed, 104 insertions, 103 deletions
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
@@ -24,8 +24,8 @@
*/
-#ifndef QTCALC_H
-#define QTCALC_H
+#ifndef TQTCALC_H
+#define TQTCALC_H
#include <queue>
using std::queue;
@@ -34,28 +34,28 @@ using std::queue;
#include <stdlib.h>
#include <ctype.h>
-#include <qlistbox.h>
-#include <qclipboard.h>
-#include <qptrlist.h>
-#include <qaccel.h>
-#include <qtabdialog.h>
-#include <qwidget.h>
-#include <qtimer.h>
-#include <qdialog.h>
-#include <qpixmap.h>
-#include <qapplication.h>
-#include <qfont.h>
-#include <qlabel.h>
-#include <qbuttongroup.h>
-#include <qcheckbox.h>
-#include <qframe.h>
-#include <qgroupbox.h>
-#include <qlineedit.h>
-#include <qpushbutton.h>
-#include <qradiobutton.h>
-#include <qtooltip.h>
-#include <qstring.h>
-#include <qrect.h>
+#include <tqlistbox.h>
+#include <tqclipboard.h>
+#include <tqptrlist.h>
+#include <tqaccel.h>
+#include <tqtabdialog.h>
+#include <tqwidget.h>
+#include <tqtimer.h>
+#include <tqdialog.h>
+#include <tqpixmap.h>
+#include <tqapplication.h>
+#include <tqfont.h>
+#include <tqlabel.h>
+#include <tqbuttongroup.h>
+#include <tqcheckbox.h>
+#include <tqframe.h>
+#include <tqgroupbox.h>
+#include <tqlineedit.h>
+#include <tqpushbutton.h>
+#include <tqradiobutton.h>
+#include <tqtooltip.h>
+#include <tqstring.h>
+#include <tqrect.h>
#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<QPushButton> mNumButtonList;
- QPtrList<QPushButton> mFunctionButtonList;
- QPtrList<QPushButton> mHexButtonList;
- QPtrList<QPushButton> mMemButtonList;
- QPtrList<QPushButton> 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<TQPushButton> mNumButtonList;
+ TQPtrList<TQPushButton> mFunctionButtonList;
+ TQPtrList<TQPushButton> mHexButtonList;
+ TQPtrList<TQPushButton> mMemButtonList;
+ TQPtrList<TQPushButton> 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