71 case OBJ_CondLine: |
71 case OBJ_CondLine: |
72 { |
72 { |
73 coordCount = 12; |
73 coordCount = 12; |
74 } break; |
74 } break; |
75 |
75 |
76 case OBJ_BFC: |
76 case OBJ_Bfc: |
77 { |
77 { |
78 rb_bfcType = new RadioGroup ("Statement", {}, 0, Qt::Vertical); |
78 rb_bfcType = new RadioGroup ("Statement", {}, 0, Qt::Vertical); |
79 |
79 |
80 for_enum (BFCStatement, i) |
80 for_enum (BfcStatement, i) |
81 { |
81 { |
82 // Separate these in two columns |
82 // Separate these in two columns |
83 if (int (i) == int (BFCStatement::NumValues) / 2) |
83 if (int (i) == int (BfcStatement::NumValues) / 2) |
84 rb_bfcType->rowBreak(); |
84 rb_bfcType->rowBreak(); |
85 |
85 |
86 rb_bfcType->addButton (LDBFC::StatementStrings[int (i)]); |
86 rb_bfcType->addButton (LDBfc::statementToString (i)); |
87 } |
87 } |
88 |
88 |
89 if (obj) |
89 if (obj) |
90 rb_bfcType->setValue ((int) static_cast<LDBFC*> (obj)->statement()); |
90 rb_bfcType->setValue ((int) static_cast<LDBfc*> (obj)->statement()); |
91 } break; |
91 } break; |
92 |
92 |
93 case OBJ_Subfile: |
93 case OBJ_Subfile: |
94 { |
94 { |
95 coordCount = 3; |
95 coordCount = 3; |
166 |
166 |
167 case OBJ_Comment: |
167 case OBJ_Comment: |
168 layout->addWidget (le_comment, 0, 1); |
168 layout->addWidget (le_comment, 0, 1); |
169 break; |
169 break; |
170 |
170 |
171 case OBJ_BFC: |
171 case OBJ_Bfc: |
172 layout->addWidget (rb_bfcType, 0, 1); |
172 layout->addWidget (rb_bfcType, 0, 1); |
173 break; |
173 break; |
174 |
174 |
175 case OBJ_Subfile: |
175 case OBJ_Subfile: |
176 layout->addWidget (tw_subfileList, 1, 1, 1, 2); |
176 layout->addWidget (tw_subfileList, 1, 1, 1, 2); |
346 |
346 |
347 obj->setVertex (i, v); |
347 obj->setVertex (i, v); |
348 } |
348 } |
349 } break; |
349 } break; |
350 |
350 |
351 case OBJ_BFC: |
351 case OBJ_Bfc: |
352 { |
352 { |
353 LDBFC* bfc = InitObject<LDBFC> (obj); |
353 LDBfc* bfc = InitObject<LDBfc> (obj); |
354 int value = dlg.rb_bfcType->value(); |
354 int value = dlg.rb_bfcType->value(); |
355 if (value == qBound (0, value, int (BFCStatement::NumValues) - 1)) |
355 if (value == qBound (0, value, int (BfcStatement::NumValues) - 1)) |
356 bfc->setStatement (BFCStatement (dlg.rb_bfcType->value())); |
356 bfc->setStatement (BfcStatement (dlg.rb_bfcType->value())); |
357 } break; |
357 } break; |
358 |
358 |
359 case OBJ_Subfile: |
359 case OBJ_Subfile: |
360 { |
360 { |
361 QString name = dlg.le_subfileName->text(); |
361 QString name = dlg.le_subfileName->text(); |