| 77 | } |
| 78 | |
| 79 | ScriptAppConfigPage::ScriptAppConfigPage( QWidget* parent ) |
| 80 | : LaunchConfigurationPage( parent ) |
| 81 | { |
| 82 | setupUi(this); |
| 83 | interpreter->lineEdit()->setPlaceholderText(i18nc("@info:placeholder", "Type or select an interpreter...")); |
| 84 | |
| 85 | //Set workingdirectory widget to ask for directories rather than files |
| 86 | workingDirectory->setMode(KFile::Directory | KFile::ExistingOnly | KFile::LocalOnly); |
| 87 | |
| 88 | configureEnvironment->setSelectionWidget(environment); |
| 89 | |
| 90 | //connect signals to changed signal |
| 91 | connect( interpreter->lineEdit(), &QLineEdit::textEdited, this, &ScriptAppConfigPage::changed ); |
| 92 | connect( executablePath->lineEdit(), &KLineEdit::textEdited, this, &ScriptAppConfigPage::changed ); |
| 93 | connect( executablePath, &KUrlRequester::urlSelected, this, &ScriptAppConfigPage::changed ); |
| 94 | connect( arguments, &QLineEdit::textEdited, this, &ScriptAppConfigPage::changed ); |
| 95 | connect( workingDirectory, &KUrlRequester::urlSelected, this, &ScriptAppConfigPage::changed ); |
| 96 | connect( workingDirectory->lineEdit(), &KLineEdit::textEdited, this, &ScriptAppConfigPage::changed ); |
| 97 | connect( environment, &EnvironmentSelectionWidget::currentProfileChanged, this, &ScriptAppConfigPage::changed ); |
| 98 | } |
| 99 | |
| 100 | void ScriptAppConfigPage::saveToConfiguration( KConfigGroup cfg, KDevelop::IProject* project ) const |
| 101 | { |
nothing calls this directly
no test coverage detected