Create viewonly mode button on rcw toolbar

Description

  • Create button with eye icon on rcw toolbar to turn viewonly mode on/off
  • Button uses gtk sensitive mode if plugin supports viewonly, insensitive if plugin does not
  • viewonly mode removed as plugin preference
  • Also cleaned up some of the plugin setting structs as they looked horrible in my editor

Related Issue

#2997 (closed)

Motivation and Context

This allows for user to easily turn viewonly mode on and off and see status in toolbar.

How Has This Been Tested?

I tested with VNC and RDP connections. GVNC and SPICE also support viewonly mode but I could not test with those. For other protocols the viewonly mode button should be insensitive.

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

Merge request reports

Loading