2 #include "ui_qxrduserscriptdialog.h"
7 m_Experiment(experiment),
14 setWindowTitle(title);
16 ui->m_ScriptEditor->setText(editable);
29 QDialog::changeEvent(e);
31 case QEvent::LanguageChange:
32 ui->retranslateUi(
this);
41 return ui->m_ScriptEditor->toPlainText();
46 QDialogButtonBox::ButtonRole role =
ui->m_ButtonBar->buttonRole(button);
50 if (role == QDialogButtonBox::ResetRole) {
void onButtonClicked(QAbstractButton *button)
QxrdUserScriptDialog(QString title, QxrdExperimentWPtr experiment, QString editable, QString def, QWidget *parent=0)
QWeakPointer< QxrdExperiment > QxrdExperimentWPtr
QxrdExperimentWPtr m_Experiment
Ui::QxrdUserScriptDialog * ui
void changeEvent(QEvent *e)