void SyntaxHighlightDlg::OnSelTextChanged(wxColourPickerEvent& event)
{
    CHECK_PTR_RET(m_lexer);
    event.Skip();
    StyleProperty& selProp = m_lexer->GetProperty(SEL_TEXT_ATTR_ID);
    if(!selProp.IsNull()) {
        m_isModified = true;
        selProp.SetBgColour(event.GetColour().GetAsString(wxC2S_HTML_SYNTAX));
    }
}
Exemple #2
0
void MainFrame::OnColourChanged( wxColourPickerEvent& event )
{
  wxColour color = event.GetColour();
  Control::getInstance()->setTargetColor(color.Red(), color.Green(),
										 color.Blue());
  // process the image
  Control::getInstance()->process();

  //show the result image;
  this->processed_image->SetBitmap(Control::getInstance()->getResult());
}
Exemple #3
0
void
PreferencesDialog::OnPencilColor(wxColourPickerEvent & evt)
{
    m_frame->m_gridCtrl->SetPencilColor(evt.GetColour());
    evt.Skip();
}
Exemple #4
0
void
PreferencesDialog::OnSelectedWordColor(wxColourPickerEvent & evt)
{
    m_frame->m_gridCtrl->SetFocusedWordColor(evt.GetColour());
    evt.Skip();
}
Exemple #5
0
void WeatherDlg::onColorPickerWhite1( wxColourPickerEvent& event ) {
  m_RGBWPanel->setWhite1Color(event.GetColour().Red(), event.GetColour().Green(), event.GetColour().Blue());
}
Exemple #6
0
void WeatherDlg::onColorPickerSaturation( wxColourPickerEvent& event ) {
  m_RGBWPanel->setSaturationColor(event.GetColour().Red(), event.GetColour().Green(), event.GetColour().Blue());
}
Exemple #7
0
void WeatherDlg::onColorPickerBrightness( wxColourPickerEvent& event ) {
  m_RGBWPanel->setBrightnessColor(event.GetColour().Red(), event.GetColour().Green(), event.GetColour().Blue());
}
void MainFrm::OnHowerColor(wxColourPickerEvent& event)
{
	m_pShapeCanvas->SetHoverColour(event.GetColour());
}
Exemple #9
0
void SettingsDlg::OnFGColour(wxColourPickerEvent& event)
{
    m_fg_colour = event.GetColour();
}
void MainFrame::OnColourChanged(wxColourPickerEvent& e){
    wxColour colour = e.GetColour();
    m_colour->SetBackgroundColour(colour);
    m_colour->Refresh();
}