|
Rosetta
|
#include <HelicalBundleDialogueWidget.h>

Public Slots | |
| void | on_remove_button_clicked () |
| What to do when the "remove helix" button is clicked. More... | |
Signals | |
| void | control_has_changed () |
| One of the controls has changed; signal that this object has changed. More... | |
| void | control_has_changed_requiring_pose_rebuild () |
| One of the controls has changed, requiring a complete rebuild of the pose. More... | |
| void | helix_has_been_removed (core::Size const helix_index) |
| This helix has been removed. Signal to remove it! More... | |
Public Member Functions | |
| HelicalBundleDialogueWidget (QWidget *parent=0) | |
| ~HelicalBundleDialogueWidget () | |
| HelixOptionWidget * | get_subwidget_nonconst (core::Size const subwidget_index) |
| Get a subwidget corresponding to a parameter. (Const access). More... | |
| HelixOptionWidget const * | get_subwidget (core::Size const subwidget_index) const |
| Get a subwidget corresponding to a parameter. (Const access). More... | |
| core::Size | helix_length () const |
| Get helix length (residues). More... | |
| bool | invert_helix () const |
| Get whether to flip the helix direction. More... | |
| std::string | params_file () const |
| Get the Crick params file to use for the current helix. More... | |
| void | set_helix_index (core::Size const new_index) |
| Set the index of the helix that this control controls. More... | |
| core::Size | helix_index () const |
| Get the index of the helix that this control controls. More... | |
| core::Size | omega0_pitchcopy_helix () const |
| If this helix copies its pitch from another, get the index of the helix from which we're copying. More... | |
| void | reset_controls_dependent_on_other_helix (core::Size const other_index) |
| If any controls are set to track another helix with helix index other_index, reset these controls to set a value directly. More... | |
| void | update_control_dependencies_given_helix_to_be_removed (core::Size const helix_to_remove) |
| Given the index of a helix that is to be removed, decrement the indices of helices PAST that helix on which THIS helix depends. More... | |
| bool | custom_params_file_selected () const |
| Is a custom params file currently selected? More... | |
| std::string const & | custom_params_file () const |
| Get the custom params file. More... | |
| void | set_real_subwidget (core::Size const subwidget_index, core::Real const &value) |
| Set the value of a subwidget. More... | |
| void | set_everything_except_delta_omega0_copies_helix1 () |
| Set everything except delta_omega0 to copy helix 1. More... | |
| void | set_invert (bool const inverted) |
| Set whether this helix is inverted. More... | |
| void | set_helix_length (core::Size const length) |
| Set the length of this helix. More... | |
| void | set_to_beta_strand () |
| Set that this "helix" is actually a beta-strand. More... | |
Private Slots | |
| void | on_control_changed () |
| Sub-control has signaled that it has changed. What should I do? (Fire a control_has_changed() signal). More... | |
| void | on_radioButton_l_alpha_helix_toggled (bool checked) |
| The first radio button has been toggled. More... | |
| void | on_radioButton_beta_strand_toggled (bool checked) |
| The second radio button has been toggled. More... | |
| void | on_invert_checkbox_clicked () |
| The invert button has been toggled. More... | |
| void | on_helix_length_spin_box_valueChanged (int arg1) |
| The helix length spin box value has changed. More... | |
| void | on_radioButton_custom_helix_clicked () |
Private Attributes | |
| Ui::HelicalBundleDialogueWidget * | ui |
| core::Size | helix_index_ |
| What's the index of this helix? More... | |
| utility::fixedsizearray1< HelixOptionWidget *, protocols::helical_bundle::BPC_last_parameter_to_be_sampled > | subwidgets_ |
| Controls for setting individual parameters. More... | |
| std::string | custom_params_file_ |
| Name of a custom params file to use. More... | |
|
explicit |
References control_has_changed(), create_a3b_hbs::i, on_control_changed(), and subwidgets_.
| ui::ui_protocols::helical_bundle::HelicalBundleDialogueWidget::~HelicalBundleDialogueWidget | ( | ) |
References ui.
|
signal |
One of the controls has changed; signal that this object has changed.
Referenced by HelicalBundleDialogueWidget(), on_control_changed(), set_everything_except_delta_omega0_copies_helix1(), and set_invert().
|
signal |
One of the controls has changed, requiring a complete rebuild of the pose.
Referenced by set_helix_length(), and set_to_beta_strand().
| std::string const & ui::ui_protocols::helical_bundle::HelicalBundleDialogueWidget::custom_params_file | ( | ) | const |
Get the custom params file.
References custom_params_file_.
| bool ui::ui_protocols::helical_bundle::HelicalBundleDialogueWidget::custom_params_file_selected | ( | ) | const |
Is a custom params file currently selected?
| HelixOptionWidget const * ui::ui_protocols::helical_bundle::HelicalBundleDialogueWidget::get_subwidget | ( | core::Size const | subwidget_index | ) | const |
Get a subwidget corresponding to a parameter. (Const access).
References debug_assert, and subwidgets_.
| HelixOptionWidget * ui::ui_protocols::helical_bundle::HelicalBundleDialogueWidget::get_subwidget_nonconst | ( | core::Size const | subwidget_index | ) |
Get a subwidget corresponding to a parameter. (Const access).
References debug_assert, and subwidgets_.
|
signal |
This helix has been removed. Signal to remove it!
| core::Size ui::ui_protocols::helical_bundle::HelicalBundleDialogueWidget::helix_index | ( | ) | const |
Get the index of the helix that this control controls.
References helix_index_.
| core::Size ui::ui_protocols::helical_bundle::HelicalBundleDialogueWidget::helix_length | ( | ) | const |
Get helix length (residues).
| bool ui::ui_protocols::helical_bundle::HelicalBundleDialogueWidget::invert_helix | ( | ) | const |
Get whether to flip the helix direction.
| core::Size ui::ui_protocols::helical_bundle::HelicalBundleDialogueWidget::omega0_pitchcopy_helix | ( | ) | const |
If this helix copies its pitch from another, get the index of the helix from which we're copying.
Returns 0 if we're not copying pitch (even if we're copying omega0 directly from another helix).
References ui::ui_protocols::helical_bundle::HOW_copy_pitch, and subwidgets_.
|
privateslot |
Sub-control has signaled that it has changed. What should I do? (Fire a control_has_changed() signal).
References control_has_changed().
Referenced by HelicalBundleDialogueWidget().
|
privateslot |
The helix length spin box value has changed.
|
privateslot |
The invert button has been toggled.
|
privateslot |
The second radio button has been toggled.
|
privateslot |
References in::path::database(), lactamize::filename, and option.
|
privateslot |
The first radio button has been toggled.
|
slot |
What to do when the "remove helix" button is clicked.
This is public to allow other things to remove helices.
Referenced by MainWindow::on_presets_comboBox_currentIndexChanged().
| std::string ui::ui_protocols::helical_bundle::HelicalBundleDialogueWidget::params_file | ( | ) | const |
Get the Crick params file to use for the current helix.
Currently hard-coded. Could change later.
References custom_params_file_.
| void ui::ui_protocols::helical_bundle::HelicalBundleDialogueWidget::reset_controls_dependent_on_other_helix | ( | core::Size const | other_index | ) |
If any controls are set to track another helix with helix index other_index, reset these controls to set a value directly.
References ui::ui_protocols::helical_bundle::HOW_copy_value, create_a3b_hbs::i, and subwidgets_.
Referenced by MainWindow::update_later_helix_dependencies().
| void ui::ui_protocols::helical_bundle::HelicalBundleDialogueWidget::set_everything_except_delta_omega0_copies_helix1 | ( | ) |
Set everything except delta_omega0 to copy helix 1.
Does nothing if this is helix 1.
References control_has_changed(), helix_index_, create_a3b_hbs::i, and subwidgets_.
Referenced by MainWindow::on_presets_comboBox_currentIndexChanged().
| void ui::ui_protocols::helical_bundle::HelicalBundleDialogueWidget::set_helix_index | ( | core::Size const | new_index | ) |
Set the index of the helix that this control controls.
References helix_index_, create_a3b_hbs::i, and subwidgets_.
Referenced by MainWindow::update_helix_indices().
| void ui::ui_protocols::helical_bundle::HelicalBundleDialogueWidget::set_helix_length | ( | core::Size const | length | ) |
Set the length of this helix.
References control_has_changed_requiring_pose_rebuild(), and oop_conformations::length.
Referenced by MainWindow::on_presets_comboBox_currentIndexChanged().
| void ui::ui_protocols::helical_bundle::HelicalBundleDialogueWidget::set_invert | ( | bool const | inverted | ) |
Set whether this helix is inverted.
References control_has_changed().
Referenced by MainWindow::on_presets_comboBox_currentIndexChanged().
| void ui::ui_protocols::helical_bundle::HelicalBundleDialogueWidget::set_real_subwidget | ( | core::Size const | subwidget_index, |
| core::Real const & | value | ||
| ) |
Set the value of a subwidget.
References debug_assert, subwidgets_, and value.
Referenced by MainWindow::on_presets_comboBox_currentIndexChanged().
| void ui::ui_protocols::helical_bundle::HelicalBundleDialogueWidget::set_to_beta_strand | ( | ) |
Set that this "helix" is actually a beta-strand.
References control_has_changed_requiring_pose_rebuild().
Referenced by MainWindow::on_presets_comboBox_currentIndexChanged().
| void ui::ui_protocols::helical_bundle::HelicalBundleDialogueWidget::update_control_dependencies_given_helix_to_be_removed | ( | core::Size const | helix_to_remove | ) |
Given the index of a helix that is to be removed, decrement the indices of helices PAST that helix on which THIS helix depends.
References ui::ui_protocols::helical_bundle::HOW_copy_value, create_a3b_hbs::i, and subwidgets_.
Referenced by MainWindow::update_later_helix_dependencies().
|
private |
Name of a custom params file to use.
Referenced by custom_params_file(), and params_file().
|
private |
What's the index of this helix?
Referenced by helix_index(), set_everything_except_delta_omega0_copies_helix1(), and set_helix_index().
|
private |
Controls for setting individual parameters.
Referenced by get_subwidget(), get_subwidget_nonconst(), HelicalBundleDialogueWidget(), omega0_pitchcopy_helix(), reset_controls_dependent_on_other_helix(), set_everything_except_delta_omega0_copies_helix1(), set_helix_index(), set_real_subwidget(), and update_control_dependencies_given_helix_to_be_removed().
|
private |
Referenced by ~HelicalBundleDialogueWidget().