mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-05 16:14:38 +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.
19 lines
355 B
CMake
19 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)
|