Calc+ v1.0 #189

Merged
mxlgv merged 29 commits from calc-plus-v1.0 into main 2025-04-14 19:47:01 +02:00
Owner
  • Bigger fonts
  • System colors
  • Code refactoring to make UI flexible and more readable
  • Move from ISO to IMG
  • Add to main menu, add to desktop instead of Calc, remove from App+
  • Localization to all system languages
  • Source code file is now UTF-8
- Bigger fonts - System colors - Code refactoring to make UI flexible and more readable - Move from ISO to IMG - Add to main menu, add to desktop instead of Calc, remove from App+ - Localization to all system languages - Source code file is now UTF-8
Leency added 1 commit 2025-03-31 22:47:29 +02:00
Clac+ v1.0
Some checks failed
Build system / Check kernel codestyle (pull_request) Successful in 28s
Build system / Build (pull_request) Failing after 35s
3e086bc223
- bigger fonts
- system colors
- code refactoring to make UI flexble
- move from ISO to IMG
Leency changed title from Clac+ v1.0 to Calc+ v1.0 2025-03-31 22:54:11 +02:00
Leency added 1 commit 2025-03-31 22:57:06 +02:00
Update programs/other/calcplus/Tupfile.lua
Some checks failed
Build system / Check kernel codestyle (pull_request) Successful in 26s
Build system / Build (pull_request) Failing after 57s
8d45fd0cbf
fix
mxlgv requested changes 2025-03-31 23:19:43 +02:00
Dismissed
@@ -1,4 +1,4 @@
VERSION equ "0.5"
Owner

Let's add copyright.

Let's add copyright.
Author
Owner

Please add. :3

Please add. :3
Burer marked this conversation as resolved
@@ -1,4 +1,4 @@
VERSION equ "0.5"
; VERSION equ "v1.0"
Owner

Why is it not used?

Why is it not used?
Author
Owner

don't wanna

don't wanna
mxlgv marked this conversation as resolved
@@ -53,2 +59,2 @@
m2m [edb1.focus_border_color], [scn.gui_face]
m2m [edb1.text_color], [scn.gui_text]
m2m [edb1.color], [scn.gui_face]
;m2m [edb1.shift_color], [scn.gui_select]
Owner

Will this be useful in the future? We have Git to track changes

Will this be useful in the future? We have Git to track changes
Author
Owner

Let it be as is for now.

Let it be as is for now.
Burer marked this conversation as resolved
@@ -119,1 +133,4 @@
cmp ah, 250
jne @f
mcall 70, f70_calc
Owner

Let's use constants instead of numbers. They are in the documentation and KOSfunc.inc

Let's use constants instead of numbers. They are in the documentation and KOSfunc.inc
Author
Owner

I'm not in resource anymore to rework this into constants.
I already did a great work on refactoring this shi~ :)
A dozen of constants were added.

I'm not in resource anymore to rework this into constants. I already did a great work on refactoring this shi~ :) A dozen of constants were added.
Burer marked this conversation as resolved
mxlgv added the
PR
Request changes
label 2025-03-31 23:21:14 +02:00
Leency added 1 commit 2025-03-31 23:32:26 +02:00
Update programs/other/calcplus/Tupfile.lua
All checks were successful
Build system / Check kernel codestyle (pull_request) Successful in 32s
Build system / Build (pull_request) Successful in 5m0s
c9b00a71b9
Burer changed title from Calc+ v1.0 to WIP: Calc+ v1.0 2025-04-01 07:11:06 +02:00
Owner

I will make further code refactoring and UI tweaks later today.

I will make further code refactoring and UI tweaks later today.
Burer added 1 commit 2025-04-05 09:12:39 +02:00
[Apps/Calcplus] Code refactoring, localization to Spanish, add copyright info
Some checks failed
Build system / Check kernel codestyle (pull_request) Successful in 39s
Build system / Build (pull_request) Failing after 2m35s
029cb0ea31
Burer added 1 commit 2025-04-05 09:19:44 +02:00
[Apps/Calcplus] Code reorganization and fix to previous
Some checks failed
Build system / Check kernel codestyle (pull_request) Successful in 25s
Build system / Build (pull_request) Failing after 1m11s
901c6c4296
Burer added 1 commit 2025-04-05 09:23:27 +02:00
[Apps/Calcplus] Fix to previous
Some checks failed
Build system / Check kernel codestyle (pull_request) Successful in 27s
Build system / Build (pull_request) Failing after 1m36s
725043f0d4
Burer added 1 commit 2025-04-05 09:27:48 +02:00
[Apps/Calcplus] Fix to previous once again
All checks were successful
Build system / Check kernel codestyle (pull_request) Successful in 27s
Build system / Build (pull_request) Successful in 6m51s
05a076d927
Burer added 1 commit 2025-04-05 10:14:10 +02:00
[Apps/Calcplus] UI tweaks
Some checks failed
Build system / Check kernel codestyle (pull_request) Successful in 30s
Build system / Build (pull_request) Failing after 1m28s
fb3c8683bb
Burer added 1 commit 2025-04-05 10:17:10 +02:00
[Apps/Calcplus] Fix to previous
All checks were successful
Build system / Check kernel codestyle (pull_request) Successful in 29s
Build system / Build (pull_request) Successful in 6m59s
bffa8d6121
Burer added 1 commit 2025-04-05 10:39:03 +02:00
[Apps/Calcplus] UI fixes to previous
All checks were successful
Build system / Check kernel codestyle (pull_request) Successful in 29s
Build system / Build (pull_request) Successful in 6m39s
166008bb77
Burer added 1 commit 2025-04-05 10:58:43 +02:00
[Apps/Calcplus] More UI fixes
All checks were successful
Build system / Check kernel codestyle (pull_request) Successful in 30s
Build system / Build (pull_request) Successful in 7m15s
02491e13e5
Burer added 1 commit 2025-04-05 11:22:14 +02:00
[Apps/Calcplus] Small UI tweaks to previous
Some checks failed
Build system / Check kernel codestyle (pull_request) Successful in 30s
Build system / Build (pull_request) Failing after 1m33s
f374e346ac
Burer added 1 commit 2025-04-05 11:28:46 +02:00
[Apps/Calcplus] Fix to previous
All checks were successful
Build system / Check kernel codestyle (pull_request) Successful in 29s
Build system / Build (pull_request) Successful in 7m13s
2dee43031b
Burer added 1 commit 2025-04-05 11:36:15 +02:00
[Apps/Calcplus] Small UI fixes again
Some checks failed
Build system / Check kernel codestyle (pull_request) Successful in 26s
Build system / Build (pull_request) Has been cancelled
b547e2188c
Burer added 1 commit 2025-04-05 11:40:56 +02:00
[Apps/Calcplus] Fix once again
All checks were successful
Build system / Check kernel codestyle (pull_request) Successful in 39s
Build system / Build (pull_request) Successful in 7m55s
a3c262c501
Burer added 1 commit 2025-04-05 11:48:22 +02:00
[Apps/Calcplus] Fixed localization and UI
All checks were successful
Build system / Check kernel codestyle (pull_request) Successful in 32s
Build system / Build (pull_request) Successful in 7m6s
c1a27074b2
Burer added 1 commit 2025-04-05 12:06:55 +02:00
[Apps/Calcplus] One more fix
All checks were successful
Build system / Check kernel codestyle (pull_request) Successful in 24s
Build system / Build (pull_request) Successful in 7m58s
86edd79af4
Owner

Sorry for commits spam, but I have finally done it.
Refactored code, Spanish localization and properly aligned UI.

image.png
Sorry for commits spam, but I have finally done it. Refactored code, Spanish localization and properly aligned UI. <img width="457" alt="image.png" src="attachments/d9fa78c5-e868-460b-ac8d-220c2c30ffc9">
Burer added
PR
Review required
and removed
PR
Request changes
labels 2025-04-05 12:14:23 +02:00
Burer changed title from WIP: Calc+ v1.0 to Calc+ v1.0 2025-04-05 12:14:30 +02:00
Burer requested review from dunkaist 2025-04-05 12:15:23 +02:00
Burer force-pushed calc-plus-v1.0 from 86edd79af4 to 718a717b9e 2025-04-05 12:50:38 +02:00 Compare
Owner

PS. Since Calc+ now has an updated interface, and since it can call the usual Calc by button, maybe it makes sense to put just Calc+ on the desktop and in the main menu?

PS. Since Calc+ now has an updated interface, and since it can call the usual Calc by button, maybe it makes sense to put just Calc+ on the desktop and in the main menu?
mxlgv requested changes 2025-04-07 13:11:40 +02:00
Dismissed
@@ -667,2 +721,3 @@
memory:
f70_calc:
dd 7
Owner

Use SSF_START_APP

Use `SSF_START_APP`
Burer marked this conversation as resolved
mxlgv added
PR
Request changes
and removed
PR
Review required
labels 2025-04-07 13:11:52 +02:00
mxlgv requested changes 2025-04-07 13:14:28 +02:00
Dismissed
@@ -2,0 +3,4 @@
; Calc+ - Multifunctional calculator
; Copyright (C) 2014-2025 KolibriOS team
;
; Contributor eAndrew - Main code
Owner

Is this really required? We have GIT for this.

Is this really required? We have GIT for this.
Member

Let's standardise headers- to avoid back-and-forth with contributors! 😅

Let's standardise headers- to avoid back-and-forth with contributors! 😅
Owner

I used the header example you provided and just added lines for contributors.
A few lines of comments won't hurt, I suppose.

I used the header example you provided and just added lines for contributors. A few lines of comments won't hurt, I suppose.
mxlgv marked this conversation as resolved
mxlgv requested changes 2025-04-07 13:57:57 +02:00
Dismissed
mxlgv left a comment
Owner

Let's add this program to the desktop instead of calc and to the menu. But we don’t remove calc from the menu. Also check APP+. I think you will need to remove calc+ from there.

Let's add this program to the desktop instead of `calc` and to the menu. But we don’t remove `calc` from the menu. Also check `APP+`. I think you will need to remove `calc+` from there.
Burer added 1 commit 2025-04-13 11:19:04 +02:00
[Apps/Calcplus] Add to desktop and menu, remove from App+
All checks were successful
Build system / Check kernel codestyle (pull_request) Successful in 38s
Build system / Build (pull_request) Successful in 7m21s
e070e40e43
Member

Please double check whether file encodings have been broken, e.g. for es-ES.

Please double check whether file encodings have been broken, e.g. for es-ES.
Burer added 1 commit 2025-04-13 12:06:20 +02:00
[Apps/Calcplus] Fix wrong menu configs
All checks were successful
Build system / Check kernel codestyle (pull_request) Successful in 30s
Build system / Build (pull_request) Successful in 6m36s
33b14c2290
Burer added 1 commit 2025-04-13 13:31:33 +02:00
[Apps/Calcplus] Fixed wrong encoding in RU
All checks were successful
Build system / Check kernel codestyle (pull_request) Successful in 27s
Build system / Build (pull_request) Successful in 6m55s
75c2bb7235
Burer added 1 commit 2025-04-13 18:58:45 +02:00
[Apps/Calcplus] Use SSF name instead of number
All checks were successful
Build system / Check kernel codestyle (pull_request) Successful in 28s
Build system / Build (pull_request) Successful in 6m49s
d3e80d7867
dunkaist reviewed 2025-04-13 20:02:31 +02:00
@@ -238,2 +238,2 @@
name=CALC
path=CALC
name=CALC+
path=/sys/calcplus
Owner

Shouldn't CALC become just CALCPLUS?

Shouldn't CALC become just CALCPLUS?
Burer marked this conversation as resolved
dunkaist reviewed 2025-04-13 20:03:33 +02:00
@@ -3,3 +3,3 @@
00 2D Demos > |@1
00 3D Demos > |@2
00 Gr ficos > |@3
00 Gr<EFBFBD>ficos > |@3
Owner

Was this intentional?

Was this intentional?
Owner

Definitely wasn't, thanks for pointing.

Definitely wasn't, thanks for pointing.
mxlgv marked this conversation as resolved
dunkaist reviewed 2025-04-13 20:16:45 +02:00
@@ -669,0 +725,4 @@
dd 0
dd 0
dd 0
db '/sys/calc', 0
Owner

This initialized data goes after uninitialized data. Move it somewhere before I_END (which literally means Initialized END)

This initialized data goes after uninitialized data. Move it somewhere before I_END (which literally means Initialized END)
Burer marked this conversation as resolved
dunkaist reviewed 2025-04-13 20:30:58 +02:00
@@ -635,0 +676,4 @@
else
engineering_str db "Engineering calc"
engineering_len = 16
Owner

Hardcoding a string length is error prone. You can write 'engineering_len = $ - engineering_str' here. If you prefer macros, you can also use macros sz or lsz from macros.inc. For example, zsea uses lsz.

Hardcoding a string length is error prone. You can write 'engineering_len = $ - engineering_str' here. If you prefer macros, you can also use macros sz or lsz from macros.inc. For example, zsea uses lsz.
Burer marked this conversation as resolved
dunkaist reviewed 2025-04-13 20:33:15 +02:00
@@ -254,2 +288,4 @@
; ====================================================================
ev_mouse:
Owner

Please, remove the leading space here.

Please, remove the leading space here.
Burer marked this conversation as resolved
dunkaist reviewed 2025-04-13 20:34:15 +02:00
@@ -361,0 +375,4 @@
je .err_5
.err_1:
mov [ans.buffer + 0], dword "Div."
Owner

Is the indent meant to be double-wide here?

Is the indent meant to be double-wide here?
Owner

Yes, as each error is a separate logic branch with jump to redraw at the end.

Yes, as each error is a separate logic branch with jump to redraw at the end.
mxlgv marked this conversation as resolved
dunkaist reviewed 2025-04-13 20:35:57 +02:00
@@ -635,0 +607,4 @@
jmp .next_txt
.set_color_to_2_txt:
mov ecx, LIST_ITEM_TEXT1
Owner

Is this doubled indent intentional?

Is this doubled indent intentional?
Owner

Yes, but now I decided to remove it, as both labels aligns to single program flow.

Yes, but now I decided to remove it, as both labels aligns to single program flow.
mxlgv marked this conversation as resolved
Burer added 1 commit 2025-04-14 08:38:32 +02:00
[Apps/Calcplus] Fixed broken encoding, icons paths and small problems in code
Some checks failed
Build system / Check kernel codestyle (pull_request) Successful in 27s
Build system / Build (pull_request) Has been cancelled
e7f340915b
Burer added 1 commit 2025-04-14 08:46:53 +02:00
[Apps/Calcplus] More encoding fixes
All checks were successful
Build system / Check kernel codestyle (pull_request) Successful in 29s
Build system / Build (pull_request) Successful in 7m27s
41fe63b017
mxlgv requested changes 2025-04-14 09:45:01 +02:00
Dismissed
@@ -90,6 +90,7 @@
59 <20><>ΰ ­­ ο <20>« Ά¨ βγΰ  |zkey
#10 **** <20>δ¨α
16 <20> «μ<C2AB>γ«οβ®ΰ |calc
16 Š «ìª+ |calcplus
Owner

Maybe Калькулятор+

Let's write it like this for all languages.

Maybe `Калькулятор+` Let's write it like this for all languages.
Burer marked this conversation as resolved
Burer added 1 commit 2025-04-14 10:02:04 +02:00
[Apps/Calcplus] Small localization fix
Some checks failed
Build system / Check kernel codestyle (pull_request) Successful in 28s
Build system / Build (pull_request) Has been cancelled
1b87804e9b
Burer added 1 commit 2025-04-14 10:08:49 +02:00
[Apps/Calcplus] More menu localization fixes
All checks were successful
Build system / Check kernel codestyle (pull_request) Successful in 28s
Build system / Build (pull_request) Successful in 6m59s
587d887a12
mxlgv requested changes 2025-04-14 11:15:11 +02:00
Dismissed
mxlgv requested changes 2025-04-14 11:22:07 +02:00
Dismissed
@@ -1,2 +1,2 @@
@fasm calcplus.asm calc+
@fasm -dlang=ru_RU calcplus.asm calc+
Owner

Leave it alone or delete the batch file altogether. The program is builded literally by one command

Leave it alone or delete the batch file altogether. The program is builded literally by one command
mxlgv marked this conversation as resolved
@@ -16,0 +64,4 @@
WIN_H = LIST_H + 60
sz_head db "Calc+", 0
btn_clr db ""
Owner

Is this a сyrillic character?

Is this a сyrillic character?
mxlgv marked this conversation as resolved
Burer added 1 commit 2025-04-14 13:45:06 +02:00
[Apps/Calcplus] Final polishing
All checks were successful
Build system / Check kernel codestyle (pull_request) Successful in 29s
Build system / Build (pull_request) Successful in 6m39s
d143611a51
mxlgv approved these changes 2025-04-14 13:50:19 +02:00
Dismissed
mxlgv force-pushed calc-plus-v1.0 from d143611a51 to 781f7b0bbb 2025-04-14 13:51:07 +02:00 Compare
mxlgv dismissed mxlgv’s review 2025-04-14 13:51:09 +02:00
Reason:

New commits pushed, approval review dismissed automatically according to repository settings

mxlgv approved these changes 2025-04-14 13:51:37 +02:00
Dismissed
mxlgv scheduled this pull request to auto merge when all checks succeed 2025-04-14 13:53:04 +02:00
mxlgv added
PR
Review required
and removed
PR
Request changes
labels 2025-04-14 13:57:07 +02:00
dunkaist reviewed 2025-04-14 17:26:26 +02:00
@@ -16,0 +182,4 @@
mov [eax], cl
inc eax
jmp @b
Owner

Please, remove trailing spaces here and below.

Please, remove trailing spaces here and below.
Burer marked this conversation as resolved
dunkaist reviewed 2025-04-14 17:28:23 +02:00
@@ -664,3 +727,3 @@
}
scn system_colors_internal
scn system_colors_internal
Owner

The line defines initialized data. Please, move it above. This way you can decrease app size from 11921 to 4257 bytes.

The line defines initialized data. Please, move it above. This way you can decrease app size from 11921 to 4257 bytes.
Burer marked this conversation as resolved
Burer added 1 commit 2025-04-14 18:17:44 +02:00
[Apps/Calcplus] A little bit more code polishing
Some checks failed
Build system / Check kernel codestyle (pull_request) Successful in 27s
Build system / Build (pull_request) Failing after 3m5s
1508ac302a
Burer dismissed mxlgv’s review 2025-04-14 18:17:44 +02:00
Reason:

New commits pushed, approval review dismissed automatically according to repository settings

Burer added 1 commit 2025-04-14 18:24:53 +02:00
[Apps/Calcplus] Fixed UTF-8 encoding
All checks were successful
Build system / Check kernel codestyle (pull_request) Successful in 30s
Build system / Build (pull_request) Successful in 6m53s
fd13c34289
Burer added 1 commit 2025-04-14 19:17:31 +02:00
[Apps/Calcplus] Final codestyle fixes
All checks were successful
Build system / Check kernel codestyle (pull_request) Successful in 21s
Build system / Build (pull_request) Successful in 6m7s
52ec08e6e4
dunkaist approved these changes 2025-04-14 19:46:56 +02:00
mxlgv merged commit e4cd8a4d74 into main 2025-04-14 19:47:01 +02:00
mxlgv referenced this issue from a commit 2025-04-14 19:47:03 +02:00
Sign in to join this conversation.
No Reviewers
5 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: KolibriOS/kolibrios#189
No description provided.