summaryrefslogtreecommitdiff
path: root/src/math-history.h
diff options
context:
space:
mode:
authormbkma <[email protected]>2020-05-31 01:04:31 +0200
committerRobert Antoni Buj Gelonch <[email protected]>2020-07-13 22:25:30 +0200
commitf649f841b919cf2fa5c40f7d8b1bf1dd61300a81 (patch)
tree81457fb376b8be5baf30448eb919d968fe5a5b40 /src/math-history.h
parente6206b2c8a4123be75b1f4a7b811d91136e667e5 (diff)
downloadmate-calc-f649f841b919cf2fa5c40f7d8b1bf1dd61300a81.tar.bz2
mate-calc-f649f841b919cf2fa5c40f7d8b1bf1dd61300a81.tar.xz
Implement navigation through history stack equations using keyboard
Diffstat (limited to 'src/math-history.h')
-rw-r--r--src/math-history.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/math-history.h b/src/math-history.h
index 7c7b079..87dab7a 100644
--- a/src/math-history.h
+++ b/src/math-history.h
@@ -45,6 +45,15 @@ math_history_new(MathEquation *equation);
void
math_history_insert_entry(MathHistory *history, char *equation, MPNumber *answer, int number_base);
+gpointer
+math_history_get_entry_at(MathHistory *history, int index);
+
+void
+math_history_set_current(MathHistory *history, int value);
+
+int
+math_history_get_current(MathHistory *history);
+
void
math_history_clear(MathHistory *history);