Subversion Repositories Kolibri OS

Rev

Rev 9541 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 9541 Rev 9542
Line 78... Line 78...
78
  include 'draw_utils.inc'
78
  include 'draw_utils.inc'
79
  include 'draw_palitra.inc'
79
  include 'draw_palitra.inc'
Line 80... Line 80...
80
 
80
 
81
 
81
 
82
 
82
 
83
  WIN_W  = 394            ; è¨à¨­  ®ª­ 
83
  WIN_W  = 374            ; è¨à¨­  ®ª­ 
Line 84... Line 84...
84
  WIN_H  = 251            ; ¢ëá®â  ®ª­ 
84
  WIN_H  = 251            ; ¢ëá®â  ®ª­ 
85
  WIN_X  = 250            ; ª®®à¤¨­ â  å ®ª­ 
85
  WIN_X  = 250            ; ª®®à¤¨­ â  å ®ª­ 
86
  WIN_Y  = 190            ; ª®®à¤¨­ â  ã ®ª­ 
86
  WIN_Y  = 190            ; ª®®à¤¨­ â  ã ®ª­ 
Line 87... Line 87...
87
 
87
 
Line 88... Line 88...
88
  Left_Border=4
88
  Left_Border=4
-
 
89
  SliderPanel_W = 110
89
  SliderPanel_W = 110
90
  DRAWY  = 9
Line 90... Line 91...
90
  DRAWY  = 9
91
 
91
 
92
  CELLW  = 11; 11            ; not used yet, but has to be :)
92
  CELLW  = 11; 11            ; not used yet, but has to be :)
93
 
Line 285... Line 286...
285
 
286
 
286
 
287
 
Line 287... Line 288...
287
    call    draw_palitra                  ; ˆ‘“…Œ €‹ˆ’“
288
    call    draw_palitra                  ; ˆ‘“…Œ €‹ˆ’“
Line 288... Line 289...
288
    call    draw_result                   ; ˆ‘“…Œ …‡“‹œ’€’
289
    call    draw_result                   ; ˆ‘“…Œ …‡“‹œ’€’
289
 
290
 
290
    mcall   SF_DEFINE_BUTTON,  , , 0x07+BT_HIDE ; palitra
291
    mcall   SF_DEFINE_BUTTON,  , , 7+BT_HIDE ; palitra
291
 
292
 
292
    add     edx,1++BT_NOFRAME
293
    inc     edx
293
    mcall   , <10,22>, <62,128>           ; ¨á㥬 ­¥¢¨¤¨¬ãî ª­®¯ªã ¯®¤ á« ©¤¥à®¬ red
294
    mcall   , <10,22>, <56,128>           ; ¨á㥬 ­¥¢¨¤¨¬ãî ª­®¯ªã ¯®¤ á« ©¤¥à®¬ red
294
    add     ebx,25*65536                  ; „®¡ ¢«ï¥¬
295
    add     ebx,25*65536                  ; „®¡ ¢«ï¥¬
Line 321... Line 322...
321
 
322
 
322
    ;------------------------------------------------------------------------------------------------+
323
    ;------------------------------------------------------------------------------------------------+
323
    draw_left_panel:                      ; Žâà¨á®¢ª  ¡®ª®¢®© ¯ ­¥«¨  SL97:   á ¬®¬ ¤¥«¥ ¯à ¢®©.
324
    draw_left_panel:                      ; Žâà¨á®¢ª  ¡®ª®¢®© ¯ ­¥«¨  SL97:   á ¬®¬ ¤¥«¥ ¯à ¢®©.
324
    ;.................................................................................................
325
    ;.................................................................................................
325
    ; button_next_colorsheme
326
    ; button_next_colorsheme
Line 326... Line 327...
326
    mcall   SF_DEFINE_BUTTON, , , 12+BT_HIDE
327
    mcall   SF_DEFINE_BUTTON, , , 12+BT_HIDE
327
 
328
 
Line 328... Line 329...
328
    ; palitra button                    ; ID = 14
329
    ; palitra button                    ; ID = 14
329
    mcall , ,(DRAWY+150) shl 16 + 21, 14+BT_HIDE
330
    mcall , ,(DRAWY+150) shl 16 + ICONS+3, 14+BT_HIDE
Line 330... Line 331...
330
 
331
 
331
    ; pipet button                        ; ID = 15
332
    ; pipet button                        ; ID = 15
332
    mcall , , (DRAWY+150) shl 16 + 21, 15+BT_HIDE
333
    mcall , , (DRAWY+150) shl 16 + ICONS+3, 15+BT_HIDE
Line 333... Line 334...
333
 
334
 
334
    mov     ebx,[icons18bg]
335
    mov     ebx,[icons18bg]
335
    add     ebx,18*18*4*53
336
    add     ebx,ICONS*ICONS*4*53
Line 336... Line 337...
336
    mcall   SF_PUT_IMAGE_EXT, ebx, <18,18>, , 32, 0, 0
337
    mcall   SF_PUT_IMAGE_EXT, ebx, , , 32, 0, 0
337
 
338
 
338
    add     ebx,18*18*4*(39-53)
339
    add     ebx,ICONS*ICONS*4*(39-53)
339
    mov     edx,(ICONX+2)*65536+WIN_H-90
340
    mov     edx,(ICONX+2)*65536+WIN_H-90
Line -... Line 341...
-
 
341
    mcall
340
    mcall
342
 
Line -... Line 343...
-
 
343
    mov     ebx,[icons18]
341
 
344
    add     ebx,ICONS*ICONS*4*(53-1)
-
 
345
    sub     edx,40
Line -... Line 346...
-
 
346
    mcall
342
    mov     ebx,[icons18]
347
 
Line 343... Line 348...
343
    add     ebx,18*18*4*(53-1)
348
    stdcall DrawDeepRectangle, ICONX-1, DRAWY-1,   ICONS+5, ICONS+5, [sc.work_graph], [sc.work_graph]
Line 344... Line 349...
344
    sub     edx,40
349
    stdcall DrawDeepRectangle, ICONX,   DRAWY,     ICONS+3, ICONS+3, [sc.work_light], [sc.work_dark]
345
    mcall
350
 
Line 392... Line 397...
392
 
397
 
393
 
398
 
394
    ;------------------------------------------------------------------------------------------------+
399
    ;------------------------------------------------------------------------------------------------+
395
    draw_bottom_panel:                    ; Žâà¨á®¢ª  ­¨¦­¥© ¯ ­¥«¨
400
    draw_bottom_panel:                    ; Žâà¨á®¢ª  ­¨¦­¥© ¯ ­¥«¨
Line 396... Line 401...
396
    ;.................................................................................................
401
    ;.................................................................................................
397
    mcall   SF_DEFINE_BUTTON, ((60+70) shl 16)+90, ((WIN_H-26) shl 16)+16, 14, [sc.work_button]
402
    mcall   SF_DEFINE_BUTTON, <129,90>, , 16, [sc.work_button]
398
 
403
 
Line 399... Line 404...
399
    add     ebx, 100 shl 16
404
    add     ebx, 100 shl 16
400
    add     edx, 2
405
    add     edx, 2
401
    int     0x40
406
    int     0x40
402
 
407
 
Line 403... Line 408...
403
    ; Write string
408
    ; Write string
404
    mov     ecx,[sc.work_text]            ; RGB
409
    mov     ecx,[sc.work_text]            ; RGB
405
    or      ecx, 1 shl 31
-
 
406
    mcall   SF_DRAW_TEXT, (60) shl 16+(WIN_H-21), ,bground
410
    add     ecx, 0x90000000
407
 
411
    mcall   SF_DRAW_TEXT, <35, WIN_H-26>, ,bground
408
    mov     ecx, [sc.work_button_text]
412
 
Line 409... Line 413...
409
    or      ecx, 1 shl 31
413
    mov     ecx, [sc.work_button_text]
410
 
414
    add     ecx, 0x90000000
411
    add     ebx, 90 shl 16
415
    add     ebx, 107 shl 16
Line 412... Line 416...
412
    mov     edx, bground1
416
    mov     edx, bground1
413
    int     0x40
417
    mcall
414
 
418
 
Line 415... Line 419...
415
    add     ebx, 108 shl 16
419
    add     ebx, 113 shl 16
416
    mov     edx, bground2
420
    mov     edx, bground2
417
    int     0x40
421
    mcall
Line 893... Line 897...
893
    hidden      db 'Hidden',0
897
    hidden      db 'Hidden',0
894
;    hex         db '#',0                 ; ¤«ï ¢ë¢®¤  à¥èñ⪨ ª ª ⥪áâ 
898
;    hex         db '#',0                 ; ¤«ï ¢ë¢®¤  à¥èñ⪨ ª ª ⥪áâ 
895
    cname       db 'RGBAx'                ; åà ­¨â à §àï¤ë 梥⮢ (red,green,blue) x-¬¥âª  ª®­æ 
899
    cname       db 'RGBAx'                ; åà ­¨â à §àï¤ë 梥⮢ (red,green,blue) x-¬¥âª  ª®­æ 
896
    larrow      db 0x1A,0
900
    larrow      db 0x1A,0
897
    buff        db '000',0
901
    buff        db '000',0
898
    bground     db 'BACKGROUND',0         ; ¨¬ï ª­®¯ª¨ - 14
902
    bground     db 'Background',0         ; ¨¬ï ª­®¯ª¨ - 14
899
    bground1    db 'Gradient',0           ; ¨¬ï ª­®¯ª¨ - 15
903
    bground1    db 'Gradient',0           ; ¨¬ï ª­®¯ª¨ - 15
900
    bground2    db 'Noisy',0              ; ¨¬ï ª­®¯ª¨ - 16
904
    bground2    db 'Noisy',0              ; ¨¬ï ª­®¯ª¨ - 16
901
    runmode     dd 1                      ; ०¨¬ § ¯ã᪠ (1-normal, 2-hidden, 3-colordialog)
905
    runmode     dd 1                      ; ०¨¬ § ¯ã᪠ (1-normal, 2-hidden, 3-colordialog)
902
    color2      dd 00FFFFFFh              ; åà ­¨â §­ ç¥­¨¥ ¢â®à®£® ¢ë¡à ­­®£® 梥â 
906
    color2      dd 00FFFFFFh              ; åà ­¨â §­ ç¥­¨¥ ¢â®à®£® ¢ë¡à ­­®£® 梥â