[Ttssh2-commit] [5224] 「重ねて表示」「左右に並べて表示」「上下に並べて表示」を Window メニューに追加した。

svnno****@sourc***** svnno****@sourc*****
2013年 5月 2日 (木) 15:37:10 JST


Revision: 5224
          http://sourceforge.jp/projects/ttssh2/scm/svn/commits/5224
Author:   yutakapon
Date:     2013-05-02 15:37:09 +0900 (Thu, 02 May 2013)
Log Message:
-----------
「重ねて表示」「左右に並べて表示」「上下に並べて表示」を Window メニューに追加した。

Modified Paths:
--------------
    trunk/doc/en/html/reference/keycode.txt
    trunk/doc/ja/html/reference/keycode.txt
    trunk/teraterm/common/tttypes.h
    trunk/teraterm/teraterm/vtwin.cpp
    trunk/teraterm/teraterm/vtwin.h
    trunk/teraterm/ttpcmn/ttcmn.c

-------------- next part --------------
Modified: trunk/doc/en/html/reference/keycode.txt
===================================================================
--- trunk/doc/en/html/reference/keycode.txt	2013-05-02 05:37:15 UTC (rev 5223)
+++ trunk/doc/en/html/reference/keycode.txt	2013-05-02 06:37:09 UTC (rev 5224)
@@ -432,6 +432,9 @@
 [Window] Window                     50810
 [Window] Minimize All               50811
 [Window] Restore All                50812
+[Window] Cascade                    50813
+[Window] Stacked                    50814
+[Window] Side by Side               50815
 [Help] Index                        50910
 [Help] About Tera Term              50990
 

Modified: trunk/doc/ja/html/reference/keycode.txt
===================================================================
--- trunk/doc/ja/html/reference/keycode.txt	2013-05-02 05:37:15 UTC (rev 5223)
+++ trunk/doc/ja/html/reference/keycode.txt	2013-05-02 06:37:09 UTC (rev 5224)
@@ -442,6 +442,9 @@
 [Window] Window                     50810
 [Window] Minimize All               50811
 [Window] Restore All                50812
+[Window] Cascade                    50813
+[Window] Stacked                    50814
+[Window] Side by Side               50815
 [Help] Index                        50910
 [Help] About Tera Term              50990
 

Modified: trunk/teraterm/common/tttypes.h
===================================================================
--- trunk/teraterm/common/tttypes.h	2013-05-02 05:37:15 UTC (rev 5223)
+++ trunk/teraterm/common/tttypes.h	2013-05-02 06:37:09 UTC (rev 5224)
@@ -985,6 +985,9 @@
 #define ID_WINDOW_WINDOW       50810
 #define ID_WINDOW_MINIMIZEALL  50811
 #define ID_WINDOW_RESTOREALL   50812
+#define ID_WINDOW_CASCADEALL   50813
+#define ID_WINDOW_STACKED      50814
+#define ID_WINDOW_SIDEBYSIDE   50815
 #define ID_TEKWINDOW_WINDOW    51810
 
 #define ID_TRANSFER      9 // the position on [File] menu

Modified: trunk/teraterm/teraterm/vtwin.cpp
===================================================================
--- trunk/teraterm/teraterm/vtwin.cpp	2013-05-02 05:37:15 UTC (rev 5223)
+++ trunk/teraterm/teraterm/vtwin.cpp	2013-05-02 06:37:09 UTC (rev 5224)
@@ -206,6 +206,9 @@
 	ON_COMMAND(ID_CONTROL_SHOW_MACRO, OnShowMacroWindow)
 	ON_COMMAND(ID_WINDOW_WINDOW, OnWindowWindow)
 	ON_COMMAND(ID_WINDOW_MINIMIZEALL, OnWindowMinimizeAll)
+	ON_COMMAND(ID_WINDOW_CASCADEALL, OnWindowCascade)
+	ON_COMMAND(ID_WINDOW_STACKED, OnWindowStacked)
+	ON_COMMAND(ID_WINDOW_SIDEBYSIDE, OnWindowSidebySide)
 	ON_COMMAND(ID_WINDOW_RESTOREALL, OnWindowRestoreAll)
 	ON_COMMAND(ID_HELP_INDEX2, OnHelpIndex)
 	ON_COMMAND(ID_HELP_ABOUT, OnHelpAbout)
@@ -5317,6 +5320,21 @@
 	ShowAllWin(SW_MINIMIZE);
 }
 
+void CVTWindow::OnWindowCascade()
+{
+	ShowAllWinCascade(HVTWin);
+}
+
+void CVTWindow::OnWindowStacked()
+{
+	ShowAllWinStacked(HVTWin);
+}
+
+void CVTWindow::OnWindowSidebySide()
+{
+	ShowAllWinSidebySide(HVTWin);
+}
+
 void CVTWindow::OnWindowRestoreAll()
 {
 	ShowAllWin(SW_RESTORE);

Modified: trunk/teraterm/teraterm/vtwin.h
===================================================================
--- trunk/teraterm/teraterm/vtwin.h	2013-05-02 05:37:15 UTC (rev 5223)
+++ trunk/teraterm/teraterm/vtwin.h	2013-05-02 06:37:09 UTC (rev 5224)
@@ -175,6 +175,9 @@
 	afx_msg void OnShowMacroWindow();
 	afx_msg void OnWindowWindow();
 	afx_msg void OnWindowMinimizeAll();
+	afx_msg void OnWindowCascade();
+	afx_msg void OnWindowStacked();
+	afx_msg void OnWindowSidebySide();
 	afx_msg void OnWindowRestoreAll();
 	afx_msg void OnHelpIndex();
 	afx_msg void OnHelpUsing();

Modified: trunk/teraterm/ttpcmn/ttcmn.c
===================================================================
--- trunk/teraterm/ttpcmn/ttcmn.c	2013-05-02 05:37:15 UTC (rev 5223)
+++ trunk/teraterm/ttpcmn/ttcmn.c	2013-05-02 06:37:09 UTC (rev 5224)
@@ -930,6 +930,15 @@
 		get_lang_msg("MENU_WINDOW_MINIMIZEALL", buf, buflen, "&Minimize All", langFile);
 		AppendMenu(menu, MF_ENABLED | MF_STRING, ID_WINDOW_MINIMIZEALL, buf);
 
+		get_lang_msg("MENU_WINDOW_CASCADE", buf, buflen, "&Cascade", langFile);
+		AppendMenu(menu, MF_ENABLED | MF_STRING, ID_WINDOW_CASCADEALL, buf);
+
+		get_lang_msg("MENU_WINDOW_STACKED", buf, buflen, "&Stacked", langFile);
+		AppendMenu(menu, MF_ENABLED | MF_STRING, ID_WINDOW_STACKED, buf);
+
+		get_lang_msg("MENU_WINDOW_SIDEBYSIDE", buf, buflen, "Side &by Side", langFile);
+		AppendMenu(menu, MF_ENABLED | MF_STRING, ID_WINDOW_SIDEBYSIDE, buf);
+
 		get_lang_msg("MENU_WINDOW_RESTOREALL", buf, buflen, "&Restore All", langFile);
 		AppendMenu(menu, MF_ENABLED | MF_STRING, ID_WINDOW_RESTOREALL, buf);
 	}



Ttssh2-commit メーリングリストの案内