From 1d3cc6196443c51dac4763607cae47413806ad90 Mon Sep 17 00:00:00 2001 From: george82 Date: Sat, 9 Sep 2006 14:42:20 +0000 Subject: [PATCH] Added the new buttons to the vncviewer toolbar: zoom in, zoom out, actual size, auto size. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@653 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- win/vncviewer/ViewerToolBar.cxx | 21 +++++++++++++-------- win/vncviewer/resource.h | 4 ++++ win/vncviewer/toolbar.bmp | Bin 1654 -> 2166 bytes 3 files changed, 17 insertions(+), 8 deletions(-) diff --git a/win/vncviewer/ViewerToolBar.cxx b/win/vncviewer/ViewerToolBar.cxx index 8ed795ee..adc6f07e 100644 --- a/win/vncviewer/ViewerToolBar.cxx +++ b/win/vncviewer/ViewerToolBar.cxx @@ -34,16 +34,21 @@ void ViewerToolBar::create(HWND parentHwnd) { addButton(2, ID_FULLSCREEN); addButton(3, ID_REQUEST_REFRESH); addButton(0, 0, TBSTATE_ENABLED, TBSTYLE_SEP); - addButton(4, ID_SEND_CAD); - addButton(5, ID_SEND_CTLESC); - addButton(6, ID_CTRL_KEY); - addButton(7, ID_ALT_KEY); + addButton(4, ID_ZOOM_IN); + addButton(5, ID_ZOOM_OUT); + addButton(6, ID_ACTUAL_SIZE); + addButton(7, ID_AUTO_SIZE); addButton(0, 0, TBSTATE_ENABLED, TBSTYLE_SEP); - addButton(8, ID_FILE_TRANSFER); + addButton(8, ID_SEND_CAD); + addButton(9, ID_SEND_CTLESC); + addButton(10, ID_CTRL_KEY); + addButton(11, ID_ALT_KEY); addButton(0, 0, TBSTATE_ENABLED, TBSTYLE_SEP); - addButton(9, ID_NEW_CONNECTION); - addButton(10, ID_CONN_SAVE_AS); - addButton(11, ID_CLOSE); + addButton(12, ID_FILE_TRANSFER); + addButton(0, 0, TBSTATE_ENABLED, TBSTYLE_SEP); + addButton(13, ID_NEW_CONNECTION); + addButton(14, ID_CONN_SAVE_AS); + addButton(15, ID_CLOSE); // Resize the toolbar window autoSize(); diff --git a/win/vncviewer/resource.h b/win/vncviewer/resource.h index 7fb32fe3..0016b74d 100644 --- a/win/vncviewer/resource.h +++ b/win/vncviewer/resource.h @@ -138,6 +138,10 @@ #define ID_SEND_CTLESC 40014 #define ID_CONN_SAVE_AS 40015 #define ID_FILE_TRANSFER 40016 +#define ID_ZOOM_IN 40017 +#define ID_ZOOM_OUT 40018 +#define ID_ACTUAL_SIZE 40019 +#define ID_AUTO_SIZE 40020 #define IDM_FTCOPY 40022 #define IDM_FTRENAME 40023 #define IDM_FTDELETE 40024 diff --git a/win/vncviewer/toolbar.bmp b/win/vncviewer/toolbar.bmp index 0a14636197b3311dc45205a987eff7a9a959fbbd..1473fa3733a4566771d1d82ff99b2dba107fe9c0 100644 GIT binary patch delta 584 zcmaKpu};G<6h$4{QcDGqEF@*X87jdS@B!?sncEJ`&JufbnBpysEb$!`Lw9~6pOP?g zU*fhb#%eKotZX`hx%jdfBvBCP4& zAEf_!RtY**O1doAKGGzc)A?6{69V>Eg|+%B+BOAzn-A2RYPtG@3`K)J4z&82&ptW#YZVJy6BV@R!t zM3huYCbCkc4&5gpOvb~ccesmD0y`a@y2(b=Q6$LS>s+AXVQ+3BE}Q;iM32L)I{>=4 z5}txWOtX!+^tK^wFa;P2XPEFxAt4WnJ0_oYwp}7*LMUt!3LApI?!JSh+1%vnNjMmYW>Lp#T7SydD++ -- 2.39.5