assdraw: add missing news when creating PG properties

Originally committed to SVN as r6858.
This commit is contained in:
Thomas Goyne 2012-05-24 01:56:06 +00:00
parent ecc05d5965
commit b67edaff6d
1 changed files with 5 additions and 5 deletions

View File

@ -65,16 +65,16 @@ void ASSDrawSettingsDialog::Init()
//wxSUNKEN_BORDER
);
#define APPENDCOLOURPROP(pgid, label, color) pgid = propgrid->Append( wxColourProperty(label, wxPG_LABEL, color) );
#define APPENDCOLOURPROP(pgid, label, color) pgid = propgrid->Append(new wxColourProperty(label, wxPG_LABEL, color));
#define APPENDUINTPROP(pgid, label, uint) \
pgid = propgrid->Append(wxUIntProperty(label, wxPG_LABEL, uint) ); \
pgid = propgrid->Append(new wxUIntProperty(label, wxPG_LABEL, uint) ); \
propgrid->SetPropertyValidator( pgid, validator );
#define APPENDBOOLPROP(pgid, label, boolvar) \
pgid = propgrid->Append(wxBoolProperty (label, wxPG_LABEL, boolvar ) ); \
pgid = propgrid->Append(new wxBoolProperty (label, wxPG_LABEL, boolvar ) ); \
propgrid->SetPropertyAttribute( pgid, wxPG_BOOL_USE_CHECKBOX, (long)1 );
wxLongPropertyValidator validator(0x0,0xFF);
propgrid->Append(wxPropertyCategory(_T("Appearance"),wxPG_LABEL) );
propgrid->Append(new wxPropertyCategory(_T("Appearance"),wxPG_LABEL) );
APPENDCOLOURPROP(colors_canvas_bg_pgid, _T("Canvas"), m_frame->colors.canvas_bg)
APPENDCOLOURPROP(colors_canvas_shape_normal_pgid, _T("Drawing"), m_frame->colors.canvas_shape_normal)
APPENDUINTPROP(alphas_canvas_shape_normal_pgid, _T("Drawing @"), m_frame->alphas.canvas_shape_normal)
@ -97,7 +97,7 @@ void ASSDrawSettingsDialog::Init()
APPENDCOLOURPROP(colors_ruler_h_pgid, _T("H ruler"), m_frame->colors.ruler_h)
APPENDCOLOURPROP(colors_ruler_v_pgid, _T("V ruler"), m_frame->colors.ruler_v)
propgrid->Append(wxPropertyCategory(_T("Behaviors"),wxPG_LABEL) );
propgrid->Append(new wxPropertyCategory(_T("Behaviors"),wxPG_LABEL) );
APPENDBOOLPROP(behaviors_capitalizecmds_pgid, _T("Capitalize commands"), m_frame->behaviors.capitalizecmds);
APPENDBOOLPROP(behaviors_autoaskimgopac_pgid, _T("Ask for image opacity"), m_frame->behaviors.autoaskimgopac);
APPENDBOOLPROP(behaviors_parse_spc_pgid, _T("Parse S/P/C"), m_frame->behaviors.parse_spc);