6,59 → 6,12 |
cmp [number_panel],7 |
jne no_file |
|
;<<<<<NEW>>>>>>> |
; <<< New >>> |
cmp [number_menu],1 |
jne no_new |
|
mov eax,80 |
mov ebx,100 |
mov ecx,150 |
mov edx,90 |
mov esi,1 |
call draw_volume_rectangle |
call dialog2_draw |
|
mov eax,177 |
mov ebx,115 |
mov ecx,40 |
mov edx,14 |
mov esi,4 |
call draw_volume_rectangle |
|
mov eax,177 |
mov ebx,115+24 |
mov ecx,40 |
mov edx,14 |
mov esi,4 |
call draw_volume_rectangle |
|
mov eax,175 |
mov ebx,170 |
mov ecx,40 |
mov edx,15 |
mov esi,1 |
call draw_volume_rectangle |
|
mov eax,90 |
mov ebx,118 |
mov ecx,0xffffff |
mov edx,new_text1 |
mov esi,14 |
call print_text |
|
mov eax,90 |
mov ebx,118+24 |
mov ecx,0xffffff |
mov edx,new_text2 |
mov esi,14 |
call print_text |
|
mov eax,185 |
mov ebx,175 |
mov ecx,0xffffff |
mov edx,ok_text |
mov esi,2 |
call print_text |
|
mov edx,1000000000000000000000000000000b+1000 |
mcall SF_DEFINE_BUTTON,<177,40>,<115,14>, |
|
66,15 → 19,19 |
mcall ,,<139,14>, |
|
mov edx,1000000000000000000000000000000b+1002 |
mcall ,<175,40>,<170,15> |
mcall ,,<170,15> |
|
no_activate_space: |
mcall SF_SLEEP, 5 ;fix cpu use 100% |
mcall SF_WAIT_EVENT |
|
cmp eax,1 |
je exit_new |
cmp eax,1 ;redraw window |
jne @f |
call dialog2_draw |
jmp no_activate_space |
@@: |
|
cmp eax,3 |
cmp eax,3 ;press button |
jne no_activate_space |
|
mcall SF_GET_BUTTON |
98,7 → 55,7 |
dec eax |
mov [length_number],eax |
mov eax,string_ |
call value |
call str_to_int |
|
mov [Picture_SizeX],eax |
jmp no_activate_space |
119,7 → 76,7 |
dec eax |
mov [length_number],eax |
mov eax,string_ |
call value |
call str_to_int |
|
mov [Picture_SizeY],eax |
jmp no_activate_space |
130,10 → 87,10 |
|
exit_new: |
mov edx,11100000000000000000000000000000b+1002 |
mcall SF_DEFINE_BUTTON,<175,40>,<170,15> |
mcall SF_DEFINE_BUTTON,<177,40>,<170,15> |
|
mov edx,11100000000000000000000000000000b+1001 |
mcall ,<177,40>,<139,14> |
mcall ,,<139,14> |
|
mov edx,11100000000000000000000000000000b+1000 |
mcall ,,<115,14> |
150,7 → 107,7 |
jmp still |
;--------------------------------------------------------------------- |
no_new: |
;<<<<<OPEN>>>>>>> |
; <<< Open >>> |
cmp [number_menu],2 |
jne no_open |
|
173,7 → 130,7 |
jmp still |
;--------------------------------------------------------------------- |
no_open: |
;<<<<<<<<<<<SAVE>>>>>>>>>>>> |
; <<< Save >>> |
cmp [number_menu],3 |
jne no_save_ |
|
188,7 → 145,7 |
jmp still |
;--------------------------------------------------------------------- |
no_save_: |
;<<<<<<<<<SAVE AS>>>>>>>>>>> |
; <<< Save as >>> |
cmp [number_menu],4 |
jne no_save |
|
211,10 → 168,8 |
pop esi eax |
;--------------------------------------------------------------------- |
mov [OpenDialog_data.type],1 ; save |
stdcall [OpenDialog_Start],OpenDialog_data |
|
push dword OpenDialog_data |
call [OpenDialog_Start] |
|
cmp [OpenDialog_data.status],1 |
jne still |
;--------------------------------------------------------------------- |
251,7 → 206,7 |
; jmp still |
;--------------------------------------------------------------------- |
no_save: |
;<<<<<<EXIT>>>>>>> |
; <<< Exit >>> |
cmp [number_menu],5 |
jne no_exit_program |
|
260,10 → 215,10 |
no_exit_program: |
no_file: |
;|||||||||||||||||||||||||||||EDIT||||||||||||||||||||||||| |
;<<<<<<<<<<UNDO>>>>>>>>>> |
cmp [number_panel],6 |
jne still ;no_edit |
jne no_edit |
|
; <<< Undo >>> |
cmp [number_menu],1 |
jne no_undo |
|
285,8 → 240,30 |
jmp still |
;--------------------------------------------------------------------- |
no_undo: |
;<<<<<<<<<<COPY>>>>>>>>>> |
; <<< Redo >>> |
cmp [number_menu],2 |
jne no_redo |
|
cmp [number_undo],0 |
je no_redo |
|
;rotate bufers +1 |
dec [number_undo] |
mov eax,[PointerToPicture] |
mov ebx,[PointerToCopyPicture] |
mov ecx,[PointerToCopyPicture2] |
mov [PointerToPicture],ecx |
mov [PointerToCopyPicture],eax |
mov [PointerToCopyPicture2],ebx |
|
call MovePictureToWorkScreen |
and [number_panel],0 |
and [number_menu],0 |
jmp still |
;--------------------------------------------------------------------- |
no_redo: |
; <<< Copy >>> |
cmp [number_menu],3 |
jne no_copy |
|
cmp [instrument_used],1 |
385,8 → 362,8 |
jmp still |
;--------------------------------------------------------------------- |
no_copy: |
;<<<<<<<<<<PASTE>>>>>>>> |
cmp [number_menu],3 |
; <<< Paste >>> |
cmp [number_menu],4 |
jne no_paste |
|
cmp [instrument_used],1 |
480,8 → 457,8 |
jmp still |
;--------------------------------------------------------------------- |
no_paste: |
;<<<<<<<<<<CUT>>>>>>>>>> |
cmp [number_menu],4 |
; <<< Cut >>> |
cmp [number_menu],5 |
jne no_cut |
|
cmp [instrument_used],1 |
573,8 → 550,8 |
jmp still |
;--------------------------------------------------------------------- |
no_cut: |
;<<<<<<CLEARE ALL>>>>>> |
cmp [number_menu],5 |
; <<< Cleare all >>> |
cmp [number_menu],6 |
jne no_cleare_all |
|
call cleare_work_arrea |
585,8 → 562,8 |
jmp still |
;--------------------------------------------------------------------- |
no_cleare_all: |
;<<<<<<TO ALLOCATE ALL>>>>>> |
cmp [number_menu],6 |
; <<< To allocate all >>> |
cmp [number_menu],7 |
jne still ;no_to_allocate_all |
|
mov [OldX],1 |
608,6 → 585,19 |
jmp still |
;--------------------------------------------------------------------- |
;no_to_allocate_all: |
;no_edit: |
; jmp still |
no_edit: |
;|||||||||||||||||||||||||INSTRUMENTS|||||||||||||||||||||| |
cmp [number_panel],5 |
jne no_instruments |
; <<< Pencil >>> |
cmp [number_menu],1 |
jne no_pencil |
|
; ... todo ... |
|
and [number_panel],0 |
and [number_menu],0 |
no_pencil: |
no_instruments: |
jmp still |
;--------------------------------------------------------------------- |