bugGNU Octave - Bugs: bug #55032, GUI: Use a combined Open/MRU list...

 
 

bug #55032: GUI: Use a combined Open/MRU list widget in Editor menubar

Submitter:  Kai Torben Ohlhus <siko1056>
Submitted:  Thu 15 Nov 2018 10:23:35 PM UTC
   
 
Category:  GUI Severity:  1 - Wish
Priority:  5 - Normal Item Group:  Feature Request
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Thu 22 Nov 2018 08:39:08 PM UTC, comment #9: 

Marking as fixed and closing report.

Rik <rik5>
Group administrator
Thu 22 Nov 2018 08:29:47 PM UTC, comment #8: 

After some internet research I think there is no "easy" to implement such a widget. And I do not know a Qt application which uses one. For example, the Qt-Assistant tool has a "Back" button and to its right side a separate push button with the back history menu. To conclude, I suggest to leave the current solution for the editor as it is and close this report.

Torsten Lilge <ttl>
Group Member
Wed 21 Nov 2018 08:15:39 PM UTC, comment #7: 

I am just looking for a way to highlight the other icon when one of the two icons is highlighted by hovering with the mouse. This would give the desired effect of "linked" icons.

Torsten Lilge <ttl>
Group Member
Wed 21 Nov 2018 08:05:37 PM UTC, comment #6: 

Thanks for the fix (comment #1) Rik, I have no real opinion here (comment #3).  Any fix to make it somehow visible to the user is fully accepted by me ;-)

If you, Rik, or Torsten are not willing to put more effort in this item, it can be closed, I think.

Kai Torben Ohlhus <siko1056>
Group Member
Wed 21 Nov 2018 07:19:14 PM UTC, comment #5: 

Is there an example of such a combined widget that we could grab off the internet?  I haven't done a Google search, but it seems like this sort of thing is a very common GUI construct, and that someone must have implemented it with Qt at some point.

Rik <rik5>
Group administrator
Wed 21 Nov 2018 07:04:09 PM UTC, comment #4: 

I have recognized this, too, while working on back/next mru menus for the doc browser. On my Gnome desktop, a down arrow is set by default. Using the workaround mentioned in the OS is exactly what I wanted to add here in order to mimic the behavior of thunderbird and libre office.

Torsten Lilge <ttl>
Group Member
Wed 21 Nov 2018 06:55:10 PM UTC, comment #3: 

Do you want some sort of combined widget/button like LibreOffice or is the down arrow good enough now?

Rik <rik5>
Group administrator
Wed 21 Nov 2018 06:44:02 PM UTC, comment #2: 

I took a look at how LibreOffice and Thunderbird implement the most-recently-used (MRU) menu.  They seem to have a small down arrow immediately to the right of the main button.  I'm attaching a png showing how LibreOffice does it.


Rik <rik5>
Group administrator
Wed 21 Nov 2018 06:40:28 PM UTC, comment #1: 

Confirmed.  I didn't even realize there was supposed to be an icon there because the gap looked like it might have been intentional.

I think the first step is to put at least some kind of icon on it.  I did that on the stable branch here https://hg.savannah.gnu.org/hgweb/octave/rev/ed2339e64a57.


Rik <rik5>
Group administrator
Thu 15 Nov 2018 10:23:35 PM UTC, original submission:  

The attached picture tells more than 1000 words.

My system

- openSUSE 15.0

- KDE Plasma 5.12.6 (https://software.opensuse.org/package/plasma5-desktop)

- QT 5.9.4 (https://software.opensuse.org/package/libqt5-qtbase)

- Octave 4.4.1 and 5.0.0

Possible workaround is to add


    popdown_button->setArrowType (Qt::DownArrow);


to https://hg.savannah.gnu.org/hgweb/octave/file/32d4ee071348/libgui/src/m-editor/file-editor.cc#l2078

But an icon was nicer maybe...

Kai Torben Ohlhus <siko1056>
Group Member

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #45508:  LibreOffice_MRU.png added by rik5 (11KiB - image/png)
file #45438:  recent_files_bug.png added by siko1056 (5KiB - 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 ttl (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by siko1056 (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
    2018-11-22 rik5 StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2018-11-21 rik5 SummaryGUI: Use a combined Open/MRU list widget Editor GUI: Use a combined Open/MRU list widget in Editor menubar
    2018-11-21 rik5 Summarygui: Invisible toolbar icon for recent files GUI: Use a combined Open/MRU list widget Editor
    2018-11-21 rik5 Release4.4.1 dev
    2018-11-21 rik5 Attached File- Added LibreOffice_MRU.png, #45508
    2018-11-21 rik5 StatusNone Confirmed
    2018-11-15 siko1056 Attached File- Added recent_files_bug.png, #45438

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code