void OnClick(wxCommandEvent& WXUNUSED(evt)) { ColourDialog dlg (this, _T("Scenario Editor/LightingColour"), wxColour(m_Colour->r, m_Colour->g, m_Colour->b)); if (dlg.ShowModal() == wxID_OK) { wxColour& c = dlg.GetColourData().GetColour(); m_Colour = AtlasMessage::Colour(c.Red(), c.Green(), c.Blue()); UpdateButton(); g_EnvironmentSettings.NotifyObserversExcept(m_Conn); } }
void OnScroll(wxScrollEvent& evt) { m_Var = m_Min + (m_Max - m_Min)*(evt.GetInt() / (float)range); g_EnvironmentSettings.NotifyObserversExcept(m_Conn); }
void OnSelect(wxCommandEvent& WXUNUSED(evt)) { m_Var = std::wstring(m_Combo->GetValue().c_str()); g_EnvironmentSettings.NotifyObserversExcept(m_Conn); }