diff options
author | Peter Åstrand <astrand@cendio.se> | 2004-12-29 11:14:34 +0000 |
---|---|---|
committer | Peter Åstrand <astrand@cendio.se> | 2004-12-29 11:14:34 +0000 |
commit | 81396de089f084f7c436e842a4c956e9f998df1b (patch) | |
tree | 99007618ecf2f63e268aa9204e5bd376d356a2c9 /vncviewer/OptionsDialog.cxx | |
parent | 7489c2f02396fb5071829e3965a6a6cdda6e0101 (diff) | |
download | tigervnc-81396de089f084f7c436e842a4c956e9f998df1b.tar.gz tigervnc-81396de089f084f7c436e842a4c956e9f998df1b.zip |
Make compression and quality level input boxes inactive, if custom compression and jpeg is disabled.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@60 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'vncviewer/OptionsDialog.cxx')
-rw-r--r-- | vncviewer/OptionsDialog.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/vncviewer/OptionsDialog.cxx b/vncviewer/OptionsDialog.cxx index dd7df124..954631fe 100644 --- a/vncviewer/OptionsDialog.cxx +++ b/vncviewer/OptionsDialog.cxx @@ -98,6 +98,8 @@ public: setItemChecked(IDC_ALLOW_JPEG, !dlg->options.noJpeg); setItemInt(IDC_QUALITYLEVEL, dlg->options.qualityLevel); onCommand(IDC_ENCODING_AUTO, 0 /* ? */); // Force enableItem status to refresh + onCommand(IDC_CUSTOM_COMPRESSLEVEL, 0 /* ? */); // Force enableItem status to refresh + onCommand(IDC_ALLOW_JPEG, 0 /* ? */); // Force enableItem status to refresh } virtual bool onOk() { dlg->options.autoSelect = isItemChecked(IDC_ENCODING_AUTO); @@ -135,6 +137,14 @@ public: enableItem(IDC_FORMAT_VERYLOWCOLOUR, ok); return true; } + if (id == IDC_CUSTOM_COMPRESSLEVEL) { + enableItem(IDC_COMPRESSLEVEL, isItemChecked(IDC_CUSTOM_COMPRESSLEVEL)); + return true; + } + if (id == IDC_ALLOW_JPEG) { + enableItem(IDC_QUALITYLEVEL, isItemChecked(IDC_ALLOW_JPEG)); + return true; + } return false; } protected: |