]> source.dussan.org Git - tigervnc.git/commitdiff
Add comments to stored parameters list
authorPierre Ossman <ossman@cendio.se>
Thu, 9 Dec 2021 15:53:22 +0000 (16:53 +0100)
committerPierre Ossman <ossman@cendio.se>
Thu, 9 Dec 2021 15:53:22 +0000 (16:53 +0100)
Clarify what this list is used for, and organize it so it is easier to
match to the options dialog.

vncviewer/parameters.cxx

index c6e902eae4881435a7b49485270817c26d6a4905..1217e8d49d3b327cc6ee26c867f027125fbe42ae 100644 (file)
@@ -169,15 +169,22 @@ StringParameter via("via", "Gateway to tunnel via", "");
 
 static const char* IDENTIFIER_STRING = "TigerVNC Configuration file Version 1.0";
 
+/*
+ * We only save the sub set of parameters that can be modified from
+ * the graphical user interface
+ */
 static VoidParameter* parameterArray[] = {
+  /* Security */
 #ifdef HAVE_GNUTLS
   &CSecurityTLS::X509CA,
   &CSecurityTLS::X509CRL,
 #endif // HAVE_GNUTLS
   &SecurityClient::secTypes,
-  &emulateMiddleButton,
+  /* Misc. */
   &dotWhenNoCursor,
   &reconnectOnError,
+  &shared,
+  /* Compression */
   &autoSelect,
   &fullColour,
   &lowColourLevel,
@@ -186,13 +193,15 @@ static VoidParameter* parameterArray[] = {
   &compressLevel,
   &noJpeg,
   &qualityLevel,
+  /* Screen */
   &fullScreen,
   &fullScreenMode,
   &fullScreenSelectedMonitors,
   &desktopSize,
   &remoteResize,
+  /* Input */
   &viewOnly,
-  &shared,
+  &emulateMiddleButton,
   &acceptClipboard,
   &sendClipboard,
 #if !defined(WIN32) && !defined(__APPLE__)