diff options
author | Ken Moore <ken@ixsystems.com> | 2016-11-01 12:26:17 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2016-11-01 12:26:17 -0400 |
commit | e5ef2110e9d73a119732a6f6545e328432c842e5 (patch) | |
tree | 616c44537076e77e707f364104b9255bc091a3f1 /src-qt5/desktop-utils/lumina-calculator/mainUI.h | |
parent | Another update to the calculator: (diff) | |
download | lumina-e5ef2110e9d73a119732a6f6545e328432c842e5.tar.gz lumina-e5ef2110e9d73a119732a6f6545e328432c842e5.tar.bz2 lumina-e5ef2110e9d73a119732a6f6545e328432c842e5.zip |
Add in a ton of scientific mathematical functions to the calculator.
Diffstat (limited to 'src-qt5/desktop-utils/lumina-calculator/mainUI.h')
-rw-r--r-- | src-qt5/desktop-utils/lumina-calculator/mainUI.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src-qt5/desktop-utils/lumina-calculator/mainUI.h b/src-qt5/desktop-utils/lumina-calculator/mainUI.h index 9dc28f3c..f05365f3 100644 --- a/src-qt5/desktop-utils/lumina-calculator/mainUI.h +++ b/src-qt5/desktop-utils/lumina-calculator/mainUI.h @@ -24,6 +24,7 @@ public: public slots: void updateIcons(); + void updateMenus(); private slots: void start_calc(); @@ -42,9 +43,9 @@ private slots: void captureButtonAdd(); void captureButtonDivide(); void captureButtonMultiply(); -// void captureButtonEqual(); void captureButtonDecimal(); - void captureButtonPercent(); + + void advMenuTriggered(QAction *act); void insert_history(QListWidgetItem *it); void copy_to_clipboard(QListWidgetItem *it); @@ -54,7 +55,10 @@ private slots: 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); }; |