wxRendererNative::Get().DrawCheckBox (
&grid,
dc, rect,
- grid.GetCellValue (row, col) == "1" ? static_cast<int>(wxCONTROL_CHECKED) : 0
+ grid.GetCellValue (row, col) == wxT("1") ? static_cast<int>(wxCONTROL_CHECKED) : 0
);
}
_grid = new wxGrid (this, wxID_ANY);
_grid->CreateGrid (0, 7);
+#if wxMINOR_VERSION == 9
_grid->HideRowLabels ();
+#else
+ _grid->SetRowLabelSize (0);
+#endif
_grid->DisableDragRowSize ();
_grid->DisableDragColSize ();
_grid->EnableEditing (false);
return;
}
- if (_grid->GetCellValue (ev.GetRow(), ev.GetCol()) == "1") {
- _grid->SetCellValue (ev.GetRow(), ev.GetCol(), "0");
+ if (_grid->GetCellValue (ev.GetRow(), ev.GetCol()) == wxT("1")) {
+ _grid->SetCellValue (ev.GetRow(), ev.GetCol(), wxT("0"));
} else {
- _grid->SetCellValue (ev.GetRow(), ev.GetCol(), "1");
+ _grid->SetCellValue (ev.GetRow(), ev.GetCol(), wxT("1"));
}
}
for (list<AudioMapping::Channel>::iterator i = content_channels.begin(); i != content_channels.end(); ++i) {
shared_ptr<const AudioContent> ac = i->content.lock ();
assert (ac);
- _grid->SetCellValue (n, 0, wxString::Format ("%s %d", std_to_wx (ac->file().filename().string()), i->index + 1));
+ _grid->SetCellValue (n, 0, wxString::Format (wxT("%s %d"), std_to_wx (ac->file().filename().string()).data(), i->index + 1));
list<libdcp::Channel> const d = map.content_to_dcp (*i);
for (list<libdcp::Channel>::const_iterator j = d.begin(); j != d.end(); ++j) {
- _grid->SetCellValue (n, static_cast<int> (*j) + 1, "1");
+ _grid->SetCellValue (n, static_cast<int> (*j) + 1, wxT("1"));
}
++n;
}
conf.env.LIB_DCP = ['glibmm-2.4', 'xml++-2.6', 'ssl', 'crypto', 'bz2']
conf.env.HAVE_CXML = 1
conf.env.STLIB_CXML = ['cxml']
+ conf.check_cfg(package = 'libxml++-2.6', args = '--cflags --libs', uselib_store = 'XML++', mandatory = True)
conf.env.HAVE_AVFORMAT = 1
conf.env.STLIB_AVFORMAT = ['avformat']
conf.env.HAVE_AVFILTER = 1