Added baseline message history window
This commit is contained in:
		
							parent
							
								
									1a4a06cb23
								
							
						
					
					
						commit
						54fb499518
					
				@ -244,6 +244,7 @@ set (wsjtx_CXXSRCS
 | 
				
			|||||||
  keyeater.cpp
 | 
					  keyeater.cpp
 | 
				
			||||||
  APRSISClient.cpp
 | 
					  APRSISClient.cpp
 | 
				
			||||||
  Inbox.cpp
 | 
					  Inbox.cpp
 | 
				
			||||||
 | 
					  messagewindow.cpp
 | 
				
			||||||
  mainwindow.cpp
 | 
					  mainwindow.cpp
 | 
				
			||||||
  Configuration.cpp
 | 
					  Configuration.cpp
 | 
				
			||||||
  main.cpp
 | 
					  main.cpp
 | 
				
			||||||
@ -547,6 +548,7 @@ set (wsjt_qt_UISRCS
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
set (wsjtx_UISRCS
 | 
					set (wsjtx_UISRCS
 | 
				
			||||||
  mainwindow.ui
 | 
					  mainwindow.ui
 | 
				
			||||||
 | 
					  messagewindow.ui
 | 
				
			||||||
  about.ui
 | 
					  about.ui
 | 
				
			||||||
  astro.ui
 | 
					  astro.ui
 | 
				
			||||||
  echograph.ui
 | 
					  echograph.ui
 | 
				
			||||||
 | 
				
			|||||||
@ -66,6 +66,7 @@
 | 
				
			|||||||
#include "jsc.h"
 | 
					#include "jsc.h"
 | 
				
			||||||
#include "jsc_checker.h"
 | 
					#include "jsc_checker.h"
 | 
				
			||||||
#include "Inbox.h"
 | 
					#include "Inbox.h"
 | 
				
			||||||
 | 
					#include "messagewindow.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "ui_mainwindow.h"
 | 
					#include "ui_mainwindow.h"
 | 
				
			||||||
#include "moc_mainwindow.cpp"
 | 
					#include "moc_mainwindow.cpp"
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										18
									
								
								messagewindow.cpp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								messagewindow.cpp
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,18 @@
 | 
				
			|||||||
 | 
					#include "messagewindow.h"
 | 
				
			||||||
 | 
					#include "ui_messagewindow.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					MessageWindow::MessageWindow(QWidget *parent) :
 | 
				
			||||||
 | 
					    QWidget(parent),
 | 
				
			||||||
 | 
					    ui(new Ui::MessageWindow)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					    ui->setupUi(this);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    this->setWindowTitle("Message History");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    ui->messageTableWidget->resizeColumnsToContents();
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					MessageWindow::~MessageWindow()
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					    delete ui;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										22
									
								
								messagewindow.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								messagewindow.h
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,22 @@
 | 
				
			|||||||
 | 
					#ifndef MESSAGEWINDOW_H
 | 
				
			||||||
 | 
					#define MESSAGEWINDOW_H
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include <QWidget>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					namespace Ui {
 | 
				
			||||||
 | 
					class MessageWindow;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					class MessageWindow : public QWidget
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					    Q_OBJECT
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					public:
 | 
				
			||||||
 | 
					    explicit MessageWindow(QWidget *parent = 0);
 | 
				
			||||||
 | 
					    ~MessageWindow();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					private:
 | 
				
			||||||
 | 
					    Ui::MessageWindow *ui;
 | 
				
			||||||
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#endif // MESSAGEWINDOW_H
 | 
				
			||||||
							
								
								
									
										146
									
								
								messagewindow.ui
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										146
									
								
								messagewindow.ui
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,146 @@
 | 
				
			|||||||
 | 
					<?xml version="1.0" encoding="UTF-8"?>
 | 
				
			||||||
 | 
					<ui version="4.0">
 | 
				
			||||||
 | 
					 <class>MessageWindow</class>
 | 
				
			||||||
 | 
					 <widget class="QWidget" name="MessageWindow">
 | 
				
			||||||
 | 
					  <property name="geometry">
 | 
				
			||||||
 | 
					   <rect>
 | 
				
			||||||
 | 
					    <x>0</x>
 | 
				
			||||||
 | 
					    <y>0</y>
 | 
				
			||||||
 | 
					    <width>800</width>
 | 
				
			||||||
 | 
					    <height>600</height>
 | 
				
			||||||
 | 
					   </rect>
 | 
				
			||||||
 | 
					  </property>
 | 
				
			||||||
 | 
					  <property name="windowTitle">
 | 
				
			||||||
 | 
					   <string>Form</string>
 | 
				
			||||||
 | 
					  </property>
 | 
				
			||||||
 | 
					  <layout class="QVBoxLayout" name="verticalLayout_2">
 | 
				
			||||||
 | 
					   <property name="leftMargin">
 | 
				
			||||||
 | 
					    <number>6</number>
 | 
				
			||||||
 | 
					   </property>
 | 
				
			||||||
 | 
					   <property name="topMargin">
 | 
				
			||||||
 | 
					    <number>6</number>
 | 
				
			||||||
 | 
					   </property>
 | 
				
			||||||
 | 
					   <property name="rightMargin">
 | 
				
			||||||
 | 
					    <number>6</number>
 | 
				
			||||||
 | 
					   </property>
 | 
				
			||||||
 | 
					   <property name="bottomMargin">
 | 
				
			||||||
 | 
					    <number>6</number>
 | 
				
			||||||
 | 
					   </property>
 | 
				
			||||||
 | 
					   <item>
 | 
				
			||||||
 | 
					    <widget class="QSplitter" name="mainSplitter">
 | 
				
			||||||
 | 
					     <property name="orientation">
 | 
				
			||||||
 | 
					      <enum>Qt::Vertical</enum>
 | 
				
			||||||
 | 
					     </property>
 | 
				
			||||||
 | 
					     <property name="handleWidth">
 | 
				
			||||||
 | 
					      <number>6</number>
 | 
				
			||||||
 | 
					     </property>
 | 
				
			||||||
 | 
					     <widget class="QTableWidget" name="messageTableWidget">
 | 
				
			||||||
 | 
					      <property name="sizePolicy">
 | 
				
			||||||
 | 
					       <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
 | 
				
			||||||
 | 
					        <horstretch>0</horstretch>
 | 
				
			||||||
 | 
					        <verstretch>4</verstretch>
 | 
				
			||||||
 | 
					       </sizepolicy>
 | 
				
			||||||
 | 
					      </property>
 | 
				
			||||||
 | 
					      <property name="alternatingRowColors">
 | 
				
			||||||
 | 
					       <bool>true</bool>
 | 
				
			||||||
 | 
					      </property>
 | 
				
			||||||
 | 
					      <property name="selectionBehavior">
 | 
				
			||||||
 | 
					       <enum>QAbstractItemView::SelectRows</enum>
 | 
				
			||||||
 | 
					      </property>
 | 
				
			||||||
 | 
					      <attribute name="horizontalHeaderMinimumSectionSize">
 | 
				
			||||||
 | 
					       <number>10</number>
 | 
				
			||||||
 | 
					      </attribute>
 | 
				
			||||||
 | 
					      <attribute name="horizontalHeaderStretchLastSection">
 | 
				
			||||||
 | 
					       <bool>true</bool>
 | 
				
			||||||
 | 
					      </attribute>
 | 
				
			||||||
 | 
					      <column>
 | 
				
			||||||
 | 
					       <property name="text">
 | 
				
			||||||
 | 
					        <string>⚑</string>
 | 
				
			||||||
 | 
					       </property>
 | 
				
			||||||
 | 
					       <property name="textAlignment">
 | 
				
			||||||
 | 
					        <set>AlignCenter</set>
 | 
				
			||||||
 | 
					       </property>
 | 
				
			||||||
 | 
					      </column>
 | 
				
			||||||
 | 
					      <column>
 | 
				
			||||||
 | 
					       <property name="text">
 | 
				
			||||||
 | 
					        <string>Date</string>
 | 
				
			||||||
 | 
					       </property>
 | 
				
			||||||
 | 
					      </column>
 | 
				
			||||||
 | 
					      <column>
 | 
				
			||||||
 | 
					       <property name="text">
 | 
				
			||||||
 | 
					        <string>From</string>
 | 
				
			||||||
 | 
					       </property>
 | 
				
			||||||
 | 
					      </column>
 | 
				
			||||||
 | 
					      <column>
 | 
				
			||||||
 | 
					       <property name="text">
 | 
				
			||||||
 | 
					        <string>Message</string>
 | 
				
			||||||
 | 
					       </property>
 | 
				
			||||||
 | 
					      </column>
 | 
				
			||||||
 | 
					     </widget>
 | 
				
			||||||
 | 
					     <widget class="QTextEdit" name="messageTextEdit">
 | 
				
			||||||
 | 
					      <property name="sizePolicy">
 | 
				
			||||||
 | 
					       <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
 | 
				
			||||||
 | 
					        <horstretch>0</horstretch>
 | 
				
			||||||
 | 
					        <verstretch>1</verstretch>
 | 
				
			||||||
 | 
					       </sizepolicy>
 | 
				
			||||||
 | 
					      </property>
 | 
				
			||||||
 | 
					      <property name="font">
 | 
				
			||||||
 | 
					       <font>
 | 
				
			||||||
 | 
					        <pointsize>14</pointsize>
 | 
				
			||||||
 | 
					       </font>
 | 
				
			||||||
 | 
					      </property>
 | 
				
			||||||
 | 
					      <property name="styleSheet">
 | 
				
			||||||
 | 
					       <string notr="true">QTextEdit { background-color:#ffeaa7; }</string>
 | 
				
			||||||
 | 
					      </property>
 | 
				
			||||||
 | 
					     </widget>
 | 
				
			||||||
 | 
					    </widget>
 | 
				
			||||||
 | 
					   </item>
 | 
				
			||||||
 | 
					   <item>
 | 
				
			||||||
 | 
					    <widget class="QWidget" name="widget" native="true">
 | 
				
			||||||
 | 
					     <layout class="QHBoxLayout" name="horizontalLayout">
 | 
				
			||||||
 | 
					      <property name="leftMargin">
 | 
				
			||||||
 | 
					       <number>0</number>
 | 
				
			||||||
 | 
					      </property>
 | 
				
			||||||
 | 
					      <property name="topMargin">
 | 
				
			||||||
 | 
					       <number>0</number>
 | 
				
			||||||
 | 
					      </property>
 | 
				
			||||||
 | 
					      <property name="rightMargin">
 | 
				
			||||||
 | 
					       <number>0</number>
 | 
				
			||||||
 | 
					      </property>
 | 
				
			||||||
 | 
					      <property name="bottomMargin">
 | 
				
			||||||
 | 
					       <number>0</number>
 | 
				
			||||||
 | 
					      </property>
 | 
				
			||||||
 | 
					      <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="replyPushButton">
 | 
				
			||||||
 | 
					        <property name="minimumSize">
 | 
				
			||||||
 | 
					         <size>
 | 
				
			||||||
 | 
					          <width>0</width>
 | 
				
			||||||
 | 
					          <height>30</height>
 | 
				
			||||||
 | 
					         </size>
 | 
				
			||||||
 | 
					        </property>
 | 
				
			||||||
 | 
					        <property name="text">
 | 
				
			||||||
 | 
					         <string>Reply</string>
 | 
				
			||||||
 | 
					        </property>
 | 
				
			||||||
 | 
					       </widget>
 | 
				
			||||||
 | 
					      </item>
 | 
				
			||||||
 | 
					     </layout>
 | 
				
			||||||
 | 
					    </widget>
 | 
				
			||||||
 | 
					   </item>
 | 
				
			||||||
 | 
					  </layout>
 | 
				
			||||||
 | 
					 </widget>
 | 
				
			||||||
 | 
					 <resources/>
 | 
				
			||||||
 | 
					 <connections/>
 | 
				
			||||||
 | 
					</ui>
 | 
				
			||||||
@ -80,7 +80,8 @@ SOURCES += \
 | 
				
			|||||||
    jsc_map.cpp \
 | 
					    jsc_map.cpp \
 | 
				
			||||||
    jsc_checker.cpp \
 | 
					    jsc_checker.cpp \
 | 
				
			||||||
    Message.cpp \
 | 
					    Message.cpp \
 | 
				
			||||||
    Inbox.cpp
 | 
					    Inbox.cpp \
 | 
				
			||||||
 | 
					    messagewindow.cpp
 | 
				
			||||||
 | 
					
 | 
				
			||||||
HEADERS  += qt_helpers.hpp \
 | 
					HEADERS  += qt_helpers.hpp \
 | 
				
			||||||
  pimpl_h.hpp pimpl_impl.hpp \
 | 
					  pimpl_h.hpp pimpl_impl.hpp \
 | 
				
			||||||
@ -111,7 +112,8 @@ HEADERS  += qt_helpers.hpp \
 | 
				
			|||||||
    jsc.h \
 | 
					    jsc.h \
 | 
				
			||||||
    jsc_checker.h \
 | 
					    jsc_checker.h \
 | 
				
			||||||
    Message.h \
 | 
					    Message.h \
 | 
				
			||||||
    Inbox.h
 | 
					    Inbox.h \
 | 
				
			||||||
 | 
					    messagewindow.h
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
INCLUDEPATH += qmake_only
 | 
					INCLUDEPATH += qmake_only
 | 
				
			||||||
@ -124,7 +126,8 @@ HEADERS += OmniRigTransceiver.hpp
 | 
				
			|||||||
FORMS    += mainwindow.ui about.ui Configuration.ui widegraph.ui astro.ui \
 | 
					FORMS    += mainwindow.ui about.ui Configuration.ui widegraph.ui astro.ui \
 | 
				
			||||||
    logqso.ui wf_palette_design_dialog.ui messageaveraging.ui echograph.ui \
 | 
					    logqso.ui wf_palette_design_dialog.ui messageaveraging.ui echograph.ui \
 | 
				
			||||||
    fastgraph.ui \
 | 
					    fastgraph.ui \
 | 
				
			||||||
    messagereplydialog.ui
 | 
					    messagereplydialog.ui \
 | 
				
			||||||
 | 
					    messagewindow.ui
 | 
				
			||||||
 | 
					
 | 
				
			||||||
RC_FILE = wsjtx.rc
 | 
					RC_FILE = wsjtx.rc
 | 
				
			||||||
RESOURCES = wsjtx.qrc
 | 
					RESOURCES = wsjtx.qrc
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user