octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #51847] Variable Editor should be able to show


From: Philip Nienhuis
Subject: [Octave-bug-tracker] [bug #51847] Variable Editor should be able to show struct internals
Date: Fri, 25 Aug 2017 09:47:06 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:49.0) Gecko/20100101 Firefox/49.0 SeaMonkey/2.46

URL:
  <http://savannah.gnu.org/bugs/?51847>

                 Summary: Variable Editor should be able to show struct
internals
                 Project: GNU Octave
            Submitted by: philipnienhuis
            Submitted on: Fri 25 Aug 2017 03:47:05 PM CEST
                Category: GUI
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Feature Request
                  Status: None
             Assigned to: None
         Originator Name: Philip Nienhuis
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any

    _______________________________________________________

Details:

Structs and arrays of structs can be opened in the Variable editor, fine.
Double clicking on a cell containing a struct in the Variable Editor should
open the struct and show its internals in a new Variable Editor tab.

Attached are a few pics of how Matlab (r2015) shows struct contents, taken
from patch #8656 comment #37.
Relevant text from that comment, copied here for convenience:


a = struct ('b', 'field1')
a.c = [1 2; 3 4]
a.d = {1, 'text'; [10 20], {'TL', 'TR'; 'BL', 'BR'}}


gives the output of struct1.png (attached)
Then,

a(2).b = 'field2'


gives struct2.png
Double-clicking field a(1).d (~cell 1, 3) gives struct3.png

So maybe maybe displaying structs doesn't have to be that difficult and could
be fairly straightforward. 




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Fri 25 Aug 2017 03:47:05 PM CEST  Name: struct1-1.png  Size: 40KiB   By:
philipnienhuis

<http://savannah.gnu.org/bugs/download.php?file_id=41651>
-------------------------------------------------------
Date: Fri 25 Aug 2017 03:47:05 PM CEST  Name: struct2-1.png  Size: 43KiB   By:
philipnienhuis

<http://savannah.gnu.org/bugs/download.php?file_id=41652>
-------------------------------------------------------
Date: Fri 25 Aug 2017 03:47:05 PM CEST  Name: struct3-1.png  Size: 41KiB   By:
philipnienhuis

<http://savannah.gnu.org/bugs/download.php?file_id=41653>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?51847>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]