Changeset af50685 in git for src/guicontrol.cc


Ignore:
Timestamp:
08/03/15 09:36:41 (5 years ago)
Author:
Olly Betts <olly@…>
Branches:
line_contents, master, stereo, travis-osx
Children:
69f54b0, db71ab5
Parents:
be28d00
Message:

lib/survex.pot,src/: Add "Colour by Length".

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/guicontrol.cc

    rbe28d00 raf50685  
    545545}
    546546
     547void GUIControl::OnColourByLength()
     548{
     549    if (m_View->ColouringBy() == COLOUR_BY_LENGTH) {
     550        m_View->SetColourBy(COLOUR_BY_NONE);
     551    } else {
     552        m_View->SetColourBy(COLOUR_BY_LENGTH);
     553    }
     554}
     555
    547556void GUIControl::OnColourByDepthUpdate(wxUpdateUIEvent& cmd)
    548557{
     
    561570    cmd.Enable(m_View->HasData());
    562571    cmd.Check(m_View->ColouringBy() == COLOUR_BY_ERROR);
     572}
     573
     574void GUIControl::OnColourByLengthUpdate(wxUpdateUIEvent& cmd)
     575{
     576    cmd.Enable(m_View->HasData());
     577    cmd.Check(m_View->ColouringBy() == COLOUR_BY_LENGTH);
    563578}
    564579
Note: See TracChangeset for help on using the changeset viewer.