-
-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 3e4b579
Showing
94 changed files
with
7,287 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
cmake_minimum_required(VERSION 3.0.0) | ||
project(win-vind VERSION 0.1.0) | ||
|
||
enable_language(CXX) | ||
set(CMAKE_CXX_STANDARD 14) | ||
set(CMAKE_CXX_STANDARD_REQUIRED ON) | ||
set(CMAKE_CXX_EXTENSIONS OFF) | ||
|
||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wcast-align -Wcast-qual -Wconversion -Wctor-dtor-privacy -Wdelete-non-virtual-dtor -Wdouble-promotion -Weffc++ -Wold-style-cast -Woverloaded-virtual -Wreorder -Wshadow -Wsuggest-override -Wuseless-cast") | ||
|
||
include(CTest) | ||
enable_testing() | ||
|
||
set(winres "${CMAKE_CURRENT_SOURCE_DIR}/resources/resource.rc") | ||
if(NOT CMAKE_RC_COMPILER) | ||
set(CMAKE_RC_COMPILER windres.exe) | ||
endif() | ||
|
||
set(winresobj "${CMAKE_CURRENT_BINARY_DIR}/resource.rc.obj") | ||
add_custom_command(OUTPUT "${winresobj}" | ||
COMMAND ${CMAKE_RC_COMPILER} | ||
-D GCC_WINDRES | ||
-I ${CMAKE_CURRENT_SOURCE_DIR} | ||
-I ${CMAKE_CURRENT_BINARY_DIR} | ||
-o ${winresobj} | ||
-i ${winres} | ||
) | ||
|
||
include_directories( | ||
include | ||
include/keybinds | ||
include/editor_keybinds | ||
include/options | ||
C:/boost | ||
) | ||
|
||
add_executable(${PROJECT_NAME} WIN32 | ||
src/main.cpp | ||
"${winresobj}" | ||
) | ||
|
||
add_subdirectory(src) | ||
target_link_libraries(${PROJECT_NAME} Main) | ||
|
||
install(TARGETS win-vind RUNTIME DESTINATION .) | ||
install(DIRECTORY | ||
${CMAKE_CURRENT_SOURCE_DIR}/resources | ||
${CMAKE_CURRENT_SOURCE_DIR}/log | ||
${CMAKE_CURRENT_SOURCE_DIR}/config | ||
DESTINATION . | ||
) | ||
|
||
#NSIS | ||
set(CPACK_PROJECT_NAME ${PROJECT_NAME}) | ||
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION}) | ||
set(CPACK_GENERATOR NSIS) | ||
|
||
set(CPACK_PACKAGE_NAME "win-vind") | ||
set(CPACK_PACKAGE_VENDOR "pit-ray") | ||
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "win-vind") | ||
set(CPACK_PACKAGE_VERSION_MAJOR "1.0.0") | ||
set(CPACK_PACKAGE_VERSION_MINOR "0.0.1") | ||
set(CPACK_PACKAGE_VERSION_PATCH "1") | ||
set(CPACK_PACKAGE_VERSION "1.0.1-alpha") | ||
set(CPACK_PACKAGE_FILE_NAME "setup_win-vind_1.0.1_alpha") | ||
set(CPACK_PACKAGE_INSTALL_DIRECTORY "win-vind") | ||
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE.txt") | ||
set(CPACK_COMPONENT_APPLICATIONS_DISPLAY_NAME "applications (win-vind)") | ||
set(CPACK_NSIS_MUI_ICON "${CMAKE_CURRENT_SOURCE_DIR}/resources/installer512.ico") | ||
set(CPACK_NSIS_MUI_UNIICON "${CMAKE_CURRENT_SOURCE_DIR}/resources/uninstaller512.ico") | ||
set(CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL TRUE) | ||
|
||
|
||
list(APPEND CPACK_NSIS_EXTRA_INSTALL_COMMANDS "CreateShortCut '$SMSTARTUP\\\\win-vind.lnk' '$INSTDIR\\\\win-vind.exe'") | ||
list(APPEND CPACK_NSIS_EXTRA_INSTALL_COMMANDS "CreateShortCut '$SMPROGRAMS\\\\win-vind\\\\win-vind.lnk' '$INSTDIR\\\\win-vind.exe'") | ||
list(APPEND CPACK_NSIS_EXTRA_INSTALL_COMMANDS "CreateDirectory '$PROFILE\\\\.win-vind'") | ||
list(APPEND CPACK_NSIS_EXTRA_INSTALL_COMMANDS "CopyFiles '$INSTDIR\\\\config\\\\*' '$PROFILE\\\\.win-vind'") | ||
string(REPLACE ";" "\n" CPACK_NSIS_EXTRA_INSTALL_COMMANDS "${CPACK_NSIS_EXTRA_INSTALL_COMMANDS}") | ||
|
||
list(APPEND CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS "Delete '$SMSTARTUP\\\\win-vind.lnk'") | ||
list(APPEND CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS "Delete '$SMPROGRAMS\\\\win-vind\\\\win-vind.lnk'") | ||
list(APPEND CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS "RMDir /r '$PROFILE\\\\.win-vind'") | ||
string(REPLACE ";" "\n" CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS "${CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS}") | ||
include(CPack) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
MIT License | ||
|
||
Copyright (c) 2020 pit-ray | ||
|
||
All rights reserved. | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
|
||
|
||
Boost Library | ||
|
||
Boost Software License - Version 1.0 - August 17th, 2003 | ||
|
||
Permission is hereby granted, free of charge, to any person or organization | ||
obtaining a copy of the software and accompanying documentation covered by | ||
this license (the "Software") to use, reproduce, display, distribute, | ||
execute, and transmit the Software, and to prepare derivative works of the | ||
Software, and to permit third-parties to whom the Software is furnished to | ||
do so, all subject to the following: | ||
|
||
The copyright notices in the Software and this entire statement, including | ||
the above license grant, this restriction and the following disclaimer, | ||
must be included in all copies of the Software, in whole or in part, and | ||
all derivative works of the Software, unless such copies or derivative | ||
works are solely in the form of machine-executable object code generated by | ||
a source language processor. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT | ||
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE | ||
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, | ||
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | ||
DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
@echo off | ||
chcp 65001 | ||
|
||
echo [cmake] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | ||
|
||
if "%1" == "" ( | ||
goto debug | ||
) | ||
if %1 == -debug ( | ||
goto debug | ||
) | ||
if %1 == -release ( | ||
goto release | ||
) | ||
|
||
:debug | ||
if not exist debug ( | ||
mkdir debug | ||
) | ||
cd debug | ||
|
||
cmake -DCMAKE_BUILD_TYPE=Debug -G "MinGW Makefiles" -DCMAKE_SH="CMAKE_SH-NOTFOUND" .. | ||
goto make | ||
|
||
:release | ||
if not exist release ( | ||
mkdir release | ||
) | ||
cd release | ||
|
||
cmake -DCMAKE_BUILD_TYPE=Release -G "MinGW Makefiles" -DCMAKE_SH="CMAKE_SH-NOTFOUND" .. | ||
goto make | ||
|
||
:make | ||
echo; | ||
echo; | ||
echo [mingw32-make] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | ||
mingw32-make -f Makefile | ||
|
||
cd .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
#x y c | ||
0 0 IME | ||
1 0 1 | ||
2 0 2 | ||
3 0 3 | ||
4 0 4 | ||
5 0 5 | ||
6 0 6 | ||
7 0 7 | ||
8 0 8 | ||
9 0 9 | ||
10 0 0 | ||
11 0 - | ||
12 0 ^ | ||
13 0 \ | ||
14 0 BkSpace | ||
|
||
0 1 Tab | ||
1.5 1 q | ||
2.5 1 w | ||
3.5 1 e | ||
4.5 1 r | ||
5.5 1 t | ||
6.5 1 y | ||
7.5 1 u | ||
8.5 1 i | ||
9.5 1 o | ||
10.5 1 p | ||
11.5 1 @ | ||
12.5 1 [ | ||
14 1.5 Enter | ||
|
||
0 2 CapsLock | ||
1.75 2 a | ||
2.75 2 s | ||
3.75 2 d | ||
4.75 2 f | ||
5.75 2 g | ||
6.75 2 h | ||
7.75 2 j | ||
8.75 2 k | ||
9.75 2 l | ||
10.75 2 ; | ||
11.75 2 : | ||
12.75 2 ] | ||
|
||
0 3 LShift | ||
2.25 3 z | ||
3.25 3 x | ||
4.25 3 c | ||
5.25 3 v | ||
6.25 3 b | ||
7.25 3 n | ||
8.25 3 m | ||
9.25 3 , | ||
10.25 3 . | ||
11.25 3 / | ||
12.25 3 \ | ||
14 3 RShift | ||
|
||
0 4 LCtrl | ||
1.5 4 LWin | ||
2.75 4 LAlt | ||
4.25 4 NoConvert | ||
6.25 4 Space | ||
8.25 4 Convert | ||
9.75 4 Kana | ||
11.25 4 RAlt | ||
12.5 4 App | ||
14 4 RCtrl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
#x y c | ||
0 0 ` | ||
1 0 1 | ||
2 0 2 | ||
3 0 3 | ||
4 0 4 | ||
5 0 5 | ||
6 0 6 | ||
7 0 7 | ||
8 0 8 | ||
9 0 9 | ||
10 0 0 | ||
11 0 - | ||
12 0 = | ||
14 0 BkSpace | ||
|
||
0 1 Tab | ||
1.5 1 q | ||
2.5 1 w | ||
3.5 1 e | ||
4.5 1 r | ||
5.5 1 t | ||
6.5 1 y | ||
7.5 1 u | ||
8.5 1 i | ||
9.5 1 o | ||
10.5 1 p | ||
11.5 1 [ | ||
12.5 1 ] | ||
14 1 \ | ||
|
||
0 2 CapsLock | ||
1.75 2 a | ||
2.75 2 s | ||
3.75 2 d | ||
4.75 2 f | ||
5.75 2 g | ||
6.75 2 h | ||
7.75 2 j | ||
8.75 2 k | ||
9.75 2 l | ||
10.75 2 ; | ||
11.75 2 ' | ||
14 2 Enter | ||
|
||
0 3 LShift | ||
2.25 3 z | ||
3.25 3 x | ||
4.25 3 c | ||
5.25 3 v | ||
6.25 3 b | ||
7.25 3 n | ||
8.25 3 m | ||
9.25 3 , | ||
10.25 3 . | ||
11.25 3 / | ||
14 3 RShift | ||
|
||
0 4 LCtrl | ||
1 4 Fn | ||
2 4 LWin | ||
3 4 LAlt | ||
7 4 Space | ||
10 4 RAlt | ||
11 4 App | ||
12 4 RCtrl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
[Property] | ||
; jump | ||
screen_pos_buf=10 | ||
|
||
; move | ||
move_acceleration=64 | ||
cursor_weight=512 | ||
|
||
; scroll | ||
yscroll_speed=4 | ||
xscroll_speed=4 | ||
|
||
; for page-scroll | ||
yscroll_screen_ratio=0.125 | ||
xscroll_screen_ratio=0.125 | ||
|
||
; display_inputed_cmd | ||
cmd_font_size = 30 | ||
|
||
; 0 ~ 1000 | ||
cmd_font_weight = 600 | ||
|
||
; # is not needed. | ||
cmd_font_color = c8c8c8 | ||
cmd_font_bkcolor = 323232 | ||
|
||
; [cmd_font_pos] use following syntax (YX) | ||
; _______________________________________ | ||
; | UpperLeft UpperMid UpperRight | | ||
; | MidLeft Center MidRight | | ||
; | LowerLeft LowerMid LowerRight | | ||
; |_______________________________________| | ||
cmd_pos = LowerMid | ||
|
||
; the type of margin is int (negative value ok!). | ||
; if cmd_pos is UpperMid or Center or LowerMid, this is ignored. | ||
cmd_xmargin = 32 | ||
|
||
; if cmd_pos is MidLeft or Center or MidRight, this is ignored. | ||
cmd_ymargin = 64 | ||
|
||
cmd_max_char = 32 | ||
|
||
; this is interval from prev-char to next-char. | ||
cmd_font_extra = 3 |
Oops, something went wrong.