forked from KolibriOS/kolibrios
vncc: use big fonts, hide password, add to menu.dat
git-svn-id: svn://kolibrios.org@7017 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
e055c4a64d
commit
1f2ca38560
@ -109,6 +109,7 @@ Ping /sys/network/ping
|
|||||||
Telnet /sys/network/telnet
|
Telnet /sys/network/telnet
|
||||||
Synergy /sys/network/synergyc
|
Synergy /sys/network/synergyc
|
||||||
DNS lookup /sys/network/nslookup
|
DNS lookup /sys/network/nslookup
|
||||||
|
VNC Viewer /sys/network/vncc
|
||||||
Downloader /sys/network/downloader
|
Downloader /sys/network/downloader
|
||||||
Text-based browser /sys/network/webview
|
Text-based browser /sys/network/webview
|
||||||
#14 **** SERVERS ****
|
#14 **** SERVERS ****
|
||||||
|
@ -111,6 +111,7 @@ Ping /sys/network/ping
|
|||||||
Telnet klient /sys/network/telnet
|
Telnet klient /sys/network/telnet
|
||||||
Synergy klient /sys/network/synergyc
|
Synergy klient /sys/network/synergyc
|
||||||
DNS otsing /sys/network/nslookup
|
DNS otsing /sys/network/nslookup
|
||||||
|
VNC Viewer /sys/network/vncc
|
||||||
Interneti allalaadija /sys/network/downloader
|
Interneti allalaadija /sys/network/downloader
|
||||||
Tekstipõhine brauser /sys/network/webview
|
Tekstipõhine brauser /sys/network/webview
|
||||||
#15 **** OTHER ****
|
#15 **** OTHER ****
|
||||||
|
@ -109,6 +109,7 @@ Client TFTP /sys/network/tftpc
|
|||||||
Ping /sys/network/ping
|
Ping /sys/network/ping
|
||||||
Client Telnet /sys/network/telnet
|
Client Telnet /sys/network/telnet
|
||||||
Client Synergy /sys/network/synergyc
|
Client Synergy /sys/network/synergyc
|
||||||
|
VNC Viewer /sys/network/vncc
|
||||||
DNS lookup /sys/network/nslookup
|
DNS lookup /sys/network/nslookup
|
||||||
Internet downloader /sys/network/downloader
|
Internet downloader /sys/network/downloader
|
||||||
Text-based browser /sys/network/webview
|
Text-based browser /sys/network/webview
|
||||||
|
@ -122,6 +122,7 @@ Ping /sys/network/ping
|
|||||||
Telnet /sys/network/telnet
|
Telnet /sys/network/telnet
|
||||||
Synergy Ş«¨Ąâ /sys/network/synergyc
|
Synergy Ş«¨Ąâ /sys/network/synergyc
|
||||||
DNS lookup /sys/network/nslookup
|
DNS lookup /sys/network/nslookup
|
||||||
|
VNC <20>言凌 /sys/network/vncc
|
||||||
<EFBFBD>âĄŕĄâ § Łŕă§ç¨Ş /sys/network/downloader
|
<EFBFBD>âĄŕĄâ § Łŕă§ç¨Ş /sys/network/downloader
|
||||||
’ĄŞáâ®˘ë© ˇŕ 㧥ŕ /sys/network/webview
|
’ĄŞáâ®˘ë© ˇŕ 㧥ŕ /sys/network/webview
|
||||||
#17 **** <20> §®Ą ****
|
#17 **** <20> §®Ą ****
|
||||||
|
@ -111,6 +111,7 @@ Ping /sys/network/ping
|
|||||||
Cliente Telnet /sys/network/telnet
|
Cliente Telnet /sys/network/telnet
|
||||||
Cliente Synergy /sys/network/synergyc
|
Cliente Synergy /sys/network/synergyc
|
||||||
Resoluci¢n de nombres /sys/network/nslookup
|
Resoluci¢n de nombres /sys/network/nslookup
|
||||||
|
VNC Viewer /sys/network/vncc
|
||||||
Cliente de descarga /sys/network/downloader
|
Cliente de descarga /sys/network/downloader
|
||||||
Navegador (modo texto) /sys/network/webview
|
Navegador (modo texto) /sys/network/webview
|
||||||
#15 **** OTROS ****
|
#15 **** OTROS ****
|
||||||
|
2
programs/network/vncc/build.bat
Normal file
2
programs/network/vncc/build.bat
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
@fasm vncc.asm vncc
|
||||||
|
@pause
|
@ -12,6 +12,9 @@
|
|||||||
;; ;;
|
;; ;;
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
||||||
|
BTN_H equ 22
|
||||||
|
TEXT_ECX equ 00010000b shl 24 + 0
|
||||||
|
|
||||||
draw_gui:
|
draw_gui:
|
||||||
mcall 67, 160, 160, 330, 100 ; resize and move the window
|
mcall 67, 160, 160, 330, 100 ; resize and move the window
|
||||||
mcall 66, 1, 0 ; switch keyboard to ascii mode
|
mcall 66, 1, 0 ; switch keyboard to ascii mode
|
||||||
@ -23,7 +26,7 @@ draw_gui:
|
|||||||
; DRAW WINDOW
|
; DRAW WINDOW
|
||||||
xor eax, eax ; function 0 _logon: define and draw window
|
xor eax, eax ; function 0 _logon: define and draw window
|
||||||
mov ebx, 160 shl 16 + 330 ; [x start]:[x size]
|
mov ebx, 160 shl 16 + 330 ; [x start]:[x size]
|
||||||
mov ecx, 160 shl 16 + 100 ; [y start]:[y size]
|
mov ecx, 160 shl 16 + 130 ; [y start]:[y size]
|
||||||
mov edx, 0x34DDDDDD ; color of work area RRGGBB
|
mov edx, 0x34DDDDDD ; color of work area RRGGBB
|
||||||
mov edi, name ; WINDOW LABEL
|
mov edi, name ; WINDOW LABEL
|
||||||
mcall
|
mcall
|
||||||
@ -31,8 +34,8 @@ draw_gui:
|
|||||||
cmp [status], STATUS_CONNECTING
|
cmp [status], STATUS_CONNECTING
|
||||||
ja .login?
|
ja .login?
|
||||||
|
|
||||||
mov ebx, 25 shl 16 + 24
|
mov ebx, 10 shl 16 + 22
|
||||||
xor ecx, ecx
|
mov ecx, TEXT_ECX
|
||||||
mov edx, serverstr
|
mov edx, serverstr
|
||||||
mov esi, userstr-serverstr
|
mov esi, userstr-serverstr
|
||||||
mcall 4 ; "server" text
|
mcall 4 ; "server" text
|
||||||
@ -43,12 +46,13 @@ draw_gui:
|
|||||||
jne @f
|
jne @f
|
||||||
|
|
||||||
mov ebx, 220 shl 16 + 85
|
mov ebx, 220 shl 16 + 85
|
||||||
mov ecx, 47 shl 16 + 16
|
mov ecx, 57 shl 16 + BTN_H
|
||||||
mov edx, 4
|
mov edx, 4
|
||||||
mov esi, 0xCCCCCC
|
mov esi, 0xCCCCCC
|
||||||
mcall 8 ; Cancel button
|
mcall 8 ; Cancel button
|
||||||
|
|
||||||
mov ebx, 240 shl 16 + 52
|
mov ebx, 240 shl 16 + 62
|
||||||
|
mov ecx, TEXT_ECX
|
||||||
mov edx, cancelstr
|
mov edx, cancelstr
|
||||||
mov esi, okstr-cancelstr
|
mov esi, okstr-cancelstr
|
||||||
mcall 4 ; Cancel button text
|
mcall 4 ; Cancel button text
|
||||||
@ -60,12 +64,13 @@ draw_gui:
|
|||||||
jne .redraw_done
|
jne .redraw_done
|
||||||
|
|
||||||
mov ebx, 220 shl 16 + 85
|
mov ebx, 220 shl 16 + 85
|
||||||
mov ecx, 47 shl 16 + 16
|
mov ecx, 57 shl 16 + BTN_H
|
||||||
mov edx, 2
|
mov edx, 2
|
||||||
mov esi, 0xCCCCCC
|
mov esi, 0xCCCCCC
|
||||||
mcall 8 ; Connect button
|
mcall 8 ; Connect button
|
||||||
|
|
||||||
mov ebx, 240 shl 16 + 52
|
mov ebx, 236 shl 16 + 62
|
||||||
|
mov ecx, TEXT_ECX
|
||||||
mov edx, connectstr
|
mov edx, connectstr
|
||||||
mov esi, loginstr-connectstr
|
mov esi, loginstr-connectstr
|
||||||
mcall 4 ; Connect button text
|
mcall 4 ; Connect button text
|
||||||
@ -76,13 +81,13 @@ draw_gui:
|
|||||||
cmp [status], STATUS_LOGIN
|
cmp [status], STATUS_LOGIN
|
||||||
ja @f
|
ja @f
|
||||||
|
|
||||||
mov ebx, 25 shl 16 + 14
|
mov ebx, 10 shl 16 + 12
|
||||||
xor ecx, ecx
|
mov ecx, TEXT_ECX
|
||||||
mov edx, userstr
|
mov edx, userstr
|
||||||
mov esi, passstr-userstr
|
mov esi, passstr-userstr
|
||||||
mcall 4 ; "user" text
|
mcall 4 ; "user" text
|
||||||
|
|
||||||
add bl, 20
|
add bl, 25
|
||||||
mov edx, passstr
|
mov edx, passstr
|
||||||
mov esi, connectstr-passstr ; "password" text
|
mov esi, connectstr-passstr ; "password" text
|
||||||
mcall
|
mcall
|
||||||
@ -94,23 +99,24 @@ draw_gui:
|
|||||||
jne .redraw_done
|
jne .redraw_done
|
||||||
|
|
||||||
mov ebx, 220 shl 16 + 85
|
mov ebx, 220 shl 16 + 85
|
||||||
mov ecx, 47 shl 16 + 16
|
mov ecx, 67 shl 16 + BTN_H
|
||||||
mov edx, 3
|
mov edx, 3
|
||||||
mov esi, 0xCCCCCC
|
mov esi, 0xCCCCCC
|
||||||
mcall 8 ; Login button
|
mcall 8 ; Login button
|
||||||
|
|
||||||
mov ebx, 240 shl 16 + 52
|
|
||||||
mov edx, loginstr
|
|
||||||
mov esi, cancelstr-loginstr
|
|
||||||
mcall 4 ; Login button text
|
|
||||||
|
|
||||||
mov ebx, 120 shl 16 + 85
|
mov ebx, 120 shl 16 + 85
|
||||||
mov ecx, 47 shl 16 + 16
|
mov ecx, 67 shl 16 + BTN_H
|
||||||
mov edx, 4
|
mov edx, 4
|
||||||
mov esi, 0xCCCCCC
|
mov esi, 0xCCCCCC
|
||||||
mcall 8 ; Cancel button
|
mcall 8 ; Cancel button
|
||||||
|
|
||||||
mov ebx, 140 shl 16 + 52
|
mov ebx, 240 shl 16 + 71
|
||||||
|
mov ecx, TEXT_ECX
|
||||||
|
mov edx, loginstr
|
||||||
|
mov esi, cancelstr-loginstr
|
||||||
|
mcall 4 ; Login button text
|
||||||
|
|
||||||
|
mov ebx, 140 shl 16 + 71
|
||||||
mov edx, cancelstr
|
mov edx, cancelstr
|
||||||
mov esi, okstr-cancelstr
|
mov esi, okstr-cancelstr
|
||||||
mcall 4 ; Cancel button text
|
mcall 4 ; Cancel button text
|
||||||
@ -145,12 +151,13 @@ draw_gui:
|
|||||||
mcall 4 ; print error message to window
|
mcall 4 ; print error message to window
|
||||||
|
|
||||||
mov ebx, 220 shl 16 + 85
|
mov ebx, 220 shl 16 + 85
|
||||||
mov ecx, 47 shl 16 + 16
|
mov ecx, 47 shl 16 + BTN_H
|
||||||
mov edx, 5
|
mov edx, 5
|
||||||
mov esi, 0xCCCCCC
|
mov esi, 0xCCCCCC
|
||||||
mcall 8 ; OK button
|
mcall 8 ; OK button
|
||||||
|
|
||||||
mov ebx, 256 shl 16 + 52
|
mov ebx, 256 shl 16 + 52
|
||||||
|
mov ecx, TEXT_ECX
|
||||||
mov edx, okstr
|
mov edx, okstr
|
||||||
mov esi, okstr_e-okstr
|
mov esi, okstr_e-okstr
|
||||||
mcall 4 ; OK button text
|
mcall 4 ; OK button text
|
||||||
|
@ -490,9 +490,9 @@ deflate_buffer dd 0
|
|||||||
deflate_length dd ?
|
deflate_length dd ?
|
||||||
deflate_str dd ?
|
deflate_str dd ?
|
||||||
|
|
||||||
URLbox edit_box 235, 70, 20, 0xffffff, 0x6f9480, 0, 0, 0, SERVERADDRLEN, serveraddr, mouse_dd, ed_focus, 0, 0
|
URLbox edit_box 235, 70, 20, 0xffffff, 0x6f9480, 0, 0, 0x90000000, SERVERADDRLEN, serveraddr, mouse_dd, ed_focus, 0, 0
|
||||||
USERbox edit_box 215, 90, 10, 0xffffff, 0x6f9480, 0, 0, 0, 127, username, mouse_dd, ed_focus, 0, 0
|
USERbox edit_box 215, 90, 10, 0xffffff, 0x6f9480, 0, 0, 0x90000000, 127, username, mouse_dd, ed_focus, 0, 0
|
||||||
PASSbox edit_box 215, 90, 30, 0xffffff, 0x6f9480, 0, 0, 0, 127, password, mouse_dd, ed_pass, 0, 0
|
PASSbox edit_box 215, 90, 35, 0xffffff, 0x6f9480, 0, 0, 0x10000000, 127, password, mouse_dd, ed_pass, 0, 0
|
||||||
|
|
||||||
serverstr db "server:"
|
serverstr db "server:"
|
||||||
userstr db "username:"
|
userstr db "username:"
|
||||||
|
Loading…
Reference in New Issue
Block a user