80 |
80 |
81 case OBJ_BFC: |
81 case OBJ_BFC: |
82 { |
82 { |
83 rb_bfcType = new RadioGroup ("Statement", {}, 0, Qt::Vertical); |
83 rb_bfcType = new RadioGroup ("Statement", {}, 0, Qt::Vertical); |
84 |
84 |
85 for (int i = 0; i < LDBFC::NumStatements; ++i) |
85 for_enum (BFCStatement, i) |
86 { |
86 { |
87 // Separate these in two columns |
87 // Separate these in two columns |
88 if (i == LDBFC::NumStatements / 2) |
88 if (int (i) == int (BFCStatement::NumValues) / 2) |
89 rb_bfcType->rowBreak(); |
89 rb_bfcType->rowBreak(); |
90 |
90 |
91 rb_bfcType->addButton (LDBFC::k_statementStrings[i]); |
91 rb_bfcType->addButton (LDBFC::StatementStrings[int (i)]); |
92 } |
92 } |
93 |
93 |
94 if (obj) |
94 if (obj) |
95 rb_bfcType->setValue ((int) obj.staticCast<LDBFC>()->statement()); |
95 rb_bfcType->setValue ((int) obj.staticCast<LDBFC>()->statement()); |
96 } break; |
96 } break; |