Initial commit of detail panel
This commit is contained in:
		
							parent
							
								
									4c82a5e84a
								
							
						
					
					
						commit
						9d575707f0
					
				| @ -7691,6 +7691,18 @@ void MainWindow::on_tableWidgetRXAll_selectionChanged(const QItemSelection &/*se | ||||
|     } | ||||
|     ui->extFreeTextMsgEdit->setPlaceholderText(placeholderText); | ||||
| 
 | ||||
|     // heard detail
 | ||||
|     auto hearing = m_heardGraphOutgoing.value(selectedCall).values().join(", "); | ||||
|     auto heardby = m_heardGraphIncoming.value(selectedCall).values().join(", "); | ||||
|     auto html = selectedCall.isEmpty() || selectedCall.contains("@") ? "" : ( | ||||
|         QString("<h1>%1</h1>").arg(selectedCall) + | ||||
|         QString("<p><strong>HEARING</strong>: %1</p>").arg(hearing) + | ||||
|         QString("<p><strong>HEARD BY</strong>: %1</p>").arg(heardby) | ||||
|     ); | ||||
|     ui->callDetailTextBrowser->setHtml(html); | ||||
|     ui->callDetailTextBrowser->setMinimumHeight((qreal)50.0 + min(ui->callDetailTextBrowser->document()->size().height(), ui->callsVerticalSplitter->height() * 0.33)); | ||||
| 
 | ||||
| 
 | ||||
|     // immediately update the display);
 | ||||
|     updateButtonDisplay(); | ||||
|     updateTextDisplay(); | ||||
| @ -10511,16 +10523,6 @@ void MainWindow::displayCallActivity() { | ||||
| 
 | ||||
|             auto displayItem = new QTableWidgetItem(displayCall); | ||||
|             displayItem->setData(Qt::UserRole, QVariant(d.call)); | ||||
|             auto hearing = m_heardGraphOutgoing.value(d.call).values().join(", "); | ||||
|             auto heardby = m_heardGraphIncoming.value(d.call).values().join(", "); | ||||
|             QStringList tip = {}; | ||||
|             if(!hearing.isEmpty()){ | ||||
|                 tip.append(QString("HEARING: %1").arg(hearing)); | ||||
|             } | ||||
|             if(!heardby.isEmpty()){ | ||||
|                 tip.append(QString("HEARD BY: %1").arg(heardby)); | ||||
|             } | ||||
|             displayItem->setToolTip(tip.join("\n")); | ||||
| 
 | ||||
|             ui->tableWidgetCalls->setItem(row, col++, displayItem); | ||||
| 
 | ||||
|  | ||||
							
								
								
									
										201
									
								
								mainwindow.ui
									
									
									
									
									
								
							
							
						
						
									
										201
									
								
								mainwindow.ui
									
									
									
									
									
								
							| @ -1103,111 +1103,130 @@ QTextEdit[transmitting="true"] { | ||||
|          </property> | ||||
|         </widget> | ||||
|        </widget> | ||||
|        <widget class="QTableWidget" name="tableWidgetCalls"> | ||||
|         <property name="font"> | ||||
|          <font> | ||||
|           <pointsize>12</pointsize> | ||||
|          </font> | ||||
|        <widget class="QSplitter" name="callsVerticalSplitter"> | ||||
|         <property name="sizePolicy"> | ||||
|          <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||||
|           <horstretch>10</horstretch> | ||||
|           <verstretch>0</verstretch> | ||||
|          </sizepolicy> | ||||
|         </property> | ||||
|         <property name="toolTip"> | ||||
|          <string><html><head/><body><p>Received callsigns are displayed with time since last heard, SNR, and grid locator (if reported).</p></body></html></string> | ||||
|         <property name="orientation"> | ||||
|          <enum>Qt::Vertical</enum> | ||||
|         </property> | ||||
|         <property name="autoScroll"> | ||||
|          <bool>false</bool> | ||||
|         <property name="handleWidth"> | ||||
|          <number>6</number> | ||||
|         </property> | ||||
|         <property name="editTriggers"> | ||||
|          <set>QAbstractItemView::NoEditTriggers</set> | ||||
|         </property> | ||||
|         <property name="showDropIndicator" stdset="0"> | ||||
|          <bool>false</bool> | ||||
|         </property> | ||||
|         <property name="alternatingRowColors"> | ||||
|          <bool>true</bool> | ||||
|         </property> | ||||
|         <property name="selectionMode"> | ||||
|          <enum>QAbstractItemView::SingleSelection</enum> | ||||
|         </property> | ||||
|         <property name="selectionBehavior"> | ||||
|          <enum>QAbstractItemView::SelectRows</enum> | ||||
|         </property> | ||||
|         <property name="textElideMode"> | ||||
|          <enum>Qt::ElideRight</enum> | ||||
|         </property> | ||||
|         <property name="gridStyle"> | ||||
|          <enum>Qt::DotLine</enum> | ||||
|         </property> | ||||
|         <property name="wordWrap"> | ||||
|          <bool>false</bool> | ||||
|         </property> | ||||
|         <attribute name="horizontalHeaderVisible"> | ||||
|          <bool>false</bool> | ||||
|         </attribute> | ||||
|         <attribute name="horizontalHeaderDefaultSectionSize"> | ||||
|          <number>30</number> | ||||
|         </attribute> | ||||
|         <attribute name="horizontalHeaderHighlightSections"> | ||||
|          <bool>false</bool> | ||||
|         </attribute> | ||||
|         <attribute name="horizontalHeaderMinimumSectionSize"> | ||||
|          <number>20</number> | ||||
|         </attribute> | ||||
|         <attribute name="horizontalHeaderStretchLastSection"> | ||||
|          <bool>true</bool> | ||||
|         </attribute> | ||||
|         <attribute name="verticalHeaderVisible"> | ||||
|          <bool>false</bool> | ||||
|         </attribute> | ||||
|         <column> | ||||
|          <property name="text"> | ||||
|           <string>★</string> | ||||
|         <widget class="QTableWidget" name="tableWidgetCalls"> | ||||
|          <property name="font"> | ||||
|           <font> | ||||
|            <pointsize>12</pointsize> | ||||
|           </font> | ||||
|          </property> | ||||
|          <property name="textAlignment"> | ||||
|           <set>AlignCenter</set> | ||||
|          <property name="toolTip"> | ||||
|           <string><html><head/><body><p>Received callsigns are displayed with time since last heard, SNR, and grid locator (if reported).</p></body></html></string> | ||||
|          </property> | ||||
|         </column> | ||||
|         <column> | ||||
|          <property name="text"> | ||||
|           <string>Callsigns</string> | ||||
|          <property name="autoScroll"> | ||||
|           <bool>false</bool> | ||||
|          </property> | ||||
|         </column> | ||||
|         <column> | ||||
|          <property name="text"> | ||||
|           <string>✓</string> | ||||
|          <property name="editTriggers"> | ||||
|           <set>QAbstractItemView::NoEditTriggers</set> | ||||
|          </property> | ||||
|          <property name="textAlignment"> | ||||
|           <set>AlignCenter</set> | ||||
|          <property name="showDropIndicator" stdset="0"> | ||||
|           <bool>false</bool> | ||||
|          </property> | ||||
|         </column> | ||||
|         <column> | ||||
|          <property name="text"> | ||||
|           <string>Age</string> | ||||
|          <property name="alternatingRowColors"> | ||||
|           <bool>true</bool> | ||||
|          </property> | ||||
|         </column> | ||||
|         <column> | ||||
|          <property name="text"> | ||||
|           <string>SNR</string> | ||||
|          <property name="selectionMode"> | ||||
|           <enum>QAbstractItemView::SingleSelection</enum> | ||||
|          </property> | ||||
|         </column> | ||||
|         <column> | ||||
|          <property name="text"> | ||||
|           <string>Offset</string> | ||||
|          <property name="selectionBehavior"> | ||||
|           <enum>QAbstractItemView::SelectRows</enum> | ||||
|          </property> | ||||
|         </column> | ||||
|         <column> | ||||
|          <property name="text"> | ||||
|           <string>Time Delta</string> | ||||
|          <property name="textElideMode"> | ||||
|           <enum>Qt::ElideRight</enum> | ||||
|          </property> | ||||
|         </column> | ||||
|         <column> | ||||
|          <property name="text"> | ||||
|           <string>Grid</string> | ||||
|          <property name="gridStyle"> | ||||
|           <enum>Qt::DotLine</enum> | ||||
|          </property> | ||||
|         </column> | ||||
|         <column> | ||||
|          <property name="text"> | ||||
|           <string>Distance</string> | ||||
|          <property name="wordWrap"> | ||||
|           <bool>false</bool> | ||||
|          </property> | ||||
|         </column> | ||||
|          <attribute name="horizontalHeaderVisible"> | ||||
|           <bool>false</bool> | ||||
|          </attribute> | ||||
|          <attribute name="horizontalHeaderDefaultSectionSize"> | ||||
|           <number>30</number> | ||||
|          </attribute> | ||||
|          <attribute name="horizontalHeaderHighlightSections"> | ||||
|           <bool>false</bool> | ||||
|          </attribute> | ||||
|          <attribute name="horizontalHeaderMinimumSectionSize"> | ||||
|           <number>20</number> | ||||
|          </attribute> | ||||
|          <attribute name="horizontalHeaderStretchLastSection"> | ||||
|           <bool>true</bool> | ||||
|          </attribute> | ||||
|          <attribute name="verticalHeaderVisible"> | ||||
|           <bool>false</bool> | ||||
|          </attribute> | ||||
|          <column> | ||||
|           <property name="text"> | ||||
|            <string>★</string> | ||||
|           </property> | ||||
|           <property name="textAlignment"> | ||||
|            <set>AlignCenter</set> | ||||
|           </property> | ||||
|          </column> | ||||
|          <column> | ||||
|           <property name="text"> | ||||
|            <string>Callsigns</string> | ||||
|           </property> | ||||
|          </column> | ||||
|          <column> | ||||
|           <property name="text"> | ||||
|            <string>✓</string> | ||||
|           </property> | ||||
|           <property name="textAlignment"> | ||||
|            <set>AlignCenter</set> | ||||
|           </property> | ||||
|          </column> | ||||
|          <column> | ||||
|           <property name="text"> | ||||
|            <string>Age</string> | ||||
|           </property> | ||||
|          </column> | ||||
|          <column> | ||||
|           <property name="text"> | ||||
|            <string>SNR</string> | ||||
|           </property> | ||||
|          </column> | ||||
|          <column> | ||||
|           <property name="text"> | ||||
|            <string>Offset</string> | ||||
|           </property> | ||||
|          </column> | ||||
|          <column> | ||||
|           <property name="text"> | ||||
|            <string>Time Delta</string> | ||||
|           </property> | ||||
|          </column> | ||||
|          <column> | ||||
|           <property name="text"> | ||||
|            <string>Grid</string> | ||||
|           </property> | ||||
|          </column> | ||||
|          <column> | ||||
|           <property name="text"> | ||||
|            <string>Distance</string> | ||||
|           </property> | ||||
|          </column> | ||||
|         </widget> | ||||
|         <widget class="QTextBrowser" name="callDetailTextBrowser"> | ||||
|          <property name="frameShape"> | ||||
|           <enum>QFrame::Box</enum> | ||||
|          </property> | ||||
|         </widget> | ||||
|        </widget> | ||||
|       </widget> | ||||
|       <widget class="QWidget" name="macroHorizonalWidget" native="true"> | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Jordan Sherer
						Jordan Sherer