Skip to content

Commit 9e9bfef

Browse files
author
lsv
committed
fix without patch
Приведение в соответствие с github Патч делать не нужно.
1 parent bdfca63 commit 9e9bfef

Some content is hidden

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

56 files changed

+512
-505
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ Release/*
99
*.bsc
1010
*.pdb
1111
include/svnversion.h
12+
build/*

CMakeLists.txt

+74
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
cmake_minimum_required(VERSION 3.0.0)
2+
#set(CMAKE_CXX_SYSROOT_FLAG_CODE "list(APPEND CMAKE_CXX_SOURCE_FILE_EXTENSIONS cc)")
3+
project(pgAdmin3 VERSION 1.26.0)
4+
include_directories(. include include/libssh2
5+
)
6+
add_compile_definitions(WX_PRECOMP)
7+
add_compile_definitions(WX_PRECOMP)
8+
add_compile_definitions(wxUSE_UNICODE)
9+
add_compile_definitions(EMBED_XRC)
10+
#add_compile_definitions(EMBED_XRC)
11+
add_compile_options(-Wno-narrowing
12+
)
13+
14+
#set(CMAKE_CXX_EXTENSIONS OFF)
15+
list(APPEND CMAKE_CXX_SOURCE_FILE_EXTENSIONS c)
16+
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated-declarations")
17+
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated")
18+
set(CMAKE_CXX_STANDARD 17)
19+
set(CMAKE_CXX_STANDARD_REQUIRED ON)
20+
21+
file(GLOB_RECURSE SOURCES
22+
agent/*.c*
23+
ctl/*.c*
24+
db/*.c*
25+
dd/*.c* debugger/*.c* dlg/*.c* frm/*.c*
26+
gqb/*.c*
27+
hotdraw/*.c* ogl/*.c* pgscript/*.c*
28+
pro_scheduler/*.c* schema/*.c* slony/*.c* ui/xrcDialogs.cpp utils/*.c*
29+
)
30+
31+
##########################################################
32+
find_package(LibXslt REQUIRED)
33+
if(NOT LIBXSLT_FOUND)
34+
message(SEND_ERROR "Failed to find LibXslt")
35+
return()
36+
else()
37+
include_directories(${LIBXSLT_INCLUDE_DIR})
38+
link_libraries(${LIBXSLT_LIBRARIES})
39+
endif()
40+
find_package(LibXml2 REQUIRED)
41+
if(NOT LIBXML2_FOUND)
42+
message(SEND_ERROR "Failed to find LibXml2")
43+
return()
44+
else()
45+
include_directories(${LIBXML2_INCLUDE_DIR})
46+
link_libraries(${LIBXML2_LIBRARIES})
47+
endif()
48+
find_package(wxWidgets REQUIRED stc aui base net core xrc html xml)
49+
if(NOT wxWidgets_FOUND)
50+
message(SEND_ERROR "Failed to find wxWidgets ")
51+
return()
52+
else()
53+
include(${wxWidgets_USE_FILE})
54+
include_directories(${wxWidgets_INCLUDE_DIRS})
55+
link_libraries(${wxWidgets_LIBRARIES})
56+
endif()
57+
58+
find_package(PostgreSQL REQUIRED)
59+
if(NOT PostgreSQL_FOUND)
60+
message(SEND_ERROR "Failed to find PostgreSql")
61+
return()
62+
else()
63+
include_directories(${PostgreSQL_INCLUDE_DIRS})
64+
include_directories(${PostgreSQL_INCLUDE_DIRS}/server)
65+
link_libraries(${PostgreSQL_LIBRARIES})
66+
endif()
67+
68+
69+
add_executable(pgAdmin3 pgAdmin3.cpp ${SOURCES})
70+
target_precompile_headers(pgAdmin3 PUBLIC include/precomp.h)
71+
72+
set(CPACK_PROJECT_NAME ${PROJECT_NAME})
73+
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
74+

INSTALL.txt

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
2+
Зависимости
3+
--------------
4+
cmake 3.2
5+
gcc10-c++
6+
wxWidgets 3.1.6 (Был собран из исходников https://www.wxwidgets.org/downloads/)
7+
Postgresql 14
8+
libxml2
9+
libxslt
10+
11+
Сборка
12+
-------
13+
mkdir build
14+
cd build
15+
cmake ../
16+
cmake --build . --config Release --target all -j 3 --
17+
18+
Полученный исполняемый файл pgAdmin3 нужно поместить в каталог оригального pgadmin3
19+
20+
21+
ОС для сборки использовал «Альт Рабочая станция» 10
22+
https://www.basealt.ru/alt-workstation/download#c1211
23+
24+
Редактировал и собирал на Visual Studio code
25+
26+

README.md

+14-2
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,18 @@ English version issue #18
201201

202202
13.09.2021
203203
- Добавлено меню закрытия всех открытых серверов "Disconnect all servers"
204-
-
205-
204+
13.01.2022
205+
- Для Log view добавлена: подержка быстрой навигации: Shift+KeyUP,KeyDOWN
206+
переход на запись с тем же sql_state,
207+
Alt+KeyUP,KeyDOWN - переход на запись с другим sql_state
208+
Добавлена колонка Server - сервер с которого получен лог.
209+
* Ctrl+S отправка сообщения по почте Outlook. Шаблон письма в файле mail.template
210+
В первых двух строках шаблона можно указать адреса которые будут подставляться в письмо.
211+
- В frmLog добалены сохраняемые пользовательские фильтры.
212+
По кнопке Add текущий фильтр сохраняется. Имя задается в ComboBox.
213+
* В окне "Status Server" устанавливается парамер "SET statement_timeout=10000;" и "SET log_min_messages = FATAL"
214+
чтобы избежать зависания функции pg_query_state.
215+
* При возникновении ошибки "server closed the connection unexpectedly"
216+
сообщение об этом теперь не выводиться на экран. Т.к. происходило падение pgAdmin3
217+
206218

Release_(3.0)/libeay32.dll

-1.15 MB
Binary file not shown.

Release_(3.0)/libiconv-2.dll

-992 KB
Binary file not shown.

Release_(3.0)/libiconv.dll

-894 KB
Binary file not shown.

Release_(3.0)/libintl-8.dll

-1.47 MB
Binary file not shown.

Release_(3.0)/libintl.dll

-75 KB
Binary file not shown.

Release_(3.0)/libpq.dll

-235 KB
Binary file not shown.

Release_(3.0)/libxml2.dll

-1.69 MB
Binary file not shown.

Release_(3.0)/libxslt.dll

-304 KB
Binary file not shown.

Release_(3.0)/pgAdmin3.exe

-10.3 MB
Binary file not shown.

Release_(3.0)/ssleay32.dll

-267 KB
Binary file not shown.

0 commit comments

Comments
 (0)