a06b47394b
Squashed commit of the following: apps/graphics/twm4nx: The calibration seems to be functional. Needs more testing. apps/graphics/twm4nx: Extend event handling to support receiving raw, uncalibaated touchscreen inputs. This is needed for touchscreen calibration. apps/graphics/twm4nx: Extend event handling to support shutting down of externally controlled windows. This is need to end the calibration sequence. apps/graphics/twm4nx: CCalibration now compiles okay, but is missing event handling logic for touchscreen input and for window termination. apps/graphics/twm4nx: Move application-related files into different directories to separate them from the core Twm4Nx files. apps/graphics/twm4nx: A little more progress on calibration display. app/graphics/twm4ndx: Add files that will support a calibration display. This initial commit is simply the calibration display from NxWM and is not hooked into the configuration or build systems. apps/graphics/twm4ndx: Compile out cursor support if we are using a mouse
146 lines
3.8 KiB
Plaintext
146 lines
3.8 KiB
Plaintext
#
|
|
# For a description of the syntax of this configuration file,
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
|
#
|
|
|
|
menuconfig GRAPHICS_TWM4NX
|
|
tristate "Minimal Tom's Window Manager (TWM) for NuttX (Twm4Nx)"
|
|
default n
|
|
select NX_RAMBACKED
|
|
select NXWIDGETS
|
|
depends on NX && EXPERIMENTAL
|
|
---help---
|
|
Enable Tom's Window Manager (TWM) for NuttX (Twm4Nx).
|
|
|
|
Use of this window manager requires keyboard and mouse input.
|
|
Output is through the NX server.
|
|
|
|
if GRAPHICS_TWM4NX
|
|
|
|
comment "Twm4Nx Core Configuration"
|
|
|
|
config TWM4NX_PROGNAME
|
|
string "Twm4Nx program name"
|
|
default "twm4nx"
|
|
depends on BUILD_LOADABLE
|
|
---help---
|
|
This is the name of the program that will be use when the NSH ELF
|
|
program is installed.
|
|
|
|
config TWM4NX_PRIORITY
|
|
int "Twm4Nx task priority"
|
|
default 100
|
|
|
|
config TWM4NX_STACKSIZE
|
|
int "Twm4Nx stack size"
|
|
default 2048
|
|
|
|
config TWM4NX_REVMAJOR
|
|
string "Twm4Nx major version number"
|
|
default "0"
|
|
|
|
config TWM4NX_REVMINOR
|
|
string "Twm4Nx minor version number"
|
|
default "0"
|
|
|
|
config TWM4NX_ARCHINIT
|
|
bool "Have architecture-specific initialization"
|
|
default n
|
|
select LIB_BOARDCTL
|
|
depends on !NSH_ARCHINIT
|
|
---help---
|
|
Set if your board provides architecture specific initialization
|
|
via the board-interface function boardctl(). The boardctl()
|
|
function will be called early in Twm4Nx initialization to allow
|
|
board logic to do such things as configure MMC/SD slots.
|
|
|
|
config TWM4NX_NETINIT
|
|
bool "Network initialization"
|
|
default y
|
|
depends on NET
|
|
select NETUTILS_NETINIT
|
|
depends on !NSH_ARCHINIT
|
|
---help---
|
|
This option enables/disables all network initialization in Twm4Nx.
|
|
|
|
config TWM4NX_VNCSERVER
|
|
bool "Use VNC Server"
|
|
default y
|
|
depends on VNCSERVER
|
|
select TWM4NX_NOKEYBOARD
|
|
select TWM4NX_NOMOUSE
|
|
---help---
|
|
If selected, then keyboard and positional input will come from the
|
|
VNC server. In this case all other input settings are ignored.
|
|
|
|
config TWM4NX_NOKEYBOARD
|
|
bool "Disable keyboard"
|
|
default n
|
|
---help---
|
|
Normally you would never disable keyboard input. That would make
|
|
using many Twm4Nx applications impossible. However, this setting
|
|
is sometimes useful for debugging Twm4Nx bringup in a simpler
|
|
environment (it is also used if VNC is selected)
|
|
|
|
config TWM4NX_NOMOUSE
|
|
bool "Disable mouse/touchscreen"
|
|
default n
|
|
---help---
|
|
Normally you would never disable mouse input. That would make using
|
|
Twm4Nx impossible. However, this setting is sometimes useful for
|
|
debugging Twm4Nx bringup in a simpler environment (it is also used
|
|
if VNC is selected)
|
|
|
|
choice
|
|
prompt "Position device"
|
|
default TWM4NX_MOUSE
|
|
depends on !TWM4NX_NOMOUSE
|
|
|
|
config TWM4NX_MOUSE
|
|
bool "Mouse"
|
|
select NX_SWCURSOR
|
|
|
|
config TWM4NX_TOUCHSCREEN
|
|
bool "Touchscreen"
|
|
|
|
endchoice # Position device
|
|
|
|
config TWM4NX_MOUSE_DEVPATH
|
|
string "Path to input device"
|
|
default "/dev/mouse0" if TWM4NX_MOUSE
|
|
default "/dev/input0" if TWM4NX_TOUCHSCREEN
|
|
|
|
config TWM4NX_DEBUG
|
|
bool "Force debug output"
|
|
default n
|
|
depends on DEBUG_FEATURES
|
|
---help---
|
|
This option will force graphics debug output for Twm4Nx even if
|
|
graphics debug output is not enabled. This is useful for very low
|
|
level debug of the Twm4Nx logic without interfering output from
|
|
other graphics components.
|
|
|
|
NOTE: The level of this Twm4Nx debug is still controlled by the
|
|
basic debug output settings CONFIG_DEBUG_INFO, CONFIG_DEBUG_WARN,
|
|
and CONFIG_DEBUG_ERROR (but not the corresponding
|
|
CONFIG_DEBUG_GRAPHICS_* settings)
|
|
|
|
comment "Twm4Nx Applications"
|
|
|
|
config TWM4NX_CALIBRATION
|
|
bool "Touchscreen"
|
|
default y
|
|
depends on TWM4NX_TOUCHSCREEN
|
|
---help---
|
|
Enable support for the touchscreen calibration display.
|
|
|
|
config TWM4NX_NXTERM
|
|
bool "NxTerm Window"
|
|
default y
|
|
depends on NXTERM && NSH_LIBRARY
|
|
---help---
|
|
Enable support for the NxTerm window which provides a text window
|
|
in which you can interact with NSH.
|
|
|
|
endif # GRAPHICS_TWM4NX
|