aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-calculator/mainUI.h
diff options
context:
space:
mode:
authorWeblate <noreply@weblate.org>2016-12-14 21:54:31 +0000
committerWeblate <noreply@weblate.org>2016-12-14 21:54:31 +0000
commitb965af1625a4296f8ff6d3a1663cae23b73d334f (patch)
tree459685dd1da8c75f67772762aa062d80dfc148f0 /src-qt5/desktop-utils/lumina-calculator/mainUI.h
parentTranslated using Weblate (lumina_DESKTOP@fr (generated)) (diff)
parentMerge branch 'master' of github.com:trueos/lumina (diff)
downloadlumina-b965af1625a4296f8ff6d3a1663cae23b73d334f.tar.gz
lumina-b965af1625a4296f8ff6d3a1663cae23b73d334f.tar.bz2
lumina-b965af1625a4296f8ff6d3a1663cae23b73d334f.zip
Merge branch 'master' of github.com:trueos/lumina
Diffstat (limited to 'src-qt5/desktop-utils/lumina-calculator/mainUI.h')
-rw-r--r--src-qt5/desktop-utils/lumina-calculator/mainUI.h49
1 files changed, 32 insertions, 17 deletions
diff --git a/src-qt5/desktop-utils/lumina-calculator/mainUI.h b/src-qt5/desktop-utils/lumina-calculator/mainUI.h
index 0d99c83a..f05365f3 100644
--- a/src-qt5/desktop-utils/lumina-calculator/mainUI.h
+++ b/src-qt5/desktop-utils/lumina-calculator/mainUI.h
@@ -10,6 +10,7 @@
#include <QMainWindow>
#include <QString>
#include <QChar>
+#include <QListWidgetItem>
namespace Ui{
class mainUI;
@@ -21,30 +22,44 @@ public:
mainUI();
~mainUI();
+public slots:
+ void updateIcons();
+ void updateMenus();
+
private slots:
void start_calc();
- void clear_calc();
- void captureButton1();
- void captureButton2();
- void captureButton3();
- void captureButton4();
- void captureButton5();
- void captureButton6();
- void captureButton7();
- void captureButton8();
- void captureButton9();
- void captureButton0();
- void captureButtonSubtract();
- void captureButtonAdd();
- void captureButtonDivide();
- void captureButtonMultiply();
-// void captureButtonEqual();
- void captureButtonDecimal();
+ void clear_calc();
+ void captureButton1();
+ void captureButton2();
+ void captureButton3();
+ void captureButton4();
+ void captureButton5();
+ void captureButton6();
+ void captureButton7();
+ void captureButton8();
+ void captureButton9();
+ void captureButton0();
+ void captureButtonSubtract();
+ void captureButtonAdd();
+ void captureButtonDivide();
+ void captureButtonMultiply();
+ void captureButtonDecimal();
+
+ void advMenuTriggered(QAction *act);
+ void insert_history(QListWidgetItem *it);
+ void copy_to_clipboard(QListWidgetItem *it);
+ void checkInput(const QString&);
+
+ void saveHistory();
private:
Ui::mainUI *ui;
+ QMenu *advMenu;
+
double performOperation(double LHS, double RHS, QChar symbol);
+ double performSciOperation(QString func, double arg);
double strToNumber(QString str); //this is highly-recursive
+ QString getHistory(int number = -1);
};
#endif
bgstack15