#2970 MDI: add asterisk (*) for unsaved files

2.16.0
open
nobody
GUI (476)
5
2013-03-17
2010-08-20
Zhong Qiyao
No

Version: 2.12.4.0 Unicode

1. Edit a file so as to make it unsaved.

2. In the edited pane (left/right), there is an asterisk (*) to the left of the file name. Fine.

3. PROBLEM: It is not show in the MDI (Multiple Document Interface0 caption, i.e. the tabs on the top row which
lists file names, e.g. abc.c - abc.c; def.c - def.c. You cannot tell just by scrolling through the tabs.

4. SUGGESTION: Put an asterisk by the file name on the MDI tab, and also on the main caption of the
Windows application.

Thanks.

Discussion

  • LynX

    LynX - 2011-02-06

    Hello,
    I can implement this feature requests. Please assign it to me.

    Thank you

     
  • LynX

    LynX - 2011-02-12

    Hello,

    --- Src/MergeDoc.cpp (revision 7517)
    +++ Src/MergeDoc.cpp (working copy)
    @@ -2774,6 +2774,10 @@
    sTitle += ext.c_str();
    }
    }
    +
    + if (m_ptBuf[0]->IsModified() || m_ptBuf[1]->IsModified()) {
    + sTitle.insert(0, _T("* "));
    + }
    }
    CDocument::SetTitle(sTitle.c_str());
    }

    Thank you

     
  • Tim Gerundt

    Tim Gerundt - 2011-02-13

    Move to "Patch" tracker...

     
  • Tim Gerundt

    Tim Gerundt - 2011-02-13
    • labels: 572065 --> GUI
     
  • Tim Gerundt

    Tim Gerundt - 2011-02-14

    patch file

     
    Attachments
  • Christian List

    Christian List - 2013-02-28

    Looks like a good idea.
    Lot's of programs does this, so it makes good sense that WinMerge does it too.

     
  • Christian List

    Christian List - 2013-02-28
    • milestone: --> 2.16.0
     
  • Christian List

    Christian List - 2013-03-17

    I looked a little closer at this, it appears that the asterisk is always placed at the start of the line. This makes it difficult to tell if it was one or the other file that changed.

    I've attached an improved patch which adds an asterisk in front of each file name if it is modified.
    This makes it easy to see which file was modified in each pane.

     
    Attachments

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

Sign up for the SourceForge newsletter:





No, thanks