gui: introduced base class for dialogs.

This commit is contained in:
Martin Preuss
2026-05-08 10:04:18 +02:00
parent c746abcc0f
commit 67e084b856
4 changed files with 241 additions and 30 deletions

View File

@@ -15,7 +15,7 @@
; defines
; CDIALOG data
.equ CDIALOG_OFFS_BEGIN = MAINWINDOW_SIZE
.equ CDIALOG_OFFS_BEGIN = DIALOG_SIZE
.equ CDIALOG_OFFS_CONFIG_LO = CDIALOG_OFFS_BEGIN+0
.equ CDIALOG_OFFS_CONFIG_HI = CDIALOG_OFFS_BEGIN+1
.equ CDIALOG_SIZE = CDIALOG_OFFS_BEGIN+2
@@ -30,7 +30,7 @@
; ---------------------------------------------------------------------------
; @routine CDialog__Init @global
; @routine CDialog_Init @global
;
; @param Y pointer to MainWindow
; @param X pointer to root window
@@ -44,7 +44,7 @@ CDialog_Init:
push r23
ldi r16, 0 ; OPTS
ldi r17, (WIDGET_PACK_FILLED<<WIDGET_PACK_HSELF0_BIT) | (WIDGET_PACK_FILLED<<WIDGET_PACK_VSELF0_BIT) ; PACK
bigcall MainWindow_Init
bigcall Dialog_Init
pop r23
pop r22
brcc CDialog_Init_ret
@@ -73,12 +73,6 @@ CDialog_Init:
pop xl
pop zh
pop zl
brcc CDialog_Init_ret
push yl
push yh
bigcall C03App_CreateBackButton
pop yh
pop yl
CDialog_Init_ret:
ret
; @end