DocumentPropertiesForm::DocumentPropertiesForm(wb::WBContextUI *wbui) : Form(NULL, mforms::FormResizable), _bottom_box(true), _text(mforms::BothScrollBars) { _wbui= wbui; set_title(_("Document Properties")); set_name("document_properties"); set_content(&_table); _table.set_padding(TOP_FORM_PADDING); _table.set_row_spacing(8); _table.set_column_spacing(4); _table.set_row_count(8); _table.set_column_count(2); add_control(_("Name:"), &_entry1); add_control(_("Version:"), &_entry2); add_control(_("Author:"), &_entry3); add_control(_("Project:"), &_entry4); add_control(_("Created:"), &_entry5); add_control(_("Last Changed:"), &_entry6); add_control(_("Description:"), &_text, true); _entry5.set_enabled(false); _entry6.set_enabled(false); _table.add(&_bottom_box, 0, 2, 7, 8, mforms::HFillFlag); _bottom_box.set_spacing(8); scoped_connect(_ok_button.signal_clicked(),boost::bind(&DocumentPropertiesForm::ok_clicked, this)); scoped_connect(_cancel_button.signal_clicked(),boost::bind(&DocumentPropertiesForm::cancel_clicked, this)); _ok_button.enable_internal_padding(true); _cancel_button.enable_internal_padding(true); _bottom_box.add_end(&_ok_button, false, true); _ok_button.set_text(_(" OK ")); _bottom_box.add_end(&_cancel_button, false, true); _cancel_button.set_text(_("Cancel")); set_size(400, 400); center(); pull_values(); }
void Crescendo::accept() { pull_values(); QDialog::accept(); }
void Move::accept() { pull_values(); QDialog::accept(); }
void DelOverlaps::accept() { pull_values(); QDialog::accept(); }