summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgeorge82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519>2006-09-09 14:42:20 +0000
committergeorge82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519>2006-09-09 14:42:20 +0000
commit1d3cc6196443c51dac4763607cae47413806ad90 (patch)
tree15c062941e8b9951c1722e9f9c28932e122f6b53
parent660fa1810ebfc0c89bd5eea5ee1a3289c8bf24a5 (diff)
downloadtigervnc-1d3cc6196443c51dac4763607cae47413806ad90.tar.gz
tigervnc-1d3cc6196443c51dac4763607cae47413806ad90.zip
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
-rw-r--r--win/vncviewer/ViewerToolBar.cxx21
-rw-r--r--win/vncviewer/resource.h4
-rw-r--r--win/vncviewer/toolbar.bmpbin1654 -> 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 0a146361..1473fa37 100644
--- a/win/vncviewer/toolbar.bmp
+++ b/win/vncviewer/toolbar.bmp
Binary files differ