summaryrefslogtreecommitdiff
path: root/src/math-buttons.c
AgeCommit message (Collapse)AuthorFilesLines
2020-12-16remove unused trunc button from programming modembkma1-3/+0
2020-11-25math-buttons: Remove warnings about format not a string literalrbuj1-8/+6
2020-11-24Remove unused macrosrbuj1-3/+0
2020-04-14Remove -Wshadow warningsrbuj1-4/+4
2020-04-07math-buttons: add space character after inverse trig. functionsJohannes Unruh1-3/+3
2020-03-08Port to GNU MPFR/MPC Librarymbkma1-6/+14
For further information please visit: https://www.mpfr.org/ http://www.multiprecision.org/mpc
2020-01-14Fix typo: 'Avogadro' instead 'Avogrado'Pablo Barciela1-1/+1
2019-07-03Remove trailing whitespacesLaurent Napias1-26/+26
2019-05-07Add unit tooltips to physical constantsmbkma1-11/+12
This adds unit tooltips to the const menu which appear when hovering over a specific constant with the mouse. Changes to be committed: modified: math-buttons.c
2019-05-07mp-equation: add pre-defined physical constantsmbkma1-0/+61
This adds some fundamental physical constants: - Velocity of Light "c₀", 299,792,458 m/s - Magnetic constant, "μ₀", 1.2566370614×10⁻ N/A² - Electric constant, "ε₀", 8.85418782×10⁻¹² s⁴A²/m³kg - Newtonian constant of gravitation, "G", 6.67408×10⁻¹¹ m³/(s²kg) - Planck constant, "h", 6.62607004×10⁻³⁴ m²kg/s - Elementary charge, "e", 1.6021766208(98)×10⁻¹⁹ C - Electron mass, "mₑ", 9.10938356×10⁻³¹ kg - Proton mass, "mₚ", 1.672621898(21)×10⁻²⁷ kg - Avogrado constant, "Nₐ", 6.02214086×10²³ mol⁻¹ They are taken from https://en.wikipedia.org/wiki/Physical_constant#Universal_constants To insert them one would enter the corresponding symbol or use the gui. They are set to a MPNumber from string.
2019-05-04Use gresources for UI filesrbuj1-10/+10
.ui files are combined into a binary resource bundle, and they are marked as compressed, so they will be automatically uncompressed when the resource is used. REF https://developer.gnome.org/gio/stable/GResource.html
2019-04-29math-buttons: Fix cppcheck warning: Identical inner 'return'Pablo Barciela1-1/+2
Fixes cppcheck warning: [src/math-buttons.c:513] -> [src/math-buttons.c:514]: (warning) Identical inner 'return' condition is always true.
2019-04-21math-buttons: avoid shifting signed 64-bit value by 63 bitsPablo Barciela1-1/+1
Fixes cppcheck warning: [src/math-buttons.c:391]: (error) Shifting signed 64-bit value by 63 bits is undefined behaviour
2019-01-29math-buttons: avoid deprecated 'g_type_class_add_private'Pablo Barciela1-4/+2
2018-06-03UI: avoid deprecated GtkButton:use-stockPablo Barciela1-0/+13
2018-05-25replace deprecated gtk_menu_popupraveit651-20/+5
2015-11-21Don't use deprecated gtk_{vh}box and GTK_TYPE_{VH}BOXWolfgang Ulbrich1-1/+3
2013-04-18Add tooltip mentioning keys to shift buttons again.Stefan Tauner1-2/+2
Also, change them in all translations with the help of find and sed. I am not entirely sure if this is correct for RTL languages like arabic, but it does look similar to the other tooltips :) Commands used: find . -name "*.po" -print | xargs sed -i '{N s/msgid "Shift Left"\n\(.*\)"/msgid "Shift Left [<<]"\n\1 [<<]"/g}' find . -name "*.po" -print | xargs sed -i '{N s/msgid "Shift Right"\n\(.*\)"/msgid "Shift Right [>>]"\n\1 [>>]"/g}'
2012-11-24Fixed gsettings.Steve Zesch1-1/+3
2012-11-24Added inverse trig functions.Steve Zesch1-0/+9
2012-11-24Update codebase.Steve Zesch1-654/+210
2012-11-16Added buttons for inverse trig functions.Steve Zesch1-0/+9
2012-11-15Mark a few string as translatable, add translator comment to the onesSteve Zesch1-3/+6
with non obvious meanings. http://git.gnome.org/browse/gcalctool/commit/?h=gnome-2-32&id=91f3718756d752738cc0b50adbef39f23e68b223
2012-07-31fixing address issue of fsfPerberos1-2/+2
2012-04-22Support shifts with keyboardStefan Tauner1-2/+2
This patch also changes the shift operation itself to use MPNumber for the multiplier too. Previously a signed int was used, which led to "interesting" results for bigger numbers. This was hidden because the GUI did not allow shifts with more than 15 places. Signed-off-by: Stefan Tauner <[email protected]>
2011-11-08watPerberos1-38/+41
2011-11-08initialPerberos1-0/+1790