Show
Ignore:
Timestamp:
12/07/09 21:22:45 (3 years ago)
Author:
saturday06
Message:

jaiodflj-- この行以下は無視されます --

M www/default.css
M scripts/ac_init_version.sh
M src/Initial.h
M src/Mediator.cpp
M src/os-windows/Pty.cpp
M src/Version.h
M src/Common.h
M src/Test4.cpp
M src/Tester.cpp
M src/gui-windows/InputWindowPlatform.cpp
M windows/mil_test.vcproj
M windows/resources/fakecygpty.rc
M windows/resources/resource.h
M windows/i3_test.vcproj
M am/i3_test.am
M am/i3.am
A + tmp/i3.rc
M configure.ac
M Makefile.am

Location:
lang/objective-cplusplus/i3/trunk
Files:
18 modified
1 copied

Legend:

Unmodified
Added
Removed
  • lang/objective-cplusplus/i3/trunk/Makefile.am

    r35900 r36088  
    44 
    55bin_PROGRAMS    = i3 
    6 CLEANFILES      = *.gcno po/stamp-po #XXXpo/stamp-po!? 
     6CLEANFILES      = *.gcno po/stamp-po 
    77DISTCLEANFILES  = 
    88BUILT_SOURCES   = 
  • lang/objective-cplusplus/i3/trunk/am/i3.am

    r35953 r36088  
    22# Common 
    33 
    4 i3_exe        : i3${EXEEXT} # for IDE 
     4i3_exe : i3${EXEEXT} # for IDE 
    55 
    66i3_SOURCES_NO_MAIN = \ 
     
    1616src/${GUI_DIR}/Gui.cpp \ 
    1717src/${GUI_DIR}/InputWindowPlatform.cpp \ 
     18src/${GUI_DIR}/OutputWindowPlatform.cpp \ 
    1819src/${GUI_DIR}/CompletionWindowPlatform.cpp 
    1920#src/ConfigFile.cpp 
     
    5253#i3_SOURCES_NO_MAIN += src/os-windows/Utf8ToUtf16Stream.cpp 
    5354 
    54 i3_CXXFLAGS  += -DMIL_OS_WINDOWS 
    55 i3_LDADD     += -lpsapi -lshlwapi 
     55i3_CXXFLAGS += -DMIL_OS_WINDOWS 
     56i3_LDADD    += -lpsapi -lshlwapi 
    5657else 
    57 i3_CXXFLAGS  += -DMIL_OS_UNIX 
     58i3_CXXFLAGS += -DMIL_OS_UNIX 
    5859endif 
    5960 
    6061if WITH_GUI_WINDOWS 
     62 
    6163i3_CXXFLAGS += -DMIL_GUI_WINDOWS -fno-operator-names 
     64i3_SOURCES_NO_MAIN +=  
     65i3_LDADD += resource.o 
     66 
     67resource.o: ${top_srcdir}/windows/resources/i3.rc 
     68        iconv -f UTF-16LE -t UTF-8 $< > $<.utf-8.c 
     69        perl -pe 's/^\xEF\xBB\xBF//' $<.utf-8.c > $<.utf-8.nobom.c 
     70        ${CPP} $<.utf-8.nobom.c -o $<.preprecessed.rc 
     71        ${CROSS_COMPILE}windres -O coff -o $@ -i $<.preprecessed.rc 
     72 
    6273if WITH_OS_WINDOWS 
    63 i3_LDFLAGS  += -mwindows 
     74i3_LDFLAGS += -mwindows 
    6475endif 
    65 i3_LDADD    += -lgdi32 -luser32 -lpsapi -lshlwapi -lcomctl32 
     76i3_LDADD   += -lgdi32 -luser32 -lpsapi -lshlwapi -lcomctl32 
    6677else 
    6778i3_SOURCES_NO_MAIN += src/mil/include/mil/StaticDataObjc.cpp 
    6879i3_CXXFLAGS        += -DMIL_GUI_COCOA ${COCOA_CXXFLAGS} 
    6980i3_LDADD           += ${COCOA_LIBS} 
    70 i3_OBJCFLAGS        = ${i3_CXXFLAGS} 
    7181endif 
    7282 
  • lang/objective-cplusplus/i3/trunk/am/i3_test.am

    r35836 r36088  
    22# Common 
    33 
    4 i3_test_exe :   i3_test${EXEEXT} 
    5 i3_test2_exe :   i3_test2${EXEEXT} 
     4i3_test_exe : i3_test${EXEEXT} 
     5i3_test2_exe : i3_test2${EXEEXT} 
    66 
    77i3_test_SOURCES = ${i3_SOURCES_NO_MAIN} \ 
  • lang/objective-cplusplus/i3/trunk/configure.ac

    r36037 r36088  
    131131 
    132132if test "$with_gui" != "windows"; then 
    133     AC_MSG_CHECKING([objective-c++]) 
     133    AC_MSG_CHECKING([Objective C++]) 
    134134    prologue="class Foo {}; @interface Bar {} @end @implementation Bar @end" 
    135135    body="Foo foo; Bar* bar;" 
     
    139139        [AC_LANG_PROGRAM([[$prologue]], [[$body]])], 
    140140        [AC_MSG_RESULT([yes])], 
    141         [AC_MSG_FAILURE([objective-c++ compiler/linker does not work])]) 
     141        [AC_MSG_FAILURE([Objective C++ compiler/linker does not work])]) 
    142142    AC_CHECK_HEADERS([boost/ptr_container/detail/static_move_ptr.hpp boost/detail/is_incrementable.hpp]) 
    143143    LDFLAGS="$LDFLAGS_ORIG" 
  • lang/objective-cplusplus/i3/trunk/scripts/ac_init_version.sh

    r35843 r36088  
    11# -*- coding: us-ascii-unix -*- 
    22 
    3 VERSION=`cat src/Version.h | tr -d '\r\n' | sed 's/^[[:space:]]*\"\([[:graph:]]*\)\"[[:space:]]*$/\1/'`  
     3I3_VERSION_MAJOR=`    grep I3_VERSION_MAJOR     src/Version.h | cut -d " " -f 3` 
     4I3_VERSION_MINOR=`    grep I3_VERSION_MINOR     src/Version.h | cut -d " " -f 3` 
     5I3_VERSION_EXTENSION=`grep I3_VERSION_EXTENSION src/Version.h | cut -d " " -f 3` 
    46 
    5 which svn > /dev/null 2> /dev/null 
    6 if [ ${?} -ne 0 ]; then 
    7     echo ${VERSION}.unknown-revision 
    8     exit 
    9 fi 
     7VERSION="${I3_VERSION_MAJOR}.${I3_VERSION_MINOR}${I3_VERSION_EXTENSION}" 
     8# which svn > /dev/null 2> /dev/null 
     9# if [ ${?} -ne 0 ]; then 
     10#     echo ${VERSION}.unknown-revision 
     11#     exit 
     12# fi 
    1013 
    11 REVISION=`LC_ALL=en svn info | grep "Last Changed Rev:" | head -n 1 | awk '{print $4}'` 
    12 UPDATES=`svn status | grep -v "^\?"` 
    13 if [ "${UPDATES}" != "" ]; then 
    14     REVISION="${REVISION}.modified" 
    15 fi 
     14# REVISION=`LC_ALL=en svn info | grep "Last Changed Rev:" | head -n 1 | awk '{print $4}'` 
     15# UPDATES=`svn status | grep -v "^\?"` 
     16# if [ "${UPDATES}" != "" ]; then 
     17#     REVISION="${REVISION}.modified" 
     18# fi 
    1619 
    17 echo ${VERSION}.r${REVISION} 
     20# echo ${VERSION}.r${REVISION} 
     21echo ${VERSION} 
  • lang/objective-cplusplus/i3/trunk/src/Common.h

    r35906 r36088  
    11#pragma once 
    22 
    3 //TODO: config.h 
    4 #ifdef HAVE_CONFIG_H 
    5 #  include "../config.h" 
    6 #else 
     3#ifdef _MSC_VER 
    74#  define PACKAGE_NAME "i3" 
    8 //#  define PACKAGE_VERSION "1.0" 
    95#  ifndef _WIN32_WCE 
    106#    define ENABLE_NLS 1 
     
    128#  define ICONV_CONST const 
    139#  define HAVE_PUTENV 1 
    14 #  ifdef _MSC_VER 
    15 #    define HAVE_WBINDTEXTDOMAIN 
    16 #  endif 
     10#  define HAVE_MALLOC_H 1 
     11#  define HAVE_WBINDTEXTDOMAIN 
    1712#endif 
    1813 
  • lang/objective-cplusplus/i3/trunk/src/Initial.h

    r35848 r36088  
    66 * 
    77 */ 
    8  
    98 
    109// TODO: nest macro ? 
     
    2827 
    2928 
    30 namespace i3 { 
    31 const char VERSION[] =  
    32 #include "Version.h" 
    33 ; 
    34  
    35 } 
    36 //#define _WIN32_WCE 
    37  
    38  
  • lang/objective-cplusplus/i3/trunk/src/Mediator.cpp

    r36034 r36088  
    2626    // threaded 
    2727    //inputWindow.createUI(); 
    28     completionWindow.start(); 
    29     outputWindow.start(); 
    30     shellManager.start(); 
    31     delegate.start(); 
     28    //completionWindow.start(); 
     29    //outputWindow.start(); 
     30    //shellManager.start(); 
     31    //delegate.start(); 
    3232#ifdef I3_TEST 
    3333    inputWindow.start(); 
  • lang/objective-cplusplus/i3/trunk/src/Test4.cpp

    r36034 r36088  
    1212        using namespace i3; 
    1313 
    14         int argc = 1; 
    15         char* argv[] = {{""}}; 
     14        char argv0[] = "foo"; 
     15        char argv1[] = "bar"; 
     16        char argv2[] = "baz"; 
     17        char* argv[] = {argv0, argv1, argv2}; 
     18        int argc = _countof(argv); 
    1619 
    1720    exit_status exit_status; 
  • lang/objective-cplusplus/i3/trunk/src/Tester.cpp

    r36034 r36088  
    3939                name = name_; 
    4040                passed = false; 
    41                 index++; 
    4241        } 
    4342} 
     
    4544void Tester::run() { 
    4645        CHECK_VALID; 
     46 
     47        sleep(3); 
     48 
    4749    for (;;) { 
    4850                for (int i = 0; i < 100 && this->execute_front(); i++) { 
     
    7274 
    7375template <> 
    74 void InputWindow::execute(SimplePing& e) {} 
     76void InputWindow::execute(SimplePing& e) { 
     77 
     78} 
    7579 
    7680bool Tester::startNext() { 
    7781        CHECK_VALID; 
    7882 
     83        index++; 
    7984        if (index == 1) { 
    8085                next("simple ping"); 
    81                 mediator.getInputWindow(); 
     86                SimplePing s; 
     87                mediator.getInputWindow().post(s, *this); 
    8288        } 
    8389        return false; 
  • lang/objective-cplusplus/i3/trunk/src/Version.h

    r35843 r36088  
    1  
    2  
    3    "0.3alpha"   
    4  
    5  
     1#define I3_VERSION_MAJOR 0 
     2#define I3_VERSION_MINOR 3 
     3#define I3_VERSION_EXTENSION alpha 
  • lang/objective-cplusplus/i3/trunk/src/gui-windows/InputWindowPlatform.cpp

    r35976 r36088  
    274274            for (;;) { 
    275275                /* 
    276                   http://msdn.microsoft.com/en-us/library/ms633520(VS.85).aspx 
    277  
    278                   int GetWindowText( 
    279                   HWND hWnd, 
    280                   LPTSTR lpString, 
    281                   int nMaxCount 
    282                   ); 
    283  
     276                http://msdn.microsoft.com/en-us/library/ms633520(VS.85).aspx 
     277                 
     278                int GetWindowText( 
     279                HWND hWnd, 
     280                LPTSTR lpString, 
     281                int nMaxCount 
     282                ); 
     283                 
    284284                  Parameters 
    285285                  hWnd 
     
    333333            EditChangedEvent e = {}; 
    334334            getChild().mediator.getDelegate().post(e, *this); 
    335  
    336         } 
    337         break; 
     335             
     336        } 
     337            break; 
    338338        } 
    339339    } 
     
    461461        return 8; 
    462462    } 
    463 } 
    464  
    465  
    466 template <> 
    467 void InputWindowPlatform<InputWindow>::run() { 
    468     createUI(); 
    469     UpdateWindow(hLocalWnd); 
    470     ShowWindow(hLocalWnd, SW_SHOW); 
    471     loop(); 
    472463} 
    473464 
     
    745736} 
    746737 
    747 } 
     738template <> 
     739void InputWindowPlatform<InputWindow>::run() { 
     740    createUI(); 
     741    UpdateWindow(hLocalWnd); 
     742    ShowWindow(hLocalWnd, SW_SHOW); 
     743    loop(); 
     744} 
     745 
     746} 
  • lang/objective-cplusplus/i3/trunk/src/os-windows/Pty.cpp

    r35906 r36088  
    3838 
    3939Pty::Pty() { 
     40    hStdInput    = INVALID_HANDLE_VALUE; 
     41    hStdOutput   = INVALID_HANDLE_VALUE; 
     42    hStdError    = INVALID_HANDLE_VALUE; 
     43    hMyStdInput  = INVALID_HANDLE_VALUE; 
     44    hMyStdOutput = INVALID_HANDLE_VALUE; 
     45    hMyStdError  = INVALID_HANDLE_VALUE; 
    4046} 
    4147 
    4248Pty::~Pty() { 
    4349    //interrupt(); 
    44     for (int i = 0; i < 3; i++) { 
    45         write( 
    46             "\r\n" 
    47             "\r\n" 
    48             "\004" 
    49             "\003" 
    50             "exit\r\n" 
    51             "logout\r\n" 
    52             "\r\n" 
    53         ); 
    54     } 
     50        if (hMyStdInput != INVALID_HANDLE_VALUE) { 
     51                for (int i = 0; i < 3; i++) { 
     52                        write( 
     53                                "\r\n" 
     54                                "\r\n" 
     55                                "\004" 
     56                                "\003" 
     57                                "exit\r\n" 
     58                                "logout\r\n" 
     59                                "\r\n" 
     60                        ); 
     61                } 
     62        } 
    5563    TerminateProcess(pi.hProcess, 0); 
    5664} 
     
    6573    DWORD written = 0; 
    6674    if (WriteFile(hMyStdInput, buffer, bytes, &written, NULL) == 0) { 
    67         MessageBox(NULL, _T("writefile failure"), _T("writefile failure"), MB_OK); 
     75                MessageBox(NULL, _T("WriteFile(): failed"), _T("info"), MB_OK); 
    6876        return false; 
    6977    } 
  • lang/objective-cplusplus/i3/trunk/tmp/i3.rc

    r34769 r36088  
    55#include <commctrl.h> 
    66//#include <richedit.h> 
    7  
    87 
    98// 
     
    3837        BLOCK "041104b0" 
    3938        { 
    40             VALUE "FileDescription", "i3 - 世代キーボードランチャ" 
     39            VALUE "FileDescription", "i3 - 世代キーボードランチャ" 
    4140            VALUE "FileVersion", "1,0,0,0" 
    4241            VALUE "LegalCopyright", "GNU 一般公衆利用許諾" 
  • lang/objective-cplusplus/i3/trunk/windows/i3_test.vcproj

    r36035 r36088  
    838838                        </File> 
    839839                        <File 
     840                                RelativePath="..\src\os-windows\Pty.h" 
     841                                > 
     842                        </File> 
     843                        <File 
    840844                                RelativePath="..\src\ShellManager.h" 
    841845                                > 
  • lang/objective-cplusplus/i3/trunk/windows/mil_test.vcproj

    r36013 r36088  
    965965                        </File> 
    966966                        <File 
     967                                RelativePath="..\src\mil\include\mil\Debug.h" 
     968                                > 
     969                        </File> 
     970                        <File 
    967971                                RelativePath="..\src\mil\include\mil\os-windows\Debug.h" 
    968972                                > 
    969973                        </File> 
    970974                        <File 
    971                                 RelativePath="..\src\mil\include\mil\Debug.h" 
    972                                 > 
    973                         </File> 
    974                         <File 
    975975                                RelativePath="..\src\mil\include\mil\gui-windows\DummyMessageHandler-inl.h" 
    976976                                > 
     
    985985                        </File> 
    986986                        <File 
     987                                RelativePath="..\src\mil\include\mil\gui-windows\GuiModule.h" 
     988                                > 
     989                        </File> 
     990                        <File 
    987991                                RelativePath="..\src\mil\include\mil\GuiModule.h" 
    988992                                > 
    989993                        </File> 
    990994                        <File 
    991                                 RelativePath="..\src\mil\include\mil\gui-windows\GuiModule.h" 
    992                                 > 
    993                         </File> 
    994                         <File 
    995995                                RelativePath="..\src\mil\include\mil\Memory.h" 
    996996                                > 
     
    10211021                        </File> 
    10221022                        <File 
     1023                                RelativePath="..\src\mil\include\mil\PrecompiledHeaders.h" 
     1024                                > 
     1025                        </File> 
     1026                        <File 
     1027                                RelativePath="..\src\mil\include\mil\gui-windows\PrecompiledHeaders.h" 
     1028                                > 
     1029                        </File> 
     1030                        <File 
    10231031                                RelativePath="..\src\mil\include\mil\os-windows\PrecompiledHeaders.h" 
    10241032                                > 
    10251033                        </File> 
    10261034                        <File 
    1027                                 RelativePath="..\src\mil\include\mil\PrecompiledHeaders.h" 
    1028                                 > 
    1029                         </File> 
    1030                         <File 
    1031                                 RelativePath="..\src\mil\include\mil\gui-windows\PrecompiledHeaders.h" 
    1032                                 > 
    1033                         </File> 
    1034                         <File 
    10351035                                RelativePath="..\src\mil\include\quicktest\quicktest.h" 
    10361036                                > 
     
    10541054                        <File 
    10551055                                RelativePath="..\src\mil\include\mil\Thread.h" 
    1056                                 > 
    1057                         </File> 
    1058                         <File 
    1059                                 RelativePath="..\src\mil\include\mil\os-windows\Thread.h" 
    10601056                                > 
    10611057                        </File> 
  • lang/objective-cplusplus/i3/trunk/windows/resources/fakecygpty.rc

    r16243 r36088  
     1// -*- coding: us-ascii-dos -*- 
     2 
    13FAKECYGPTY_ICON ICON DISCARDABLE "fakecygpty.ico" 
     4 
  • lang/objective-cplusplus/i3/trunk/windows/resources/resource.h

    r36081 r36088  
    11// -*- coding: us-ascii-dos -*- 
    22 
    3 #ifndef IDC_STATIC 
    4 #define IDC_STATIC (-1) 
    5 #endif 
    63 
    74 
  • lang/objective-cplusplus/i3/trunk/www/default.css

    r34619 r36088  
    2020    margin-top: 2em; 
    2121    margin-left: 2em; 
    22     background: url("right-bottom.jpg") white no-repeat fixed right bottom; 
     22    background: url("/right-bottom.jpg") white no-repeat fixed right bottom; 
    2323    /* color: #282931; */ 
    2424    font-family: "Trebuchet MS", Trebuchet, Tahoma, sans-serif;