New package: tikzit-2.1.6
This commit is contained in:
parent
37130e61d5
commit
05508327bc
|
@ -0,0 +1,20 @@
|
||||||
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||||
|
index 67b61fa..d928dae 100644
|
||||||
|
--- a/CMakeLists.txt
|
||||||
|
+++ b/CMakeLists.txt
|
||||||
|
@@ -36,6 +36,7 @@ set(SOURCES
|
||||||
|
src/data/graphelementdata.cpp
|
||||||
|
src/data/graphelementproperty.cpp
|
||||||
|
src/data/node.cpp
|
||||||
|
+ src/data/path.cpp
|
||||||
|
src/data/pdfdocument.cpp
|
||||||
|
src/data/style.cpp
|
||||||
|
src/data/stylelist.cpp
|
||||||
|
@@ -50,6 +51,7 @@ set(SOURCES
|
||||||
|
src/gui/mainmenu.cpp
|
||||||
|
src/gui/mainwindow.cpp
|
||||||
|
src/gui/nodeitem.cpp
|
||||||
|
+ src/gui/pathitem.cpp
|
||||||
|
src/gui/preferencedialog.cpp
|
||||||
|
src/gui/previewwindow.cpp
|
||||||
|
src/gui/propertypalette.cpp
|
|
@ -0,0 +1,127 @@
|
||||||
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||||
|
index 67b61fa..3552f08 100644
|
||||||
|
--- a/CMakeLists.txt
|
||||||
|
+++ b/CMakeLists.txt
|
||||||
|
@@ -6,7 +6,7 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||||
|
set(CMAKE_AUTOMOC ON)
|
||||||
|
#set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
|
-find_package(Qt5 REQUIRED COMPONENTS Core Gui Widgets Network)
|
||||||
|
+find_package(Qt5 REQUIRED COMPONENTS Core Gui Widgets)
|
||||||
|
find_package(BISON)
|
||||||
|
find_package(FLEX)
|
||||||
|
|
||||||
|
@@ -123,7 +123,7 @@ add_executable(tikzit
|
||||||
|
${QT_RESOURCES})
|
||||||
|
|
||||||
|
target_link_libraries(${PROJECT_NAME}
|
||||||
|
- Qt5::Core Qt5::Gui Qt5::Widgets Qt5::Network
|
||||||
|
+ Qt5::Core Qt5::Gui Qt5::Widgets
|
||||||
|
${Poppler_LIBRARIES})
|
||||||
|
|
||||||
|
install (TARGETS tikzit DESTINATION bin)
|
||||||
|
diff --git a/src/gui/mainmenu.ui b/src/gui/mainmenu.ui
|
||||||
|
index 11778db..567bb69 100644
|
||||||
|
--- a/src/gui/mainmenu.ui
|
||||||
|
+++ b/src/gui/mainmenu.ui
|
||||||
|
@@ -357,6 +357,9 @@
|
||||||
|
</property>
|
||||||
|
</action>
|
||||||
|
<action name="actionCheck_for_updates_automatically">
|
||||||
|
+ <property name="enabled">
|
||||||
|
+ <bool>false</bool>
|
||||||
|
+ </property>
|
||||||
|
<property name="checkable">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
@@ -365,6 +368,9 @@
|
||||||
|
</property>
|
||||||
|
</action>
|
||||||
|
<action name="actionCheck_now">
|
||||||
|
+ <property name="enabled">
|
||||||
|
+ <bool>false</bool>
|
||||||
|
+ </property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Check now</string>
|
||||||
|
</property>
|
||||||
|
diff --git a/src/tikzit.cpp b/src/tikzit.cpp
|
||||||
|
index a286630..27e4557 100644
|
||||||
|
--- a/src/tikzit.cpp
|
||||||
|
+++ b/src/tikzit.cpp
|
||||||
|
@@ -30,7 +30,6 @@
|
||||||
|
#include <QMessageBox>
|
||||||
|
#include <QRegularExpression>
|
||||||
|
#include <QVersionNumber>
|
||||||
|
-#include <QNetworkAccessManager>
|
||||||
|
#include <QColorDialog>
|
||||||
|
|
||||||
|
// application-level instance of Tikzit
|
||||||
|
@@ -70,6 +69,7 @@ void Tikzit::init()
|
||||||
|
QString styleFile = settings.value("previous-tikzstyles-file").toString();
|
||||||
|
if (!styleFile.isEmpty()) loadStyles(styleFile);
|
||||||
|
|
||||||
|
+ /*
|
||||||
|
QVariant check = settings.value("check-for-updates");
|
||||||
|
if (check.isNull()) {
|
||||||
|
int resp = QMessageBox::question(nullptr,
|
||||||
|
@@ -87,6 +87,8 @@ void Tikzit::init()
|
||||||
|
if (check.toBool()) {
|
||||||
|
checkForUpdates(false);
|
||||||
|
}
|
||||||
|
+ */
|
||||||
|
+ setCheckForUpdates(false); //disable gui toolbar menu checkbox
|
||||||
|
|
||||||
|
_preview = new PreviewWindow();
|
||||||
|
_latex = nullptr;
|
||||||
|
@@ -352,6 +354,8 @@ void Tikzit::setCheckForUpdates(bool check)
|
||||||
|
|
||||||
|
void Tikzit::checkForUpdates(bool manual)
|
||||||
|
{
|
||||||
|
+ return;
|
||||||
|
+ /*
|
||||||
|
QNetworkAccessManager *manager = new QNetworkAccessManager(this);
|
||||||
|
|
||||||
|
if (manual) {
|
||||||
|
@@ -363,8 +367,10 @@ void Tikzit::checkForUpdates(bool manual)
|
||||||
|
}
|
||||||
|
|
||||||
|
manager->get(QNetworkRequest(QUrl("https://tikzit.github.io/latest-version.txt")));
|
||||||
|
+ */
|
||||||
|
}
|
||||||
|
|
||||||
|
+/*
|
||||||
|
void Tikzit::updateAuto(QNetworkReply *reply)
|
||||||
|
{
|
||||||
|
updateReply(reply, false);
|
||||||
|
@@ -422,6 +428,7 @@ void Tikzit::updateReply(QNetworkReply *reply, bool manual)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
+*/
|
||||||
|
|
||||||
|
void Tikzit::makePreview()
|
||||||
|
{
|
||||||
|
diff --git a/src/tikzit.h b/src/tikzit.h
|
||||||
|
index 5debdf3..bff96d7 100644
|
||||||
|
--- a/src/tikzit.h
|
||||||
|
+++ b/src/tikzit.h
|
||||||
|
@@ -71,7 +71,6 @@
|
||||||
|
#include <QMainWindow>
|
||||||
|
#include <QFont>
|
||||||
|
#include <QColor>
|
||||||
|
-#include <QNetworkReply>
|
||||||
|
|
||||||
|
// Number of pixels between (0,0) and (1,0) at 100% zoom level. This should be
|
||||||
|
// divisible by 8 to avoid rounding errors with e.g. grid-snapping.
|
||||||
|
@@ -142,9 +141,11 @@ public slots:
|
||||||
|
void clearRecentFiles();
|
||||||
|
void setCheckForUpdates(bool check);
|
||||||
|
void checkForUpdates(bool manual);
|
||||||
|
+ /*
|
||||||
|
void updateAuto(QNetworkReply *reply);
|
||||||
|
void updateManual(QNetworkReply *reply);
|
||||||
|
void updateReply(QNetworkReply *reply, bool manual);
|
||||||
|
+ */
|
||||||
|
void makePreview();
|
||||||
|
void cleanupLatex();
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
# Template file for 'tikzit'
|
||||||
|
pkgname=tikzit
|
||||||
|
version=2.1.6
|
||||||
|
revision=1
|
||||||
|
build_style=cmake
|
||||||
|
hostmakedepends="qt5-host-tools qt5-qmake extra-cmake-modules flex bison"
|
||||||
|
makedepends="qt5-devel poppler-qt5-devel poppler-cpp-devel"
|
||||||
|
short_desc="Pgf/TikZ diagram editor"
|
||||||
|
maintainer="Piraty <mail@piraty.dev>"
|
||||||
|
license="GPL-3.0-or-later"
|
||||||
|
homepage="https://tikzit.github.io/"
|
||||||
|
distfiles="https://github.com/tikzit/tikzit/archive/refs/tags/v${version}.tar.gz"
|
||||||
|
checksum=40e160f654a25a3a36d6a5361eef71a51f9d3b5eec3b42dd9246ec26402149d1
|
Loading…
Reference in New Issue