diff options
author | enikey <enikey@3789f03b-4d11-0410-bbf8-ca57d06f2519> | 2008-12-24 10:12:11 +0000 |
---|---|---|
committer | enikey <enikey@3789f03b-4d11-0410-bbf8-ca57d06f2519> | 2008-12-24 10:12:11 +0000 |
commit | 49e4a310d8793bc5f23f8c77e4ee25cc55383eed (patch) | |
tree | 75644833f3b5c7aebbd20f3ec64ab007e7c6418b /java/src/com/tightvnc | |
parent | 1b59070d275472b9685154a00af28b91a9ae01cf (diff) | |
download | tigervnc-49e4a310d8793bc5f23f8c77e4ee25cc55383eed.tar.gz tigervnc-49e4a310d8793bc5f23f8c77e4ee25cc55383eed.zip |
[Developement] Add ability to add "Video Ignore" (use "addVideoIgnoreButton" method) button to button panel.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3459 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'java/src/com/tightvnc')
-rw-r--r-- | java/src/com/tightvnc/vncviewer/ButtonPanel.java | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/java/src/com/tightvnc/vncviewer/ButtonPanel.java b/java/src/com/tightvnc/vncviewer/ButtonPanel.java index 422e6e2c..63ad6a15 100644 --- a/java/src/com/tightvnc/vncviewer/ButtonPanel.java +++ b/java/src/com/tightvnc/vncviewer/ButtonPanel.java @@ -39,7 +39,9 @@ class ButtonPanel extends Panel implements ActionListener { Button ctrlAltDelButton; Button refreshButton; Button selectButton; + Button videoIgnoreButton; + final String videoIgnoreLabel = "Video Ignore"; final String selectEnterLabel = "Select Video Area"; final String selectLeaveLabel = "Hide Selection"; @@ -83,6 +85,16 @@ class ButtonPanel extends Panel implements ActionListener { selectButton.addActionListener(this); } + /** + * Add video ignore button to the ButtonPanel. + */ + public void addVideoIgnoreButton() { + videoIgnoreButton = new Button(videoIgnoreLabel); + videoIgnoreButton.setEnabled(false); + add(selectButton); + videoIgnoreButton.addActionListener(this); + } + // // Enable buttons on successful connection. // @@ -144,7 +156,11 @@ class ButtonPanel extends Panel implements ActionListener { } else if (evt.getSource() == clipboardButton) { viewer.clipboard.setVisible(!viewer.clipboard.isVisible()); - + } else if (evt.getSource() == videoIgnoreButton) { + // + // Do something onVideoIgnoreButtonClick event + // ... + // } else if (evt.getSource() == ctrlAltDelButton) { try { final int modifiers = InputEvent.CTRL_MASK | InputEvent.ALT_MASK; |