mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
00ec824129
Creates the dialog box to select which sites to import from the file selected in mainwindow.cpp. The DivesiteImportModel is created as a table to display and select which sites are to be imported. Once the sites are selected, the Command::importDiveSites command is called to add the sites to the core dive site table with undo/redo functions. Signed-off-by: Doug Junkins <junkins@foghead.com>
70 lines
1.7 KiB
CMake
70 lines
1.7 KiB
CMake
# the data models that will interface
|
|
# with the views.
|
|
|
|
# models used both mobile and desktop builds
|
|
set(SUBSURFACE_GENERIC_MODELS_LIB_SRCS
|
|
completionmodels.cpp
|
|
completionmodels.h
|
|
diveimportedmodel.cpp
|
|
diveimportedmodel.h
|
|
divelocationmodel.cpp
|
|
divelocationmodel.h
|
|
diveplotdatamodel.cpp
|
|
diveplotdatamodel.h
|
|
maplocationmodel.cpp
|
|
maplocationmodel.h
|
|
)
|
|
|
|
# models exclusively used in desktop builds
|
|
set(SUBSURFACE_DESKTOP_MODELS_LIB_SRCS
|
|
cleanertablemodel.cpp
|
|
cleanertablemodel.h
|
|
cylindermodel.cpp
|
|
cylindermodel.h
|
|
divecomputerextradatamodel.cpp
|
|
divecomputerextradatamodel.h
|
|
divecomputermodel.cpp
|
|
divecomputermodel.h
|
|
divepicturemodel.cpp
|
|
divepicturemodel.h
|
|
diveplannermodel.cpp
|
|
diveplannermodel.h
|
|
divesiteimportmodel.cpp
|
|
divesiteimportmodel.h
|
|
divetripmodel.cpp
|
|
divetripmodel.h
|
|
filtermodels.cpp
|
|
filtermodels.h
|
|
models.cpp
|
|
models.h
|
|
tankinfomodel.cpp
|
|
tankinfomodel.h
|
|
treemodel.cpp
|
|
treemodel.h
|
|
weightmodel.cpp
|
|
weightmodel.h
|
|
weightsysteminfomodel.cpp
|
|
weightsysteminfomodel.h
|
|
yearlystatisticsmodel.cpp
|
|
yearlystatisticsmodel.h
|
|
)
|
|
|
|
# models exclusively used in mobile builds
|
|
set(SUBSURFACE_MOBILE_MODELS_LIB_SRCS
|
|
divelistmodel.cpp
|
|
divelistmodel.h
|
|
gpslistmodel.cpp
|
|
gpslistmodel.h
|
|
messagehandlermodel.cpp
|
|
messagehandlermodel.h
|
|
)
|
|
|
|
if (SUBSURFACE_TARGET_EXECUTABLE MATCHES "DesktopExecutable")
|
|
add_library(subsurface_models_desktop STATIC ${SUBSURFACE_GENERIC_MODELS_LIB_SRCS}
|
|
${SUBSURFACE_DESKTOP_MODELS_LIB_SRCS})
|
|
target_link_libraries(subsurface_models_desktop ${QT_LIBRARIES})
|
|
elseif (SUBSURFACE_TARGET_EXECUTABLE MATCHES "MobileExecutable")
|
|
add_library(subsurface_models_mobile STATIC ${SUBSURFACE_GENERIC_MODELS_LIB_SRCS}
|
|
${SUBSURFACE_MOBILE_MODELS_LIB_SRCS})
|
|
target_link_libraries(subsurface_models_mobile ${QT_LIBRARIES})
|
|
endif()
|