mirror of https://github.com/g8bpq/QtTermTCP.git
parent
a3362dbe68
commit
71e21cd9c0
@ -1,121 +0,0 @@
|
||||
[General]
|
||||
HostParams0=nottm.g8bpq.net|8011|gm8bpq|password|5 1 1 0 1 0 0 1\r|Pogo4
|
||||
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\x2\x32\0\0\0\xa8\0\0\x5>\0\0\x3\x61\0\0\x2\x32\0\0\0\xa8\0\0\x5>\0\0\x3\x61\0\0\0\0\0\0\0\0\a\x80\0\0\x2\x32\0\0\0\xa8\0\0\x5>\0\0\x3\x61)
|
||||
HostParams1=192.168.1.63|8011|john|password||Pogo2
|
||||
windowState=@ByteArray(\0\0\0\xff\0\0\0\0\xfd\0\0\0\0\0\0\x3\r\0\0\x2\xa4\0\0\0\x4\0\0\0\x4\0\0\0\b\0\0\0\b\xfc\0\0\0\x1\0\0\0\x3\0\0\0\x1\0\0\0\x16\0m\0\x61\0i\0n\0T\0o\0o\0l\0\x62\0\x61\0r\0\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0)
|
||||
HostParams2=127.0.0.1|8011|gm8bpq|password|c000000100000000 1 1 0 1 0 0 1\r|
|
||||
HostParams3=192.168.1.131|8011|john|password|1 1 1 0 1 0 0 1\r|Slack
|
||||
HostParams4=127.0.0.1|8021|john|password|c000000100000006 1 1 0 1 0 0 1\r|LinBPQ
|
||||
HostParams5=192.168.1.18|8011|john|password|c00000010000002e 1 1 0 1 0 0 1\r|
|
||||
HostParams6=127.0.0.1|8121|john|password|3 1 1 0 1 0 0 1\r|CB
|
||||
HostParams7=|0||||
|
||||
HostParams8=|0||||
|
||||
HostParams9=|0||||
|
||||
HostParams10=|0||||
|
||||
HostParams11=|0||||
|
||||
HostParams12=|0||||
|
||||
HostParams13=|0||||
|
||||
HostParams14=|0||||
|
||||
HostParams15=|0||||
|
||||
Split=41
|
||||
ChatMode=1
|
||||
AutoTeletext=1
|
||||
Bells=1
|
||||
StripLF=1
|
||||
AlertBeep=1
|
||||
ConnectBeep=1
|
||||
CurrentHost=6
|
||||
YAPPPath=
|
||||
listenPort=8015
|
||||
listenEnable=1
|
||||
listenCText=[PMS-2.3-C]\rHello>\r
|
||||
convUTF8=0
|
||||
PTT=None
|
||||
PTTBAUD=0
|
||||
PTTMode=1
|
||||
CATHex=1
|
||||
PTTOffString=
|
||||
PTTOnString=
|
||||
pttGPIOPin=17
|
||||
pttGPIOPinR=17
|
||||
CM108Addr=0xD8C:0x08
|
||||
HamLibPort=4532
|
||||
HamLibHost=127.0.0.1
|
||||
FLRigPort=12345
|
||||
FLRigHost=127.0.0.1
|
||||
AGWEnable=0
|
||||
AGWMonEnable=1
|
||||
AGWTermCall=G8BPQ
|
||||
AGWBeaconDest=
|
||||
AGWBeaconPath=
|
||||
AGWBeaconInterval=0
|
||||
AGWBeaconPorts=
|
||||
AGWBeaconText=
|
||||
AGWHost=127.0.0.1
|
||||
AGWPort=8001
|
||||
AGWPaclen=80
|
||||
AGWToCalls=G8BPQ-2, SWITCH,
|
||||
KISSEnable=0
|
||||
MYCALL=GM8BPQ
|
||||
KISSHost=127.0.0.1
|
||||
KISSMode=0
|
||||
KISSPort=8110
|
||||
KISSSerialPort=TCP
|
||||
KISSBAUD=19200
|
||||
VARAEnable=0
|
||||
VARATermCall=G8BPQ
|
||||
VARAHost=127.0.0.1
|
||||
VARAPort=8310
|
||||
VARAPath=C:\\VARA\\VARA.exe
|
||||
VARAHostHF=127.0.0.1
|
||||
VARAPortHF=8310
|
||||
VARAPathHF=C:\\VARA\\VARA.exe
|
||||
VARAHostFM=127.0.0.1
|
||||
VARAPortFM=8300
|
||||
VARAPathFM=C:\\VARA\\VARAFM.exe
|
||||
VARAHostSAT=127.0.0.1
|
||||
VARAPortSAT=8300
|
||||
VARAPathSAT=C:\\VARA\\VARASAT.exe
|
||||
VARA500=0
|
||||
VARA2300=1
|
||||
VARA2750=0
|
||||
VARAHF=1
|
||||
VARAFM=0
|
||||
VARASAT=0
|
||||
TabType=1 3 1 1 1 1 1 2 2 0
|
||||
monBackground=@Variant(\0\0\0\x43\x1\xff\xff\xff\xff\xff\xff\xff\xff\0\0)
|
||||
monRxText=@Variant(\0\0\0\x43\x1\xff\xff\0\0\0\0\xff\xff\0\0)
|
||||
monTxText=@Variant(\0\0\0\x43\x1\xff\xff\xff\xff\0\0\0\0\0\0)
|
||||
monOtherText=@Variant(\0\0\0\x43\x1\xff\xff\0\0\0\0\0\0\0\0)
|
||||
termBackground=@Variant(\0\0\0\x43\x1\xff\xff\xff\xff\xff\xff\xff\xff\0\0)
|
||||
outputText=@Variant(\0\0\0\x43\x1\xff\xff\0\0\0\0\xff\xff\0\0)
|
||||
EchoText=@Variant(\0\0\0\x43\x1\xff\xff\0\0\0\0\0\0\0\0)
|
||||
WarningText=@Variant(\0\0\0\x43\x1\xff\xff\xff\xff\0\0\0\0\0\0)
|
||||
inputBackground=@Variant(\0\0\0\x43\x1\xff\xff\xff\xff\xff\xff\xff\xff\0\0)
|
||||
inputText=@Variant(\0\0\0\x43\x1\xff\xff\0\0\0\0\0\0\0\0)
|
||||
TermMode=2
|
||||
singlemodeFormat=3
|
||||
FontFamily=Courier
|
||||
PointSize=10
|
||||
Weight=50
|
||||
Sessions="1|1, 17, 40, 205, 625, 990|"
|
||||
VARAInit="P2P SESSION,WINLINK SESSION"
|
||||
|
||||
[AX25_A]
|
||||
Retries=10
|
||||
Maxframe=4
|
||||
Paclen=128
|
||||
FrackTime=8
|
||||
IdleTime=180
|
||||
SlotTime=100
|
||||
Persist=128
|
||||
RespTime=1500
|
||||
TXFrmMode=1
|
||||
FrameCollector=6
|
||||
ExcludeCallsigns=
|
||||
ExcludeAPRSFrmType=
|
||||
KISSOptimization=0
|
||||
DynamicFrack=0
|
||||
BitRecovery=0
|
||||
IPOLL=80
|
||||
MyDigiCall=
|
||||
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@ -1,5 +1,10 @@
|
||||
<RCC>
|
||||
<qresource prefix="/QtTermTCP">
|
||||
<!DOCTYPE RCC><RCC version="1.0">
|
||||
<qresource>
|
||||
<file alias="LowTone">250x600Hz.wav</file>
|
||||
<file alias="HighTone">250x1000Hz.wav</file>
|
||||
<file alias="Ding">ding.wav</file>
|
||||
<file alias="PCBeep">PCBeep.wav</file>
|
||||
<file alias="Ring">Ring.wav</file>
|
||||
<file>QtTermTCP.ico</file>
|
||||
</qresource>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
||||
@ -1,297 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#include <QMainWindow>
|
||||
#include "ui_QtTermTCP.h"
|
||||
#include "ui_AlertSetup.h"
|
||||
#include "ui_YAPPRxSize.h"
|
||||
#include "ui_ColourConfig.h"
|
||||
#include "ui_VARAConfig.h"
|
||||
#include "ui_KISSConfig.h"
|
||||
#include "QTextEdit"
|
||||
#include "QSplitter"
|
||||
#include "QLineEdit"
|
||||
#include "QTcpSocket"
|
||||
#include <QDataStream>
|
||||
#include <QKeyEvent>
|
||||
#include "QThread"
|
||||
#include "QTcpServer"
|
||||
#include "QMdiArea"
|
||||
#include <QMdiSubWindow>
|
||||
#include "QMessageBox"
|
||||
#include "QTimer"
|
||||
#include "QSettings"
|
||||
#include "QThread"
|
||||
#include <QFontDialog>
|
||||
#include <QScrollBar>
|
||||
#include <QFileDialog>
|
||||
#include <QTabWidget>
|
||||
#include <QMenuBar>
|
||||
#include <QProcess>
|
||||
#include <QtSerialPort/QSerialPort>
|
||||
#include <QtMultiMedia/QSound>
|
||||
|
||||
#define MAXHOSTS 16
|
||||
#define MAXPORTS 64
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
class QComboBox;
|
||||
class QLabel;
|
||||
class QLineEdit;
|
||||
class QPushButton;
|
||||
class QTcpSocket;
|
||||
class QNetworkSession;
|
||||
|
||||
class myTcpSocket : public QTcpSocket
|
||||
{
|
||||
public:
|
||||
QWidget * Sess;
|
||||
};
|
||||
|
||||
|
||||
class Ui_ListenSession : public QMainWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit Ui_ListenSession(QWidget *Parent = 0) : QMainWindow(Parent) {}
|
||||
~Ui_ListenSession();
|
||||
|
||||
int SessionType; // Type Mask - Term, Mon, Listen
|
||||
int CurrentWidth;
|
||||
int CurrentHeight; // Saved so can be restored after Cascade
|
||||
|
||||
QTextEdit *termWindow;
|
||||
QTextEdit *monWindow;
|
||||
QLineEdit *inputWindow;
|
||||
QLabel * TTLabel;
|
||||
|
||||
myTcpSocket *clientSocket;
|
||||
|
||||
QAction * actActivate; // From active Windows menu
|
||||
|
||||
char * KbdStack[50];
|
||||
int StackIndex;
|
||||
|
||||
QMdiSubWindow *sw; // The MdiSubwindow is the container for this session
|
||||
|
||||
int InputMode;
|
||||
int SlowTimer;
|
||||
int MonData;
|
||||
|
||||
int OutputSaveLen;
|
||||
char OutputSave[16384];
|
||||
|
||||
int MonSaveLen;
|
||||
char MonSave[4096];
|
||||
|
||||
char PortMonString[2048]; // 64 ports 32 Bytes
|
||||
uint64_t portmask;
|
||||
int mtxparam;
|
||||
int mcomparam;
|
||||
int monUI;
|
||||
int MonitorNODES;
|
||||
int MonitorColour;
|
||||
int CurrentHost;
|
||||
int Tab; // Tab Index if Tabbed Mode
|
||||
void * AGWSession; // Terinal sess - Need to cast to TAGWPort to use it
|
||||
void * AGWMonSession;
|
||||
void * KISSSession;
|
||||
int KISSMode; // Connected or UI
|
||||
char UIDEST[32];
|
||||
char UIPATH[128];
|
||||
|
||||
// For Teletext Emulator
|
||||
|
||||
QImage * TTBitmap; // TT Image buffer
|
||||
QDialog TTUI;
|
||||
|
||||
int TTActive;
|
||||
int TTFlashToggle;
|
||||
char pageBuffer[4096];
|
||||
QBasicTimer timer;
|
||||
|
||||
protected:
|
||||
|
||||
void timerEvent(QTimerEvent *event) override;
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
private slots:
|
||||
|
||||
};
|
||||
|
||||
|
||||
class QtTermTCP : public QMainWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
QtTermTCP(QWidget *parent = NULL);
|
||||
void closeEvent(QCloseEvent * event);
|
||||
static void setFonts();
|
||||
~QtTermTCP();
|
||||
|
||||
private slots:
|
||||
void Disconnect();
|
||||
void doYAPPSend();
|
||||
void doYAPPSetRX();
|
||||
void doYAPPSetSize();
|
||||
void sizeaccept();
|
||||
void sizereject();
|
||||
void menuChecked();
|
||||
void Connect();
|
||||
void displayError(QAbstractSocket::SocketError socketError);
|
||||
void readyRead();
|
||||
void showContextMenu(const QPoint & point);
|
||||
void autoConnectChecked();
|
||||
void LreturnPressed(Ui_ListenSession * LUI);
|
||||
void LDisconnect(Ui_ListenSession * LUI);
|
||||
void SetupHosts();
|
||||
void MyTimerSlot();
|
||||
void KISSTimerSlot();
|
||||
void ListenSlot();
|
||||
void AGWSlot();
|
||||
void AlertSlot();
|
||||
void chooseInboundWAV();
|
||||
void chooseBellsWAV();
|
||||
void chooseIntervalWAV();
|
||||
void chooseAlertWAV();
|
||||
void alertAccept();
|
||||
void alertReject();
|
||||
void VARASlot();
|
||||
void KISSSlot();
|
||||
void deviceaccept();
|
||||
void KISSaccept();
|
||||
void KISSreject();
|
||||
void devicereject();
|
||||
void showContextMenuM(const QPoint &pt);
|
||||
void showContextMenuT(const QPoint &pt);
|
||||
void showContextMenuL();
|
||||
void doQuit();
|
||||
void onTEselectionChanged();
|
||||
void onLEselectionChanged();
|
||||
void setSplit();
|
||||
void ClearScreen();
|
||||
void setVDMode();
|
||||
void showContextMenuMT(const QPoint & pt);
|
||||
void showContextMenuMOnly(const QPoint & pt);
|
||||
void onNewConnection();
|
||||
void onSocketStateChanged(QAbstractSocket::SocketState socketState);
|
||||
void updateWindowMenu();
|
||||
void doNewTerm();
|
||||
void doNewMon();
|
||||
void doNewCombined();
|
||||
void doCascade();
|
||||
void actActivate();
|
||||
void xon_mdiArea_changed();
|
||||
void doFonts();
|
||||
void doMFonts();
|
||||
void ConnecttoVARA();
|
||||
void VARATimer();
|
||||
void AGWdisplayError(QAbstractSocket::SocketError socketError);
|
||||
void AGWreadyRead();
|
||||
void onAGWSocketStateChanged(QAbstractSocket::SocketState socketState);
|
||||
void VARAdisplayError(QAbstractSocket::SocketError socketError);
|
||||
void VARAreadyRead();
|
||||
void onVARASocketStateChanged(QAbstractSocket::SocketState socketState);
|
||||
void KISSdisplayError(QAbstractSocket::SocketError socketError);
|
||||
void KISSreadyRead();
|
||||
void onKISSSocketStateChanged(QAbstractSocket::SocketState socketState);
|
||||
int openSerialPort();
|
||||
void readSerialData();
|
||||
void handleError(QSerialPort::SerialPortError serialPortError);
|
||||
void doColours();
|
||||
void ColourPressed();
|
||||
void Colouraccept();
|
||||
void Colourreject();
|
||||
QColor setColor(QColor Colour);
|
||||
void VARADatadisplayError(QAbstractSocket::SocketError socketError);
|
||||
void VARADatareadyRead();
|
||||
void onVARADataSocketStateChanged(QAbstractSocket::SocketState socketState);
|
||||
void HAMLIBdisplayError(QAbstractSocket::SocketError socketError);
|
||||
void HAMLIBreadyRead();
|
||||
void onHAMLIBSocketStateChanged(QAbstractSocket::SocketState socketState);
|
||||
void ConnecttoHAMLIB();
|
||||
void HAMLIBSetPTT(int PTTState);
|
||||
void FLRigdisplayError(QAbstractSocket::SocketError socketError);
|
||||
void FLRigreadyRead();
|
||||
void onFLRigSocketStateChanged(QAbstractSocket::SocketState socketState);
|
||||
void ConnecttoFLRig();
|
||||
void FLRigSetPTT(int PTTState);
|
||||
void CATChanged(bool State);
|
||||
void PTTPortChanged(int Selected);
|
||||
void OpenPTTPort();
|
||||
void RadioPTT(bool PTTState);
|
||||
void tabSelected(int);
|
||||
void VARAHFChanged(bool state);
|
||||
void VARAFMChanged(bool State);
|
||||
void VARASATChanged(bool State);
|
||||
void SetVARAParams();
|
||||
|
||||
protected:
|
||||
bool eventFilter(QObject* obj, QEvent *event);
|
||||
|
||||
private:
|
||||
|
||||
void ConnecttoAGW();
|
||||
|
||||
void AGWTimer();
|
||||
|
||||
Ui::QtTermTCPClass ui;
|
||||
|
||||
QMenu *hostsubMenu;
|
||||
|
||||
QAction *closeAct;
|
||||
QAction *closeAllAct;
|
||||
QAction *tileAct;
|
||||
QAction *cascadeAct;
|
||||
QAction *nextAct;
|
||||
QAction *previousAct;
|
||||
QAction *windowMenuSeparatorAct;
|
||||
QAction *newTermAct;
|
||||
QAction *newMonAct;
|
||||
QAction *newCombinedAct;
|
||||
QAction *AGWAction;
|
||||
QAction *VARAAction;
|
||||
QAction *KISSAction;
|
||||
QAction *AlertAction;
|
||||
QAction *quitAction;
|
||||
|
||||
QList<myTcpSocket*> _sockets;
|
||||
|
||||
QWidget *centralWidget;
|
||||
void ConnecttoKISS();
|
||||
void KISSTimer();
|
||||
};
|
||||
|
||||
extern "C"
|
||||
{
|
||||
void EncodeSettingsLine(int n, char * String);
|
||||
void DecodeSettingsLine(int n, char * String);
|
||||
void WritetoOutputWindow(Ui_ListenSession * Sess, unsigned char * Buffer, int Len);
|
||||
void WritetoOutputWindowEx(Ui_ListenSession * Sess, unsigned char * Buffer, int len, QTextEdit * termWindow, int *OutputSaveLen, char * OutputSave, QColor Colour);
|
||||
void WritetoMonWindow(Ui_ListenSession * Sess, unsigned char * Buffer, int Len);
|
||||
void ProcessReceivedData(Ui_ListenSession * Sess, unsigned char * Buffer, int len);
|
||||
void SendTraceOptions(Ui_ListenSession * LUI);
|
||||
void setTraceOff(Ui_ListenSession * Sess);
|
||||
void SetPortMonLine(int i, char * Text, int visible, int enabled);
|
||||
void SaveSettings();
|
||||
void myBeep(QString * WAV);
|
||||
void YAPPSendFile(Ui_ListenSession * Sess, char * FN);
|
||||
int SocketSend(Ui_ListenSession * Sess, char * Buffer, int len);
|
||||
void SendTraceOptions(Ui_ListenSession * Sess);
|
||||
int SocketFlush(Ui_ListenSession * Sess);
|
||||
extern void mySleep(int ms);
|
||||
extern void setTraceOff(Ui_ListenSession * Sess);
|
||||
void GetKeyWordFile();
|
||||
}
|
||||
|
||||
extern QString ConnectWAV;
|
||||
extern QString BellWAV;
|
||||
extern QString AlertWAV;
|
||||
|
||||
char * strlop(char * buf, char delim);
|
||||
extern "C" void setMenus(int State);
|
||||
void Send_AGW_Ds_Frame(void * AGW);
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,65 +0,0 @@
|
||||
/********************************************************************************
|
||||
** Form generated from reading UI file 'TCPHostConfig.ui'
|
||||
**
|
||||
** Created by: Qt User Interface Compiler version 5.14.2
|
||||
**
|
||||
** WARNING! All changes made in this file will be lost when recompiling UI file!
|
||||
********************************************************************************/
|
||||
|
||||
#ifndef UI_TCPHOSTCONFIG_H
|
||||
#define UI_TCPHOSTCONFIG_H
|
||||
|
||||
#include <QtCore/QVariant>
|
||||
#include <QtGui/QIcon>
|
||||
#include <QtWidgets/QApplication>
|
||||
#include <QtWidgets/QDialog>
|
||||
#include <QtWidgets/QDialogButtonBox>
|
||||
#include <QtWidgets/QTextEdit>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class Ui_Dialog
|
||||
{
|
||||
public:
|
||||
QDialogButtonBox *buttonBox;
|
||||
QTextEdit *Host;
|
||||
|
||||
void setupUi(QDialog *Dialog)
|
||||
{
|
||||
if (Dialog->objectName().isEmpty())
|
||||
Dialog->setObjectName(QString::fromUtf8("Dialog"));
|
||||
Dialog->resize(400, 300);
|
||||
QIcon icon;
|
||||
icon.addFile(QString::fromUtf8("QtTermTCP.ico"), QSize(), QIcon::Normal, QIcon::Off);
|
||||
Dialog->setWindowIcon(icon);
|
||||
buttonBox = new QDialogButtonBox(Dialog);
|
||||
buttonBox->setObjectName(QString::fromUtf8("buttonBox"));
|
||||
buttonBox->setGeometry(QRect(30, 240, 341, 32));
|
||||
buttonBox->setOrientation(Qt::Horizontal);
|
||||
buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Save);
|
||||
buttonBox->setCenterButtons(true);
|
||||
Host = new QTextEdit(Dialog);
|
||||
Host->setObjectName(QString::fromUtf8("Host"));
|
||||
Host->setGeometry(QRect(184, 44, 104, 23));
|
||||
|
||||
retranslateUi(Dialog);
|
||||
QObject::connect(buttonBox, SIGNAL(accepted()), Dialog, SLOT(accept()));
|
||||
QObject::connect(buttonBox, SIGNAL(rejected()), Dialog, SLOT(reject()));
|
||||
|
||||
QMetaObject::connectSlotsByName(Dialog);
|
||||
} // setupUi
|
||||
|
||||
void retranslateUi(QDialog *Dialog)
|
||||
{
|
||||
Dialog->setWindowTitle(QCoreApplication::translate("Dialog", "TCP Host Config", nullptr));
|
||||
} // retranslateUi
|
||||
|
||||
};
|
||||
|
||||
namespace Ui {
|
||||
class Dialog: public Ui_Dialog {};
|
||||
} // namespace Ui
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif // UI_TCPHOSTCONFIG_H
|
||||
Loading…
Reference in new issue