Setting up a model-view display for the airframe list.

This commit is contained in:
Nick Foster
2012-07-05 23:52:00 -07:00
parent 8cd551689b
commit b4cafe0384
5 changed files with 494 additions and 449 deletions
+413 -427
View File
@@ -6,195 +6,116 @@
<rect>
<x>0</x>
<y>0</y>
<width>877</width>
<height>618</height>
<width>686</width>
<height>413</height>
</rect>
</property>
<property name="windowTitle">
<string>MainWindow</string>
</property>
<widget class="QWidget" name="centralwidget">
<widget class="QListView" name="list_aircraft">
<widget class="QTabWidget" name="tab_dataview">
<property name="geometry">
<rect>
<x>10</x>
<y>240</y>
<width>91</width>
<height>281</height>
<x>130</x>
<y>30</y>
<width>551</width>
<height>301</height>
</rect>
</property>
</widget>
<widget class="QGroupBox" name="group_input">
<property name="geometry">
<rect>
<x>10</x>
<y>10</y>
<width>221</width>
<height>191</height>
</rect>
<property name="currentIndex">
<number>0</number>
</property>
<property name="title">
<string>Input</string>
</property>
<widget class="QLabel" name="label_5">
<property name="geometry">
<rect>
<x>10</x>
<y>60</y>
<width>66</width>
<height>17</height>
</rect>
</property>
<property name="text">
<string>Rate</string>
</property>
</widget>
<widget class="QLabel" name="label">
<property name="geometry">
<rect>
<x>10</x>
<y>30</y>
<width>66</width>
<height>17</height>
</rect>
</property>
<property name="text">
<string>Source</string>
</property>
</widget>
<widget class="QComboBox" name="combo_source">
<property name="geometry">
<rect>
<x>90</x>
<y>30</y>
<width>121</width>
<height>27</height>
</rect>
</property>
</widget>
<widget class="QLabel" name="label_3">
<property name="geometry">
<rect>
<x>10</x>
<y>90</y>
<width>66</width>
<height>17</height>
</rect>
</property>
<property name="text">
<string>Threshold</string>
</property>
</widget>
<widget class="QComboBox" name="combo_rate">
<property name="geometry">
<rect>
<x>90</x>
<y>60</y>
<width>91</width>
<height>27</height>
</rect>
</property>
</widget>
<widget class="QLineEdit" name="line_threshold">
<property name="geometry">
<rect>
<x>90</x>
<y>90</y>
<width>71</width>
<height>27</height>
</rect>
</property>
</widget>
<widget class="QLabel" name="label_19">
<property name="geometry">
<rect>
<x>160</x>
<y>90</y>
<width>31</width>
<height>17</height>
</rect>
</property>
<property name="text">
<string>dB</string>
</property>
</widget>
<widget class="QLabel" name="label_27">
<property name="geometry">
<rect>
<x>180</x>
<y>60</y>
<width>41</width>
<height>17</height>
</rect>
</property>
<property name="text">
<string>Msps</string>
</property>
</widget>
<widget class="QStackedWidget" name="stack_source">
<property name="geometry">
<rect>
<x>0</x>
<y>120</y>
<width>221</width>
<height>71</height>
</rect>
</property>
<property name="currentIndex">
<number>1</number>
</property>
<widget class="QWidget" name="page_rf">
<widget class="QComboBox" name="combo_ant">
<widget class="QWidget" name="tab">
<attribute name="title">
<string>Setup</string>
</attribute>
<widget class="QGroupBox" name="group_input">
<property name="geometry">
<rect>
<x>10</x>
<y>20</y>
<width>221</width>
<height>191</height>
</rect>
</property>
<property name="title">
<string>Input</string>
</property>
<widget class="QLabel" name="label_5">
<property name="geometry">
<rect>
<x>10</x>
<y>60</y>
<width>66</width>
<height>17</height>
</rect>
</property>
<property name="text">
<string>Rate</string>
</property>
</widget>
<widget class="QLabel" name="label">
<property name="geometry">
<rect>
<x>10</x>
<y>30</y>
<width>66</width>
<height>17</height>
</rect>
</property>
<property name="text">
<string>Source</string>
</property>
</widget>
<widget class="QComboBox" name="combo_source">
<property name="geometry">
<rect>
<x>90</x>
<y>40</y>
<y>30</y>
<width>121</width>
<height>27</height>
</rect>
</property>
</widget>
<widget class="QLineEdit" name="line_gain">
<widget class="QLabel" name="label_3">
<property name="geometry">
<rect>
<x>10</x>
<y>90</y>
<width>66</width>
<height>17</height>
</rect>
</property>
<property name="text">
<string>Threshold</string>
</property>
</widget>
<widget class="QComboBox" name="combo_rate">
<property name="geometry">
<rect>
<x>90</x>
<y>10</y>
<y>60</y>
<width>91</width>
<height>27</height>
</rect>
</property>
</widget>
<widget class="QLineEdit" name="line_threshold">
<property name="geometry">
<rect>
<x>90</x>
<y>90</y>
<width>71</width>
<height>27</height>
</rect>
</property>
</widget>
<widget class="QLabel" name="label_2">
<property name="geometry">
<rect>
<x>10</x>
<y>10</y>
<width>66</width>
<height>17</height>
</rect>
</property>
<property name="text">
<string>Gain</string>
</property>
</widget>
<widget class="QLabel" name="label_4">
<property name="geometry">
<rect>
<x>10</x>
<y>40</y>
<width>66</width>
<height>17</height>
</rect>
</property>
<property name="text">
<string>Antenna</string>
</property>
</widget>
<widget class="QLabel" name="label_18">
<widget class="QLabel" name="label_19">
<property name="geometry">
<rect>
<x>160</x>
<y>10</y>
<y>90</y>
<width>31</width>
<height>17</height>
</rect>
@@ -203,23 +124,254 @@
<string>dB</string>
</property>
</widget>
</widget>
<widget class="QWidget" name="page_file">
<widget class="QLineEdit" name="line_inputfile">
<widget class="QLabel" name="label_27">
<property name="geometry">
<rect>
<x>90</x>
<y>10</y>
<width>113</width>
<x>180</x>
<y>60</y>
<width>41</width>
<height>17</height>
</rect>
</property>
<property name="text">
<string>Msps</string>
</property>
</widget>
<widget class="QStackedWidget" name="stack_source">
<property name="geometry">
<rect>
<x>0</x>
<y>120</y>
<width>221</width>
<height>71</height>
</rect>
</property>
<property name="currentIndex">
<number>1</number>
</property>
<widget class="QWidget" name="page_rf">
<widget class="QComboBox" name="combo_ant">
<property name="geometry">
<rect>
<x>90</x>
<y>40</y>
<width>121</width>
<height>27</height>
</rect>
</property>
</widget>
<widget class="QLineEdit" name="line_gain">
<property name="geometry">
<rect>
<x>90</x>
<y>10</y>
<width>71</width>
<height>27</height>
</rect>
</property>
</widget>
<widget class="QLabel" name="label_2">
<property name="geometry">
<rect>
<x>10</x>
<y>10</y>
<width>66</width>
<height>17</height>
</rect>
</property>
<property name="text">
<string>Gain</string>
</property>
</widget>
<widget class="QLabel" name="label_4">
<property name="geometry">
<rect>
<x>10</x>
<y>40</y>
<width>66</width>
<height>17</height>
</rect>
</property>
<property name="text">
<string>Antenna</string>
</property>
</widget>
<widget class="QLabel" name="label_18">
<property name="geometry">
<rect>
<x>160</x>
<y>10</y>
<width>31</width>
<height>17</height>
</rect>
</property>
<property name="text">
<string>dB</string>
</property>
</widget>
</widget>
<widget class="QWidget" name="page_file">
<widget class="QLineEdit" name="line_inputfile">
<property name="geometry">
<rect>
<x>90</x>
<y>10</y>
<width>113</width>
<height>27</height>
</rect>
</property>
</widget>
<widget class="QLabel" name="label_13">
<property name="geometry">
<rect>
<x>10</x>
<y>10</y>
<width>66</width>
<height>17</height>
</rect>
</property>
<property name="text">
<string>Filename</string>
</property>
</widget>
</widget>
</widget>
</widget>
<widget class="QGroupBox" name="group_output">
<property name="geometry">
<rect>
<x>270</x>
<y>20</y>
<width>281</width>
<height>151</height>
</rect>
</property>
<property name="title">
<string>Output</string>
</property>
<widget class="QCheckBox" name="check_kml">
<property name="geometry">
<rect>
<x>10</x>
<y>120</y>
<width>61</width>
<height>22</height>
</rect>
</property>
<property name="text">
<string>KML</string>
</property>
</widget>
<widget class="QLabel" name="label_6">
<property name="geometry">
<rect>
<x>130</x>
<y>30</y>
<width>31</width>
<height>17</height>
</rect>
</property>
<property name="text">
<string>Port</string>
</property>
</widget>
<widget class="QLabel" name="label_7">
<property name="geometry">
<rect>
<x>130</x>
<y>60</y>
<width>31</width>
<height>17</height>
</rect>
</property>
<property name="text">
<string>Port</string>
</property>
</widget>
<widget class="QCheckBox" name="check_sbs1">
<property name="geometry">
<rect>
<x>10</x>
<y>30</y>
<width>71</width>
<height>22</height>
</rect>
</property>
<property name="text">
<string>SBS-1</string>
</property>
</widget>
<widget class="QLabel" name="label_8">
<property name="geometry">
<rect>
<x>130</x>
<y>90</y>
<width>31</width>
<height>17</height>
</rect>
</property>
<property name="text">
<string>Port</string>
</property>
</widget>
<widget class="QCheckBox" name="check_raw">
<property name="geometry">
<rect>
<x>10</x>
<y>60</y>
<width>61</width>
<height>22</height>
</rect>
</property>
<property name="text">
<string>Raw</string>
</property>
</widget>
<widget class="QLineEdit" name="line_kmlfilename">
<property name="geometry">
<rect>
<x>160</x>
<y>120</y>
<width>111</width>
<height>27</height>
</rect>
</property>
</widget>
<widget class="QLabel" name="label_13">
<widget class="QLineEdit" name="line_sbs1port">
<property name="geometry">
<rect>
<x>10</x>
<y>10</y>
<x>160</x>
<y>30</y>
<width>71</width>
<height>27</height>
</rect>
</property>
</widget>
<widget class="QLineEdit" name="line_rawport">
<property name="geometry">
<rect>
<x>160</x>
<y>60</y>
<width>71</width>
<height>27</height>
</rect>
</property>
</widget>
<widget class="QLineEdit" name="line_fgfsport">
<property name="geometry">
<rect>
<x>160</x>
<y>90</y>
<width>71</width>
<height>27</height>
</rect>
</property>
</widget>
<widget class="QLabel" name="label_9">
<property name="geometry">
<rect>
<x>100</x>
<y>120</y>
<width>66</width>
<height>17</height>
</rect>
@@ -228,204 +380,87 @@
<string>Filename</string>
</property>
</widget>
<widget class="QCheckBox" name="check_fgfs">
<property name="geometry">
<rect>
<x>10</x>
<y>90</y>
<width>101</width>
<height>22</height>
</rect>
</property>
<property name="text">
<string>FlightGear</string>
</property>
</widget>
</widget>
<widget class="QGroupBox" name="groupBox">
<property name="geometry">
<rect>
<x>280</x>
<y>170</y>
<width>211</width>
<height>111</height>
</rect>
</property>
<property name="title">
<string>RX position</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
<widget class="QLabel" name="label_29">
<property name="geometry">
<rect>
<x>20</x>
<y>60</y>
<width>71</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>Longitude</string>
</property>
</widget>
<widget class="QLineEdit" name="line_my_lon">
<property name="geometry">
<rect>
<x>90</x>
<y>60</y>
<width>113</width>
<height>27</height>
</rect>
</property>
</widget>
<widget class="QLineEdit" name="line_my_lat">
<property name="geometry">
<rect>
<x>90</x>
<y>30</y>
<width>113</width>
<height>27</height>
</rect>
</property>
</widget>
<widget class="QLabel" name="label_28">
<property name="geometry">
<rect>
<x>30</x>
<y>40</y>
<width>61</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>Latitude</string>
</property>
</widget>
</widget>
<zorder>group_input</zorder>
<zorder>group_output</zorder>
<zorder>groupBox</zorder>
<zorder>groupBox</zorder>
</widget>
</widget>
<widget class="QGroupBox" name="group_output">
<property name="geometry">
<rect>
<x>260</x>
<y>10</y>
<width>281</width>
<height>151</height>
</rect>
</property>
<property name="title">
<string>Output</string>
</property>
<widget class="QCheckBox" name="check_kml">
<property name="geometry">
<rect>
<x>10</x>
<y>120</y>
<width>61</width>
<height>22</height>
</rect>
</property>
<property name="text">
<string>KML</string>
</property>
</widget>
<widget class="QLabel" name="label_6">
<property name="geometry">
<rect>
<x>130</x>
<y>30</y>
<width>31</width>
<height>17</height>
</rect>
</property>
<property name="text">
<string>Port</string>
</property>
</widget>
<widget class="QLabel" name="label_7">
<property name="geometry">
<rect>
<x>130</x>
<y>60</y>
<width>31</width>
<height>17</height>
</rect>
</property>
<property name="text">
<string>Port</string>
</property>
</widget>
<widget class="QCheckBox" name="check_sbs1">
<property name="geometry">
<rect>
<x>10</x>
<y>30</y>
<width>71</width>
<height>22</height>
</rect>
</property>
<property name="text">
<string>SBS-1</string>
</property>
</widget>
<widget class="QLabel" name="label_8">
<property name="geometry">
<rect>
<x>130</x>
<y>90</y>
<width>31</width>
<height>17</height>
</rect>
</property>
<property name="text">
<string>Port</string>
</property>
</widget>
<widget class="QCheckBox" name="check_raw">
<property name="geometry">
<rect>
<x>10</x>
<y>60</y>
<width>61</width>
<height>22</height>
</rect>
</property>
<property name="text">
<string>Raw</string>
</property>
</widget>
<widget class="QLineEdit" name="line_kmlfilename">
<property name="geometry">
<rect>
<x>160</x>
<y>120</y>
<width>111</width>
<height>27</height>
</rect>
</property>
</widget>
<widget class="QLineEdit" name="line_sbs1port">
<property name="geometry">
<rect>
<x>160</x>
<y>30</y>
<width>71</width>
<height>27</height>
</rect>
</property>
</widget>
<widget class="QLineEdit" name="line_rawport">
<property name="geometry">
<rect>
<x>160</x>
<y>60</y>
<width>71</width>
<height>27</height>
</rect>
</property>
</widget>
<widget class="QLineEdit" name="line_fgfsport">
<property name="geometry">
<rect>
<x>160</x>
<y>90</y>
<width>71</width>
<height>27</height>
</rect>
</property>
</widget>
<widget class="QLabel" name="label_9">
<property name="geometry">
<rect>
<x>100</x>
<y>120</y>
<width>66</width>
<height>17</height>
</rect>
</property>
<property name="text">
<string>Filename</string>
</property>
</widget>
<widget class="QCheckBox" name="check_fgfs">
<property name="geometry">
<rect>
<x>10</x>
<y>90</y>
<width>101</width>
<height>22</height>
</rect>
</property>
<property name="text">
<string>FlightGear</string>
</property>
</widget>
<zorder>check_kml</zorder>
<zorder>check_kml</zorder>
<zorder>label_6</zorder>
<zorder>label_7</zorder>
<zorder>check_sbs1</zorder>
<zorder>label_8</zorder>
<zorder>check_raw</zorder>
<zorder>line_kmlfilename</zorder>
<zorder>line_sbs1port</zorder>
<zorder>line_rawport</zorder>
<zorder>line_fgfsport</zorder>
<zorder>label_9</zorder>
<zorder>check_fgfs</zorder>
</widget>
<widget class="QScrollBar" name="verticalScrollBar">
<property name="geometry">
<rect>
<x>100</x>
<y>240</y>
<width>16</width>
<height>281</height>
</rect>
</property>
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
</widget>
<widget class="QTabWidget" name="tab_dataview">
<property name="geometry">
<rect>
<x>130</x>
<y>220</y>
<width>741</width>
<height>301</height>
</rect>
</property>
<property name="currentIndex">
<number>2</number>
</property>
<widget class="QWidget" name="dashboard">
<attribute name="title">
<string>Dashboard</string>
@@ -716,12 +751,12 @@
<attribute name="title">
<string>Live data</string>
</attribute>
<widget class="QTextBrowser" name="text_livedata">
<widget class="QTextEdit" name="text_livedata">
<property name="geometry">
<rect>
<x>5</x>
<y>11</y>
<width>721</width>
<width>531</width>
<height>251</height>
</rect>
</property>
@@ -732,7 +767,7 @@
<property name="geometry">
<rect>
<x>10</x>
<y>220</y>
<y>39</y>
<width>101</width>
<height>17</height>
</rect>
@@ -744,8 +779,8 @@
<widget class="QPushButton" name="button_start">
<property name="geometry">
<rect>
<x>670</x>
<y>30</y>
<x>580</x>
<y>340</y>
<width>98</width>
<height>27</height>
</rect>
@@ -758,7 +793,7 @@
<property name="geometry">
<rect>
<x>10</x>
<y>540</y>
<y>340</y>
<width>271</width>
<height>22</height>
</rect>
@@ -767,67 +802,18 @@
<string>Show ADS-B-equipped aircraft only</string>
</property>
</widget>
<widget class="QGroupBox" name="groupBox">
<widget class="QListView" name="list_aircraft">
<property name="geometry">
<rect>
<x>570</x>
<y>90</y>
<width>211</width>
<height>111</height>
<x>15</x>
<y>60</y>
<width>101</width>
<height>271</height>
</rect>
</property>
<property name="title">
<string>RX position</string>
<property name="layoutMode">
<enum>QListView::SinglePass</enum>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
<widget class="QLabel" name="label_29">
<property name="geometry">
<rect>
<x>20</x>
<y>60</y>
<width>71</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>Longitude</string>
</property>
</widget>
<widget class="QLineEdit" name="line_my_lon">
<property name="geometry">
<rect>
<x>90</x>
<y>60</y>
<width>113</width>
<height>27</height>
</rect>
</property>
</widget>
<widget class="QLineEdit" name="line_my_lat">
<property name="geometry">
<rect>
<x>90</x>
<y>30</y>
<width>113</width>
<height>27</height>
</rect>
</property>
</widget>
<widget class="QLabel" name="label_28">
<property name="geometry">
<rect>
<x>30</x>
<y>40</y>
<width>61</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>Latitude</string>
</property>
</widget>
</widget>
</widget>
<widget class="QMenuBar" name="menubar">
@@ -835,7 +821,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>877</width>
<width>686</width>
<height>25</height>
</rect>
</property>