30 entry.
status = wxT(
"Modified" );
44 makeEntry( wxT(
"Changes" ), wxT(
"proj/a.kicad_pcb" ),
true ),
45 makeEntry( wxT(
"Shared libraries" ), wxT(
"libs/x.kicad_sym" ),
true ),
46 makeEntry( wxT(
"Changes" ), wxT(
"proj/b.kicad_sch" ),
true ),
53 const std::vector<FILE_CHECKLIST_ENTRY>& changes = data.
Rows( wxT(
"Changes" ) );
64 makeEntry( wxT(
"Changes" ), wxT(
"a" ),
true ),
65 makeEntry( wxT(
"Changes" ), wxT(
"b" ),
false ),
66 makeEntry( wxT(
"Changes" ), wxT(
"c" ),
true ),
90 makeEntry( wxT(
"G" ), wxT(
"a" ),
true ),
91 makeEntry( wxT(
"G" ), wxT(
"b" ),
true ),
108 makeEntry( wxT(
"G" ), wxT(
"a" ),
false ),
109 makeEntry( wxT(
"G" ), wxT(
"b" ),
false ),
110 makeEntry( wxT(
"H" ), wxT(
"c" ),
false ),
The rows and tick states behind FILE_CHECKLIST_CTRL.
const std::vector< wxString > & Sections() const
Section headings in the order they were added.
std::vector< wxString > CheckedPaths() const
Paths of every ticked row, in the order they were added.
void SetEntries(const std::vector< FILE_CHECKLIST_ENTRY > &aEntries)
void SetSectionChecked(const wxString &aSection, bool aChecked)
void SetChecked(const wxString &aPath, bool aChecked)
bool IsSectionChecked(const wxString &aSection) const
True when the section has rows and every one of them is ticked.
const std::vector< FILE_CHECKLIST_ENTRY > & Rows(const wxString &aSection) const
Rows under a section, in the order they were added. Empty for an unknown section.
static bool empty(const wxTextEntryBase *aCtrl)
One file row in a FILE_CHECKLIST_CTRL.
wxString path
Row identity, and what the row shows.
wxString status
Free text, e.g. "Modified".
BOOST_AUTO_TEST_CASE(HorizontalAlignment)
BOOST_AUTO_TEST_SUITE(CadstarPartParser)
BOOST_CHECK(res.column_datatype(0)==SQL_NUMERIC||res.column_datatype(0)==SQL_DECIMAL)
BOOST_REQUIRE_EQUAL(rows.size(), 1)
BOOST_CHECK_EQUAL(std::any_cast< std::string >(rows[0].at("val")), "12345678901234567.89")
BOOST_AUTO_TEST_CASE(SectionsAndRowsKeepInsertionOrder)
static FILE_CHECKLIST_ENTRY makeEntry(const wxString &aSection, const wxString &aPath, bool aChecked)
BOOST_AUTO_TEST_SUITE_END()