Currently combined editor application path + params is a bit problematic (at least in Windows). We really don't know where the app path ends and parameters start. So proper quoting is not always possible. And application path and command line parameters are clearly different settings anyway. So make them separate settings. It has bunch of other positive sides too. Like one can now browse new path for the application without loosing the parameters. When starting Cppcheck version with these new settings user is warned that loading settings had problems and asked to check and fix the settings.
170 lines
4.2 KiB
XML
170 lines
4.2 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ui version="4.0">
|
|
<class>ApplicationDialog</class>
|
|
<widget class="QDialog" name="ApplicationDialog">
|
|
<property name="windowModality">
|
|
<enum>Qt::WindowModal</enum>
|
|
</property>
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>569</width>
|
|
<height>303</height>
|
|
</rect>
|
|
</property>
|
|
<property name="windowTitle">
|
|
<string>Add an application</string>
|
|
</property>
|
|
<layout class="QVBoxLayout" name="verticalLayout">
|
|
<item>
|
|
<widget class="QLabel" name="label">
|
|
<property name="text">
|
|
<string>Here you can add applications that can open error files.
|
|
Specify a name for the application and the application to execute.
|
|
|
|
The following texts are replaced with appropriate values when application is executed:
|
|
(file) - Filename containing the error
|
|
(line) - Line number containing the error
|
|
(message) - Error message
|
|
(severity) - Error severity
|
|
|
|
Example opening a file with Kate and make Kate scroll to the correct line:
|
|
kate -l(line) (file)</string>
|
|
</property>
|
|
<property name="textFormat">
|
|
<enum>Qt::AutoText</enum>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
|
<item>
|
|
<layout class="QVBoxLayout" name="verticalLayout_3">
|
|
<item>
|
|
<widget class="QLabel" name="label_2">
|
|
<property name="text">
|
|
<string>Application's name:</string>
|
|
</property>
|
|
<property name="buddy">
|
|
<cstring>mName</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QLabel" name="label_3">
|
|
<property name="text">
|
|
<string>Executable:</string>
|
|
</property>
|
|
<property name="buddy">
|
|
<cstring>mPath</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QLabel" name="label_4">
|
|
<property name="text">
|
|
<string>Parameters:</string>
|
|
</property>
|
|
<property name="buddy">
|
|
<cstring>mParameters</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item>
|
|
<layout class="QVBoxLayout" name="verticalLayout_2">
|
|
<item>
|
|
<widget class="QLineEdit" name="mName"/>
|
|
</item>
|
|
<item>
|
|
<widget class="QLineEdit" name="mPath"/>
|
|
</item>
|
|
<item>
|
|
<widget class="QLineEdit" name="mParameters"/>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item>
|
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
|
<item>
|
|
<spacer name="horizontalSpacer">
|
|
<property name="orientation">
|
|
<enum>Qt::Horizontal</enum>
|
|
</property>
|
|
<property name="sizeHint" stdset="0">
|
|
<size>
|
|
<width>40</width>
|
|
<height>20</height>
|
|
</size>
|
|
</property>
|
|
</spacer>
|
|
</item>
|
|
<item>
|
|
<widget class="QPushButton" name="mButtonBrowse">
|
|
<property name="text">
|
|
<string>Browse</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item>
|
|
<widget class="QDialogButtonBox" name="mButtons">
|
|
<property name="orientation">
|
|
<enum>Qt::Horizontal</enum>
|
|
</property>
|
|
<property name="standardButtons">
|
|
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<tabstops>
|
|
<tabstop>mName</tabstop>
|
|
<tabstop>mPath</tabstop>
|
|
<tabstop>mParameters</tabstop>
|
|
<tabstop>mButtons</tabstop>
|
|
<tabstop>mButtonBrowse</tabstop>
|
|
</tabstops>
|
|
<resources/>
|
|
<connections>
|
|
<connection>
|
|
<sender>mButtons</sender>
|
|
<signal>accepted()</signal>
|
|
<receiver>ApplicationDialog</receiver>
|
|
<slot>accept()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>248</x>
|
|
<y>254</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>157</x>
|
|
<y>274</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>mButtons</sender>
|
|
<signal>rejected()</signal>
|
|
<receiver>ApplicationDialog</receiver>
|
|
<slot>reject()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>316</x>
|
|
<y>260</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>286</x>
|
|
<y>274</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
</connections>
|
|
</ui>
|