gui: introduced base class for dialogs.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user