Commit Graph

331 Commits

Author SHA1 Message Date
Gregory Nutt
f730108adb Squashed commit of the following:
apps/graphics/NxWidgets:  Fix a possible deadlock condition when waiting for window geometry data that will never come.  Fixed by re-requesting geometry data if we don't already have it.

    apps/graphics/twm4nx:  Add some debug output.

    apps/graphics/twm4nx:  Rethink how background events are handled.

    apps/grephics/twm4nx:  Expermimental organization to capture background events.
2019-05-01 11:11:43 -06:00
Gregory Nutt
ad57b3de4d apps/graphics/twm4nx: Add options to initialize the system via boardctl() and to bring up the network using the new apps/netutils/netinit. This latter is only necessary because VNC is being used to provide graphics. 2019-04-29 11:49:15 -06:00
Gregory Nutt
6a970ec4e9 apps/graphics/twm4nx: Suppress input thread if using the VNC server. We don't need to catch input fromo keyboard and mouse devices in that case; those inputs will be injected into NX directly by the VNC server. Includes a couple of fixes from initial bringup attempts. 2019-04-28 12:47:49 -06:00
Gregory Nutt
e742f97674 Squashed commit of the following:
apps/graphics/twm4nx:  Remove Icon Windows; replace with IconWidgets that are draw on the background.
    apps/graphics/twm4nx:  Add CIconWidget event generation.
    apps/graphics/twm4nx:  Add event handling logic to CIconWidget.
2019-04-28 09:24:05 -06:00
Gregory Nutt
0c6f41912c apps/graphics/twm4nx: Add compount widget CIconWidget. This will eventually replace the icon Windows with widgets that can be drawn on the Background. 2019-04-27 17:53:02 -06:00
Gregory Nutt
9030bf631d apps/graphics/twm4nx: Flesh out some of the Resize logic. Still missing the pull events needed to do the resize. 2019-04-27 12:05:18 -06:00
Gregory Nutt
c144919a4e apps/graphics/twm4nx: Finsh menu-related event handling. Extended menu handling. Allow external application event handling using a new base class (CTwm4NxEvent). 2019-04-27 09:35:05 -06:00
Gregory Nutt
ba58654955 apps/graphics/twm4nx: In order for widgets too draw the correct window or toolbar, it is necessary to get the CWidgetControl instance from the window we want to use, not to create a new instance. 2019-04-26 14:30:55 -06:00
Gregory Nutt
601659ff59 Squashed commit of the following:
graphics/twm4nx/src/ciconmgr.cxx:  Integrate use of CButtonArray; implement first cut at event handling.

    graphics/nxwidgets/src/cbuttonarray.cxx:  Add a method to CButtonArray that will allow us to dynamically resize the array (at the cost of losing all button labels).

    graphics/twm4nx/src/ciconmgr.cxx:  Add some fragments of CButtonArray logic.

    graphics/twm4nx/src/cwindow.cxx:  Finishes first cut at window event management.
2019-04-26 12:50:35 -06:00
Gregory Nutt
27194275a5 apps/graphics/twm4nx: Update the README. 2019-04-25 17:58:28 -06:00
Gregory Nutt
950b4cb604 wm4Nx is a port of twm, Tab Window Manager (or Tom's Window Manager)
version 1.0.10 to NuttX NX windows server.  No, a port is not the right
word.  It is a re-design of TWM from the inside out to work with the NuttX
NX server.  The name Twm4Nx reflects this legacy.  But Twm4Nx is more a
homage to TWM than a port of TWM.

The original TWM was based on X11 which provides a rich set of features.
TWM provided titlebars, shaped windows, several forms of icon management,
user-defined macro functions, click-to-type and pointer-driven keyboard
focus, graphic contexts, and user-specified key and pointer button bindings,
etc.

Twm4Nx, on the other hand is based on the NuttX NX server which provides
comparatively minimal support.  Additional drawing support comes from
the NuttX NxWidgets library (which necessitated the change to C++).

Twm4Nx is greatly stripped down and targeted on small embedded systems
with minimal resources.  For example, no assumption is made about the
availability of a file system; no .twmrc file is used.  Bitmaps are not
used (other than for fonts).

The TWM license is, I believe compatible with the BSD license used by NuttX.
The origin TWM license required notice of copyrights within each file and
a full copy of the original license which you can find in the COPYING file.
within this directory.

STATUS:

This port was brutal.  Much TWM logic was removed because it depending on X11 features (or just because I could not understand how to use it).  The logic is partial.  A lot more needs to be done to have a complete system (hence, it is marked EXPERIMENTAL).  The kinds of things that need to done are:

1. Update some logic that is only fragmentary for how like resizing, and menus.
2. Integrate NxWidgets into the windows:  The resize menu needs a CLabel, the menus are CListBox'es, but not completely integrated, the Icon Manager needs to be a button array.
3. Resit Icons.  They are windows now, but need to be compound widgets lying on the background.
4. Widget events are only partially integrated.  A lot more needs to be done.  A partial change to thoe event system that hints at the redesign is in place but it is far from complete.
2019-04-25 16:54:17 -06:00
Gregory Nutt
8c48db8176 graphics/nxglyphs/include/mkcursor.c: Correct file header comments. 2019-04-22 17:01:20 -06:00
Gregory Nutt
a96fdc3fa1 /apps/graphics/nxglyphs: Add 16x16 cursor images. 30x30 are kind of large. 2019-04-14 13:44:08 -06:00
Gregory Nutt
03e65e8d22 graphics/nxglyphs: Update cursor images. Better to have clean, if ragged cursor edges that weird color effects from antialiasing attempts. 2019-04-13 15:09:57 -06:00
Gregory Nutt
0ff0a97ae4 apps/graphics/nxglyphs/include: Lots more problems with autogenerated files. 2019-04-10 09:15:05 -06:00
Matthew Koch
f09bc1a01b Squashed commit of the following:
Add note to file header of MIT-licensed code
    Compat for older kconfig
    Fixup OOB build experience
    Apply coding standards to imported code
    Upgrade littlevgl to 5.3 - demo
    Upgrade littlevgl to 5.3
2019-04-08 06:57:42 -06:00
Gregory Nutt
aec954b9ec apps/graphics/nxglyphs: Fixes for more changes to cursor structures. 2019-04-07 17:41:45 -06:00
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