--- a/DataViews/CodeMetricsDialog.ui Sun Sep 05 13:36:40 2010 +0200 +++ b/DataViews/CodeMetricsDialog.ui Sun Sep 05 17:47:33 2010 +0200 @@ -1,7 +1,8 @@ -<ui version="4.0" > +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> <class>CodeMetricsDialog</class> - <widget class="QDialog" name="CodeMetricsDialog" > - <property name="geometry" > + <widget class="QDialog" name="CodeMetricsDialog"> + <property name="geometry"> <rect> <x>0</x> <y>0</y> @@ -9,117 +10,201 @@ <height>587</height> </rect> </property> - <property name="windowTitle" > + <property name="windowTitle"> <string>Code Metrics</string> </property> - <property name="whatsThis" > - <string><b>Code Metrics</b> -<p>This dialog shows some code metrics.</p></string> + <property name="whatsThis"> + <string><b>Code Metrics</b> +<p>This dialog shows some code metrics.</p></string> </property> - <property name="sizeGripEnabled" > + <property name="sizeGripEnabled"> <bool>true</bool> </property> - <layout class="QVBoxLayout" > + <layout class="QVBoxLayout" name="verticalLayout"> <item> - <widget class="QTreeWidget" name="resultList" > - <property name="whatsThis" > - <string><b>Code metrics</b> -<p>This list shows some code metrics.</p></string> + <widget class="QFrame" name="filterFrame"> + <property name="frameShape"> + <enum>QFrame::NoFrame</enum> + </property> + <property name="frameShadow"> + <enum>QFrame::Raised</enum> </property> - <property name="alternatingRowColors" > + <layout class="QHBoxLayout" name="horizontalLayout"> + <property name="margin"> + <number>0</number> + </property> + <item> + <widget class="QLabel" name="label_2"> + <property name="text"> + <string>Exclude Files:</string> + </property> + </widget> + </item> + <item> + <widget class="QLineEdit" name="excludeFilesEdit"> + <property name="toolTip"> + <string>Enter filename patterns of files to be excluded separated by a comma</string> + </property> + </widget> + </item> + <item> + <widget class="QToolButton" name="clearButton"> + <property name="toolTip"> + <string>Press to clear the filter edit</string> + </property> + <property name="text"> + <string/> + </property> + </widget> + </item> + <item> + <widget class="Line" name="line"> + <property name="lineWidth"> + <number>2</number> + </property> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="startButton"> + <property name="toolTip"> + <string>Press to start the code metrics run</string> + </property> + <property name="text"> + <string>Start</string> + </property> + </widget> + </item> + </layout> + </widget> + </item> + <item> + <widget class="QTreeWidget" name="resultList"> + <property name="whatsThis"> + <string><b>Code metrics</b> +<p>This list shows some code metrics.</p></string> + </property> + <property name="alternatingRowColors"> <bool>true</bool> </property> <column> - <property name="text" > + <property name="text"> <string>Name</string> </property> </column> <column> - <property name="text" > + <property name="text"> <string>Start</string> </property> </column> <column> - <property name="text" > + <property name="text"> <string>End</string> </property> </column> <column> - <property name="text" > + <property name="text"> <string>Lines</string> </property> </column> <column> - <property name="text" > + <property name="text"> <string>Lines of code</string> </property> </column> <column> - <property name="text" > + <property name="text"> <string>Comments</string> </property> </column> <column> - <property name="text" > + <property name="text"> <string>Empty</string> </property> </column> </widget> </item> <item> - <widget class="QTreeWidget" name="summaryList" > - <property name="sizePolicy" > - <sizepolicy vsizetype="Preferred" hsizetype="Expanding" > + <widget class="QTreeWidget" name="summaryList"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Preferred"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> - <property name="whatsThis" > - <string><b>Summary</b> -<p>This shows some overall code metrics.</p></string> + <property name="whatsThis"> + <string><b>Summary</b> +<p>This shows some overall code metrics.</p></string> </property> - <property name="alternatingRowColors" > + <property name="alternatingRowColors"> <bool>true</bool> </property> <column> - <property name="text" > + <property name="text"> <string>Summary</string> </property> </column> <column> - <property name="text" > + <property name="text"> <string>#</string> </property> </column> </widget> </item> <item> - <widget class="QProgressBar" name="checkProgress" > - <property name="toolTip" > + <widget class="QProgressBar" name="checkProgress"> + <property name="toolTip"> <string>Shows the progress of the code metrics action</string> </property> - <property name="value" > + <property name="value"> <number>0</number> </property> - <property name="orientation" > + <property name="orientation"> <enum>Qt::Horizontal</enum> </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::Close</set> </property> </widget> </item> </layout> </widget> - <layoutdefault spacing="6" margin="6" /> + <layoutdefault spacing="6" margin="6"/> <pixmapfunction>qPixmapFromMimeSource</pixmapfunction> + <tabstops> + <tabstop>startButton</tabstop> + <tabstop>excludeFilesEdit</tabstop> + <tabstop>clearButton</tabstop> + <tabstop>resultList</tabstop> + <tabstop>summaryList</tabstop> + <tabstop>buttonBox</tabstop> + </tabstops> <resources/> - <connections/> + <connections> + <connection> + <sender>clearButton</sender> + <signal>clicked()</signal> + <receiver>excludeFilesEdit</receiver> + <slot>clear()</slot> + <hints> + <hint type="sourcelabel"> + <x>717</x> + <y>18</y> + </hint> + <hint type="destinationlabel"> + <x>659</x> + <y>20</y> + </hint> + </hints> + </connection> + </connections> </ui>