Script launcher: add env profile configure dialog button to config UI

Provides quick access to edit environments profiles or create new ones,
as desired for the current script launcher.
The same is already present in the config UI for the binary app launcher.
parent 58838e02
Pipeline #7123 passed with stage
in 47 minutes and 43 seconds
......@@ -18,6 +18,8 @@ target_link_libraries(kdevexecutescript
KDev::Interfaces
KDev::Util
KDev::Project
KDev::OutputView)
KDev::OutputView
KDev::Shell
)
install(FILES iexecutescriptplugin.h DESTINATION ${KDE_INSTALL_INCLUDEDIR}/kdevplatform/executescript COMPONENT Devel)
......@@ -98,6 +98,8 @@ ScriptAppConfigPage::ScriptAppConfigPage( QWidget* parent )
//Set workingdirectory widget to ask for directories rather than files
workingDirectory->setMode(KFile::Directory | KFile::ExistingOnly | KFile::LocalOnly);
configureEnvironment->setSelectionWidget(environment);
//connect signals to changed signal
connect( interpreter->lineEdit(), &QLineEdit::textEdited, this, &ScriptAppConfigPage::changed );
connect( executablePath->lineEdit(), &KLineEdit::textEdited, this, &ScriptAppConfigPage::changed );
......
......@@ -193,11 +193,24 @@
</widget>
</item>
<item row="2" column="1">
<widget class="KDevelop::EnvironmentSelectionWidget" name="environment">
<property name="toolTip">
<string>Select an environment to be used</string>
</property>
</widget>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="KDevelop::EnvironmentSelectionWidget" name="environment">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="toolTip">
<string>Select an environment to be used</string>
</property>
</widget>
</item>
<item>
<widget class="KDevelop::EnvironmentConfigureButton" name="configureEnvironment"/>
</item>
</layout>
</item>
<item row="3" column="0">
<widget class="QLabel" name="label_6">
......@@ -317,6 +330,11 @@
<extends>KComboBox</extends>
<header>util/environmentselectionwidget.h</header>
</customwidget>
<customwidget>
<class>KDevelop::EnvironmentConfigureButton</class>
<extends>QToolButton</extends>
<header>shell/environmentconfigurebutton.h</header>
</customwidget>
</customwidgets>
<tabstops>
<tabstop>arguments</tabstop>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment