Dialog box for configuring plugin pipeline. More...
Signals | |
void | sgnlGetOrder (const vector< string > &) |
void | sgnlDisableIdle () |
void | sgnlRestoreIdle () |
void | sgnlPauseTimers () |
void | sgnlUnpauseTimers () |
Public Member Functions | |
PipelineDialog (QWidget *parent=0) | |
~PipelineDialog () | |
void | populate (const vector< string > &, const vector< string > &) |
Private Slots | |
void | slotReturnOrder () |
void | slotOnCancel () |
void | slotMoveSelectedPluginUpList1 () |
void | slotMoveSelectedPluginDownList1 () |
void | slotMoveSelectedPluginUpList2 () |
void | slotMoveSelectedPluginDownList2 () |
void | slotMovePluginIntoList2 () |
void | slotMovePluginOutOfList2 () |
Private Member Functions | |
void | showEvent (QShowEvent *) |
void | closeEvent (QCloseEvent *) |
Private Attributes | |
Ui::PipelineDialog * | ui |
Dialog box for configuring plugin pipeline.
rtVTK::PipelineDialog::PipelineDialog | ( | QWidget * | parent = 0 | ) | [explicit] |
Performs initial signal/slot connections.
parent | : QWidget* = 0 |
References slotMovePluginIntoList2(), slotMovePluginOutOfList2(), slotMoveSelectedPluginDownList1(), slotMoveSelectedPluginDownList2(), slotMoveSelectedPluginUpList1(), slotMoveSelectedPluginUpList2(), slotOnCancel(), slotReturnOrder(), and ui.
Deletes ui pointer.
References ui.
void rtVTK::PipelineDialog::closeEvent | ( | QCloseEvent * | ) | [private] |
This function is inherited from QDialog. It is called when the user closes the dialog box by clicking the 'X' on the window frame. This override is necessary because we want to restore idle settings / emit sgnlRender regardless of how the dialog box is closed.
QCloseEvent* | - currently unused. |
References sgnlRestoreIdle(), and sgnlUnpauseTimers().
void rtVTK::PipelineDialog::populate | ( | const vector< string > & | loadedNames, |
const vector< string > & | activeNames | ||
) |
This function sets up the dialog box - available but inactive plugins are listed on the left, while active plugins are listed on the right. The plugins that remain on the right when the user clicks the Ok button become MainDialog's new pipeline.
loadedNames | : const vector<string>& - names of all loaded plugins. |
activeNames | : const vector<string>& - names of all plugins currently in the pipeline. |
References ui.
Referenced by rtVTK::MainWindow::slotShowPipeline().
void rtVTK::PipelineDialog::sgnlDisableIdle | ( | ) | [signal] |
Referenced by showEvent().
void rtVTK::PipelineDialog::sgnlGetOrder | ( | const vector< string > & | ) | [signal] |
Referenced by slotReturnOrder().
void rtVTK::PipelineDialog::sgnlPauseTimers | ( | ) | [signal] |
Referenced by showEvent().
void rtVTK::PipelineDialog::sgnlRestoreIdle | ( | ) | [signal] |
Referenced by closeEvent(), slotOnCancel(), and slotReturnOrder().
void rtVTK::PipelineDialog::sgnlUnpauseTimers | ( | ) | [signal] |
Referenced by closeEvent(), slotOnCancel(), and slotReturnOrder().
void rtVTK::PipelineDialog::showEvent | ( | QShowEvent * | e | ) | [private] |
This function is inherited from QDialog. It is called when the dialog box is shown. This override is used to emit sgnlRender for the glWidget when the dialog box is opened. Note that the base class version is also called, which positions the dialog box at a reasonable position on the screen.
e | : QShowEvent* - passed to QDialog::showEvent(). |
References sgnlDisableIdle(), sgnlPauseTimers(), and ui.
void rtVTK::PipelineDialog::slotMovePluginIntoList2 | ( | ) | [private, slot] |
References ui.
Referenced by PipelineDialog().
void rtVTK::PipelineDialog::slotMovePluginOutOfList2 | ( | ) | [private, slot] |
References ui.
Referenced by PipelineDialog().
void rtVTK::PipelineDialog::slotMoveSelectedPluginDownList1 | ( | ) | [private, slot] |
References ui.
Referenced by PipelineDialog().
void rtVTK::PipelineDialog::slotMoveSelectedPluginDownList2 | ( | ) | [private, slot] |
References ui.
Referenced by PipelineDialog().
void rtVTK::PipelineDialog::slotMoveSelectedPluginUpList1 | ( | ) | [private, slot] |
This (and the five functions following it) move the plugin around in the lists. Be advised that QListWidget::currentRow() starts at zero, but QListWidget::count() starts at 1.
References ui.
Referenced by PipelineDialog().
void rtVTK::PipelineDialog::slotMoveSelectedPluginUpList2 | ( | ) | [private, slot] |
References ui.
Referenced by PipelineDialog().
void rtVTK::PipelineDialog::slotOnCancel | ( | ) | [private, slot] |
This function is to be called if the user closes the dialog box by clicking the Cancel button.
Emits sgnlRestoreIdle and sgnlUnpauseTimers.
References sgnlRestoreIdle(), and sgnlUnpauseTimers().
Referenced by PipelineDialog().
void rtVTK::PipelineDialog::slotReturnOrder | ( | ) | [private, slot] |
Assembles a vector of names of the plugins in the right-hand column. These plugins, in their current order, will be the new pipeline.
Emits sgnlRestoreIdle and sgnlUnpauseTimers.
Emits sgnlGetOrder with the vector of names as an argument.
References sgnlGetOrder(), sgnlRestoreIdle(), sgnlUnpauseTimers(), and ui.
Referenced by PipelineDialog().
Ui::PipelineDialog* rtVTK::PipelineDialog::ui [private] |