summaryrefslogtreecommitdiffstats
path: root/src/kqalculate.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kqalculate.h')
-rw-r--r--src/kqalculate.h148
1 files changed, 74 insertions, 74 deletions
diff --git a/src/kqalculate.h b/src/kqalculate.h
index fb016e0..2e74f14 100644
--- a/src/kqalculate.h
+++ b/src/kqalculate.h
@@ -21,12 +21,12 @@
#ifndef KQALCULATE_H
#define KQALCULATE_H
-#include <qvariant.h>
+#include <tqvariant.h>
#include <kmainwindow.h>
-#include <qvaluevector.h>
-#include <qlabel.h>
-#include <qpushbutton.h>
-#include <qstylesheet.h>
+#include <tqvaluevector.h>
+#include <tqlabel.h>
+#include <tqpushbutton.h>
+#include <tqstylesheet.h>
#include <ktextbrowser.h>
#include <klistview.h>
#include <kdialogbase.h>
@@ -52,15 +52,15 @@ class QalculateConvertUnitsDialog;
class KAction;
class KRadioAction;
class KToggleAction;
-class QToolBar;
-class QPopupMenu;
+class TQToolBar;
+class TQPopupMenu;
class KPushButton;
class QalculateExpressionEdit;
class QalculateResultDisplay;
-class QFrame;
-class QWidgetStack;
-class QWidget;
-class QComboBox;
+class TQFrame;
+class TQWidgetStack;
+class TQWidget;
+class TQComboBox;
class QalculateHistoryBrowser;
class QalculateConvertNumberBasesDialog;
class QalculatePeriodicTableDialog;
@@ -74,14 +74,14 @@ class QalculatePreferencesDialog;
class QalculateInsertMatrixVectorDialog;
class KSystemTray;
class QalculateParseLabel;
-class QButtonGroup;
-class QRadioButton;
+class TQButtonGroup;
+class TQRadioButton;
class QalculateButton;
-class QVBoxLayout;
+class TQVBoxLayout;
class KSeparator;
class KUniqueApplication;
class KConfig;
-class QListViewItem;
+class TQListViewItem;
class QalculateRPNStackListView;
class KGlobalAccel;
class KKeyButton;
@@ -95,7 +95,7 @@ enum {
};
-class ModeObject : public QObject {
+class ModeObject : public TQObject {
Q_OBJECT
@@ -123,7 +123,7 @@ public:
void setAssumptionsMenu();
void setModeActions();
void execute_expression(bool force = true);
- void setResult(Prefix *prefix = NULL, bool update_history = true, bool update_parse = false, bool force = false, QString transformation = "", size_t stack_index = 0, bool register_moved = false);
+ void setResult(Prefix *prefix = NULL, bool update_history = true, bool update_parse = false, bool force = false, TQString transformation = "", size_t stack_index = 0, bool register_moved = false);
void executeCommand(int command_type);
void result_display_updated();
void result_format_updated();
@@ -131,7 +131,7 @@ public:
void result_prefix_changed(Prefix *prefix = NULL);
void expression_calculation_updated();
void expression_format_updated(bool recalculate = false);
- void display_errors(QString *new_text = NULL, int *inhistory_index = NULL);
+ void display_errors(TQString *new_text = NULL, int *inhistory_index = NULL);
void update_status_text();
void display_function_hint(MathFunction *f, int arg_index = 1);
void clearresult();
@@ -148,7 +148,7 @@ public:
void unit_inserted(Unit *object);
void updateStatusLabelFonts();
void set_unicode_buttons();
- void insertButtonFunction(QString text, bool append_space = true);
+ void insertButtonFunction(TQString text, bool append_space = true);
void insertButtonFunction(MathFunction *f);
const MathStructure *getResultPart(int);
void insertMatrixVector(const MathStructure *m = NULL, bool do_vector = false, bool is_text_struct = false, bool is_result = false);
@@ -156,9 +156,9 @@ public:
void calculateRPN(int op);
void calculateRPN(MathFunction *f);
void RPNStackEnter(Variable *v);
- void RPNRegisterAdded(const QString &text, size_t index = 0);
+ void RPNRegisterAdded(const TQString &text, size_t index = 0);
void RPNRegisterRemoved(size_t index);
- void RPNRegisterChanged(const QString &text, size_t index = 0);
+ void RPNRegisterChanged(const TQString &text, size_t index = 0);
QalculateInsertMatrixVectorDialog *insert_matrix_dialog;
QalculatePrecisionDialog *precisionDialog;
@@ -181,42 +181,42 @@ public:
QalculatePlotDialog *plot_dialog;
QalculateSetBaseDialog *set_base_dialog;
QalculatePreferencesDialog *preferences_dialog;
- QMap <int, Variable*> menu_variables_ids;
- QMap <int, MathFunction*> menu_functions_ids;
- QMap <int, Unit*> menu_units_ids, menu_to_unit_ids;
- QMap <int, Prefix*> menu_units_prefixes_ids, menu_set_prefix_ids;
- QValueVector<int> recent_function_ids;
- QValueVector<int> recent_variable_ids;
- QValueVector<int> recent_unit_ids;
+ TQMap <int, Variable*> menu_variables_ids;
+ TQMap <int, MathFunction*> menu_functions_ids;
+ TQMap <int, Unit*> menu_units_ids, menu_to_unit_ids;
+ TQMap <int, Prefix*> menu_units_prefixes_ids, menu_set_prefix_ids;
+ TQValueVector<int> recent_function_ids;
+ TQValueVector<int> recent_variable_ids;
+ TQValueVector<int> recent_unit_ids;
QalculateRPNStackListView *stackList;
- QVBoxLayout *stackPageButtonsLayout;
+ TQVBoxLayout *stackPageButtonsLayout;
QalculateButton *registerUpButton, *registerDownButton, *deleteRegisterButton, *editRegisterButton, *clearStackButton;
- QPopupMenu *stackMenu;
+ TQPopupMenu *stackMenu;
KUniqueApplication *m_parent;
KSystemTray *trayicon;
QalculateButton *executeButton, *storeButton, *convertButton;
QalculateButton *functionsButton;
- QVBoxLayout *leftButtonsLayout;
+ TQVBoxLayout *leftButtonsLayout;
KSeparator *leftButtonsSeparator;
QalculateExpressionEdit* expressionEdit;
- QLabel *statusLabel_r;
+ TQLabel *statusLabel_r;
QalculateParseLabel *statusLabel_l;
QalculateResultDisplay* resultLabel;
- QWidgetStack* mainStack;
- QFrame *bottomLine;
- QWidget *keypadPage, *historyPage, *stackPage;
- QComboBox* kpNumericCombo, *kpBaseCombo;
- QRadioButton *kpDegreesButton, *kpRadiansButton, *kpGradiansButton, *kpNoAngleUnitButton;
- QButtonGroup *kpAngleGroup;
- QPushButton *kpExact, *kpFraction;
+ TQWidgetStack* mainStack;
+ TQFrame *bottomLine;
+ TQWidget *keypadPage, *historyPage, *stackPage;
+ TQComboBox* kpNumericCombo, *kpBaseCombo;
+ TQRadioButton *kpDegreesButton, *kpRadiansButton, *kpGradiansButton, *kpNoAngleUnitButton;
+ TQButtonGroup *kpAngleGroup;
+ TQPushButton *kpExact, *kpFraction;
QalculateButton *kpSquare, *kpLog, *kpHyp, *kpSqrt, *kpCos, *kpRaise, *kpInv, *kpSin;
QalculateButton *kpTan, *kpLn, *kpFactorial, *kpMod, *kpAns, *kp8, *kp0, *kp7, *kpDel, *kpDot, *kp5, *kpEquals, *kpClear;
QalculateButton *kp3, *kp1, *kp4, *kp9, *kpDivision, *kpExp, *kp6, *kp2, *kpMinus, *kpTimes, *kpPlus;
QalculateHistoryBrowser *historyBrowser;
- QPushButton *historyButton, *keypadButton, *stackButton;
+ TQPushButton *historyButton, *keypadButton, *stackButton;
KMenuBar *menubar;
- QPopupMenu *menu_functions, *menu_variables, *menu_units, *menu_to_unit, *menu_set_prefix, *menu_modes;
+ TQPopupMenu *menu_functions, *menu_variables, *menu_units, *menu_to_unit, *menu_set_prefix, *menu_modes;
KToggleAction *ActionAbbreviateNames, *ActionReadPrecision, *ActionNonZeroDenominators, *ActionWarnAboutDenominatorsAssumedNonZero;
KToggleAction *ActionLimitImplicitMultiplication, *ActionRPNMode, *ActionRPNSyntax, *ActionIndicateInfiniteSeries, *ActionNegativeExponents, *ActionSortMinusLast;
KToggleAction *ActionShowEndingZeroes, *ActionRoundHalfwayNumbersToEven, *ActionEnablePrefixes;
@@ -250,8 +250,8 @@ public:
KGlobalAccel *globalAccel;
- QValueVector<int>::size_type current_history_index;
- QValueVector<ModeObject*> mode_objects;
+ TQValueVector<int>::size_type current_history_index;
+ TQValueVector<ModeObject*> mode_objects;
public slots:
@@ -266,13 +266,13 @@ public slots:
void update_vmenu();
void update_umenus();
void insertVariable(Variable*);
- void insertFunction(MathFunction*, QWidget *parent);
- void applyFunction(MathFunction*, QWidget *parent);
+ void insertFunction(MathFunction*, TQWidget *parent);
+ void applyFunction(MathFunction*, TQWidget *parent);
void onExpressionChanged();
void onErrorTimeout();
bool fetch_exchange_rates(int);
void update_completion();
- void insert_text(QString);
+ void insert_text(TQString);
void aboutToQuit();
void onVariableMenuItemActivated(int);
void onFunctionMenuItemActivated(int);
@@ -449,10 +449,10 @@ public slots:
void deleteRegister();
void editRegister();
void updateRPNIndexes();
- QListViewItem *getRPNRegister(size_t index);
+ TQListViewItem *getRPNRegister(size_t index);
void stackRegisterMoved();
- void stackRegisterSet(QListViewItem*);
- void popupStackMenu(KListView*, QListViewItem*, const QPoint&);
+ void stackRegisterSet(TQListViewItem*);
+ void popupStackMenu(KListView*, TQListViewItem*, const TQPoint&);
void registerSelected();
void editHistoryExpression();
void editHistoryParse();
@@ -464,13 +464,13 @@ protected:
void updateButtonWidths();
void applySetUnknowns(bool okclicked);
bool b_unknowns_changed;
- QValueVector<bool> unknown_changed;
+ TQValueVector<bool> unknown_changed;
MathStructure *mstruct_before_unknowns, *unknowns_mstruct;
- QValueVector<KLineEdit*> unknowns_entries;
+ TQValueVector<KLineEdit*> unknowns_entries;
bool queryClose();
- QString parsed_expression;
- void keyPressEvent(QKeyEvent *e);
- void fontChange(const QFont &old_font);
+ TQString parsed_expression;
+ void keyPressEvent(TQKeyEvent *e);
+ void fontChange(const TQFont &old_font);
void saveProperties(KConfig *cfg);
void readProperties(KConfig *cfg);
@@ -488,48 +488,48 @@ class QalculateHistoryBrowser : public KTextBrowser {
public:
- QalculateHistoryBrowser(QWidget *parent, const char *name);
+ QalculateHistoryBrowser(TQWidget *parent, const char *name);
~QalculateHistoryBrowser();
protected:
- QPopupMenu *createPopupMenu(const QPoint &pos);
+ TQPopupMenu *createPopupMenu(const TQPoint &pos);
};
-class QalculateParseLabel : public QLabel {
+class QalculateParseLabel : public TQLabel {
Q_OBJECT
public:
- QalculateParseLabel(QWidget *parent = 0, const char *name = 0);
+ QalculateParseLabel(TQWidget *parent = 0, const char *name = 0);
virtual ~QalculateParseLabel();
- void setText(QString text, bool break_begin, bool error_color, bool warning_color);
+ void setText(TQString text, bool break_begin, bool error_color, bool warning_color);
protected:
- QString parsetext;
+ TQString parsetext;
bool bb, ec, wc;
- void drawContents(QPainter *p);
+ void drawContents(TQPainter *p);
};
-class QalculateButton : public QPushButton {
+class QalculateButton : public TQPushButton {
Q_OBJECT
public:
- QalculateButton(QWidget *parent = 0, const char *name = 0);
- QalculateButton(const QString &text, QWidget *parent = 0, const char *name = 0);
- QalculateButton(const QIconSet &icon, const QString &text, QWidget *parent = 0, const char *name = 0);
+ QalculateButton(TQWidget *parent = 0, const char *name = 0);
+ QalculateButton(const TQString &text, TQWidget *parent = 0, const char *name = 0);
+ QalculateButton(const TQIconSet &icon, const TQString &text, TQWidget *parent = 0, const char *name = 0);
virtual ~QalculateButton();
void setUseMinThreeCharWidth(bool b);
- void setMarkup(const QString &str);
- QSize sizeHint() const;
+ void setMarkup(const TQString &str);
+ TQSize sizeHint() const;
private:
@@ -537,16 +537,16 @@ private:
};
-class QalculateStyleSheet : public QStyleSheet {
+class QalculateStyleSheet : public TQStyleSheet {
Q_OBJECT
public:
- QalculateStyleSheet(QObject *parent = 0, const char *name = 0);
+ QalculateStyleSheet(TQObject *parent = 0, const char *name = 0);
virtual ~QalculateStyleSheet();
- void scaleFont(QFont &font, int logicalSize) const;
+ void scaleFont(TQFont &font, int logicalSize) const;
};
@@ -556,12 +556,12 @@ class QalculateRPNStackListView : public KListView {
public:
- QalculateRPNStackListView(QWidget *parent = 0, const char *name = 0);
+ QalculateRPNStackListView(TQWidget *parent = 0, const char *name = 0);
virtual ~QalculateRPNStackListView();
protected:
- void keyPressEvent(QKeyEvent *e);
+ void keyPressEvent(TQKeyEvent *e);
};
@@ -576,10 +576,10 @@ class QalculateModeDialog : public KDialogBase {
public:
- QalculateModeDialog(QWidget *parent);
+ QalculateModeDialog(TQWidget *parent);
virtual ~QalculateModeDialog();
- QString modeName();
+ TQString modeName();
const KShortcut &modeShortcut();
public slots: