From nobody Tue Jun 7 15:59:05 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id B348A8314B4; Tue, 7 Jun 2022 15:59:05 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LHZm92kGGz4hTb; Tue, 7 Jun 2022 15:59:05 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1654617545; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=C5jo9VionyhIXbhEAE4Sg0G3XfVAwjg9E6nwTl4ZQvc=; b=qfLlISeskUCoAHj0vDGLU0trL4srCEsqhJyzzcO7hqp8AZ97pr0jOp+o2lE8fOiZNmRh97 MgvSiPsgx3stOz/bMqXXoPEiWJ90fFPZDpdFlFs/fhwoPE31AWpuaPeKce2Hr86Xqeo2l3 Xsddw3/8TInDBPqN+WWh85pPeRZqlWC6NeqPT12BMcSAtkwHz5mzu+YqJRsnbS6uI4FNLm nz3vsohLHlAdhMdhXSyjWqdbAuuQpeF6ru2kSLIIMqJSHoft7nzD4gmEY3SgSVMS1IHdGB SxQ1dZRvWLK2gUF4muyXqnU1c6c8D4j3j5jbdvDw+OPLfsrN1E4NkIWn3rWgrg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 30F901E007; Tue, 7 Jun 2022 15:59:05 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 257Fx5TL043017; Tue, 7 Jun 2022 15:59:05 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 257Fx56D043016; Tue, 7 Jun 2022 15:59:05 GMT (envelope-from git) Date: Tue, 7 Jun 2022 15:59:05 GMT Message-Id: <202206071559.257Fx56D043016@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: "Jason W. Bacon" Subject: git: c35d6bc602dd - main - x11/coreterminal: Update to latest commit List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jwb X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c35d6bc602ddf7902d60c9588010b3e1ab542e7c Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1654617545; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=C5jo9VionyhIXbhEAE4Sg0G3XfVAwjg9E6nwTl4ZQvc=; b=PgNJSjzV1bainmFEnoLDJQBBBM6Rlrs4IfnokltjvKziKD99dEDxR6sI3RxSzPuudK4rt9 DYJ5RAMHp1kWmlMfH7a9VqwnqKeo9pazaZl9jwF1ZgpEHQUWkZTAmTYLSzyVxMyWqKU6UT Jg3yayW8hOpmUCRtCgOU4NYRfF0AW0c3e7ijzpO/IdORpMdskAs3XLOuyja+lHoLHZmDet uJosIFLSTY9PtZat0kKQ/JJnGv2/ef7pGNgj3COc3VrXkMeR9vASlRPYQksgMAYIPoMTYz 68gLx3y1yI8MWzRYAbTOlmO0/soa6ThnhbYeOuyHMHj7uUA61EdGA1BkUMQO6g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1654617545; a=rsa-sha256; cv=none; b=dpYdzX2BtBzh+xpc/hzy8tjk6BAS1SUaiy/ADMQHMOBOIwfgpsliRqXwLAyrj+PSCnDZXm aJrDcYEB15i0SZ0TvMQdp18Ijkav1q5UNvVXkn7W1XmkT3FCwX5m+32wQ4G8pLalQGKnHj Ui1LRYPLEwWYfY0Cqd5K8OUyfDcPHpp3S0SDNBtbwTC4Vo7jlaSXqy/2JRD159rvNuoCEP B9rr1pv2LZPiGlY+4ly75YAyfzMu+evf7VFyj37xonj6asArprdSNCd0qOcJXY3coTZaWs Dipbp7JUbPDrHLR4SsBgITtENNhrTDYBbYDDfz85/1JY/DQbXTYIVZ1GbXGhTQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jwb: URL: https://cgit.FreeBSD.org/ports/commit/?id=c35d6bc602ddf7902d60c9588010b3e1ab542e7c commit c35d6bc602ddf7902d60c9588010b3e1ab542e7c Author: Jason W. Bacon AuthorDate: 2022-06-07 15:56:34 +0000 Commit: Jason W. Bacon CommitDate: 2022-06-07 15:56:34 +0000 x11/coreterminal: Update to latest commit Adds snap to multiple of font size during window resize Changes: https://gitlab.com/cubocore/coreapps/coreterminal --- x11/coreterminal/Makefile | 3 +- x11/coreterminal/distinfo | 6 +- x11/coreterminal/files/patch-coreterminal.cpp | 79 +++++---------------------- x11/coreterminal/files/patch-coreterminal.hpp | 10 ---- 4 files changed, 20 insertions(+), 78 deletions(-) diff --git a/x11/coreterminal/Makefile b/x11/coreterminal/Makefile index 6de11ccaf53b..2a797f988529 100644 --- a/x11/coreterminal/Makefile +++ b/x11/coreterminal/Makefile @@ -1,5 +1,6 @@ PORTNAME= coreterminal DISTVERSION= 4.3.0 +PORTREVISION= 1 CATEGORIES= x11 MAINTAINER= jwb@FreeBSD.org @@ -17,7 +18,7 @@ USE_QT= buildtools_build core gui qmake_build serialport widgets USE_GITLAB= yes GL_ACCOUNT= CuboCore -GL_COMMIT= c61e5f8e0941dee2ab8920f2470fe93d21d717a2 +GL_COMMIT= 49d0fc24d5e8237d3d7fc26e5c92a316e54b6b54 PLIST_FILES= bin/coreterminal \ share/applications/org.cubocore.CoreTerminal.desktop \ diff --git a/x11/coreterminal/distinfo b/x11/coreterminal/distinfo index f83af4566883..626ff576f53f 100644 --- a/x11/coreterminal/distinfo +++ b/x11/coreterminal/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1629410989 -SHA256 (CuboCore-coreterminal-c61e5f8e0941dee2ab8920f2470fe93d21d717a2_GL0.tar.gz) = 01466f9dd7b8855f5f55b69c076a2310522da41a1a39de59893de9581d586d97 -SIZE (CuboCore-coreterminal-c61e5f8e0941dee2ab8920f2470fe93d21d717a2_GL0.tar.gz) = 73363 +TIMESTAMP = 1654469754 +SHA256 (CuboCore-coreterminal-49d0fc24d5e8237d3d7fc26e5c92a316e54b6b54_GL0.tar.gz) = b0b4d4005f2fb921689bcf6edecd7651ffe3d934aaaee527dd998823bf64f146 +SIZE (CuboCore-coreterminal-49d0fc24d5e8237d3d7fc26e5c92a316e54b6b54_GL0.tar.gz) = 74310 diff --git a/x11/coreterminal/files/patch-coreterminal.cpp b/x11/coreterminal/files/patch-coreterminal.cpp index ae15e597e257..b13707825b91 100644 --- a/x11/coreterminal/files/patch-coreterminal.cpp +++ b/x11/coreterminal/files/patch-coreterminal.cpp @@ -1,69 +1,20 @@ ---- coreterminal.cpp.orig 2021-08-18 11:17:12 UTC +--- coreterminal.cpp.orig 2022-06-05 22:56:33 UTC +++ coreterminal.cpp -@@ -27,6 +27,7 @@ - * - */ - -+#include - #include - #include - #include -@@ -34,6 +35,8 @@ - #include - #include - #include -+#include -+#include - - #include - #include -@@ -75,6 +78,7 @@ CoreTerminal::~CoreTerminal() - void CoreTerminal::loadSettings() +@@ -55,7 +55,7 @@ CoreTerminal::CoreTerminal(settings *s, QWidget *paren + : QMainWindow(parent) + , uiMode(0) + , mRows(30) +- , mCols(120) ++ , mCols(80) + , smi(s) + { + createGUI(); +@@ -86,7 +86,7 @@ void CoreTerminal::loadSettings() { uiMode = smi->getValue("CoreApps", "UIMode"); -+ terminalFont = smi->getValue("CoreTerminal", "Font"); - } - - void CoreTerminal::createGUI() -@@ -239,7 +243,40 @@ void CoreTerminal::setWindowProperties() - // setStyleSheet( "#base { background-color: palette(Window); }" ); - // } + mRows = smi->getValue("CoreTerminal", "Rows", 30); +- mCols = smi->getValue("CoreTerminal", "Columns", 120); ++ mCols = smi->getValue("CoreTerminal", "Columns", 80); -- resize( 800, 500 ); -+ QFontMetrics fm( terminalFont ); -+ std::cerr << "fm.boundingRect(\"M\").width() = " << fm.boundingRect( "M" ).width() -+ << "\nfm.boundingRect(\"M\").height() = " << fm.boundingRect("M").height() -+ << "\nfm.averageCharWidth() = " << fm.averageCharWidth() -+ << "\nfm.height() = " << fm.height() -+ << "\nfm.lineSpacing() = " << fm.lineSpacing() -+ << "\nfm.leading() = " << fm.leading() -+ << "\ntabBar.width() = " << TabWidget->tabBar()->width() -+ << "\ntabBar.height() = " << TabWidget->tabBar()->height() -+ << "\nframeGeometry.height() = " << frameGeometry().height() -+ << "\ngeometry.height() = " << geometry().height() -+ << "\nPM_ScrollBarExtent = " << qApp->style()->pixelMetric(QStyle::PM_ScrollBarExtent) -+ << "\nPM_TabBarTabOverlap = " << qApp->style()->pixelMetric(QStyle::PM_TabBarTabOverlap) -+ << "\nPM_TabBarTabVSpace = " << qApp->style()->pixelMetric(QStyle::PM_TabBarTabVSpace) -+ << "\nPM_TabBarBaseHeight = " << qApp->style()->pixelMetric(QStyle::PM_TabBarBaseHeight) -+ << "\nPM_TabBarBaseOverlap = " << qApp->style()->pixelMetric(QStyle::PM_TabBarBaseOverlap) -+ << "\ntabBar()->height() = " << TabWidget->tabBar()->height() -+ << "\ntabBar()->tabRect().height() = " << TabWidget->tabBar()->tabRect(0).height() -+ << '\n'; -+ -+ int width = fm.averageCharWidth() * 80 -+ + qApp->style()->pixelMetric(QStyle::PM_ScrollBarExtent) -+ + 2; -+ /* -+ * Perfect size = -+ * tabBar->height() +7 for Fusion, +4 for QtCurve, +3 for Windows -+ * tabBar->tabRect(0).height() seems to align: -+ * 36 for Fusion, 33 for QtCurve, 32 for Windows using 12pt font -+ * Also verified with several other styles and font sizes -+ */ -+ int height = fm.height() * 30 -+ + TabWidget->tabBar()->tabRect(0).height() -+ + 1; -+ resize(width, height); + QFont terminalFont = smi->getValue("CoreTerminal", "Font"); - if (uiMode != 0) { - setWindowFlags( windowFlags() ); diff --git a/x11/coreterminal/files/patch-coreterminal.hpp b/x11/coreterminal/files/patch-coreterminal.hpp deleted file mode 100644 index 4629c46f023c..000000000000 --- a/x11/coreterminal/files/patch-coreterminal.hpp +++ /dev/null @@ -1,10 +0,0 @@ ---- coreterminal.hpp.orig 2021-08-18 11:17:12 UTC -+++ coreterminal.hpp -@@ -53,6 +53,7 @@ public : - private: - int uiMode; - settings *smi; -+ QFont terminalFont; - - void loadSettings(); - void createGUI();