From 6dda2fb49729306d417ec13dd00aa09dda22ec84 Mon Sep 17 00:00:00 2001 From: markus Date: Thu, 15 Jul 2004 00:21:07 +0000 Subject: Add cutecom 0.0.5, a graphical serial terminal. --- comms/cutecom/files/current-cutecommdlg.ui.patch | 14 ++++++ comms/cutecom/files/patch-qcppdialogimpl.cpp | 54 ++++++++++++++++++++++++ comms/cutecom/files/stable-cutecommdlg.ui.patch | 24 +++++++++++ 3 files changed, 92 insertions(+) create mode 100644 comms/cutecom/files/current-cutecommdlg.ui.patch create mode 100644 comms/cutecom/files/patch-qcppdialogimpl.cpp create mode 100644 comms/cutecom/files/stable-cutecommdlg.ui.patch (limited to 'comms/cutecom/files') diff --git a/comms/cutecom/files/current-cutecommdlg.ui.patch b/comms/cutecom/files/current-cutecommdlg.ui.patch new file mode 100644 index 000000000000..67276a99aebf --- /dev/null +++ b/comms/cutecom/files/current-cutecommdlg.ui.patch @@ -0,0 +1,14 @@ +--- cutecommdlg.ui.orig Thu Jul 15 01:11:45 2004 ++++ cutecommdlg.ui Thu Jul 15 01:12:07 2004 +@@ -248,11 +248,6 @@ + + + +- 576000 +- +- +- +- + 921600 + + diff --git a/comms/cutecom/files/patch-qcppdialogimpl.cpp b/comms/cutecom/files/patch-qcppdialogimpl.cpp new file mode 100644 index 000000000000..fa5fa98af744 --- /dev/null +++ b/comms/cutecom/files/patch-qcppdialogimpl.cpp @@ -0,0 +1,54 @@ +--- qcppdialogimpl.cpp.orig Tue Jul 13 21:30:51 2004 ++++ qcppdialogimpl.cpp Thu Jul 15 01:45:55 2004 +@@ -44,6 +44,9 @@ + #include + #include + #include ++#ifdef __FreeBSD__ ++#include ++#endif + #include + + QCPPDialogImpl::QCPPDialogImpl(QWidget* parent) +@@ -147,11 +150,19 @@ + bool entryFound=false; + QStringList devices=settings.readListEntry("/cutecom/AllDevices", &entryFound); + if (!entryFound) ++#ifdef __FreeBSD__ ++ devices<<"/dev/cuaa0"<<"/dev/cuaa1"<<"/dev/cuaa2"<<"/dev/cuaa3"; ++#else + devices<<"/dev/ttyS0"<<"/dev/ttyS1"<<"/dev/ttyS2"<<"/dev/ttyS3"; ++#endif + + m_deviceCb->insertStringList(devices); + ++#ifdef __FreeBSD__ ++ m_deviceCb->setCurrentText(settings.readEntry("/cutecom/CurrentDevice", "/dev/cuaa0")); ++#else + m_deviceCb->setCurrentText(settings.readEntry("/cutecom/CurrentDevice", "/dev/ttyS0")); ++#endif + } + + void QCPPDialogImpl::showAboutMsg() +@@ -610,15 +621,21 @@ + case 230400: + _baud=B230400; + break; ++#if !defined(__FreeBSD__) || (_FreeBSD_version > 500000) + case 460800: + _baud=B460800; + break; ++#endif ++#ifndef __FreeBSD__ + case 576000: + _baud=B576000; + break; ++#endif ++#if !defined(__FreeBSD__) || (_FreeBSD_version >= 500000) + case 921600: + _baud=B921600; + break; ++#endif + // case 128000: + // _baud=B128000; + // break; diff --git a/comms/cutecom/files/stable-cutecommdlg.ui.patch b/comms/cutecom/files/stable-cutecommdlg.ui.patch new file mode 100644 index 000000000000..bf1adf1ac921 --- /dev/null +++ b/comms/cutecom/files/stable-cutecommdlg.ui.patch @@ -0,0 +1,24 @@ +--- cutecommdlg.ui.orig Tue Jul 13 21:24:38 2004 ++++ cutecommdlg.ui Thu Jul 15 01:47:55 2004 +@@ -241,21 +241,6 @@ + 230400 + + +- +- +- 460800 +- +- +- +- +- 576000 +- +- +- +- +- 921600 +- +- + + m_baudCb + -- cgit