]> source.dussan.org Git - tigervnc.git/commitdiff
Implemented Actual Size and Auto Size the vncviewer toolbar
authorgeorge82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519>
Sun, 10 Sep 2006 05:13:45 +0000 (05:13 +0000)
committergeorge82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519>
Sun, 10 Sep 2006 05:13:45 +0000 (05:13 +0000)
buttons.

git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@655 3789f03b-4d11-0410-bbf8-ca57d06f2519

win/vncviewer/CConn.cxx

index 4a5f32da7e7412764d876ac53c9c4eb20b146cbc..b9ea5ad77622f86cb4eac82dfecfae5145523da6 100644 (file)
@@ -53,6 +53,10 @@ const int IDM_CTRL_KEY = ID_CTRL_KEY;
 const int IDM_ALT_KEY = ID_ALT_KEY;
 const int IDM_FILE_TRANSFER = ID_FILE_TRANSFER;
 const int IDM_CONN_SAVE_AS = ID_CONN_SAVE_AS;
+const int IDM_ZOOM_IN = ID_ZOOM_IN;
+const int IDM_ZOOM_OUT = ID_ZOOM_OUT;
+const int IDM_ACTUAL_SIZE = ID_ACTUAL_SIZE;
+const int IDM_AUTO_SIZE = ID_AUTO_SIZE;
 
 
 static IntParameter debugDelay("DebugDelay","Milliseconds to display inverted "
@@ -182,6 +186,23 @@ CConn::sysCommand(WPARAM wParam, LPARAM lParam) {
     options.fullScreen = !window->isFullscreen();
     window->setFullscreen(options.fullScreen);
     return true;
+  case IDM_ZOOM_IN:
+    return true;
+  case IDM_ZOOM_OUT:
+    return true;
+  case IDM_ACTUAL_SIZE:
+    if (options.autoScaling) {
+      options.autoScaling = false;
+      window->setAutoScaling(false);
+    }
+    options.scaling = false;
+    options.scale = 100;
+    window->setDesktopScale(100);
+    return true;
+  case IDM_AUTO_SIZE:
+    options.autoScaling = true;
+    window->setAutoScaling(true);
+    return true;
   case IDM_SHOW_TOOLBAR:
     options.showToolbar = !window->isToolbarEnabled();
     window->setShowToolbar(options.showToolbar);