bugGNU Octave - Bugs: bug #50449, Qt figure should have uimenu...

 
 

bug #50449: Qt figure should have uimenu objects as children of figure

Submitter:  Rik <rik5>
Submitted:  Fri 03 Mar 2017 07:10:13 PM UTC
   
 
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 03 Mar 2017 07:10:13 PM UTC, original submission:  

In Matlab, the default menus (such as File, Edit) are uimenu objects which are children of the current figure.  The property "HandleVisibility" is set to "off" so they are not returned by


get (gcf, "children")


However, they can be returned with findall or allchild.


allchild (gcf)


For FLTK, this system is already implemented.  When figure.m is called to create a new figure, it calls scripts/plot/util/private/__add_default_menu__.m to add uimenu objects.  However, for Qt figures the menus are different and they are created directly in libgui/graphics/Figure.cc.

The simplest thing, I think, is to have _add_default_menu_.m also run for Qt and then eliminate the C++ code in Figure.cc


Rik <rik5>
Group administrator

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by pantxo (Updated the item)
  • -email is unavailable- added by rik5 (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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-10-15 pantxo StatusConfirmed Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code