mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:48:10 +00:00

This commit adds a basic KeypadValue class which abstracts away Keypad's internal representation in a slightly simpler format. This will allow arithmetic operations in the Calculator to not lose any precision. In cases where losing precision is necessary, an explicit conversion operator to double is provided, as well as an explicit constructor from double.
18 lines
355 B
CMake
18 lines
355 B
CMake
serenity_component(
|
|
Calculator
|
|
RECOMMENDED
|
|
TARGETS Calculator
|
|
)
|
|
|
|
compile_gml(CalculatorWindow.gml CalculatorGML.h calculator_gml)
|
|
set(SOURCES
|
|
main.cpp
|
|
Calculator.cpp
|
|
CalculatorWidget.cpp
|
|
Keypad.cpp
|
|
KeypadValue.cpp
|
|
CalculatorGML.h
|
|
)
|
|
|
|
serenity_app(Calculator ICON app-calculator)
|
|
target_link_libraries(Calculator LibGUI)
|