bugGNU Octave - Bugs: bug #60481, Include figures into the GUI's...

 
 

bug #60481: Include figures into the GUI's main window

Submitter:  Bill Eaton <wpeaton>
Submitted:  Thu 29 Apr 2021 06:54:55 PM UTC
   
 
Category:  GUI Severity:  1 - Wish
Priority:  5 - Normal Item Group:  Feature Request
Status:  None Assigned to:  None
Originator Name:  Bill Eaton Open/Closed:  * Open
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Tue 11 May 2021 04:30:48 PM UTC, comment #11: 

Pantxo: It should be possible to resize docked widgets with qt5. But I am not sure if we should really dock each figure separately or if we have one dock widget where docked figures are included.

Torsten Lilge <ttl>
Group Member
Tue 11 May 2021 01:01:44 PM UTC, comment #10: 

From Matlab's documentation of the figure properties:
https://de.mathworks.com/help/matlab/ref/matlab.ui.figure-properties.html

> WindowStyle — Window style
> 'normal' (default) | 'modal' | 'docked'
> * 'docked' — The figure displays in the desktop or a document window. When the WindowStyle property is set to 'docked', you cannot set the DockControls property to 'off'. The 'docked' option is not supported in MATLAB Online.
>
> Position — Location and size of drawable area
> You cannot specify the figure Position property when the figure is docked.


IIUC, that means no scrollbar or clipping when docked.

Markus Mützel <mmuetzel>
Group administrator
Tue 11 May 2021 12:06:55 PM UTC, comment #9: 

Torsten: Thanks, I didn't know that was possible, and from looking at the code recently I misunderstood it to only be possible to have two columns of widgets.

Pantxo: Good point, I hadn't thought of that.  I don't know what Matlab does, or even if it allows figure windows to be docked in the main window.  To respect the size properties, could the figure windows be scaled when docked?  Or clipped and shown with scroll bars?

John W. Eaton <jwe>
Group administrator
Tue 11 May 2021 11:59:07 AM UTC, comment #8: 

AFAIU, when a window is docked, it cannot have arbitrary dimensions in the sense that it must fill the space in some predetermined layout.
 
How are the "(outer)position" figure properties handled in Matlab when a figure is docked?

Pantxo Diribarne <pantxo>
Group Member
Mon 10 May 2021 05:50:07 PM UTC, comment #7: 


comment #6:

> The reason it doesn't work for the plot windows is that they are not currently implemented as objects derived from dockable widgets.


Regarding the plot windows I am thinking about adding a dockwidget as an MDI area for plots (https://doc.qt.io/Qt-5/qtwidgets-mainwindows-mdi-example.html).

comment #6:

> It would also be nice if the layout of the main window that accepts dockable widgets was a bit more flexible than the current two-column layout, but that's a separate issue.


This is already possible (s. screenshot)




Torsten Lilge <ttl>
Group Member
Mon 10 May 2021 05:07:52 PM UTC, comment #6: 

The reason it doesn't work for the plot windows is that they are not currently implemented as objects derived from dockable widgets.

It would also be nice if the layout of the main window that accepts dockable widgets was a bit more flexible than the current two-column layout, but that's a separate issue.

John W. Eaton <jwe>
Group administrator
Mon 10 May 2021 03:43:40 PM UTC, comment #5: 


> Bill, were you successful in arranging the dock
> widgets as desired?


Yes, I was able to rearrange dock widgets. I made an extensive comment about this, but it got dropped somehow. Maybe I wasn't properly logged in.

I completely agree with changing the title of this feature request to include figures in main window.

The Octave GUI seems to make extensive use of a Qt feature called dockable widgets. The main window is divided in to left and right regions. Within these regions the various Windows (Command Window, File Browser, Editor, etc) can be either stacked vertically or on top of each other. Tabs are automatically added if they are stacked on top of each other. The system is quite flexible. Windows can even be popped out of the main GUI and dragged anywhere on the desktop.

To rearrange windows, you have to drag the window's title area to where you want it. The title area has the window name (e.g. Command Window, Editor) in small font on it's top left and undock and hide buttons on the right.

Bill Eaton <wpeaton>
Sun 09 May 2021 07:06:57 PM UTC, comment #4: 

Since the gui already provides the possibility to have all widgets in the main window and visible at the same time, the remaining request is to include figures into the main window. I am therefore changing the title and lowering the priority.

Bill, were you successful in arranging the dock widgets as desired?

Torsten Lilge <ttl>
Group Member
Sun 09 May 2021 06:30:43 PM UTC, comment #3: 

Re-tagging release to dev because the looks like request for a new feature to me.

Markus Mützel <mmuetzel>
Group administrator
Fri 30 Apr 2021 07:19:15 PM UTC, comment #2: 

It should be possible to stack editor and command window (or other windows vertically).

And yo can also create different "viewing panes" by placing the first widgets of these panes to the desired position and then move other widgets onto it; they should be automatically tabbed with the first widget. Or did I understand the OP in the wrong way?

Having figures inside the main window would be a nice feature that I am also currently missing during online meetings when sharing octave's main window (not the whole desktop) in order to show simulations but not having the resulting figures within the shared window.

Torsten Lilge <ttl>
Group Member
Thu 29 Apr 2021 08:58:25 PM UTC, comment #1: 

The Command and Editor pane can be dragged side by side horizontally (I just did that) but I couldn't get them to be vertically "stacked". Same for Editor and Doc pane.

Or do you want two (or multiple) main GUI windows ("viewing panes")?

It can be a hairy task to drag panes to a desired position within the main GUI window. IIRC there was another bug report where this was mentioned.

AFAIK plot windows can't be docked.

Philip Nienhuis <philipnienhuis>
Group Member
Thu 29 Apr 2021 06:54:55 PM UTC, original submission:  

Sometimes I want to see the Editor and Command Window at the same time. And it would be nice if plot windows could be inside the GUI.

What if an extra viewing pane was available so that you could see multiple elements of the UI at the same time? For me the most common is Command Window/Editor. But Editor/Documentation might be useful, too. Each viewing pane could have separate tabs. And you could drag tabs from one pane to the other to switch the view as you like it.

For plots, it might be nice to have a tabbed interface to switch between separate plots. They could be equal with Command Window/Editor/Documentation.

Bill Eaton <wpeaton>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #51414:  Octave-GUI_3_columsn.png added by ttl (446KiB - 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 pantxo (Posted a comment)
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by ttl (Posted a comment)
  • -email is unavailable- added by wpeaton (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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-05-10 ttl Attached File- Added Octave-GUI_3_columsn.png, #51414
    2021-05-09 ttl Severity3 - Normal 1 - Wish
        SummaryExtra viewing panes Include figures into the GUI's main window
    2021-05-09 mmuetzel Release6.2.0 dev

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code