<commit_before>############################################################################
# Source files of Common library

# Package GUI (files ordered by lexicographical order i.e. ease of search).
set( Common_Gui_SOURCES
  mvdAboutDialog.cxx
  mvdAbstractDragAndDropEventFilter.cxx
  mvdAbstractImageViewManipulator.cxx
  mvdAbstractImageViewRenderer.cxx
  mvdAbstractModelController.cxx
  mvdApplicationsToolBox.cxx
  mvdCheckableLineEdit.cxx
  mvdColorBandDynamicsWidget.cxx
  mvdColorDynamicsController.cxx
  mvdColorDynamicsWidget.cxx
  mvdColorSetupController.cxx
  mvdColorSetupWidget.cxx
  mvdDatabaseBrowserController.cxx
  mvdDatabaseBrowserWidget.cxx
  mvdDatabaseTreeWidget.cxx
  mvdDatasetCreationProgressDialog.cxx
  mvdDatasetDragAndDropEventFilter.cxx
  mvdDatasetPropertiesController.cxx
  mvdDatasetPropertiesWidget.cxx
  mvdDoubleValidator.cxx
  mvdDropLineEdit.cxx
  mvdFilenameDragAndDropEventFilter.cxx
  mvdGui.cxx
  mvdHistogramController.cxx
  mvdHistogramPlotPicker.cxx
  mvdHistogramWidget.cxx
  mvdI18nApplication.cxx
  mvdI18nMainWindow.cxx
  mvdImageViewManipulator.cxx
  mvdImageViewRenderer.cxx
  mvdImageViewWidget.cxx
  mvdMainWindowTitleLoader.cxx
  mvdMouseEventFilter.cxx
  mvdMyWidget.cxx
  mvdPixelDescriptionWidget.cxx
  mvdQuicklookViewManipulator.cxx
  mvdQuicklookViewRenderer.cxx
  mvdSearchableTreeWidget.cxx
  mvdStatusBarWidget.cxx
  mvdTaskProgressDialog.cxx
  mvdTreeWidget.cxx
  mvdTreeWidgetItem.cxx
  mvdTreeWidgetItemDragAndDropEventFilter.cxx
)

#############################################################################
# Qt's MOC header files for Common library (QObject derived classes).

# Package GUI (files ordered by lexicographical order i.e. ease of search).
set( Common_Gui_HEADERS_MOC
  mvdAboutDialog.h
  mvdAbstractDragAndDropEventFilter.h
  mvdAbstractImageViewManipulator.h
  mvdAbstractImageViewRenderer.h
  mvdAbstractModelController.h
  mvdApplicationsToolBox.h
  mvdCheckableLineEdit.h
  mvdColorBandDynamicsWidget.h
  mvdColorDynamicsController.h
  mvdColorDynamicsWidget.h
  mvdColorSetupController.h
  mvdColorSetupWidget.h
  mvdDatabaseBrowserController.h
  mvdDatabaseBrowserWidget.h
  mvdDatabaseTreeWidget.h
  mvdDatasetCreationProgressDialog.h
  mvdDatasetDragAndDropEventFilter.h
  mvdDatasetPropertiesController.h
  mvdDatasetPropertiesWidget.h
  mvdDoubleValidator.h
  mvdDropLineEdit.h
  mvdFilenameDragAndDropEventFilter.h
  #mvdGui.h
  mvdI18nApplication.h
  mvdI18nMainWindow.h
  mvdImageViewManipulator.h
  mvdImageViewRenderer.h
  mvdImageViewWidget.h
  mvdHistogramController.h
  mvdHistogramPlotPicker.h
  mvdHistogramWidget.h
  mvdMainWindowTitleLoader.h
  mvdMouseEventFilter.h
  mvdMyWidget.h
  mvdPixelDescriptionWidget.h
  mvdQuicklookViewManipulator.h
  mvdQuicklookViewRenderer.h
  mvdSearchableTreeWidget.h
  mvdStatusBarWidget.h
  mvdTaskProgressDialog.h
  mvdTreeWidget.h
  #mvdTreeWidgetItem.h
  mvdTreeWidgetItemDragAndDropEventFilter.h
)

#############################################################################
# Qt designer UI files
set( Common_Gui_FORMS
  mvdAboutDialog.ui
  mvdApplicationsToolBox.ui
  mvdCheckableLineEdit.ui
  mvdColorBandDynamicsWidget.ui
  mvdColorDynamicsWidget.ui
  mvdColorSetupWidget.ui
  mvdDatabaseBrowserWidget.ui
  mvdDatasetCreationProgressDialog.ui
  mvdDatasetPropertiesWidget.ui
  mvdHistogramWidget.ui
  mvdMyWidget.ui
  mvdPixelDescriptionWidget.ui
  mvdSearchableTreeWidget.ui
  mvdStatusBarWidget.ui
  mvdVideoColorToolBox.ui
)

# Qt resources
set( Common_Gui_RESOURCES
  # mvdApplicationsToolBox.qrc
  # mvdDatabaseBrowserController.qrc
  # mvdIcons.qrc
)

include_directories(
  ${ICE_INCLUDE_DIRS}
  #
  ${Monteverdi2_BINARY_DIR}
  #
  ${Monteverdi2_SOURCE_DIR}/Code/Common
  #${Monteverdi2_SOURCE_DIR}/Code/Common/Gui
  #
  ${Monteverdi2_BINARY_DIR}/Code/Common
  ${Monteverdi2_BINARY_DIR}/Code/Common/Gui
  #
  ${QWT_INCLUDE_DIRS}
)

# message( "INCLUDE_DIRECTORIES: ${INCLUDE_DIRECTORIES}" )
# message( "ICE_INCLUDE_DIRS: ${ICE_INCLUDE_DIRS}" )
# message( "ICE_LIBRARIES: ${ICE_LIBRARIES}" )

#############################################################################
# Qt4 wrapped files.
qt4_wrap_cpp( Common_Gui_SRC_MOC ${Common_Gui_HEADERS_MOC} )
qt4_wrap_ui( Common_Gui_FORMS_HEADERS ${Common_Gui_FORMS}  )
qt4_add_resources( Common_Gui_RESOURCES_RCC ${Common_Gui_RESOURCES} )

########################################################################
# Qt4 translations.

# Sources files to translate.
add_to_qt4_i18n_sources( 
  ${Common_Gui_SOURCES}
  ${Common_Gui_HEADERS_MOC}
  ${Common_Gui_FORMS}
)

#############################################################################
add_library(Monteverdi2_Gui
  ${Common_Gui_SOURCES}
  ${Common_Gui_FORMS_HEADERS}
  ${Common_Gui_SRC_MOC}
  ${Common_Gui_RESOURCES_RCC}
)

#############################################################################
target_link_libraries(Monteverdi2_Gui
  Monteverdi2_Core
  ${ICE_LIBRARIES}
  ${OPENGL_LIBRARIES}
  ${GLEW_LIBRARIES}
  #Qt4::QtCore
  Qt4::QtGui
  Qt4::QtOpenGL
  ${QWT_LIBRARIES}
)

set_target_properties(Monteverdi2_Gui
  PROPERTIES ${Monteverdi2_LIBRARY_PROPERTIES}
)

#############################################################################
# INSTALL Common application.
install(
  TARGETS Monteverdi2_Gui
  RUNTIME DESTINATION ${Monteverdi2_INSTALL_BIN_DIR} COMPONENT Runtime
  LIBRARY DESTINATION ${Monteverdi2_INSTALL_LIB_DIR} COMPONENT Runtime
  ARCHIVE DESTINATION ${Monteverdi2_INSTALL_LIB_DIR} COMPONENT Development
)

#############################################################################
<commit_msg>ENH: remove compilation of template class<commit_after>############################################################################
# Source files of Common library

# Package GUI (files ordered by lexicographical order i.e. ease of search).
set( Common_Gui_SOURCES
  mvdAboutDialog.cxx
  mvdAbstractDragAndDropEventFilter.cxx
  mvdAbstractImageViewManipulator.cxx
  mvdAbstractImageViewRenderer.cxx
  mvdAbstractModelController.cxx
  mvdApplicationsToolBox.cxx
  mvdCheckableLineEdit.cxx
  mvdColorBandDynamicsWidget.cxx
  mvdColorDynamicsController.cxx
  mvdColorDynamicsWidget.cxx
  mvdColorSetupController.cxx
  mvdColorSetupWidget.cxx
  mvdDatabaseBrowserController.cxx
  mvdDatabaseBrowserWidget.cxx
  mvdDatabaseTreeWidget.cxx
  mvdDatasetCreationProgressDialog.cxx
  mvdDatasetDragAndDropEventFilter.cxx
  mvdDatasetPropertiesController.cxx
  mvdDatasetPropertiesWidget.cxx
  mvdDoubleValidator.cxx
  mvdDropLineEdit.cxx
  mvdFilenameDragAndDropEventFilter.cxx
  mvdGui.cxx
  mvdHistogramController.cxx
  mvdHistogramPlotPicker.cxx
  mvdHistogramWidget.cxx
  mvdI18nApplication.cxx
  mvdI18nMainWindow.cxx
  mvdImageViewManipulator.cxx
  mvdImageViewRenderer.cxx
  mvdImageViewWidget.cxx
  mvdMainWindowTitleLoader.cxx
  mvdMouseEventFilter.cxx
  #mvdMyWidget.cxx
  mvdPixelDescriptionWidget.cxx
  mvdQuicklookViewManipulator.cxx
  mvdQuicklookViewRenderer.cxx
  mvdSearchableTreeWidget.cxx
  mvdStatusBarWidget.cxx
  mvdTaskProgressDialog.cxx
  mvdTreeWidget.cxx
  mvdTreeWidgetItem.cxx
  mvdTreeWidgetItemDragAndDropEventFilter.cxx
)

#############################################################################
# Qt's MOC header files for Common library (QObject derived classes).

# Package GUI (files ordered by lexicographical order i.e. ease of search).
set( Common_Gui_HEADERS_MOC
  mvdAboutDialog.h
  mvdAbstractDragAndDropEventFilter.h
  mvdAbstractImageViewManipulator.h
  mvdAbstractImageViewRenderer.h
  mvdAbstractModelController.h
  mvdApplicationsToolBox.h
  mvdCheckableLineEdit.h
  mvdColorBandDynamicsWidget.h
  mvdColorDynamicsController.h
  mvdColorDynamicsWidget.h
  mvdColorSetupController.h
  mvdColorSetupWidget.h
  mvdDatabaseBrowserController.h
  mvdDatabaseBrowserWidget.h
  mvdDatabaseTreeWidget.h
  mvdDatasetCreationProgressDialog.h
  mvdDatasetDragAndDropEventFilter.h
  mvdDatasetPropertiesController.h
  mvdDatasetPropertiesWidget.h
  mvdDoubleValidator.h
  mvdDropLineEdit.h
  mvdFilenameDragAndDropEventFilter.h
  #mvdGui.h
  mvdI18nApplication.h
  mvdI18nMainWindow.h
  mvdImageViewManipulator.h
  mvdImageViewRenderer.h
  mvdImageViewWidget.h
  mvdHistogramController.h
  mvdHistogramPlotPicker.h
  mvdHistogramWidget.h
  mvdMainWindowTitleLoader.h
  mvdMouseEventFilter.h
  #mvdMyWidget.h
  mvdPixelDescriptionWidget.h
  mvdQuicklookViewManipulator.h
  mvdQuicklookViewRenderer.h
  mvdSearchableTreeWidget.h
  mvdStatusBarWidget.h
  mvdTaskProgressDialog.h
  mvdTreeWidget.h
  #mvdTreeWidgetItem.h
  mvdTreeWidgetItemDragAndDropEventFilter.h
)

#############################################################################
# Qt designer UI files
set( Common_Gui_FORMS
  mvdAboutDialog.ui
  mvdApplicationsToolBox.ui
  mvdCheckableLineEdit.ui
  mvdColorBandDynamicsWidget.ui
  mvdColorDynamicsWidget.ui
  mvdColorSetupWidget.ui
  mvdDatabaseBrowserWidget.ui
  mvdDatasetCreationProgressDialog.ui
  mvdDatasetPropertiesWidget.ui
  mvdHistogramWidget.ui
  #mvdMyWidget.ui
  mvdPixelDescriptionWidget.ui
  mvdSearchableTreeWidget.ui
  mvdStatusBarWidget.ui
  mvdVideoColorToolBox.ui
)

# Qt resources
set( Common_Gui_RESOURCES
  # mvdApplicationsToolBox.qrc
  # mvdDatabaseBrowserController.qrc
  # mvdIcons.qrc
)

include_directories(
  ${ICE_INCLUDE_DIRS}
  #
  ${Monteverdi2_BINARY_DIR}
  #
  ${Monteverdi2_SOURCE_DIR}/Code/Common
  #${Monteverdi2_SOURCE_DIR}/Code/Common/Gui
  #
  ${Monteverdi2_BINARY_DIR}/Code/Common
  ${Monteverdi2_BINARY_DIR}/Code/Common/Gui
  #
  ${QWT_INCLUDE_DIRS}
)

# message( "INCLUDE_DIRECTORIES: ${INCLUDE_DIRECTORIES}" )
# message( "ICE_INCLUDE_DIRS: ${ICE_INCLUDE_DIRS}" )
# message( "ICE_LIBRARIES: ${ICE_LIBRARIES}" )

#############################################################################
# Qt4 wrapped files.
qt4_wrap_cpp( Common_Gui_SRC_MOC ${Common_Gui_HEADERS_MOC} )
qt4_wrap_ui( Common_Gui_FORMS_HEADERS ${Common_Gui_FORMS}  )
qt4_add_resources( Common_Gui_RESOURCES_RCC ${Common_Gui_RESOURCES} )

########################################################################
# Qt4 translations.

# Sources files to translate.
add_to_qt4_i18n_sources( 
  ${Common_Gui_SOURCES}
  ${Common_Gui_HEADERS_MOC}
  ${Common_Gui_FORMS}
)

#############################################################################
add_library(Monteverdi2_Gui
  ${Common_Gui_SOURCES}
  ${Common_Gui_FORMS_HEADERS}
  ${Common_Gui_SRC_MOC}
  ${Common_Gui_RESOURCES_RCC}
)

#############################################################################
target_link_libraries(Monteverdi2_Gui
  Monteverdi2_Core
  ${ICE_LIBRARIES}
  ${OPENGL_LIBRARIES}
  ${GLEW_LIBRARIES}
  #Qt4::QtCore
  Qt4::QtGui
  Qt4::QtOpenGL
  ${QWT_LIBRARIES}
)

set_target_properties(Monteverdi2_Gui
  PROPERTIES ${Monteverdi2_LIBRARY_PROPERTIES}
)

#############################################################################
# INSTALL Common application.
install(
  TARGETS Monteverdi2_Gui
  RUNTIME DESTINATION ${Monteverdi2_INSTALL_BIN_DIR} COMPONENT Runtime
  LIBRARY DESTINATION ${Monteverdi2_INSTALL_LIB_DIR} COMPONENT Runtime
  ARCHIVE DESTINATION ${Monteverdi2_INSTALL_LIB_DIR} COMPONENT Development
)

#############################################################################

{'fraction_non_alphanumeric': 0.1744631560188898, 'fraction_numerical': 0.005880780539962577, 'mean_word_length': 7.109826589595376, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2736804', 'n_tokens_mistral': 3899, 'n_tokens_neox': 3720, 'n_words': 471}