Skip to content

Commit

Permalink
v0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Niakr1s committed Dec 1, 2019
1 parent 964a602 commit 1f12731
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 37 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_FLAGS "-mwindows")

project(rrt LANGUAGES CXX VERSION 0.1.2)
project(rrt LANGUAGES CXX VERSION 0.2.0)

set(BUILD_SHARED_LIBS ON)

Expand Down Expand Up @@ -48,6 +48,6 @@ add_subdirectory(libs/libzip)

add_subdirectory(src)

if (BUILD_TESTS)
if (ENABLE_TESTS)
add_subdirectory(tests)
endif()
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,7 @@
#### Если получится, добавлю
- [ ] Поиск примерных координат с кадастровой карты
- [ ] Заказывание выписок не выходя из программы

#### Внешние зависимости
- [Boost v1.71.0](https://www.boost.org/)
- [Zlib v1.2.11](https://github.com/madler/zlib)
7 changes: 6 additions & 1 deletion makeRelease.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,16 @@
BOOST_LIBS = ["date_time", "filesystem",
"thread", "log"] # change it to include in zip

# just add search path and name to include in zip
INCLUDED_FILES = (("c:/Program Files (x86)/zlib", "libzlib.dll"),)

IGNORED_FILES = ["D3Dcompiler_47.dll",
"opengl32sw.dll", "libEGL.dll", "libGLESV2.dll"] # these files will be deleted from release


def cmake(clean=False):
if Path(BIN_DIR).exists():
print("removing " + BIN_DIR + "dir")
print("removing " + BIN_DIR + " dir")
shutil.rmtree(BIN_DIR)
os.system(CMAKE_PRE_BUILD_CMD)
os.system(CMAKE_BUILD_CMD)
Expand Down Expand Up @@ -56,6 +59,8 @@ def addToZip(version=""):
for lib in BOOST_LIBS:
fullName = BOOST_PREFIX + lib + BOOST_SUFFIX
releaseZip.write(findFile("c:/boost/lib", fullName), fullName)
for toZip in INCLUDED_FILES:
releaseZip.write(findFile(toZip[0], toZip[1]), toZip[1])
print('Zip created in "' + zipPath + '"')


Expand Down
2 changes: 1 addition & 1 deletion src/gui/dxflabel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ void DXFLabel::dropEvent(QDropEvent* event) {
void DXFLabel::setDefaultText() {
setText(
QString("<div>%1</div><div>%2</div><div>%3</div><div>%4</div>")
.arg(tr("Drag your DXF or XMLs here."))
.arg(tr("Drag your DXF or XMLs/ZIPs here."))
.arg(tr("DXF will be checked in all top window XMLs."))
.arg(tr("All blocks in DXF will be ignored. Everything in %1 layer "
"will be ignored. Any non-english layer will be ignored.")
Expand Down
74 changes: 41 additions & 33 deletions src/gui/ts/ru.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,16 @@
<context>
<name>DXFLabel</name>
<message>
<location filename="../dxflabel.cpp" line="80"/>
<source>Drag your DXF or XMLs here.</source>
<translation>Перетащите сюда ваш DXF файл или несколько XML файлов.</translation>
<translation type="vanished">Перетащите сюда ваш DXF файл или несколько XML файлов.</translation>
</message>
<message>
<location filename="../dxflabel.cpp" line="81"/>
<location filename="../dxflabel.cpp" line="92"/>
<source>DXF will be checked in all top window XMLs.</source>
<translation>DXF файлы будут проверены во всех XML из окна сверху.</translation>
</message>
<message>
<location filename="../dxflabel.cpp" line="82"/>
<location filename="../dxflabel.cpp" line="93"/>
<source>All blocks in DXF will be ignored. Everything in %1 layer will be ignored. Any non-english layer will be ignored.</source>
<translation>Все блоки в DXF будут проигнорированы. Всё в слое %1 будет проигнорировано.Любой неанглийский слой будет проигнорирован.</translation>
</message>
Expand All @@ -23,27 +22,32 @@
<translation type="vanished">Все блоки в DXF будут проигнорированы. Всё в слое %1 будет проигнорировано.</translation>
</message>
<message>
<location filename="../dxflabel.cpp" line="85"/>
<location filename="../dxflabel.cpp" line="91"/>
<source>Drag your DXF or XMLs/ZIPs here.</source>
<translation>Перетащите сюда ваш DXF файл или несколько XML/ZIP файлов.</translation>
</message>
<message>
<location filename="../dxflabel.cpp" line="96"/>
<source>XMLs will be copied in %1/data.</source>
<translation>XML файлы будут скопированы в %1/data.</translation>
</message>
<message>
<location filename="../dxflabel.cpp" line="106"/>
<location filename="../dxflabel.cpp" line="116"/>
<source>Error</source>
<translation>Ошибка</translation>
</message>
<message>
<location filename="../dxflabel.cpp" line="107"/>
<location filename="../dxflabel.cpp" line="117"/>
<source>Can&apos;t parse dxf file %1</source>
<translation>Не удалось обработать DXF файл %1</translation>
</message>
<message>
<location filename="../dxflabel.cpp" line="115"/>
<location filename="../dxflabel.cpp" line="125"/>
<source>Current file</source>
<translation>Текущий файл</translation>
</message>
<message>
<location filename="../dxflabel.cpp" line="129"/>
<location filename="../dxflabel.cpp" line="137"/>
<source>&lt;div&gt;Got results:&lt;b&gt;&lt;font color=red&gt;%1&lt;/font&gt;&lt;/b&gt;. You can copy them in clipboard via buttons in top-right corner of treeview.&lt;/div&gt;</source>
<translation>&lt;div&gt;Получено результатов: &lt;b&gt;&lt;font color=red&gt;%1&lt;/font&gt;&lt;/b&gt;. Вы можете скопировать их в буфер обмена при помощи кнопок в правом верхнем углу.&lt;/div&gt;</translation>
</message>
Expand Down Expand Up @@ -78,17 +82,17 @@
<context>
<name>MainWindow</name>
<message>
<location filename="../mainwindow.cpp" line="34"/>
<location filename="../mainwindow.cpp" line="35"/>
<source>Open XMLs</source>
<translation>Открыть XML файлы</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="44"/>
<location filename="../mainwindow.cpp" line="45"/>
<source>Open DXF</source>
<translation>Открыть DXF файл</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="51"/>
<location filename="../mainwindow.cpp" line="52"/>
<source>About</source>
<translation>О программе</translation>
</message>
Expand Down Expand Up @@ -121,7 +125,7 @@ If you see any bugs, please contact author via &lt;a href=&quot;https://github.c
&lt;/address&gt;</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="52"/>
<location filename="../mainwindow.cpp" line="53"/>
<source>&lt;div&gt;This program is for Cadastral Engineers.&lt;/div&gt;
&lt;div&gt;It can open, rename and export to dxf rosreestr xml files. Besides, it can check intersection of dxf files in them.&lt;/div&gt;
&lt;br&gt;
Expand All @@ -138,47 +142,46 @@ If you see any bugs, please contact author via &lt;a href=&quot;https://github.c
<translation type="vanished">Обрабатываю XML файлы...</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="63"/>
<location filename="../mainwindow.cpp" line="64"/>
<source>Processing ...</source>
<translation>Обрабатываю...</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="97"/>
<location filename="../mainwindow.cpp" line="98"/>
<source>&amp;File</source>
<translation>&amp;Файл</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="104"/>
<location filename="../mainwindow.cpp" line="105"/>
<source>&amp;Help</source>
<translation>&amp;Помощь</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="111"/>
<location filename="../mainwindow.cpp" line="112"/>
<source>Add &amp;XMLs</source>
<translation>Открыть XML файлы</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="112"/>
<location filename="../mainwindow.cpp" line="113"/>
<source>Open &amp;DXF</source>
<translation>Открыть DXF файл</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="113"/>
<location filename="../mainwindow.cpp" line="114"/>
<source>&amp;About</source>
<translation>&amp;О программе</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="114"/>
<location filename="../mainwindow.cpp" line="115"/>
<source>&amp;Exit</source>
<translation>&amp;Выход</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="133"/>
<source>Initializing...</source>
<translation>Инициализирую...</translation>
<translation type="vanished">Инициализирую...</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="166"/>
<location filename="../mainwindow.cpp" line="167"/>
<source>DB: %1 to go</source>
<translation>БД: осталось: %1</translation>
</message>
Expand All @@ -193,33 +196,33 @@ If you see any bugs, please contact author via &lt;a href=&quot;https://github.c
<translation>Приложение всё еще обновляет БД (базу данных), пожалуйста подождите, пока индикатор БД не отключится. Выход из программы приведет к инконсинсентности БД. Вы всё еще хотите выйти?</translation>
</message>
<message>
<location filename="../mainwindow.h" line="20"/>
<location filename="../mainwindow.h" line="21"/>
<source>Ready</source>
<translation>Готов</translation>
</message>
</context>
<context>
<name>QObject</name>
<message>
<location filename="../xmltreeitem.cpp" line="93"/>
<location filename="../xmltreeitem.cpp" line="95"/>
<source>%1 spatial elements</source>
<translation>Пространственных элементов: %1</translation>
</message>
</context>
<context>
<name>Updater</name>
<message>
<location filename="../updater.cpp" line="65"/>
<location filename="../updater.cpp" line="70"/>
<source>Got new update!</source>
<translation>Доступно обновление!</translation>
</message>
<message>
<location filename="../updater.cpp" line="67"/>
<location filename="../updater.cpp" line="72"/>
<source>Please, visit</source>
<translation>Пожалуйста, посетите</translation>
</message>
<message>
<location filename="../updater.cpp" line="70"/>
<location filename="../updater.cpp" line="75"/>
<source>to update</source>
<translation>чтобы обновить программу</translation>
</message>
Expand Down Expand Up @@ -258,30 +261,35 @@ If you see any bugs, please contact author via &lt;a href=&quot;https://github.c
<context>
<name>XMLTreeModel</name>
<message>
<location filename="../xmltreemodel.cpp" line="162"/>
<location filename="../xmltreemodel.cpp" line="165"/>
<source>DXF export failure</source>
<translation>Ошибка экспорта в DXF</translation>
</message>
</context>
<context>
<name>XMLTreeView</name>
<message>
<location filename="../xmltreeview.cpp" line="77"/>
<location filename="../xmltreeview.cpp" line="111"/>
<source>Couldn&apos;t parse some XMLs</source>
<translation>Не удалось обработать несколько XML файлов</translation>
</message>
<message>
<location filename="../xmltreeview.cpp" line="78"/>
<location filename="../xmltreeview.cpp" line="112"/>
<source>Invalid file names are listed below</source>
<translation>Список ошибочных файлов приведён ниже</translation>
</message>
<message>
<location filename="../xmltreeview.cpp" line="117"/>
<location filename="../xmltreeview.cpp" line="150"/>
<source>Export to DXF</source>
<translation>Экспортировать в DXF</translation>
</message>
<message>
<location filename="../xmltreeview.cpp" line="66"/>
<location filename="../xmltreeview.cpp" line="152"/>
<source>Copy XML files to clipboard</source>
<translation>Скопировать XML файлы в буфер обмена</translation>
</message>
<message>
<location filename="../xmltreeview.cpp" line="72"/>
<source>Save DXF File</source>
<translation>Сохранить DXF файл</translation>
</message>
Expand Down

0 comments on commit 1f12731

Please sign in to comment.