OSDN Git Service

Linux上で展開先をDolphinで開く機能に対応。
authorsirakaba <sirakaba@9df91469-1e22-0410-86e7-ea8537beb833>
Sun, 29 Aug 2010 06:25:52 +0000 (06:25 +0000)
committersirakaba <sirakaba@9df91469-1e22-0410-86e7-ea8537beb833>
Sun, 29 Aug 2010 06:25:52 +0000 (06:25 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/tpi/tpi@297 9df91469-1e22-0410-86e7-ea8537beb833

doc/history.html
src/lychee/frm_main.cpp
src/lychee/lychee.h

index 315b2e6..d2a1be2 100644 (file)
@@ -25,6 +25,7 @@
      <dt>TPI</dt>\r
      <dd>\r
       <ul>\r
+       <li class="add">Linux上で展開先をDolphinで開く機能に対応。</li>\r
        <li class="chg">Windows上でVisual Studio 2008へ移行。</li>\r
        <li class="fix">作業ディレクトリからライブラリを読み込まないよう修正。</li>\r
       </ul>\r
index 0daf4dd..d9734c2 100644 (file)
@@ -299,9 +299,7 @@ void MainFrame::OnArcCreate(wxCommandEvent& e)
        if (mkDlg.cbOpenAfter->IsChecked())\r
        {\r
                // 作成先を開く。\r
-#ifdef __WINDOWS__\r
-               ::wxExecute(wxT("explorer ") + swInfo.fnDestinationDirectory.GetFullPath());\r
-#endif\r
+               ::wxExecute(DIR_APP + swInfo.fnDestinationDirectory.GetFullPath());\r
        }\r
 \r
        if (mkDlg.cbExitAfter->IsChecked())\r
@@ -588,9 +586,7 @@ void MainFrame::OnArcAdd(wxCommandEvent& e)
        if (mkDlg.cbOpenAfter->IsChecked())\r
        {\r
                // 作成先を開く。\r
-#ifdef __WINDOWS__\r
-               ::wxExecute(wxT("explorer ") + swInfo.fnDestinationDirectory.GetFullPath());\r
-#endif\r
+               ::wxExecute(DIR_APP + swInfo.fnDestinationDirectory.GetFullPath());\r
        }\r
 \r
        if (mkDlg.cbExitAfter->IsChecked())\r
@@ -731,9 +727,7 @@ void MainFrame::OnArcExtract(wxCommandEvent& e)
                if (mkDlg.cbOpenAfter->IsChecked())\r
                {\r
                        // 展開先を開く。\r
-#ifdef __WINDOWS__\r
-                       ::wxExecute(wxT("explorer ") + swInfo.fnDestinationDirectory.GetFullPath());\r
-#endif\r
+                       ::wxExecute(DIR_APP + swInfo.fnDestinationDirectory.GetFullPath());\r
                }\r
 \r
                if (mkDlg.cbExitAfter->IsChecked())\r
index 50f4821..dc59181 100644 (file)
@@ -43,9 +43,11 @@ WX_DECLARE_OBJARRAY(TPI_FILEINFO, ArrayTPI_FILEINFO);
 #ifdef __WINDOWS__\r
 #define TPI_EXT wxT(".dll")\r
 #define EXE_EXT wxT(".exe")\r
+#define DIR_APP wxT("explorer ")\r
 #else\r
 #define TPI_EXT wxT(".so")\r
 #define EXE_EXT (wxString) wxEmptyString\r
+#define DIR_APP wxT("dolphin ")\r
 #endif\r
 \r
 #define L_DIR_BIN wxT("./")\r