summaryrefslogtreecommitdiffstats
path: root/src/kqalculate.h
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2016-04-09 20:52:31 +0200
committerSlávek Banko <slavek.banko@axis.cz>2016-04-09 20:52:31 +0200
commitc5f75332bb8fa8d1a0a28037b4cc8f7f71e37f8f (patch)
tree1ec78a7a0c522677ca47ba31aed55edb1e9853d0 /src/kqalculate.h
parent91d2d7482c36e67cb36df9d1dcdbd989911e4ceb (diff)
downloadqalculate-tde-c5f75332bb8fa8d1a0a28037b4cc8f7f71e37f8f.tar.gz
qalculate-tde-c5f75332bb8fa8d1a0a28037b4cc8f7f71e37f8f.zip
Initial TDE conversion
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'src/kqalculate.h')
-rw-r--r--src/kqalculate.h94
1 files changed, 47 insertions, 47 deletions
diff --git a/src/kqalculate.h b/src/kqalculate.h
index 2e74f14..6f1d874 100644
--- a/src/kqalculate.h
+++ b/src/kqalculate.h
@@ -22,15 +22,15 @@
#define KQALCULATE_H
#include <tqvariant.h>
-#include <kmainwindow.h>
+#include <tdemainwindow.h>
#include <tqvaluevector.h>
#include <tqlabel.h>
#include <tqpushbutton.h>
#include <tqstylesheet.h>
#include <ktextbrowser.h>
-#include <klistview.h>
+#include <tdelistview.h>
#include <kdialogbase.h>
-#include <kshortcut.h>
+#include <tdeshortcut.h>
class Prefix;
class QalculatePrecisionDialog;
@@ -49,9 +49,9 @@ class QalculateFunctionsDialog;
class QalculateUnitsDialog;
class QalculateDataSetsDialog;
class QalculateConvertUnitsDialog;
-class KAction;
-class KRadioAction;
-class KToggleAction;
+class TDEAction;
+class TDERadioAction;
+class TDEToggleAction;
class TQToolBar;
class TQPopupMenu;
class KPushButton;
@@ -80,10 +80,10 @@ class QalculateButton;
class TQVBoxLayout;
class KSeparator;
class KUniqueApplication;
-class KConfig;
+class TDEConfig;
class TQListViewItem;
class QalculateRPNStackListView;
-class KGlobalAccel;
+class TDEGlobalAccel;
class KKeyButton;
void *view_proc(void *pipe);
@@ -110,7 +110,7 @@ class ModeObject : public TQObject {
};
-class KQalculate : public KMainWindow {
+class KQalculate : public TDEMainWindow {
Q_OBJECT
@@ -217,38 +217,38 @@ public:
TQPushButton *historyButton, *keypadButton, *stackButton;
KMenuBar *menubar;
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;
- KToggleAction *ActionEnableUseOfAllPrefixes, *ActionEnableDenominatorPrefixes, *ActionPlaceUnitsSeparately;
- KToggleAction *ActionEnableVariables, *ActionEnableFunctions, *ActionEnableUnits, *ActionEnableUnknowns;
- KToggleAction *ActionCalculateVariables, *ActionAllowComplexResult, *ActionAllowInfiniteResult;
- KRadioAction *ActionApproximationAlwaysExact, *ActionApproximationTryExact, *ActionApproximationApproximate;
- KRadioAction *ActionAlgebraicModeSimplify, *ActionAlgebraicModeFactorize, *ActionAlgebraicModeNone;
- KRadioAction *ActionFractionalDisplayDecimal, *ActionFractionalDisplayDecimalTryExact;
- KRadioAction *ActionFractionalDisplayFraction, *ActionFractionalDisplayCombined;
- KRadioAction *ActionNumericalDisplayEngineering, *ActionNumericalDisplayScientific, *ActionNumericalDisplayPurelyScientific, *ActionNumericalDisplaySimple, *ActionNumericalDisplayNormal;
- KRadioAction *ActionNumberBaseBinary, *ActionNumberBaseOctal, *ActionNumberBaseDecimal, *ActionNumberBaseHexadecimal, *ActionNumberBaseOther;
- KRadioAction *ActionNumberBaseSexagesimal, *ActionNumberBaseTimeFormat, *ActionNumberBaseRomanNumerals;
- KRadioAction *ActionAssumptionTypeUnknown, *ActionAssumptionTypeNonMatrix, *ActionAssumptionTypeNumber, *ActionAssumptionTypeComplex, *ActionAssumptionTypeReal;
- KRadioAction *ActionAssumptionTypeRational, *ActionAssumptionTypeInteger, *ActionAssumptionSignUnknown, *ActionAssumptionSignNonZero;
- KRadioAction *ActionAssumptionSignPositive, *ActionAssumptionSignNonNegative, *ActionAssumptionSignNegative;
- KRadioAction *ActionAssumptionSignNonPositive, *ActionAngleUnitDegrees, *ActionAngleUnitRadians, *ActionAngleUnitGradians;
- KRadioAction *ActionAngleUnitNone, *ActionAutoNoConversion, *ActionAutoConvertToBaseUnits, *ActionAutoConvertToBestUnit;
- KAction *ActionSetBase, *ActionPrecision, *ActionDecimals, *ActionSaveModeAs, *ActionDeleteMode, *ActionSaveMode, *ActionQuit;
- KAction *ActionUpdateExchangeRates, *ActionManageVariables, *ActionConvertToUnitExpression, *ActionStoreResult, *ActionClose;
- KAction *ActionConvertNumberBases, *ActionManageFunctions, *ActionConvertToBaseUnits, *ActionConvertToBestUnit;
- KAction *ActionManageUnits, *ActionManageDataSets, *ActionFactorize, *ActionSimplify, *ActionSetUnknowns, *ActionCopyResult;
- KAction *ActionPreferences, *ActionSaveAsImage, *ActionImportCSVFile, *ActionExportCSVFile, *ActionPeriodicTable;
- KAction *ActionPlotFunctionsData, *ActionSaveDefinitions, *ActionNewVariable, *ActionNewMatrix, *ActionNewVector;
- KAction *ActionNewUnknownVariable, *ActionNewFunction, *ActionNewUnit, *ActionNewDataSet;
- KAction *ActionInsertMatrix, *ActionInsertVector;
- KAction *ActionClearHistory;
- KAction *ActionHideSystemTrayIcon, *ActionHide;
- KAction *ActionClearStack, *ActionDeleteRegister, *ActionEditRegister;
- KAction *ActionConfigureGlobalShortcuts;
-
- KGlobalAccel *globalAccel;
+ TDEToggleAction *ActionAbbreviateNames, *ActionReadPrecision, *ActionNonZeroDenominators, *ActionWarnAboutDenominatorsAssumedNonZero;
+ TDEToggleAction *ActionLimitImplicitMultiplication, *ActionRPNMode, *ActionRPNSyntax, *ActionIndicateInfiniteSeries, *ActionNegativeExponents, *ActionSortMinusLast;
+ TDEToggleAction *ActionShowEndingZeroes, *ActionRoundHalfwayNumbersToEven, *ActionEnablePrefixes;
+ TDEToggleAction *ActionEnableUseOfAllPrefixes, *ActionEnableDenominatorPrefixes, *ActionPlaceUnitsSeparately;
+ TDEToggleAction *ActionEnableVariables, *ActionEnableFunctions, *ActionEnableUnits, *ActionEnableUnknowns;
+ TDEToggleAction *ActionCalculateVariables, *ActionAllowComplexResult, *ActionAllowInfiniteResult;
+ TDERadioAction *ActionApproximationAlwaysExact, *ActionApproximationTryExact, *ActionApproximationApproximate;
+ TDERadioAction *ActionAlgebraicModeSimplify, *ActionAlgebraicModeFactorize, *ActionAlgebraicModeNone;
+ TDERadioAction *ActionFractionalDisplayDecimal, *ActionFractionalDisplayDecimalTryExact;
+ TDERadioAction *ActionFractionalDisplayFraction, *ActionFractionalDisplayCombined;
+ TDERadioAction *ActionNumericalDisplayEngineering, *ActionNumericalDisplayScientific, *ActionNumericalDisplayPurelyScientific, *ActionNumericalDisplaySimple, *ActionNumericalDisplayNormal;
+ TDERadioAction *ActionNumberBaseBinary, *ActionNumberBaseOctal, *ActionNumberBaseDecimal, *ActionNumberBaseHexadecimal, *ActionNumberBaseOther;
+ TDERadioAction *ActionNumberBaseSexagesimal, *ActionNumberBaseTimeFormat, *ActionNumberBaseRomanNumerals;
+ TDERadioAction *ActionAssumptionTypeUnknown, *ActionAssumptionTypeNonMatrix, *ActionAssumptionTypeNumber, *ActionAssumptionTypeComplex, *ActionAssumptionTypeReal;
+ TDERadioAction *ActionAssumptionTypeRational, *ActionAssumptionTypeInteger, *ActionAssumptionSignUnknown, *ActionAssumptionSignNonZero;
+ TDERadioAction *ActionAssumptionSignPositive, *ActionAssumptionSignNonNegative, *ActionAssumptionSignNegative;
+ TDERadioAction *ActionAssumptionSignNonPositive, *ActionAngleUnitDegrees, *ActionAngleUnitRadians, *ActionAngleUnitGradians;
+ TDERadioAction *ActionAngleUnitNone, *ActionAutoNoConversion, *ActionAutoConvertToBaseUnits, *ActionAutoConvertToBestUnit;
+ TDEAction *ActionSetBase, *ActionPrecision, *ActionDecimals, *ActionSaveModeAs, *ActionDeleteMode, *ActionSaveMode, *ActionQuit;
+ TDEAction *ActionUpdateExchangeRates, *ActionManageVariables, *ActionConvertToUnitExpression, *ActionStoreResult, *ActionClose;
+ TDEAction *ActionConvertNumberBases, *ActionManageFunctions, *ActionConvertToBaseUnits, *ActionConvertToBestUnit;
+ TDEAction *ActionManageUnits, *ActionManageDataSets, *ActionFactorize, *ActionSimplify, *ActionSetUnknowns, *ActionCopyResult;
+ TDEAction *ActionPreferences, *ActionSaveAsImage, *ActionImportCSVFile, *ActionExportCSVFile, *ActionPeriodicTable;
+ TDEAction *ActionPlotFunctionsData, *ActionSaveDefinitions, *ActionNewVariable, *ActionNewMatrix, *ActionNewVector;
+ TDEAction *ActionNewUnknownVariable, *ActionNewFunction, *ActionNewUnit, *ActionNewDataSet;
+ TDEAction *ActionInsertMatrix, *ActionInsertVector;
+ TDEAction *ActionClearHistory;
+ TDEAction *ActionHideSystemTrayIcon, *ActionHide;
+ TDEAction *ActionClearStack, *ActionDeleteRegister, *ActionEditRegister;
+ TDEAction *ActionConfigureGlobalShortcuts;
+
+ TDEGlobalAccel *globalAccel;
TQValueVector<int>::size_type current_history_index;
TQValueVector<ModeObject*> mode_objects;
@@ -452,7 +452,7 @@ public slots:
TQListViewItem *getRPNRegister(size_t index);
void stackRegisterMoved();
void stackRegisterSet(TQListViewItem*);
- void popupStackMenu(KListView*, TQListViewItem*, const TQPoint&);
+ void popupStackMenu(TDEListView*, TQListViewItem*, const TQPoint&);
void registerSelected();
void editHistoryExpression();
void editHistoryParse();
@@ -471,8 +471,8 @@ protected:
TQString parsed_expression;
void keyPressEvent(TQKeyEvent *e);
void fontChange(const TQFont &old_font);
- void saveProperties(KConfig *cfg);
- void readProperties(KConfig *cfg);
+ void saveProperties(TDEConfig *cfg);
+ void readProperties(TDEConfig *cfg);
private:
@@ -550,7 +550,7 @@ public:
};
-class QalculateRPNStackListView : public KListView {
+class QalculateRPNStackListView : public TDEListView {
Q_OBJECT
@@ -580,12 +580,12 @@ class QalculateModeDialog : public KDialogBase {
virtual ~QalculateModeDialog();
TQString modeName();
- const KShortcut &modeShortcut();
+ const TDEShortcut &modeShortcut();
public slots:
void slotOk();
- void updateShortcut(const KShortcut&);
+ void updateShortcut(const TDEShortcut&);
void modeSelected(int);
};