Commit Graph

314 Commits

Author SHA1 Message Date
Gregory Nutt
7a7e86ac6c apps/nxglyphs/include/: Remove stride from cursor structure 2019-04-07 16:06:21 -06:00
Gregory Nutt
35fb270090 Add apps/graphics/nxglyphs/include/.gitignore 2019-04-07 13:29:31 -06:00
Gregory Nutt
f907270cd4 apps/nglyphs/include: Fixes to mkcursor.c. Update all cursor images to hangle extensions to the cursor image structure. 2019-04-07 13:23:43 -06:00
Gregory Nutt
34da66f51e apps/graphics/nxglyphs: Add some cursor bitmap images. 2019-04-07 11:22:31 -06:00
Gregory Nutt
c6dbcb2b17 graphics/nxglyphs/Makefile: Fixes error 'No rule to make target preconfig' 2019-04-05 14:41:00 -06:00
Gregory Nutt
ef26c25994 graphics/nxwidgets and inclu/graphics/nxwidgets: Add support for modal windows. 2019-04-05 09:05:19 -06:00
Gregory Nutt
5a693020b8 graphics/nxwm/src/nxwm_main.cxx: Fix a warning about a missing return in function returning a value. 2019-04-04 20:10:53 -06:00
Gregory Nutt
755ee18504 apps/graphics/nxwm: nxwm_main.c is no longer a unit test. Need to remove some dangling dependencies on UNITTEST and also some testing that is inappropriate in its new role. 2019-04-04 20:04:12 -06:00
Gregory Nutt
c7da99d6a5 apps/graphics/nxwidgets: Fixes a few warnnigs. 2019-04-04 19:43:23 -06:00
Gregory Nutt
dee7f14b49 Squashed commit of the following:
apps/system/nxplayer:  Fix some logical errors from recent comments.  They broke the build of the nxplayer as a library vs. a task.  apps/graphics/nxglyphs:  Fix yet more namespace problems.

    graphics/nxwm/src/nxwm_main.cxx:  Move from graphics/nxwidgets/UnitTests/nxwm/nxwm_main.cxx.

    apps/graphicx/nx*:  Fixes numerous build issues mostly associated with include paths and namespaces.

    apps/nxglyphs:  Decouple (mostly) from nxwidgets and nxwm so that they can be used elsewhere.  Creates include/graphics/nxglyphs.h

    apps/graphics/nxglyphs:  Put all NxWidgets and NxWM glyphs into a common directory where they can eventually be shared.  Not very sharable at the moment due to header file entanglements.  Need a separate nxglyps.hxx header file.

    Separate nxwidets and nxwm into separate directories.  Remove old, common NxWidgets directory.
2019-04-04 18:53:29 -06:00
Gregory Nutt
61eb262142 Various graphics apps: If CONFIG_VNCSERVER=y, don't vnc_default_fbinitialize() directly. That is a violation of the portable POSIX interface. Instead, call boardctl(BOARDIOC_VNC_START);. 2019-04-02 07:06:06 -06:00
Gregory Nutt
84922406f7 graphics/NxWidgets/nxwm/src/ctaskbar.cxx: Correct a typo in a comment. 2019-03-29 11:04:48 -06:00
Gregory Nutt
b024b54b37 Correct some trivial typos 2019-03-29 09:02:55 -06:00
Gregory Nutt
2dca8f38d9 graphics/NxWidgets/nwm: Cosmetic. 2019-03-28 12:18:05 -06:00
Gregory Nutt
765106e816 Remove unused apps/graphics/NxWidgets/UnitTests/Kconfig.SAVE. 2019-03-27 15:51:48 -06:00
Gregory Nutt
e0db6be103 Trivial removal of dangling white space at the end of the line. 2019-03-27 13:53:07 -06:00
Gregory Nutt
b167bebabc graphics/NxWidgets/nxwidgets/src/ccallback.cxx and include/graphics/nxwidgets/: Add a synchronize method to every window. This is a wrapper arounc nx[tk]_sync and permits C++ applications to synchronize with the NX server. 2019-03-27 13:50:52 -06:00
Gregory Nutt
11b6bc9447 exmamples/, graphics/NxWidgets: Update NX window clients so that they use the new 'event' callback (vs. the obsoluted 'blocked' callback). 2019-03-25 13:01:52 -06:00
Gregory Nutt
d33ce2c3ae graphics: nx_openwindow() and nxtk_openwindow() now accept an addtional 'flag' parameter. This argument is not used at present but will, eventually enable a RAM backed, per-window framebuffer. 2019-03-13 12:33:13 -06:00
Gregory Nutt
66af5b46dd apps/Nxwidgets: Fix some recently introduced errors found in build testing. 2019-03-08 16:26:34 -06:00
Gregory Nutt
53e6f4bf13 apps/examples/nxterm, graphics/NxWidgets: Replace illegal direct calls to nxterm_redraw() and nxterm_kbdin() with new boardctl() calls. 2019-03-06 15:23:02 -06:00
Gregory Nutt
c341abff35 graphics/NxWidgets/nxwm/src/cnxterm.cxx: Part of the last change was still in he editor. 2019-03-06 11:12:56 -06:00
Gregory Nutt
061b4338c9 apps/examples/nxterm and graphics/NxWidgets/nxwm: Replace direct calls to nxtk_register with legal, indirect calls via boardctrl(BOARDIOC_NXTERM). Replace calls to (deleted) nxterm_unregister(). The correc way to delete a driver is by unlink'ing it. 2019-03-06 10:53:13 -06:00
Gregory Nutt
9c05f6540b Some updates due to NuttX renaming: CONFIG_BOARD_INITIALIZE is not CONFIG_BOARD_LATE_INITIALIZE; board_initialize() is now board_late_initialize(). 2019-02-18 13:16:23 -06:00
Gregory Nutt
902c3fa552 graphics/NxWidgets/nxwm/src/ccalibration.cxx: Correct and error in the type of the return value. 2019-01-27 17:22:13 -06:00
Xiang Xiao
ff54c47e64 Follow up the kernel signal-related change in:
examples/oneshot/oneshot_main.c:
  examples/alarm/alarm_main.c:
  examples/ajoystick/ajoy_main.c
  examples/djoystick/djoy_main.c
  examples/buttons/buttons_main.c
  examples/zerocross/zerocross_main.c
  graphics/traveler/src/trv_input.c
  graphics/ft80x/
2019-01-27 09:48:29 -06:00
Ken Pettit
8132c38064 graphics/pdcurs34: This commit adds a configuration option to pdcurses to enable line-drawing character (ALTCHARSET) when using the short 16-bit chtype. This is done by limiting the characters to 7-bit ASCII values and using the 8-th bit as the A_ALTCHARSET bit. This allows a significant RAM savings 4K - 20K depending on terminal size) while still allowing the nicer line-graphic characters for border drawing. 2019-01-08 08:28:27 -06:00
Ken Pettit
e1237bfefd apps/graphics/pdcurs34/nuttx and system/termcurses: This commit fixes two issues:
1. A memory corruption issue that occurs from a paste operation that would overflow the fixed buffer size for keyboard processing.

2. A stall in getch() processing when there are cached keycodes in the termcurses emulation (tcurses_vt100.c).
2019-01-08 08:28:27 -06:00
Ken Pettit
73fc5eb199 apps/graphics/pdcurs34: Integration of termcurses into pdcurses, plus pdcurses updates for multi-thread support 2019-01-05 13:25:12 -06:00
Gregory Nutt
6a87ee878b graphics/NxWidgets/nxwidgets/src/clabelgrid.cxx: Change old-style dbg() to current ginfo(). 2018-11-09 12:34:46 -06:00
Gregory Nutt
7488a65e17 Updates from coding style review of PR 160 2018-11-09 10:21:42 -06:00
Petteri Aimonen
66d4ed9912 Merged in paimonen/apps/pullreq_nxwidgets (pull request #160)
NxWidgets improvements

* NxWidgets: fix garbage returned when CCycleButton::getValue() is called after removeAllOptions().

    It's a bit questionable whether returning 0 here is reasonable or
    if it would be better to assert(). But either is better than reading
    into random memory and returning a garbage value.

* NXWidgets CScrollingPanel: Don't draw outside the widget area.

    The port->move() function doesn't support clipping the
    copied area to the client area, so we have to manually
    calculate the part that can be moved without going outside
    the widget.

* CNxString: Add string + operator and ::format() function

* CNumericEdit: Add option to include unit name after the value

* NxWidgets: CNxWidget: Make useWidgetStyle() public

    Makes it easier to update styles when multiple controls are nested.

* NxWidgets: Add CLabelGrid control for displaying text in grid format.

Approved-by: GregoryN <gnutt@nuttx.org>
2018-11-09 16:00:50 +00:00
Gregory Nutt
6cf53e69a4 Fix missing dates in Copyright. 2018-09-17 08:23:42 -06:00
Gregory Nutt
c558fce8ad This commit moves the NxWidgets include directories into the correct position in the apps/ source tree.
Squashed commit of the following:

    Clean-up some include path problems introduced with the previous set of changes.

    app/include/graphics, apps/NxWidgets/UnitTests:  Update include paths for file in new location.

    apps/NxWidgets/nxwidgets and nxwm:  Update include paths for file in new location.

    apps/graphics/NxWidgets:  Move nxwidgets and nxwm include/ directories to apps/include/graphics
2018-09-16 17:23:45 -06:00
Gregory Nutt
2a19aab1a5 Eliminate some warnings found in build testing. 2018-09-16 10:11:51 -06:00
Gregory Nutt
cd06134557 graphics/NxWidgets: Fix some issues foundin build testing. 2018-09-16 09:25:32 -06:00
Gregory Nutt
2de0a78202 apps/graphics/NxWidgets: Hooking into build system. 2018-09-16 06:52:25 -06:00
Gregory Nutt
17b69f1515 Directory.mk: If the current directory contains a Kconfig file and MENUDESC is not defined, then Directory.mk must not trash the Kconfig in the current directory. 2018-09-16 06:15:37 -06:00
Gregory Nutt
dfb8359308 apps/graphics/NxWidgets/UnitTests/Makefile: Forget to add file before last commit 2018-09-16 06:00:32 -06:00
Gregory Nutt
07709a11c8 apps/graphics/NxWidgets/UnitTests: Add Unit Test configuration and build logic. 2018-09-15 18:22:56 -06:00
Gregory Nutt
52ac68da04 app/graphics/NxWidgets: Fix-up paths in idempotence definitions of header files. 2018-09-15 16:50:46 -06:00
Gregory Nutt
cb20ed53f3 apps/graphics/NxWidgets: Fix file paths in file headers. Remove some duplicate tools. 2018-09-15 16:46:29 -06:00
Gregory Nutt
76c6c12517 apps/graphics/NxWidgets: Some progress integrating configuration/build system 2018-09-15 16:38:39 -06:00
Gregory Nutt
68877ca48c Merge remote-tracking branch 'apps/NxWidgets' 2018-09-15 15:58:43 -06:00
Gregory Nutt
57bcfdb987 graphics/NxWidgets/.gitignore: Add file lost in the merge 2018-09-15 15:53:29 -06:00
Gregory Nutt
f871cd0911 Move NxWidgets files into graphics/NxWidgets 2018-09-15 15:50:16 -06:00
Gregory Nutt
ec79a44696 Remove old NxWidgets files 2018-09-15 15:38:55 -06:00
Gregory Nutt
c5edf40542 apps/examples/udpblaster: Add option to use poll() on output (only). Also picks up some fixes to various typographical errors. 2018-09-14 06:59:23 -06:00
anchao
b5cfd93444 apps/: Modification to build system: Unified application compilation rules 2018-09-03 09:29:56 -06:00
Xiang Xiao
5304ec5eec Replace all ASSERT calls to DEBUGASSERT 2018-08-24 06:19:35 -06:00