Changeset fc43dda in git for src/guicontrol.cc


Ignore:
Timestamp:
29/08/19 07:08:47 (7 weeks ago)
Author:
Olly Betts <olly@…>
Branches:
master
Children:
72fac59
Parents:
b0908ea
Message:

Allow colouring by horizontal or vertical error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/guicontrol.cc

    rb0908ea rfc43dda  
    542542}
    543543
     544void GUIControl::OnColourByHError()
     545{
     546    if (m_View->ColouringBy() == COLOUR_BY_H_ERROR) {
     547        m_View->SetColourBy(COLOUR_BY_NONE);
     548    } else {
     549        m_View->SetColourBy(COLOUR_BY_H_ERROR);
     550    }
     551}
     552
     553void GUIControl::OnColourByVError()
     554{
     555    if (m_View->ColouringBy() == COLOUR_BY_V_ERROR) {
     556        m_View->SetColourBy(COLOUR_BY_NONE);
     557    } else {
     558        m_View->SetColourBy(COLOUR_BY_V_ERROR);
     559    }
     560}
     561
    544562void GUIControl::OnColourByGradient()
    545563{
     
    590608    cmd.Enable(m_View->HasData());
    591609    cmd.Check(m_View->ColouringBy() == COLOUR_BY_ERROR);
     610}
     611
     612void GUIControl::OnColourByHErrorUpdate(wxUpdateUIEvent& cmd)
     613{
     614    cmd.Enable(m_View->HasData());
     615    cmd.Check(m_View->ColouringBy() == COLOUR_BY_H_ERROR);
     616}
     617
     618void GUIControl::OnColourByVErrorUpdate(wxUpdateUIEvent& cmd)
     619{
     620    cmd.Enable(m_View->HasData());
     621    cmd.Check(m_View->ColouringBy() == COLOUR_BY_V_ERROR);
    592622}
    593623
Note: See TracChangeset for help on using the changeset viewer.