#136 Use File->Open Previous menu to show currently open files

Program (79)

This patch changes the menu entries in the File->Open
Previous menu to radio buttons and updates the menu
with file closing as well as opening (refreshing any
torn-off versions of this menu in the process). The ON
radio buttons (there can be more than one in this case)
mark the files that currently have windows somewhere in
the editing session. In this way it is very easy to see
which files in your editing history are currently open,
and to go to them easily.

I maintain a long history list; this helps me keep
track of what I'm using.

I have also tried these changes with the (rather old
now) "prev file tree" patch by TK Soh ([ 714486 ]
prevfile menu in tree-view). It can be made to
integrate well.


  • Tony Balinski

    Tony Balinski - 2005-05-10

    radio buttons for prev file menu

  • TK Soh

    TK Soh - 2005-05-10

    Logged In: YES

    A very interesting patch indeed. Though I do wish for more
    'eye candy' than just plain radio buttons, it certainly
    helps to ease my eyes looking for the files - same objective
    the tree-view patch is trying to achieve.

    BTW, I updated my tree-view patch, but saw a few conflicts
    when merging with your patch. I have yet to try resolving
    those conflicts, but just wonder why you didn't see any.

  • Tony Balinski

    Tony Balinski - 2005-05-11

    Logged In: YES

    I actually started developing this patch on a code base with
    your tree-view patch already there. It can't be done with
    this patch, you need to do it manually, but it wasn't hard.

    An alternative to radio buttons would be colors. The trouble
    with them is "which colors?"! Although I use the window menu
    patch which colors the text according to the status of the
    file, it does require configuration if two colors which I
    would rather the system could choose for me (depending on
    the background color intensity). Radio button dot don't
    have this issue.

  • Dimitar Zhekov

    Dimitar Zhekov - 2005-09-17

    Logged In: YES

    I believe this:

    XtVaSetValues(w, XmNset, True, NULL);

    is wrong. If EditExistingFile() fails to open a previous
    file, it'll not call AddToPrevOpenMenu(), the menu won't be
    rebuilt and the entry will remain checked, while:

    XmToggleButtonSetState(w, !XmToggleButtonGetState(w), FALSE

    will undo the Motif state change only and let
    EditExistingFile() do whatever is (un)needed.


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks