This adds the framework for platform cursor implementations; Windows and X11 to be done. It also extend the mouse-input code to generate hover events suitable for driving tooltips. Note there should be no visible functionality change from this commit, since everything is inactive until fgdata changes are made.
51 lines
899 B
CMake
51 lines
899 B
CMake
include(FlightGearComponent)
|
|
|
|
set(SOURCES
|
|
AirportList.cxx
|
|
CanvasWidget.cxx
|
|
MapWidget.cxx
|
|
WaypointList.cxx
|
|
dialog.cxx
|
|
FGPUIDialog.cxx
|
|
fonts.cxx
|
|
gui.cxx
|
|
gui_funcs.cxx
|
|
layout-props.cxx
|
|
layout.cxx
|
|
menubar.cxx
|
|
FGPUIMenuBar.cxx
|
|
new_gui.cxx
|
|
property_list.cxx
|
|
FGFontCache.cxx
|
|
FGColor.cxx
|
|
FileDialog.cxx
|
|
PUIFileDialog.cxx
|
|
MouseCursor.cxx
|
|
)
|
|
|
|
set(HEADERS
|
|
AirportList.hxx
|
|
CanvasWidget.hxx
|
|
MapWidget.hxx
|
|
WaypointList.hxx
|
|
dialog.hxx
|
|
FGPUIDialog.hxx
|
|
gui.h
|
|
layout.hxx
|
|
menubar.hxx
|
|
FGPUIMenuBar.hxx
|
|
new_gui.hxx
|
|
property_list.hxx
|
|
FGFontCache.hxx
|
|
FGColor.hxx
|
|
FileDialog.hxx
|
|
PUIFileDialog.hxx
|
|
MouseCursor.hxx
|
|
)
|
|
|
|
if (APPLE)
|
|
list(APPEND HEADERS FGCocoaMenuBar.hxx CocoaFileDialog.hxx CocoaMouseCursor.hxx)
|
|
list(APPEND SOURCES FGCocoaMenuBar.mm CocoaFileDialog.mm CocoaMouseCursor.mm)
|
|
endif()
|
|
|
|
flightgear_component(GUI "${SOURCES}" "${HEADERS}")
|