qvge is a multi-platform graph editor written in C++/Qt. Its main goal

is to make possible visually edit two-dimensional graphs in a simple and
intuitive way.

WWW: https://github.com/ArsMasiuk/qvge
This commit is contained in:
Alexey Dokuchaev 2020-06-27 07:11:51 +00:00
parent e1479a0b40
commit 3d56f9c7b7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=540562
7 changed files with 120 additions and 0 deletions

View file

@ -908,6 +908,7 @@
SUBDIR += quat-gui
SUBDIR += quesa
SUBDIR += quesoglc
SUBDIR += qvge
SUBDIR += radiance
SUBDIR += radius-engine
SUBDIR += rapid-photo-downloader

45
graphics/qvge/Makefile Normal file
View file

@ -0,0 +1,45 @@
# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
# $FreeBSD$
PORTNAME= qvge
PORTVERSION= 0.5.5
CATEGORIES= graphics
MAINTAINER= danfe@FreeBSD.org
COMMENT= Qt Visual Graph Editor
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/../LICENSE
LIB_DEPENDS= libOGDF.so:math/ogdf
USE_GITHUB= yes
GH_ACCOUNT= ArsMasiuk
USES= compiler:c++11-lang qt:5 xorg
USE_QT= buildtools_build qmake_build core gui network opengl \
printsupport widgets x11extras xml
USE_XORG= x11
MAKE_ARGS= INSTALL_ROOT=${STAGEDIR}
WRKSRC_SUBDIR= src
PLIST_FILES= bin/qvgeapp
PORTDOCS= CHANGES README.md
OPTIONS_DEFINE= DOCS
post-patch:
@${RM} -r ${BUILD_WRKSRC}/3rdParty/ogdf
@${REINPLACE_CMD} -e '/CONFIG += c++/s,14,11,' ${WRKSRC}/config.pri
@${REINPLACE_CMD} -e '/^USE_OGDF{/,+4d' ${WRKSRC}/qvgeapp.pro
@${REINPLACE_CMD} -e '/#include/s,math\.h,cmath,' ${WRKSRC}/qvge/CUtils.cpp
do-configure:
cd ${CONFIGURE_WRKSRC} && ${QMAKE_ENV} ${QMAKE} ${QMAKE_ARGS}
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/../,} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

3
graphics/qvge/distinfo Normal file
View file

@ -0,0 +1,3 @@
TIMESTAMP = 1592825045
SHA256 (ArsMasiuk-qvge-0.5.5_GH0.tar.gz) = f4a8155f03653bde37c8c83c1ff1b7325b1dec7e1d4b2589cb38558211bf1f5a
SIZE (ArsMasiuk-qvge-0.5.5_GH0.tar.gz) = 4225872

View file

@ -0,0 +1,21 @@
--- app.pri.orig 2020-06-22 11:24:05 UTC
+++ app.pri
@@ -15,7 +15,7 @@ else{
LIBS += -lcommonui -lqvge -lqvgeio -lqtpropertybrowser -lqsint-widgets
USE_OGDF{
- LIBS += -logdf
+ LIBS += -lOGDF
}
win32{
@@ -24,7 +24,8 @@ win32{
unix{
!haiku{
- LIBS += -lQt5X11Extras -lX11
+ QT += x11extras
+ LIBS += -lX11
}
}

View file

@ -0,0 +1,31 @@
--- commonui/ogdf/COGDFLayout.cpp.orig 2020-06-22 11:24:05 UTC
+++ commonui/ogdf/COGDFLayout.cpp
@@ -6,7 +6,7 @@
#include <ogdf/basic/Graph.h>
#include <ogdf/basic/GraphAttributes.h>
-#include <ogdf/module/LayoutModule.h>
+#include <ogdf/basic/LayoutModule.h>
#include <ogdf/fileformats/GraphIO.h>
#include <ogdf/misclayout/BalloonLayout.h>
@@ -246,16 +246,17 @@ bool COGDFLayout::loadGraph(const QString &filename, C
{
ogdf::Graph G;
ogdf::GraphAttributes GA(G, 0xffffff); // all attrs
+ std::ifstream is(filename.toStdString());
QString format = QFileInfo(filename).suffix().toLower();
bool ok = false;
if (format == "gml")
- ok = ogdf::GraphIO::readGML(GA, G, filename.toStdString());
+ ok = ogdf::GraphIO::readGML(GA, G, is);
else
if (format == "dot" || format == "gv")
{
- ok = ogdf::GraphIO::readDOT(GA, G, filename.toStdString());
+ ok = ogdf::GraphIO::readDOT(GA, G, is);
// normalize node positions
if (ok && GA.has(GA.nodeGraphics))

View file

@ -0,0 +1,14 @@
--- qvge/CNodeEditorScene.cpp.orig 2020-06-22 11:24:05 UTC
+++ qvge/CNodeEditorScene.cpp
@@ -189,7 +189,10 @@ bool CNodeEditorScene::toGraph(Graph& g)
// visibility
- static AttrInfo _vis_({ attr_labels_visIds , "Visible Labels", QVariant::StringList});
+ static AttrInfo _vis_;
+ _vis_.id = attr_labels_visIds;
+ _vis_.name = "Visible Labels";
+ _vis_.defaultValue = QVariant::StringList;
auto nodeVis = getVisibleClassAttributes("node", false);
if (nodeVis.size())

5
graphics/qvge/pkg-descr Normal file
View file

@ -0,0 +1,5 @@
qvge is a multi-platform graph editor written in C++/Qt. Its main goal
is to make possible visually edit two-dimensional graphs in a simple and
intuitive way.
WWW: https://github.com/ArsMasiuk/qvge