bugGNU Octave - Bugs: bug #58254, Variable editor could show more...

 
 

bug #58254: Variable editor could show more details for user classes

Submitter:  Rick T <ratulloch>
Submitted:  Mon 27 Apr 2020 06:08:00 AM UTC
   
 
Category:  GUI Severity:  1 - Wish
Priority:  3 - Low Item Group:  Feature Request
Status:  None Assigned to:  None
Originator Name:  Open/Closed:  * Open
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 16 Jun 2020 01:03:24 AM UTC, comment #2: 

Might want to be a little careful with this: because properties can have getters (and might in fact be Dependent), accessing a property can execute arbitrary code, and doing so might be expensive or have side effects. I haven't seen this used in Octave much, but in Matlab, I've definitely seen code where it is not safe to access some object properties just to see what's in them.

What do you think about adding an API that allows for user-customizable display of arbitrary objects? Something like the dispstr API: https://github.com/apjanke/dispstr. This could be used to provide customized display of user-defined objects not only in the GUI's Variable Editor, but in contexts like struct and cell displays at the command line where the objects are embedded inside compound data structures. (For example: `quat1=quaternion(1,2,3,4); s = struct('my_quaternion', quat1); disp(s);`)

Andrew Janke <apjanke>
Mon 27 Apr 2020 06:47:09 AM UTC, comment #1: 

As shown in your screenshot, the variable editor is able to display general information (i.e. the class name) for user classes.
But it might be possible to display a list of all (public) properties with their values.
See also bug #51847 for a similar feature for structures.

I re-titled this report to be less specific and changed it to a feature request for the GUI.

Markus Mützel <mmuetzel>
Group administrator
Mon 27 Apr 2020 06:08:00 AM UTC, original submission:  

Variable editor doesn't show quaternion elements

Quick test code:
pkg load quaternion
quat1=quaternion(1,2,3,4) %define the axis to rotate around

See image of url below
http://i.imgur.com/l3TFwp7.png

Rick T <ratulloch>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #48951:  l3TFwp7.png added by ratulloch (90KiB - image/png)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by apjanke (Posted a comment)
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by ratulloch (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 8 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-04-27 mmuetzel Item GroupMatlab Compatibility Feature Request
        Release5.2.0 dev
        Operating SystemGNU/Linux Any
        SummaryVariable editor doesn't show quaternion elements Variable editor could show more details for user classes
    2020-04-27 mmuetzel CategoryOctave Package GUI
        Severity3 - Normal 1 - Wish
        Priority5 - Normal 3 - Low
    2020-04-27 ratulloch Attached File- Added l3TFwp7.png, #48951

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code