--- a/Project/AddFileDialog.ui Tue Jan 07 18:08:40 2014 +0100 +++ b/Project/AddFileDialog.ui Wed Jan 08 19:07:23 2014 +0100 @@ -1,7 +1,8 @@ -<ui version="4.0" > +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> <class>AddFileDialog</class> - <widget class="QDialog" name="AddFileDialog" > - <property name="geometry" > + <widget class="QDialog" name="AddFileDialog"> + <property name="geometry"> <rect> <x>0</x> <y>0</y> @@ -9,114 +10,108 @@ <height>141</height> </rect> </property> - <property name="windowTitle" > + <property name="windowTitle"> <string>Add Files</string> </property> - <property name="whatsThis" > - <string><b>Add Files Dialog</b> -<p>This dialog is used to add files to the current project.</p></string> + <property name="whatsThis"> + <string><b>Add Files Dialog</b> +<p>This dialog is used to add files to the current project.</p></string> </property> - <property name="sizeGripEnabled" > + <property name="sizeGripEnabled"> <bool>true</bool> </property> - <layout class="QVBoxLayout" > + <layout class="QVBoxLayout"> <item> - <layout class="QGridLayout" > - <item row="0" column="2" > - <widget class="QPushButton" name="sourceFileButton" > - <property name="whatsThis" > - <string><b>Source Files</b> -<p>Select the source files via a files selection dialog.</p></string> - </property> - <property name="text" > - <string>...</string> - </property> - </widget> - </item> - <item row="1" column="0" > - <widget class="QLabel" name="targetDirLabel" > - <property name="text" > + <layout class="QGridLayout"> + <item row="1" column="0"> + <widget class="QLabel" name="targetDirLabel"> + <property name="text"> <string>&Target Directory:</string> </property> - <property name="buddy" > + <property name="buddy"> <cstring>targetDirEdit</cstring> </property> </widget> </item> - <item row="1" column="1" > - <widget class="QLineEdit" name="targetDirEdit" > - <property name="toolTip" > + <item row="1" column="1"> + <widget class="QLineEdit" name="targetDirEdit"> + <property name="toolTip"> <string>Enter the target directory for the file</string> </property> - <property name="whatsThis" > - <string><b>Target Directory</b> -<p>Enter the target directory. You may select it - with a dialog by pressing the button to the right.</p></string> + <property name="whatsThis"> + <string><b>Target Directory</b> +<p>Enter the target directory. You may select it + with a dialog by pressing the button to the right.</p></string> </property> </widget> </item> - <item row="1" column="2" > - <widget class="QPushButton" name="targetDirButton" > - <property name="whatsThis" > - <string><b>Target Directory</b> -<p>Select the target directory via a directory selection dialog.</p></string> - </property> - <property name="text" > - <string>...</string> - </property> - </widget> - </item> - <item row="0" column="0" > - <widget class="QLabel" name="sourceFileLabel" > - <property name="text" > + <item row="0" column="0"> + <widget class="QLabel" name="sourceFileLabel"> + <property name="text"> <string>&Source Files:</string> </property> - <property name="buddy" > + <property name="buddy"> <cstring>sourceFileEdit</cstring> </property> </widget> </item> - <item row="0" column="1" > - <widget class="QLineEdit" name="sourceFileEdit" > - <property name="toolTip" > + <item row="0" column="1"> + <widget class="QLineEdit" name="sourceFileEdit"> + <property name="toolTip"> <string>Enter the name of files to add separated by the path separator</string> </property> - <property name="whatsThis" > - <string><b>Source Files</b> -<p>Enter the name of files to add to the current project separated + <property name="whatsThis"> + <string><b>Source Files</b> +<p>Enter the name of files to add to the current project separated by the path separator. You may select them with a dialog by pressing -the button to the right.</p></string> +the button to the right.</p></string> + </property> + </widget> + </item> + <item row="0" column="2"> + <widget class="QToolButton" name="sourceFileButton"> + <property name="whatsThis"> + <string><b>Source Files</b> +<p>Select the source files via a files selection dialog.</p></string> + </property> + </widget> + </item> + <item row="1" column="2"> + <widget class="QToolButton" name="targetDirButton"> + <property name="whatsThis"> + <string><b>Target Directory</b> +<p>Select the target directory via a directory selection dialog.</p></string> </property> </widget> </item> </layout> </item> <item> - <widget class="QCheckBox" name="sourcecodeCheckBox" > - <property name="toolTip" > + <widget class="QCheckBox" name="sourcecodeCheckBox"> + <property name="toolTip"> <string>Select, if the files should be added as sourcecode (overriding automatic detection)</string> </property> - <property name="text" > + <property name="text"> <string>Is source&code files</string> </property> - <property name="shortcut" > + <property name="shortcut"> <string>Alt+C</string> </property> </widget> </item> <item> - <widget class="QDialogButtonBox" name="buttonBox" > - <property name="orientation" > + <widget class="QDialogButtonBox" name="buttonBox"> + <property name="orientation"> <enum>Qt::Horizontal</enum> </property> - <property name="standardButtons" > + <property name="standardButtons"> <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set> </property> </widget> </item> </layout> </widget> - <layoutdefault spacing="6" margin="6" /> + <layoutdefault spacing="6" margin="6"/> <pixmapfunction>qPixmapFromMimeSource</pixmapfunction> <tabstops> <tabstop>sourceFileEdit</tabstop> @@ -133,11 +128,11 @@ <receiver>AddFileDialog</receiver> <slot>accept()</slot> <hints> - <hint type="sourcelabel" > + <hint type="sourcelabel"> <x>43</x> <y>112</y> </hint> - <hint type="destinationlabel" > + <hint type="destinationlabel"> <x>43</x> <y>128</y> </hint> @@ -149,11 +144,11 @@ <receiver>AddFileDialog</receiver> <slot>reject()</slot> <hints> - <hint type="sourcelabel" > + <hint type="sourcelabel"> <x>124</x> <y>120</y> </hint> - <hint type="destinationlabel" > + <hint type="destinationlabel"> <x>124</x> <y>128</y> </hint>