Mercurial > hg > Members > riono > TreeVNC_ja_comment
changeset 408:bbd844c15ab1
Disable screenChangeSelectionPanel if single display
author | Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 17 Nov 2015 14:02:59 +0900 |
parents | 7cd416d6a152 |
children | 0aab561a8cf4 |
files | .idea/workspace.xml src/viewer_swing/java/com/glavsoft/viewer/swing/SwingViewerWindow.java |
diffstat | 2 files changed, 76 insertions(+), 144 deletions(-) [+] |
line wrap: on
line diff
--- a/.idea/workspace.xml Mon Nov 16 19:05:19 2015 +0900 +++ b/.idea/workspace.xml Tue Nov 17 14:02:59 2015 +0900 @@ -3,10 +3,7 @@ <component name="ChangeListManager"> <list default="true" id="0a04b9e3-21eb-43ee-b441-59e664eecd89" name="Default" comment="settingsChanged"> <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" /> - <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/main/java/jp/ac/u_ryukyu/treevnc/ScreenChangeSelectionPanel.java" afterPath="$PROJECT_DIR$/src/main/java/jp/ac/u_ryukyu/treevnc/ScreenChangeSelectionPanel.java" /> - <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/ConnectionPresenter.java" afterPath="$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/ConnectionPresenter.java" /> <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingViewerWindow.java" afterPath="$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingViewerWindow.java" /> - <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/swing/gui/ConnectionView.java" afterPath="$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/swing/gui/ConnectionView.java" /> </list> <ignored path="TreeVNC.iws" /> <ignored path=".idea/workspace.xml" /> @@ -44,7 +41,7 @@ <file leaf-file-name="Viewer.java" pinned="false" current-in-tab="false"> <entry file="file://$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/Viewer.java"> <provider selected="true" editor-type-id="text-editor"> - <state vertical-scroll-proportion="-14.703704"> + <state vertical-scroll-proportion="0.0"> <caret line="152" column="35" selection-start-line="152" selection-start-column="35" selection-end-line="152" selection-end-column="35" /> <folding /> </state> @@ -56,11 +53,7 @@ <provider selected="true" editor-type-id="text-editor"> <state vertical-scroll-proportion="0.0"> <caret line="41" column="44" selection-start-line="41" selection-start-column="23" selection-end-line="41" selection-end-column="49" /> - <folding> - <element signature="e#0#2710#0" expanded="false" /> - <element signature="e#2684#2685#0" expanded="false" /> - <element signature="e#2705#2706#0" expanded="false" /> - </folding> + <folding /> </state> </provider> </entry> @@ -82,11 +75,7 @@ <provider selected="true" editor-type-id="text-editor"> <state vertical-scroll-proportion="0.0"> <caret line="44" column="28" selection-start-line="44" selection-start-column="28" selection-end-line="44" selection-end-column="28" /> - <folding> - <element signature="imports" expanded="false" /> - <element signature="e#426#427#0" expanded="false" /> - <element signature="e#456#457#0" expanded="false" /> - </folding> + <folding /> </state> </provider> </entry> @@ -106,19 +95,7 @@ <provider selected="true" editor-type-id="text-editor"> <state vertical-scroll-proportion="0.0"> <caret line="257" column="40" selection-start-line="257" selection-start-column="40" selection-end-line="257" selection-end-column="40" /> - <folding> - <element signature="imports" expanded="false" /> - <element signature="e#5490#5491#0" expanded="false" /> - <element signature="e#5515#5516#0" expanded="false" /> - <element signature="e#5587#5588#0" expanded="false" /> - <element signature="e#5637#5638#0" expanded="false" /> - <element signature="e#5705#5706#0" expanded="false" /> - <element signature="e#5753#5754#0" expanded="false" /> - <element signature="e#14383#14384#0" expanded="false" /> - <element signature="e#14433#14434#0" expanded="false" /> - <element signature="e#14671#14672#0" expanded="false" /> - <element signature="e#14715#14716#0" expanded="false" /> - </folding> + <folding /> </state> </provider> </entry> @@ -126,12 +103,9 @@ <file leaf-file-name="ConnectionView.java" pinned="false" current-in-tab="true"> <entry file="file://$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/swing/gui/ConnectionView.java"> <provider selected="true" editor-type-id="text-editor"> - <state vertical-scroll-proportion="2.8520055"> - <caret line="422" column="10" selection-start-line="422" selection-start-column="10" selection-end-line="422" selection-end-column="10" /> - <folding> - <element signature="e#15967#15968#0" expanded="true" /> - <element signature="e#16020#16021#0" expanded="true" /> - </folding> + <state vertical-scroll-proportion="0.9791271"> + <caret line="342" column="5" selection-start-line="342" selection-start-column="5" selection-end-line="342" selection-end-column="5" /> + <folding /> </state> </provider> </entry> @@ -143,7 +117,7 @@ <file leaf-file-name="SwingNetworkConnectionWorker.java" pinned="false" current-in-tab="false"> <entry file="file://$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingNetworkConnectionWorker.java"> <provider selected="true" editor-type-id="text-editor"> - <state vertical-scroll-proportion="-24.037037"> + <state vertical-scroll-proportion="0.0"> <caret line="120" column="0" selection-start-line="120" selection-start-column="0" selection-end-line="120" selection-end-column="0" /> <folding> <element signature="imports" expanded="true" /> @@ -152,12 +126,17 @@ </provider> </entry> </file> - <file leaf-file-name="SwingViewerWindow.java" pinned="false" current-in-tab="true"> + <file leaf-file-name="SwingViewerWindow.java" pinned="false" current-in-tab="false"> <entry file="file://$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingViewerWindow.java"> <provider selected="true" editor-type-id="text-editor"> - <state vertical-scroll-proportion="0.5283541"> - <caret line="922" column="31" selection-start-line="922" selection-start-column="31" selection-end-line="922" selection-end-column="31" /> - <folding /> + <state vertical-scroll-proportion="0.0"> + <caret line="852" column="53" selection-start-line="852" selection-start-column="53" selection-end-line="852" selection-end-column="53" /> + <folding> + <element signature="e#33193#33994#0" expanded="true" /> + <element signature="e#33993#33994#0" expanded="true" /> + <element signature="e#35428#35825#0" expanded="true" /> + <element signature="e#35824#35825#0" expanded="true" /> + </folding> </state> </provider> </entry> @@ -197,7 +176,7 @@ <file leaf-file-name="ConnectionPresenter.java" pinned="false" current-in-tab="false"> <entry file="file://$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/ConnectionPresenter.java"> <provider selected="true" editor-type-id="text-editor"> - <state vertical-scroll-proportion="-10.259259"> + <state vertical-scroll-proportion="0.0"> <caret line="161" column="0" selection-start-line="161" selection-start-column="0" selection-end-line="161" selection-end-column="0" /> <folding> <element signature="e#0#14863#0" expanded="true" /> @@ -239,11 +218,11 @@ </provider> </entry> </file> - <file leaf-file-name="ScreenChangeSelectionPanel.java" pinned="false" current-in-tab="false"> + <file leaf-file-name="ScreenChangeSelectionPanel.java" pinned="false" current-in-tab="true"> <entry file="file://$PROJECT_DIR$/src/main/java/jp/ac/u_ryukyu/treevnc/ScreenChangeSelectionPanel.java"> <provider selected="true" editor-type-id="text-editor"> - <state vertical-scroll-proportion="0.0"> - <caret line="56" column="0" selection-start-line="56" selection-start-column="0" selection-end-line="56" selection-end-column="0" /> + <state vertical-scroll-proportion="0.62998104"> + <caret line="56" column="61" selection-start-line="56" selection-start-column="29" selection-end-line="56" selection-end-column="61" /> <folding /> </state> </provider> @@ -569,8 +548,9 @@ </option> </component> <component name="ProjectFrameBounds"> + <option name="x" value="4" /> <option name="y" value="23" /> - <option name="width" value="1920" /> + <option name="width" value="1916" /> <option name="height" value="1177" /> </component> <component name="ProjectLevelVcsManager" settingsEditedManually="true"> @@ -599,7 +579,7 @@ </navigator> <panes> <pane id="Scratches" /> - <pane id="Scope" /> + <pane id="PackagesPane" /> <pane id="ProjectPane"> <subPane> <PATH> @@ -914,7 +894,7 @@ </PATH> </subPane> </pane> - <pane id="PackagesPane" /> + <pane id="Scope" /> </panes> </component> <component name="PropertiesComponent"> @@ -1333,33 +1313,33 @@ <servers /> </component> <component name="ToolWindowManager"> - <frame x="0" y="23" width="1920" height="1177" extended-state="6" /> + <frame x="4" y="23" width="1916" height="1177" extended-state="6" /> <editor active="true" /> <layout> <window_info id="Palette" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" /> <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" /> - <window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32902032" sideWeight="0.5" order="8" side_tool="false" content_ui="tabs" /> <window_info id="Palette	" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" /> <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" /> <window_info id="Maven Projects" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" /> <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" /> - <window_info id="Run" active="true" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.2809612" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" /> <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32988676" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" /> <window_info id="Designer" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" /> - <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.18072917" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" /> - <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.17447917" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" /> + <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.18058455" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" /> + <window_info id="Hierarchy" active="true" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.1743215" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" /> <window_info id="Gradle" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" /> <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" /> <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" /> <window_info id="UI Designer" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" /> <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" /> - <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.1792976" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" /> <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" /> <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" /> <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" /> <window_info id="Application Servers" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" /> + <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.1792976" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" /> <window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" /> + <window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32902032" sideWeight="0.5" order="8" side_tool="false" content_ui="tabs" /> <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" /> + <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.2809612" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" /> <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32928017" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" /> </layout> <layout-to-restore> @@ -1722,12 +1702,6 @@ <properties /> <option name="timeStamp" value="272" /> </line-breakpoint> - <line-breakpoint enabled="true" type="java-line"> - <url>file://$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingViewerWindow.java</url> - <line>923</line> - <properties /> - <option name="timeStamp" value="274" /> - </line-breakpoint> </breakpoints> <breakpoints-dialog> <breakpoints-dialog /> @@ -1806,7 +1780,6 @@ <provider selected="true" editor-type-id="text-editor"> <state vertical-scroll-proportion="0.0"> <caret line="34" column="15" selection-start-line="34" selection-start-column="15" selection-end-line="34" selection-end-column="15" /> - <folding /> </state> </provider> </entry> @@ -1814,11 +1787,6 @@ <provider selected="true" editor-type-id="text-editor"> <state vertical-scroll-proportion="0.0"> <caret line="70" column="24" selection-start-line="70" selection-start-column="24" selection-end-line="70" selection-end-column="24" /> - <folding> - <element signature="imports" expanded="true" /> - <element signature="e#1388#1389#0" expanded="true" /> - <element signature="e#1421#1422#0" expanded="true" /> - </folding> </state> </provider> </entry> @@ -1834,7 +1802,6 @@ <provider selected="true" editor-type-id="text-editor"> <state vertical-scroll-proportion="0.3329453"> <caret line="211" column="6" selection-start-line="211" selection-start-column="6" selection-end-line="211" selection-end-column="6" /> - <folding /> </state> </provider> </entry> @@ -1849,7 +1816,6 @@ <provider selected="true" editor-type-id="text-editor"> <state vertical-scroll-proportion="0.0"> <caret line="34" column="0" selection-start-line="34" selection-start-column="0" selection-end-line="34" selection-end-column="0" /> - <folding /> </state> </provider> </entry> @@ -1857,7 +1823,6 @@ <provider selected="true" editor-type-id="text-editor"> <state vertical-scroll-proportion="0.3329453"> <caret line="600" column="19" selection-start-line="600" selection-start-column="19" selection-end-line="600" selection-end-column="19" /> - <folding /> </state> </provider> </entry> @@ -1902,7 +1867,6 @@ <provider selected="true" editor-type-id="text-editor"> <state vertical-scroll-proportion="0.3329453"> <caret line="58" column="9" selection-start-line="58" selection-start-column="9" selection-end-line="58" selection-end-column="9" /> - <folding /> </state> </provider> </entry> @@ -1932,10 +1896,6 @@ <provider selected="true" editor-type-id="text-editor"> <state vertical-scroll-proportion="0.0"> <caret line="30" column="0" selection-start-line="30" selection-start-column="0" selection-end-line="30" selection-end-column="0" /> - <folding> - <element signature="e#1571#1572#0" expanded="true" /> - <element signature="e#1598#1599#0" expanded="true" /> - </folding> </state> </provider> </entry> @@ -1943,19 +1903,7 @@ <provider selected="true" editor-type-id="text-editor"> <state vertical-scroll-proportion="0.0"> <caret line="257" column="40" selection-start-line="257" selection-start-column="40" selection-end-line="257" selection-end-column="40" /> - <folding> - <element signature="imports" expanded="false" /> - <element signature="e#5490#5491#0" expanded="false" /> - <element signature="e#5515#5516#0" expanded="false" /> - <element signature="e#5587#5588#0" expanded="false" /> - <element signature="e#5637#5638#0" expanded="false" /> - <element signature="e#5705#5706#0" expanded="false" /> - <element signature="e#5753#5754#0" expanded="false" /> - <element signature="e#14383#14384#0" expanded="false" /> - <element signature="e#14433#14434#0" expanded="false" /> - <element signature="e#14671#14672#0" expanded="false" /> - <element signature="e#14715#14716#0" expanded="false" /> - </folding> + <folding /> </state> </provider> </entry> @@ -1977,11 +1925,7 @@ <provider selected="true" editor-type-id="text-editor"> <state vertical-scroll-proportion="0.0"> <caret line="44" column="28" selection-start-line="44" selection-start-column="28" selection-end-line="44" selection-end-column="28" /> - <folding> - <element signature="imports" expanded="false" /> - <element signature="e#426#427#0" expanded="false" /> - <element signature="e#456#457#0" expanded="false" /> - </folding> + <folding /> </state> </provider> </entry> @@ -1989,11 +1933,7 @@ <provider selected="true" editor-type-id="text-editor"> <state vertical-scroll-proportion="0.0"> <caret line="41" column="44" selection-start-line="41" selection-start-column="23" selection-end-line="41" selection-end-column="49" /> - <folding> - <element signature="e#0#2710#0" expanded="false" /> - <element signature="e#2684#2685#0" expanded="false" /> - <element signature="e#2705#2706#0" expanded="false" /> - </folding> + <folding /> </state> </provider> </entry> @@ -2001,7 +1941,6 @@ <provider selected="true" editor-type-id="text-editor"> <state vertical-scroll-proportion="1.3804554"> <caret line="131" column="9" selection-start-line="131" selection-start-column="9" selection-end-line="131" selection-end-column="9" /> - <folding /> </state> </provider> </entry> @@ -2028,7 +1967,6 @@ <provider selected="true" editor-type-id="text-editor"> <state vertical-scroll-proportion="0.0"> <caret line="52" column="0" selection-start-line="52" selection-start-column="0" selection-end-line="52" selection-end-column="0" /> - <folding /> </state> </provider> </entry> @@ -2046,7 +1984,6 @@ <provider selected="true" editor-type-id="text-editor"> <state vertical-scroll-proportion="0.0"> <caret line="62" column="36" selection-start-line="62" selection-start-column="36" selection-end-line="62" selection-end-column="36" /> - <folding /> </state> </provider> </entry> @@ -2054,7 +1991,6 @@ <provider selected="true" editor-type-id="text-editor"> <state vertical-scroll-proportion="-10.592592"> <caret line="394" column="0" selection-start-line="394" selection-start-column="0" selection-end-line="394" selection-end-column="0" /> - <folding /> </state> </provider> </entry> @@ -2072,9 +2008,6 @@ <provider selected="true" editor-type-id="text-editor"> <state vertical-scroll-proportion="0.28811523"> <caret line="34" column="0" selection-start-line="34" selection-start-column="0" selection-end-line="34" selection-end-column="0" /> - <folding> - <element signature="e#1062#1063#0" expanded="true" /> - </folding> </state> </provider> </entry> @@ -2082,9 +2015,6 @@ <provider selected="true" editor-type-id="text-editor"> <state vertical-scroll-proportion="0.82833135"> <caret line="81" column="0" selection-start-line="81" selection-start-column="0" selection-end-line="81" selection-end-column="0" /> - <folding> - <element signature="e#3048#3049#0" expanded="true" /> - </folding> </state> </provider> </entry> @@ -2112,30 +2042,14 @@ </state> </provider> </entry> - <entry file="file://$PROJECT_DIR$/src/main/java/jp/ac/u_ryukyu/treevnc/ScreenChangeSelectionPanel.java"> - <provider selected="true" editor-type-id="text-editor"> - <state vertical-scroll-proportion="0.0"> - <caret line="56" column="0" selection-start-line="56" selection-start-column="0" selection-end-line="56" selection-end-column="0" /> - <folding /> - </state> - </provider> - </entry> <entry file="file://$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/Viewer.java"> <provider selected="true" editor-type-id="text-editor"> - <state vertical-scroll-proportion="-14.703704"> + <state vertical-scroll-proportion="0.0"> <caret line="152" column="35" selection-start-line="152" selection-start-column="35" selection-end-line="152" selection-end-column="35" /> <folding /> </state> </provider> </entry> - <entry file="file://$PROJECT_DIR$/src/main/java/jp/ac/u_ryukyu/treevnc/ScreenChangeRequest.java"> - <provider selected="true" editor-type-id="text-editor"> - <state vertical-scroll-proportion="0.0"> - <caret line="27" column="0" selection-start-line="27" selection-start-column="0" selection-end-line="27" selection-end-column="0" /> - <folding /> - </state> - </provider> - </entry> <entry file="file://$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/swing/Utils.java"> <provider selected="true" editor-type-id="text-editor"> <state vertical-scroll-proportion="0.0"> @@ -2144,17 +2058,6 @@ </state> </provider> </entry> - <entry file="file://$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/swing/gui/ConnectionView.java"> - <provider selected="true" editor-type-id="text-editor"> - <state vertical-scroll-proportion="2.8520055"> - <caret line="422" column="10" selection-start-line="422" selection-start-column="10" selection-end-line="422" selection-end-column="10" /> - <folding> - <element signature="e#15967#15968#0" expanded="true" /> - <element signature="e#16020#16021#0" expanded="true" /> - </folding> - </state> - </provider> - </entry> <entry file="file://$PROJECT_DIR$/src/main/java/jp/ac/u_ryukyu/treevnc/TreeRFBProto.java"> <provider selected="true" editor-type-id="text-editor"> <state vertical-scroll-proportion="0.0"> @@ -2167,7 +2070,7 @@ </entry> <entry file="file://$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/ConnectionPresenter.java"> <provider selected="true" editor-type-id="text-editor"> - <state vertical-scroll-proportion="-10.259259"> + <state vertical-scroll-proportion="0.0"> <caret line="161" column="0" selection-start-line="161" selection-start-column="0" selection-end-line="161" selection-end-column="0" /> <folding> <element signature="e#0#14863#0" expanded="true" /> @@ -2178,7 +2081,7 @@ </entry> <entry file="file://$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingNetworkConnectionWorker.java"> <provider selected="true" editor-type-id="text-editor"> - <state vertical-scroll-proportion="-24.037037"> + <state vertical-scroll-proportion="0.0"> <caret line="120" column="0" selection-start-line="120" selection-start-column="0" selection-end-line="120" selection-end-column="0" /> <folding> <element signature="imports" expanded="true" /> @@ -2186,10 +2089,39 @@ </state> </provider> </entry> + <entry file="file://$PROJECT_DIR$/src/main/java/jp/ac/u_ryukyu/treevnc/ScreenChangeRequest.java"> + <provider selected="true" editor-type-id="text-editor"> + <state vertical-scroll-proportion="0.0"> + <caret line="27" column="0" selection-start-line="27" selection-start-column="0" selection-end-line="27" selection-end-column="0" /> + <folding /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/swing/gui/ConnectionView.java"> + <provider selected="true" editor-type-id="text-editor"> + <state vertical-scroll-proportion="0.9791271"> + <caret line="342" column="5" selection-start-line="342" selection-start-column="5" selection-end-line="342" selection-end-column="5" /> + <folding /> + </state> + </provider> + </entry> <entry file="file://$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingViewerWindow.java"> <provider selected="true" editor-type-id="text-editor"> - <state vertical-scroll-proportion="0.5283541"> - <caret line="922" column="31" selection-start-line="922" selection-start-column="31" selection-end-line="922" selection-end-column="31" /> + <state vertical-scroll-proportion="0.0"> + <caret line="852" column="53" selection-start-line="852" selection-start-column="53" selection-end-line="852" selection-end-column="53" /> + <folding> + <element signature="e#33193#33994#0" expanded="true" /> + <element signature="e#33993#33994#0" expanded="true" /> + <element signature="e#35428#35825#0" expanded="true" /> + <element signature="e#35824#35825#0" expanded="true" /> + </folding> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/main/java/jp/ac/u_ryukyu/treevnc/ScreenChangeSelectionPanel.java"> + <provider selected="true" editor-type-id="text-editor"> + <state vertical-scroll-proportion="0.62998104"> + <caret line="56" column="61" selection-start-line="56" selection-start-column="29" selection-end-line="56" selection-end-column="61" /> <folding /> </state> </provider>
--- a/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingViewerWindow.java Mon Nov 16 19:05:19 2015 +0900 +++ b/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingViewerWindow.java Tue Nov 17 14:02:59 2015 +0900 @@ -851,16 +851,16 @@ @Override public void actionPerformed(ActionEvent e) { ArrayList<Rectangle> rectangles = viewer.getScreenRectangles(); - ScreenChangeSelectionPanel selectionPanel = new ScreenChangeSelectionPanel(viewerWindow, context); - if (rectangles.size() == 1) { // single Display - selectionPanel.checkBox("single screen"); - } else if (rectangles.size() == 2){ + if (rectangles.size() == 1) { // single display + screenChangeRequest(context, 0); + } else if (rectangles.size() == 2){ // dual display + ScreenChangeSelectionPanel selectionPanel = new ScreenChangeSelectionPanel(viewerWindow, context); selectionPanel.checkBox("all screen"); selectionPanel.checkBox("left screen"); selectionPanel.checkBox("right screen"); + selectionPanel.setButton(); + selectionPanel.visible(); } - selectionPanel.setButton(); - selectionPanel.visible(); } }); @@ -919,7 +919,7 @@ viewer.getRfb().setSingleDisplaySize(singleWidth, singleHeight); if (viewer.getRfb().hasParent()) { String adr = viewer.getRfb().getMyAddress(); - if (portScan(adr, ConnectionParams.DEFAULT_RFB_PORT)) { + if (scanPort(adr, ConnectionParams.DEFAULT_RFB_PORT)) { // -1 means request to reverse direct connection socket short id = viewer.getRfb().isTreeManager()? (short)-1 : viewer.getRfb().getId(); context.sendMessage(new ScreenChangeRequest(adr, ConnectionParams.DEFAULT_VNC_ROOT, id, singleWidth, singleHeight, shareScreenNumber)); @@ -932,7 +932,7 @@ } } - private boolean portScan(String adr, int port) { + private boolean scanPort(String adr, int port) { try { Socket socket = new Socket(adr, port); socket.close();