-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote branch 'slsDetectorGui/2.3.2' into 2.3.2
- Loading branch information
Showing
87 changed files
with
27,040 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Makefile.gui | ||
forms/include/ | ||
mocs/ | ||
objs/ | ||
qrc_icons.cpp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
|
||
set(CMAKE_AUTOMOC ON) | ||
|
||
set(SOURCES | ||
slsDetectorPlotting/src/SlsQt1DPlot.cxx | ||
slsDetectorPlotting/src/SlsQt1DZoomer.cxx | ||
slsDetectorPlotting/src/SlsQt2DHist.cxx | ||
slsDetectorPlotting/src/SlsQt2DPlot.cxx | ||
slsDetectorPlotting/src/SlsQt2DPlotLayout.cxx | ||
slsDetectorPlotting/src/SlsQtNumberEntry.cxx | ||
src/qDetectorMain.cpp | ||
src/qDrawPlot.cpp | ||
src/qCloneWidget.cpp | ||
src/qTabMeasurement.cpp | ||
src/qTabDataOutput.cpp | ||
src/qTabPlot.cpp | ||
src/qTabActions.cpp | ||
src/qActionsWidget.cpp | ||
src/qScanWidget.cpp | ||
src/qTabAdvanced.cpp | ||
src/qTabSettings.cpp | ||
src/qTabDebugging.cpp | ||
src/qTabDeveloper.cpp | ||
src/qTabMessages.cpp | ||
src/qServer.cpp | ||
) | ||
|
||
set(FORMS | ||
forms/form_detectormain.ui | ||
forms/form_tab_measurement.ui | ||
forms/form_tab_dataoutput.ui | ||
forms/form_tab_plot.ui | ||
forms/form_tab_advanced.ui | ||
forms/form_tab_settings.ui | ||
forms/form_tab_debugging.ui | ||
forms/form_action.ui | ||
forms/form_scan.ui | ||
) | ||
|
||
qt4_wrap_ui(FORMS_H ${FORMS}) | ||
|
||
set(HEADERS | ||
slsDetectorPlotting/include/SlsQt1DPlot.h | ||
slsDetectorPlotting/include/SlsQt1DZoomer.h | ||
slsDetectorPlotting/include/SlsQt2DHist.h | ||
slsDetectorPlotting/include/SlsQt2DPlot.h | ||
slsDetectorPlotting/include/SlsQt2DPlotLayout.h | ||
slsDetectorPlotting/include/SlsQt2DZoomer.h | ||
slsDetectorPlotting/include/SlsQtValidators.h | ||
slsDetectorPlotting/include/SlsQtNumberEntry.h | ||
include/qDefs.h | ||
include/qDebugStream.h | ||
include/qDetectorMain.h | ||
include/qDrawPlot.h | ||
include/qCloneWidget.h | ||
include/qTabMeasurement.h | ||
include/qTabDataOutput.h | ||
include/qTabPlot.h | ||
include/qTabActions.h | ||
include/qActionsWidget.h | ||
include/qScanWidget.h | ||
include/qTabAdvanced.h | ||
include/qTabSettings.h | ||
include/qTabDebugging.h | ||
include/qTabDeveloper.h | ||
include/qTabMessages.h | ||
include/gitInfoGui.h | ||
include/qServer.h | ||
) | ||
set(RESOURCES | ||
include/icons.qrc | ||
) | ||
qt4_add_resources(RESOURCES_SRCS ${RESOURCES}) | ||
|
||
include_directories( | ||
include | ||
slsDetectorPlotting/include | ||
../slsDetectorSoftware/commonFiles | ||
../slsDetectorSoftware/slsReceiverInterface | ||
../slsDetectorSoftware/slsDetector | ||
../slsDetectorSoftware/slsDetectorAnalysis | ||
../slsDetectorSoftware/multiSlsDetector | ||
../slsDetectorSoftware/usersFunctions | ||
../slsReceiverSoftware/include | ||
${QT_INCLUDE_DIR} | ||
${QT_QTCORE_INCLUDE_DIR} | ||
${QT_QTGUI_INCLUDE_DIR} | ||
${QWT_INCLUDE_DIR} | ||
${CMAKE_CURRENT_BINARY_DIR} | ||
) | ||
|
||
add_definitions( | ||
-DDACS_INT -DVERBOSE -DPRINT_LOG | ||
) | ||
|
||
add_executable(slsDetectorGui | ||
${SOURCES} | ||
${HEADERS} | ||
${FORMS_H} | ||
${RESOURCES_SRCS} | ||
) | ||
|
||
set_target_properties(slsDetectorGui PROPERTIES | ||
LINKER_LANGUAGE CXX | ||
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin | ||
) | ||
|
||
add_library(zmq STATIC IMPORTED ) | ||
|
||
set_target_properties(zmq PROPERTIES | ||
IMPORTED_LOCATION ${CMAKE_CURRENT_SOURCE_DIR}/../slsReceiverSoftware/include/libzmq.a | ||
) | ||
|
||
target_link_libraries(slsDetectorGui | ||
slsDetectorShared | ||
${QT_QTCORE_LIBRARIES} | ||
${QT_QTGUI_LIBRARIES} | ||
${QWT_LIBRARIES} | ||
pthread | ||
zmq | ||
rt | ||
) | ||
|
||
add_executable(gui_client | ||
client/qClient.h | ||
client/qClient.cpp | ||
) | ||
set_target_properties(gui_client PROPERTIES | ||
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# LEO: Won't compile without libSlsDetector | ||
|
||
include ../Makefile.include | ||
|
||
$(info ) | ||
$(info ##################################) | ||
$(info # Compiling slsDetectorGui #) | ||
$(info ##################################) | ||
$(info ) | ||
|
||
|
||
|
||
PROG = $(DESTDIR)/slsDetectorGui | ||
|
||
DESTDIR ?= ../bin | ||
LIBDIR ?= $(DESTDIR) | ||
DOCDIR ?= docs | ||
|
||
LIBRARYDIR ?= ../slsDetectorSoftware | ||
LIBRARYRXRDIR ?= ../slsReceiverSoftware | ||
INCLUDES ?= $(LIBRARYDIR)/commonFiles -I$(LIBRARYRXRDIR)/MySocketTCP -I$(LIBRARYDIR)/slsReceiverInterface -I$(LIBRARYDIR)/slsDetector -I$(LIBRARYDIR)/slsDetectorAnalysis -I$(LIBRARYDIR)/multiSlsDetector -I$(LIBRARYDIR)/usersFunctions -I$(LIBRARYRXRDIR)/includes | ||
|
||
#ifeq ( $(EIGERSLS), yes) | ||
# LDFLAG += $(EIGERFLAGS) | ||
#else ifeq ( $(ROOTSLS), yes) | ||
# LDFLAG += $(ROOTFLAGS) | ||
#endif | ||
|
||
.PHONY: all lib clean mm doc htmldoc guiclient | ||
|
||
|
||
all: lib $(PROG) Makefile.gui guiclient | ||
|
||
lib: | ||
cd ../ && $(MAKE) lib | ||
|
||
clean: | ||
if test -e Makefile.gui; then $(MAKE) -f Makefile.gui clean; $(MAKE) -f Makefile.gui mocclean; rm Makefile.gui; else $(MAKE) Makefile.gui; $(MAKE) -f Makefile.gui clean; $(MAKE) -f Makefile.gui mocclean; fi | ||
cd client && $(MAKE) clean | ||
# cd manual && make clean | ||
|
||
|
||
Makefile.gui: mm | ||
|
||
mm: | ||
qmake -set QT_INSTALL_PREFIX $(QTDIR) && qmake -o Makefile.gui INCLUDES='$(INCLUDES)' DESTDIR=$(DESTDIR) SLSDETLIB=$(LIBDIR) SUBLIBS='$(LDFLAGDET)' | ||
|
||
doc: | ||
cd manual && $(MAKE) DESTDIR=$(DOCDIR) | ||
|
||
htmldoc: | ||
cd manual && $(MAKE) html DESTDIR=$(DOCDIR) | ||
|
||
$(PROG): Makefile.gui $(DIR) | ||
$(MAKE) -f Makefile.gui SLSDETLIB=$(LIBDIR) DESTDIR=$(DESTDIR) SUBLIBS='$(LDFLAGDET)' INCLUDES='$(INCLUDES)' | ||
|
||
guiclient: | ||
echo $(WD) | ||
cd client && $(MAKE) DESTDIR=$(DESTDIR) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
CC = g++ | ||
CLAGS += -DVERBOSE #VERYBOSE | ||
LDLIBS += -lm -lstdc++ -pthread | ||
|
||
LDIR = ../../slsDetectorSoftware | ||
RDIR = ../../slsReceiverSoftware | ||
|
||
INCLUDES = -I $(LDIR)/commonFiles -I $(LDIR)/slsDetector -I ../include -I $(RDIR)/include | ||
SRC_CLNT = qClient.cpp $(RDIR)/src/MySocketTCP.cpp | ||
|
||
PROGS = gui_client | ||
DESTDIR ?= bin | ||
INSTMODE = 0777 | ||
|
||
FINALDIR = ../../bin | ||
|
||
OBJS = $(SRC_CLNT:.cpp=.o) | ||
|
||
|
||
all: clean $(PROGS) | ||
|
||
boot: $(OBJS) | ||
|
||
$(PROGS): | ||
echo $(OBJS) | ||
mkdir -p $(DESTDIR) | ||
gcc $(SRC_CLNT) $(INCLUDES) $(FLAGS) $(LDLIBS) -o $@ | ||
mv $(PROGS) $(FINALDIR) | ||
|
||
clean: | ||
rm -rf $(DESTDIR)/$(PROGS) *.o $(FINALDIR)/$(PROGS) | ||
|
||
|
||
|
||
|
||
|
Oops, something went wrong.