Skip to content

Commit a5a6226

Browse files
committed
Initial commit
0 parents  commit a5a6226

81 files changed

Lines changed: 3641 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
nbproject/
2+
CMakeFiles/
3+
Releases/
4+
build/
5+
src/Version.h
6+
cmake_install.cmake
7+
CMakeCache.txt
8+
compile_commands.json
9+
Makefile
10+
moc_*.cpp
11+
nbteditor_automoc.cpp
12+
ui_*.h
13+
nbteditor
14+
nbteditor.exe
15+
.dep.inc

CMakeLists.txt

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
cmake_minimum_required(VERSION 3.1.0)
2+
3+
project(nbteditor VERSION 1.0)
4+
set (NBTEDITOR_VERSION 1.0)
5+
6+
find_package(Qt5Widgets)
7+
8+
find_package( ZLIB REQUIRED )
9+
if (ZLIB_FOUND)
10+
include_directories(${ZLIB_INCLUDE_DIRS})
11+
endif(ZLIB_FOUND)
12+
13+
set(CMAKE_CXX_STANDARD 14)
14+
set(CMAKE_INCLUDE_CURRENT_DIR ON)
15+
set(CMAKE_AUTOMOC ON)
16+
set(CMAKE_AUTOUIC ON)
17+
set(CMAKE_AUTORCC ON)
18+
19+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -finput-charset=UTF-8 -fexec-charset=UTF-8 -Wall")
20+
21+
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/src/Version.h.in" "${CMAKE_CURRENT_BINARY_DIR}/src/Version.h")
22+
23+
set(nbteditor_res "${CMAKE_CURRENT_SOURCE_DIR}/resources/resources.qrc")
24+
# For Windows release build: set(nbteditor_res "${CMAKE_CURRENT_SOURCE_DIR}/resources/resources.qrc" "${CMAKE_CURRENT_SOURCE_DIR}/resources/nbteditor.rc" "${CMAKE_CURRENT_SOURCE_DIR}/resources/qt_de.qm")
25+
file(GLOB_RECURSE nbteditor_src "${CMAKE_CURRENT_SOURCE_DIR}/src/*.h" "${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp" "${CMAKE_CURRENT_SOURCE_DIR}/src/UI/*.ui")
26+
27+
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/src")
28+
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/window")
29+
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/resources")
30+
include_directories( ${CMAKE_BINARY_DIR} )
31+
32+
## set_target_properties(Qt5::Core PROPERTIES MAP_IMPORTED_CONFIG_COVERAGE "RELEASE")
33+
34+
# Tell CMake to create the nbteditor executable
35+
add_executable(nbteditor ${MOC_HEADERS} ${nbteditor_src} ${nbteditor_res})
36+
# For Windows release build: add_executable(nbteditor WIN32 ${MOC_HEADERS} ${nbteditor_src} ${nbteditor_res})
37+
38+
# Use the Widgets module from Qt 5.
39+
target_link_libraries(nbteditor Qt5::Widgets ${ZLIB_LIBRARIES})

Image.png

75.4 KB
Loading

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# NBTEditor (1.0)
2+
A nbt editor software to edit minecraft binary files. Currently it can be used to edit .dat and .schematic files.
3+
![NBTEditor](Image.png)
4+
5+
## Download
6+
- Windows Portable: http://dl.howaner.de/NBTEditor/1.0/NBTEditor.zip
7+
- Windows Installer: http://dl.howaner.de/NBTEditor/1.0/NBTEditor.msi
8+
- Ubuntu 16.04 Deb: http://dl.howaner.de/NBTEditor/1.0/nbteditor_1.0-1_amd64.deb
9+
10+
11+
## Used frameworks
12+
The software is written in C++ with the Qt5 framework and Zlib.
13+
14+
## How to compile it on linux
15+
```
16+
apt-get install build-essential qt5-default qttools5-dev-tools cmake zlib1g-dev
17+
mkdir build
18+
cmake ..
19+
make
20+
./nbteditor
21+
```
22+
23+
## How to compile it on windows
24+
1. Install qt5 developer framework with mingw-32 compiler
25+
2. Install cmake
26+
3. Compile static zlib library
27+
4. Follow linux introductions

nbteditor.pro

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
SOURCES = src/UI/TreeContextMenu.cpp src/UI/AddElementDialog.ui src/UI/EditArrayDialog.ui src/UI/MainForm.ui src/UI/AboutDialog.ui src/UI/MainForm.cpp
2+
TRANSLATIONS = resources/qt_de.ts

resources/application.ico

28 KB
Binary file not shown.

resources/icon-add.png

223 Bytes
Loading

resources/icon-delete.png

558 Bytes
Loading

resources/icon-edit.png

1 KB
Loading

resources/icon-insertbelow.png

444 Bytes
Loading

0 commit comments

Comments
 (0)