diff -r 46955613626d -r 8c93d8e38494 zz_addObjectDialog.cpp --- a/zz_addObjectDialog.cpp Sun May 05 17:04:42 2013 +0300 +++ b/zz_addObjectDialog.cpp Mon May 06 00:10:56 2013 +0300 @@ -59,7 +59,7 @@ case OBJ_Comment: le_comment = new QLineEdit; if (obj) - le_comment->setText (static_cast (obj)->zText); + le_comment->setText (static_cast (obj)->text); break; case OBJ_Line: @@ -80,17 +80,13 @@ break; case OBJ_BFC: - rb_bfcType = new RadioBox ("Statement", {}, 0, Qt::Horizontal); + rb_bfcType = new RadioBox ("Statement", {}, 0, Qt::Vertical); - for (int i = 0; i < LDBFC::NumStatements; ++i) { - if (i % (LDBFC::NumStatements / 2) == 0) - rb_bfcType->rowBreak (); - - rb_bfcType->addButton (new QRadioButton (LDBFC::saStatements[i])); - } + for (int i = 0; i < LDBFC::NumStatements; ++i) + rb_bfcType->addButton (new QRadioButton (LDBFC::statements[i])); if (obj) - rb_bfcType->setValue ((int) static_cast (obj)->eStatement); + rb_bfcType->setValue ((int) static_cast (obj)->type); break; case OBJ_Subfile: @@ -358,7 +354,7 @@ case OBJ_Comment: { LDComment* comm = initObj (obj); - comm->zText = dlg.le_comment->text (); + comm->text = dlg.le_comment->text (); } break; @@ -397,7 +393,7 @@ case OBJ_BFC: { LDBFC* bfc = initObj (obj); - bfc->eStatement = (LDBFC::Type) dlg.rb_bfcType->value (); + bfc->type = (LDBFC::Type) dlg.rb_bfcType->value (); } break;