-# Copyright (C) 2010-2014 CEA/DEN, EDF R&D
+# Copyright (C) 2010-2015 CEA/DEN, EDF R&D
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
-INCLUDE_DIRECTORIES( ${PROJECT_SOURCE_DIR}/IO )
+INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_SOURCE_DIR}/../IO )
IF(PARAVIEW_BUILD_QT_GUI)
- QT4_WRAP_UI(CLIENT_UI_SRCS Resources/UI/MEDReaderPanel.ui Resources/UI/ExtractGroupPanel.ui Resources/UI/ExtractCellTypePanel.ui)
-
+ QT_WRAP_UIC(CLIENT_UI_SRCS
+ Resources/UI/MEDReaderVectorsWidget.ui
+ Resources/UI/MEDReaderTimeModeWidget.ui)
+
# create a plugin that implements an object panel for the reader
- SET(CLIENT_SRCS pqMEDReaderPanel.cxx pqExtractGroupPanel.cxx pqExtractCellTypePanel.cxx VectBoolSpreadSheet.cxx VectBoolWidget.cxx)
-
- QT4_WRAP_CPP(MOC_SRCS pqMEDReaderPanel.h pqExtractGroupPanel.h pqExtractCellTypePanel.h VectBoolSpreadSheet.h VectBoolWidget.h)
-
- ADD_PARAVIEW_OBJECT_PANEL(MEDREADER_IFACES MEDREADER_IFACE_SRCS
- CLASS_NAME pqMEDReaderPanel
- XML_NAME MEDReader
- XML_GROUP sources
- )
-
- ADD_PARAVIEW_OBJECT_PANEL(EXTRACTGROUP_IFACES EXTRACTGROUP_IFACE_SRCS
- CLASS_NAME pqExtractGroupPanel
- XML_NAME ExtractGroup
- XML_GROUP filters
- )
+ SET(SM_SRCS
+ vtkPVMetaDataInformation.cxx)
+
+ SET(CLIENT_SRCS
+ pqExtractGroupFieldsWidget.cxx
+ pqAbstractFieldsWidget.cxx
+ VectBoolSpreadSheet.cxx
+ VectBoolWidget.cxx
+ pqMEDReaderGraphUtils.cxx
+ pqMEDReaderVectorsWidget.cxx
+ pqMEDReaderTimeModeWidget.cxx
+ pqMEDReaderReloadWidget.cxx
+ pqMEDReaderTimesFlagsWidget.cxx
+ pqMEDReaderFieldsWidget.cxx)
+
+ QT_WRAP_MOC(MOC_SRCS
+ pqExtractGroupFieldsWidget.h
+ pqAbstractFieldsWidget.h
+ VectBoolSpreadSheet.h
+ VectBoolWidget.h
+ pqMEDReaderVectorsWidget.h
+ pqMEDReaderTimeModeWidget.h
+ pqMEDReaderReloadWidget.h
+ pqMEDReaderTimesFlagsWidget.h
+ pqMEDReaderFieldsWidget.h)
+
+ ADD_PARAVIEW_PROPERTY_WIDGET(MEDREADER_TIMEMODE_IFACES MEDREADER_TIMEMODE_IFACE_SRCS
+ TYPE "MEDReaderTimeModeWidgetType"
+ CLASS_NAME pqMEDReaderTimeModeWidget)
+
+ ADD_PARAVIEW_PROPERTY_WIDGET(MEDREADER_RELOAD_IFACES MEDREADER_RELOAD_IFACE_SRCS
+ TYPE "MEDReaderReloadWidgetType"
+ CLASS_NAME pqMEDReaderReloadWidget)
+
+ ADD_PARAVIEW_PROPERTY_WIDGET(MEDREADER_VECTORS_IFACES MEDREADER_VECTORS_IFACE_SRCS
+ TYPE "MEDReaderVectorsWidgetType"
+ CLASS_NAME pqMEDReaderVectorsWidget)
+
+ ADD_PARAVIEW_PROPERTY_WIDGET(MEDREADER_TIMESFLAGS_IFACES MEDREADER_TIMESFLAGS_IFACE_SRCS
+ TYPE "MEDReaderTimesFlagsWidgetType"
+ CLASS_NAME pqMEDReaderTimesFlagsWidget)
+
+ ADD_PARAVIEW_PROPERTY_WIDGET(MEDREADER_FIELDS_IFACES MEDREADER_FIELDS_IFACE_SRCS
+ TYPE "MEDReaderFieldsWidgetType"
+ CLASS_NAME pqMEDReaderFieldsWidget)
+
+ ADD_PARAVIEW_PROPERTY_WIDGET(EXTRACTGROUP_FIELDS_IFACES EXTRACTGROUP_FIELDS_IFACES_SRCS
+ TYPE "ExtractGroupFieldsWidgetType"
+ CLASS_NAME pqExtractGroupFieldsWidget)
- ADD_PARAVIEW_OBJECT_PANEL(EXTRACTCELLTYPE_IFACES EXTRACTCELLTYPE_IFACE_SRCS
- CLASS_NAME pqExtractCellTypePanel
- XML_NAME ExtractCellType
- XML_GROUP filters
- )
-
# create the med reader plugin itself
ADD_PARAVIEW_PLUGIN(MEDReaderPlugin "4.0"
+ SERVER_MANAGER_SOURCES ${SM_SRCS}
SERVER_MANAGER_XML Resources/MEDReaderServer.xml
- GUI_INTERFACES ${MEDREADER_IFACES} ${EXTRACTGROUP_IFACES} ${EXTRACTCELLTYPE_IFACES}
+ GUI_INTERFACES
+ ${MEDREADER_TIMEMODE_IFACES}
+ ${MEDREADER_RELOAD_IFACES}
+ ${MEDREADER_TIMESFLAGS_IFACES}
+ ${MEDREADER_FIELDS_IFACES}
+ ${MEDREADER_VECTORS_IFACES}
+ ${EXTRACTGROUP_FIELDS_IFACES}
GUI_RESOURCES Resources/pqMEDReader.qrc
- GUI_SOURCES ${CLIENT_SRCS}
- ${CLIENT_UI_SRCS}
- ${MOC_SRCS}
- ${MEDREADER_IFACE_SRCS} ${EXTRACTGROUP_IFACE_SRCS} ${EXTRACTCELLTYPE_IFACE_SRCS}
+ SOURCES
+ ${CLIENT_SRCS}
+ ${CLIENT_UI_SRCS}
+ ${MOC_SRCS}
+ ${MEDREADER_TIMEMODE_IFACE_SRCS}
+ ${MEDREADER_RELOAD_IFACE_SRCS}
+ ${MEDREADER_TIMESFLAGS_IFACE_SRCS}
+ ${MEDREADER_FIELDS_IFACE_SRCS}
+ ${MEDREADER_VECTORS_IFACE_SRCS}
+ ${EXTRACTGROUP_FIELDS_IFACES_SRCS}
CS_KITS
# this is the same name as the name in module.cmake file IO
# directory.
vtkMEDReader
)
-
+
ELSE(PARAVIEW_BUILD_QT_GUI)
-
+
# create the med reader plugin itself
ADD_PARAVIEW_PLUGIN(MEDReaderPlugin "4.0"
SERVER_MANAGER_SOURCES ${SM_SRCS}
# directory.
vtkMEDReader
)
-
+
ENDIF(PARAVIEW_BUILD_QT_GUI)
TARGET_LINK_LIBRARIES(MEDReaderPlugin vtkMEDReader vtkMEDReaderCS)
)
-
-