Skip to content

Commit

Permalink
Merge branch 'develop' into 'master'
Browse files Browse the repository at this point in the history
merge develop into master

See merge request Scientific-IT-Systems/gr!1045
  • Loading branch information
jheinen committed Apr 3, 2023
2 parents 933ff9c + cf9ca96 commit eff7161
Show file tree
Hide file tree
Showing 33 changed files with 2,747 additions and 344 deletions.
39 changes: 33 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1102,8 +1102,13 @@ endif()

if((Qt6Widgets_FOUND AND Qt6Core_FOUND) OR (Qt5Widgets_FOUND AND Qt5Core_FOUND))
add_executable(
grplot WIN32 MACOSX_BUNDLE lib/grm/grplot/grplot.cxx lib/grm/grplot/grplot_mainwindow.cxx
lib/grm/grplot/grplot_widget.cxx lib/grm/grplot/util.cxx
grplot WIN32 MACOSX_BUNDLE
lib/grm/grplot/grplot.cxx
lib/grm/grplot/grplot_mainwindow.cxx
lib/grm/grplot/grplot_widget.cxx
lib/grm/grplot/qtterm/grm_args_t_wrapper.cpp
lib/grm/grplot/qtterm/receiver_thread.cpp
lib/grm/grplot/util.cxx
)
if(Qt6Widgets_FOUND AND Qt6Core_FOUND)
target_link_libraries(grplot PRIVATE Qt6::Widgets Qt6::Core grm_static)
Expand Down Expand Up @@ -1147,15 +1152,37 @@ if((Qt6Widgets_FOUND AND Qt6Core_FOUND) OR (Qt5Widgets_FOUND AND Qt5Core_FOUND))
${CMAKE_CURRENT_BINARY_DIR}/moc_grplot_mainwindow.cxx
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/lib/grm/grplot/grplot_mainwindow.hxx
)
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/moc_grm_args_t_wrapper.cpp
COMMAND
${QT_MOC_EXECUTABLE} -DGRDIR=\"$(GR_DIRECTORY)\" ${MOC_INCLUDE_FLAGS}
${CMAKE_CURRENT_SOURCE_DIR}/lib/grm/grplot/qtterm/grm_args_t_wrapper.h -o
${CMAKE_CURRENT_BINARY_DIR}/moc_grm_args_t_wrapper.cpp
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/lib/grm/grplot/qtterm/grm_args_t_wrapper.h
)
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/moc_receiver_thread.cpp
COMMAND
${QT_MOC_EXECUTABLE} -DGRDIR=\"$(GR_DIRECTORY)\" ${MOC_INCLUDE_FLAGS}
${CMAKE_CURRENT_SOURCE_DIR}/lib/grm/grplot/qtterm/receiver_thread.h -o
${CMAKE_CURRENT_BINARY_DIR}/moc_receiver_thread.cpp
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/lib/grm/grplot/qtterm/receiver_thread.h
)
target_sources(
grplot PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/moc_grplot_mainwindow.cxx
${CMAKE_CURRENT_BINARY_DIR}/moc_grplot_widget.cxx
grplot
PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/moc_grplot_mainwindow.cxx
${CMAKE_CURRENT_BINARY_DIR}/moc_grplot_widget.cxx
${CMAKE_CURRENT_BINARY_DIR}/moc_grm_args_t_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/moc_receiver_thread.cpp
)
else()
set_target_properties(grplot PROPERTIES AUTOMOC ON AUTORCC ON)
target_sources(
grplot PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/lib/grm/grplot/grplot_mainwindow.hxx
${CMAKE_CURRENT_SOURCE_DIR}/lib/grm/grplot/grplot_widget.hxx
grplot
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/lib/grm/grplot/grplot_mainwindow.hxx
${CMAKE_CURRENT_SOURCE_DIR}/lib/grm/grplot/grplot_widget.hxx
${CMAKE_CURRENT_SOURCE_DIR}/lib/grm/grplot/qtterm/grm_args_t_wrapper.h
${CMAKE_CURRENT_SOURCE_DIR}/lib/grm/grplot/qtterm/receiver_thread.h
)
endif()
if(APPLE)
Expand Down
8 changes: 0 additions & 8 deletions lib/gks/plugin/qtplugin_impl.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1794,14 +1794,6 @@ void QT_PLUGIN_ENTRY_NAME(int fctid, int dx, int dy, int dimx, int *i_arr, int l
p = NULL;
break;

case 6:
/* set display list length to zero */
memset(p->dl.buffer, 0, sizeof(int));
p->dl.nbytes = 0;

p->empty = true;
break;

case 8:
if (i_arr[1] & GKS_K_PERFORM_FLAG)
{
Expand Down
Loading

0 comments on commit eff7161

Please sign in to comment.