Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP testing a lot of changes in order to get full support to SSW software suite for solar satellites. #2007

Merged
merged 31 commits into from
Mar 30, 2025

Conversation

GillesDuvert
Copy link
Contributor

@GillesDuvert GillesDuvert commented Mar 8, 2025

  • removed a few unused very internal functions (gdl_warning(), usym())
  • added More() and insured that help,/recall checks the value of !MORE before mimicking a 'more' terminal.
    ( Note that NAMES filter option does not work with RECALL for IDL. This is a GDL improvement. The search is now case insensitive for OS having the GNU extension. )
  • Insure NAMES=xxx correctly used (no routines printed if NAMES is used, unless /ROUTINES or /FUNCTION or /PROCEDURE are also used)
  • IDLNETURL corrected up to the point it works within all the SSW uses --- should cover most useages.
  • GDL 'fake' version (in !VERSION) set to 8.4 to stay closer to the true GDL state, ven if we miss some important functions (mainly the graphic functions!)
  • changes in DOT (debug) functions:
  • Corrected bug in floating-point representation, as IDL ALWAYS puts a dot in the formated representation, when C++ does not.
  • HUGE correction of WIDGET_EVENT and more generally all EVENTS, the code written up too now did not pay sufficient attention to subtle points in the IDL documentation. Thanks to the incredible SSW code as example, now the event-handling is OK even in "extreme" cases where the event-handling by cascading event handling procedures changes the way events are treated (as SSW's PLOTMAN code is full of them).
  • removed GTK warnings issued in WIDGET_LIST
  • modified event handler for text (and test_widgets.pro), regarding the behaviour wrt a RETURN or TAB key, that is not the same for single and multi-line text.
  • FIND_BY_UNAME in WIDGET_INFO was not using the widget id and was thus completely wrong... corrected. Now all compound widgets should work better!
  • correctly uses UNITS for all dimensions in Widgets (when available and useable)
  • WIDGET_TABLE improvements and now selection supports -1 as in IDL ( -1 means "the entire line or column")
  • added CW_FIELD (using D. Fanning's code in the background).
  • added micro-sleeps in eventloops, this avoids GDL using all the CPU waiting to events.

Giloo added 20 commits March 6, 2025 14:24
…lutely not the same behaviour as IDL, but widget event loop is not separate from main loop and widget_event may hang if we do not do this.
…tively while in an inner interpreter loop (started after a STOP or CONTROL-C or error in procedure) should be reported, but ignored while continuing in the program .
added More() and insured that help,/recall checks teh value of !MORE before mimicking a 'more' terminal.
Note that NAMES filter option does not work with RECALL for IDL. This is a GDL improvement. The search is now case insensitive for OS having the GNU extension. 
Insure NAMES=xxx correctly used (no routines printed if NAMES is used, unless /ROUTINES or /FUNCTION or /PROCEDURE are also used)
…owpoint" modifier.

Not doing this explained a big bug in SSW software suite.
…in GDLInterpreter.cpp:695 . But makes .RET the equivalent of .OUT, although for IDL, .RET stays on the "return" indefinitely, to get out one needs a .C, .s or .out
…ts eventloop) available to perform a trick in idlneturl__define.pro .

Hopefully temporary hack.
…ded example_event_handling.pro to show the different ways an event handling function is behaving.
… behaviour wrt a RETURN or TAB key, that is not the same for single and multi-line text.
@GillesDuvert GillesDuvert changed the title Improved help WIP testing a lot of changes in order to get full support to SSW software suite for solar satellites. Mar 20, 2025
Giloo added 9 commits March 22, 2025 00:04
…ng. Wonder how compound widgets could have worked before, as they need it ??
…cation of calling arguments: it is necessary to insure that the TOP tag is set to the value passed to WIDGET_EVENT(top) where top is not necessary the TLB, as was implied in the historical code (although the documentation is clear on this point), something not easy to pinpoint given that most existing event procedures trap all events at the TLB level (xmanager in particular). Only the SSW 'plotman' widget takes advantage of this alternate (and powerful) behaviour.
…o UNITS and are converted to ints for wxWidgets only at the last useful moment.

2) Geometry was not OK -- WIP
3) DEVICE, GET_XXX to give back Ints and not Long when IDL does the same
4) static ints for keyword position in 2 functions have been made non-static as they can be called by 2 different commands and do not share the same position.
Giloo added 2 commits March 28, 2025 12:08
… as designator of a whole line or column in set_table_select
@GillesDuvert GillesDuvert merged commit 426e13a into gnudatalanguage:master Mar 30, 2025
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant