mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 22:47:44 +00:00
Calculator: Add a "Custom" entry to the rounding menu
This entry pop a dialog to ask the user to enter a value. The Calculator will automatically put itself in this mode if you enter a number with more digits in the fractional part than the actual maximum length.
This commit is contained in:
parent
de568f87fd
commit
e3b22c395d
8 changed files with 157 additions and 10 deletions
|
@ -21,7 +21,7 @@ public:
|
|||
Keypad() = default;
|
||||
~Keypad() = default;
|
||||
|
||||
void type_digit(int digit);
|
||||
unsigned type_digit(int digit);
|
||||
void type_decimal_point();
|
||||
void type_backspace();
|
||||
|
||||
|
@ -30,6 +30,7 @@ public:
|
|||
void set_to_0();
|
||||
|
||||
void set_rounding_length(unsigned);
|
||||
unsigned rounding_length() const;
|
||||
|
||||
String to_string() const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue