Rosetta
Public Slots | Signals | Public Member Functions | Private Slots | Private Attributes | List of all members
ui::ui_protocols::helical_bundle::HelicalBundleDialogueWidget Class Reference

#include <HelicalBundleDialogueWidget.h>

Inheritance diagram for ui::ui_protocols::helical_bundle::HelicalBundleDialogueWidget:
Inheritance graph
[legend]

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 ()
 
HelixOptionWidgetget_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...
 

Constructor & Destructor Documentation

◆ HelicalBundleDialogueWidget()

ui::ui_protocols::helical_bundle::HelicalBundleDialogueWidget::HelicalBundleDialogueWidget ( QWidget parent = 0)
explicit

◆ ~HelicalBundleDialogueWidget()

ui::ui_protocols::helical_bundle::HelicalBundleDialogueWidget::~HelicalBundleDialogueWidget ( )

References ui.

Member Function Documentation

◆ control_has_changed

void ui::ui_protocols::helical_bundle::HelicalBundleDialogueWidget::control_has_changed ( )
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().

◆ control_has_changed_requiring_pose_rebuild

void ui::ui_protocols::helical_bundle::HelicalBundleDialogueWidget::control_has_changed_requiring_pose_rebuild ( )
signal

One of the controls has changed, requiring a complete rebuild of the pose.

Referenced by set_helix_length(), and set_to_beta_strand().

◆ custom_params_file()

std::string const & ui::ui_protocols::helical_bundle::HelicalBundleDialogueWidget::custom_params_file ( ) const

Get the custom params file.

References custom_params_file_.

◆ custom_params_file_selected()

bool ui::ui_protocols::helical_bundle::HelicalBundleDialogueWidget::custom_params_file_selected ( ) const

Is a custom params file currently selected?

◆ get_subwidget()

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_.

◆ get_subwidget_nonconst()

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_.

◆ helix_has_been_removed

void ui::ui_protocols::helical_bundle::HelicalBundleDialogueWidget::helix_has_been_removed ( core::Size const  helix_index)
signal

This helix has been removed. Signal to remove it!

◆ helix_index()

core::Size ui::ui_protocols::helical_bundle::HelicalBundleDialogueWidget::helix_index ( ) const

Get the index of the helix that this control controls.

References helix_index_.

◆ helix_length()

core::Size ui::ui_protocols::helical_bundle::HelicalBundleDialogueWidget::helix_length ( ) const

Get helix length (residues).

◆ invert_helix()

bool ui::ui_protocols::helical_bundle::HelicalBundleDialogueWidget::invert_helix ( ) const

Get whether to flip the helix direction.

◆ omega0_pitchcopy_helix()

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_.

◆ on_control_changed

void ui::ui_protocols::helical_bundle::HelicalBundleDialogueWidget::on_control_changed ( )
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().

◆ on_helix_length_spin_box_valueChanged

void ui::ui_protocols::helical_bundle::HelicalBundleDialogueWidget::on_helix_length_spin_box_valueChanged ( int  arg1)
privateslot

The helix length spin box value has changed.

◆ on_invert_checkbox_clicked

void ui::ui_protocols::helical_bundle::HelicalBundleDialogueWidget::on_invert_checkbox_clicked ( )
privateslot

The invert button has been toggled.

◆ on_radioButton_beta_strand_toggled

void ui::ui_protocols::helical_bundle::HelicalBundleDialogueWidget::on_radioButton_beta_strand_toggled ( bool  checked)
privateslot

The second radio button has been toggled.

◆ on_radioButton_custom_helix_clicked

void ui::ui_protocols::helical_bundle::HelicalBundleDialogueWidget::on_radioButton_custom_helix_clicked ( )
privateslot

◆ on_radioButton_l_alpha_helix_toggled

void ui::ui_protocols::helical_bundle::HelicalBundleDialogueWidget::on_radioButton_l_alpha_helix_toggled ( bool  checked)
privateslot

The first radio button has been toggled.

◆ on_remove_button_clicked

void ui::ui_protocols::helical_bundle::HelicalBundleDialogueWidget::on_remove_button_clicked ( )
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().

◆ params_file()

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_.

◆ reset_controls_dependent_on_other_helix()

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().

◆ set_everything_except_delta_omega0_copies_helix1()

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().

◆ set_helix_index()

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().

◆ set_helix_length()

void ui::ui_protocols::helical_bundle::HelicalBundleDialogueWidget::set_helix_length ( core::Size const  length)

◆ set_invert()

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().

◆ set_real_subwidget()

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().

◆ set_to_beta_strand()

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().

◆ update_control_dependencies_given_helix_to_be_removed()

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().

Member Data Documentation

◆ custom_params_file_

std::string ui::ui_protocols::helical_bundle::HelicalBundleDialogueWidget::custom_params_file_
private

Name of a custom params file to use.

Referenced by custom_params_file(), and params_file().

◆ helix_index_

core::Size ui::ui_protocols::helical_bundle::HelicalBundleDialogueWidget::helix_index_
private

What's the index of this helix?

Referenced by helix_index(), set_everything_except_delta_omega0_copies_helix1(), and set_helix_index().

◆ subwidgets_

utility::fixedsizearray1< HelixOptionWidget *, protocols::helical_bundle::BPC_last_parameter_to_be_sampled > ui::ui_protocols::helical_bundle::HelicalBundleDialogueWidget::subwidgets_
private

◆ ui

Ui::HelicalBundleDialogueWidget* ui::ui_protocols::helical_bundle::HelicalBundleDialogueWidget::ui
private

The documentation for this class was generated from the following files: