Skip to content
Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .github/workflows/plug-in-interface.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
fail-fast: true
matrix:
include:
- os: windows-2019
- os: windows-latest
OUTPUT_DIR: C:/RoboDK/bin/plugins
QT_VERSION: "5.15.2"

Expand All @@ -51,14 +51,17 @@ jobs:
cache: "true"
cache-key-prefix: "install-qt-action-${{ matrix.os }}"

- name: Prepare Visual Studio environment on Windows
if: startsWith(matrix.os, 'windows')
uses: johnnynunez/vsdevenv-shell@v2

- name: Configure and build Plug-In-Interface on Windows
if: startsWith(matrix.os, 'windows')
run: |
cd ${{ github.workspace }}
call "%programfiles(x86)%\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x86_amd64
qmake Plug-In-Interface.pro -spec win32-msvc CONFIG+=qtquickcompiler CONFIG+=${{ env.BUILD_TYPE }}
call %IQTA_TOOLS%\QtCreator\bin\jom\jom.exe
shell: cmd
shell: vsdevenv x64 cmd {0}

- name: Configure and build Plug-In-Interface on Unix
if: (!startsWith(matrix.os, 'windows'))
Expand Down
13 changes: 1 addition & 12 deletions Plugin-OPC-UA/PluginOPCUA.pro
Original file line number Diff line number Diff line change
Expand Up @@ -118,18 +118,7 @@ FORMS += \
#--------------------------
# Header and source files required by any RoboDK plugin
# Do not change this section, make sure to have the robodk_interface folder up one folder
HEADERS += \
../robodk_interface/iitem.h \
../robodk_interface/irobodk.h\
../robodk_interface/iapprobodk.h \
../robodk_interface/robodktypes.h \
../robodk_interface/robodktools.h \

SOURCES += \
../robodk_interface/robodktools.cpp \
../robodk_interface/robodktypes.cpp

INCLUDEPATH += ../robodk_interface
include($$PWD/../robodk_interface/robodk_interface.pri)
#--------------------------


Expand Down
16 changes: 3 additions & 13 deletions PluginAppLoader/AppLoader.pro
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ CONFIG(release, debug|release) {
#--------------------------
# Add header and source files (use File->New File or Project and add your files)
# This can be modified manually or automatically by Qt Creator
INCLUDEPATH += ./zip

HEADERS += \
applistdelegate.h \
apploader.h \
Expand Down Expand Up @@ -117,17 +119,5 @@ FORMS += \
#--------------------------
# Header and source files required by any RoboDK plugin
# Do not change this section, make sure to have the robodk_interface folder up one folder
HEADERS += \
../robodk_interface/iitem.h \
../robodk_interface/irobodk.h\
../robodk_interface/iapprobodk.h \
../robodk_interface/robodktypes.h \
../robodk_interface/robodktools.h \

SOURCES += \
../robodk_interface/robodktools.cpp \
../robodk_interface/robodktypes.cpp

INCLUDEPATH += ../robodk_interface ./zip
include($$PWD/../robodk_interface/robodk_interface.pri)
#--------------------------

13 changes: 1 addition & 12 deletions PluginAttachObject/PluginAttachObject.pro
Original file line number Diff line number Diff line change
Expand Up @@ -104,16 +104,5 @@ SOURCES += \
#--------------------------
# Header and source files required by any RoboDK plugin
# Do not change this section, make sure to have the robodk_interface folder up one folder
HEADERS += \
../robodk_interface/iitem.h \
../robodk_interface/irobodk.h\
../robodk_interface/iapprobodk.h \
../robodk_interface/robodktypes.h \
../robodk_interface/robodktools.h \

SOURCES += \
../robodk_interface/robodktools.cpp \
../robodk_interface/robodktypes.cpp

INCLUDEPATH += ../robodk_interface
include($$PWD/../robodk_interface/robodk_interface.pri)
#--------------------------
13 changes: 1 addition & 12 deletions PluginAttachView/PluginAttachView.pro
Original file line number Diff line number Diff line change
Expand Up @@ -103,16 +103,5 @@ SOURCES += \
#--------------------------
# Header and source files required by any RoboDK plugin
# Do not change this section, make sure to have the robodk_interface folder up one folder
HEADERS += \
../robodk_interface/iitem.h \
../robodk_interface/irobodk.h\
../robodk_interface/iapprobodk.h \
../robodk_interface/robodktypes.h \
../robodk_interface/robodktools.h \

SOURCES += \
../robodk_interface/robodktools.cpp \
../robodk_interface/robodktypes.cpp

INCLUDEPATH += ../robodk_interface
include($$PWD/../robodk_interface/robodk_interface.pri)
#--------------------------
13 changes: 1 addition & 12 deletions PluginBallbarTracker/PluginBallbarTracker.pro
Original file line number Diff line number Diff line change
Expand Up @@ -104,16 +104,5 @@ SOURCES += \
#--------------------------
# Header and source files required by any RoboDK plugin
# Do not change this section, make sure to have the robodk_interface folder up one folder
HEADERS += \
../robodk_interface/iitem.h \
../robodk_interface/irobodk.h\
../robodk_interface/iapprobodk.h \
../robodk_interface/robodktypes.h \
../robodk_interface/robodktools.h \

SOURCES += \
../robodk_interface/robodktools.cpp \
../robodk_interface/robodktypes.cpp

INCLUDEPATH += ../robodk_interface
include($$PWD/../robodk_interface/robodk_interface.pri)
#--------------------------
13 changes: 1 addition & 12 deletions PluginCollisionSensor/PluginCollisionSensor.pro
Original file line number Diff line number Diff line change
Expand Up @@ -103,16 +103,5 @@ SOURCES += \
#--------------------------
# Header and source files required by any RoboDK plugin
# Do not change this section, make sure to have the robodk_interface folder up one folder
HEADERS += \
../robodk_interface/iitem.h \
../robodk_interface/irobodk.h\
../robodk_interface/iapprobodk.h \
../robodk_interface/robodktypes.h \
../robodk_interface/robodktools.h \

SOURCES += \
../robodk_interface/robodktools.cpp \
../robodk_interface/robodktypes.cpp

INCLUDEPATH += ../robodk_interface
include($$PWD/../robodk_interface/robodk_interface.pri)
#--------------------------
12 changes: 3 additions & 9 deletions PluginEmbedding/PluginEmbedding.pro
Original file line number Diff line number Diff line change
Expand Up @@ -96,17 +96,11 @@ SOURCES += \
pluginembedding.cpp \
pluginform.cpp

FORMS += \
pluginform.ui

#--------------------------
# Header and source files required by any RoboDK plugin
# Do not change this section, make sure to have the robodk_interface folder up one folder
HEADERS += \
../robodk_interface/iitem.h \
../robodk_interface/irobodk.h\
../robodk_interface/iapprobodk.h

INCLUDEPATH += ../robodk_interface
include($$PWD/../robodk_interface/robodk_interface.pri)
#--------------------------

FORMS += \
pluginform.ui
14 changes: 1 addition & 13 deletions PluginExample/PluginExample.pro
Original file line number Diff line number Diff line change
Expand Up @@ -104,20 +104,8 @@ RESOURCES += \
resources1.qrc



#--------------------------
# Header and source files required by any RoboDK plugin
# Do not change this section, make sure to have the robodk_interface folder up one folder
HEADERS += \
../robodk_interface/iitem.h \
../robodk_interface/irobodk.h\
../robodk_interface/iapprobodk.h \
../robodk_interface/robodktypes.h \
../robodk_interface/robodktools.h \

SOURCES += \
../robodk_interface/robodktools.cpp \
../robodk_interface/robodktypes.cpp

INCLUDEPATH += ../robodk_interface
include($$PWD/../robodk_interface/robodk_interface.pri)
#--------------------------
14 changes: 1 addition & 13 deletions PluginLVDT/PluginLVDT.pro
Original file line number Diff line number Diff line change
Expand Up @@ -99,20 +99,8 @@ SOURCES += \




#--------------------------
# Header and source files required by any RoboDK plugin
# Do not change this section, make sure to have the robodk_interface folder up one folder
HEADERS += \
../robodk_interface/iitem.h \
../robodk_interface/irobodk.h\
../robodk_interface/iapprobodk.h \
../robodk_interface/robodktypes.h \
../robodk_interface/robodktools.h \

SOURCES += \
../robodk_interface/robodktools.cpp \
../robodk_interface/robodktypes.cpp

INCLUDEPATH += ../robodk_interface
include($$PWD/../robodk_interface/robodk_interface.pri)
#--------------------------
15 changes: 1 addition & 14 deletions PluginLockTCP/PluginLockTCP.pro
Original file line number Diff line number Diff line change
Expand Up @@ -100,21 +100,8 @@ SOURCES += \
PluginLockTCP.cpp




#--------------------------
# Header and source files required by any RoboDK plugin
# Do not change this section, make sure to have the robodk_interface folder up one folder
HEADERS += \
../robodk_interface/iitem.h \
../robodk_interface/irobodk.h\
../robodk_interface/iapprobodk.h \
../robodk_interface/robodktypes.h \
../robodk_interface/robodktools.h \

SOURCES += \
../robodk_interface/robodktools.cpp \
../robodk_interface/robodktypes.cpp

INCLUDEPATH += ../robodk_interface
include($$PWD/../robodk_interface/robodk_interface.pri)
#--------------------------
13 changes: 1 addition & 12 deletions PluginOpenGL-Shaders/PluginChip8Opengl.pro
Original file line number Diff line number Diff line change
Expand Up @@ -137,18 +137,7 @@ SOURCES += \
#--------------------------
# Header and source files required by any RoboDK plugin
# Do not change this section, make sure to have the robodk_interface folder up one folder
HEADERS += \
../robodk_interface/iitem.h \
../robodk_interface/irobodk.h\
../robodk_interface/iapprobodk.h \
../robodk_interface/robodktypes.h \
../robodk_interface/robodktools.h \

SOURCES += \
../robodk_interface/robodktools.cpp \
../robodk_interface/robodktypes.cpp

INCLUDEPATH += ../robodk_interface
include($$PWD/../robodk_interface/robodk_interface.pri)
#--------------------------


Expand Down
13 changes: 1 addition & 12 deletions PluginOpenGL/PluginOpengl.pro
Original file line number Diff line number Diff line change
Expand Up @@ -122,16 +122,5 @@ SOURCES += \
#--------------------------
# Header and source files required by any RoboDK plugin
# Do not change this section, make sure to have the robodk_interface folder up one folder
HEADERS += \
../robodk_interface/iitem.h \
../robodk_interface/irobodk.h\
../robodk_interface/iapprobodk.h \
../robodk_interface/robodktypes.h \
../robodk_interface/robodktools.h \

SOURCES += \
../robodk_interface/robodktools.cpp \
../robodk_interface/robodktypes.cpp

INCLUDEPATH += ../robodk_interface
include($$PWD/../robodk_interface/robodk_interface.pri)
#--------------------------
13 changes: 1 addition & 12 deletions PluginRealTime/PluginRealTime.pro
Original file line number Diff line number Diff line change
Expand Up @@ -107,16 +107,5 @@ RESOURCES += \
#--------------------------
# Header and source files required by any RoboDK plugin
# Do not change this section, make sure to have the robodk_interface folder up one folder
HEADERS += \
../robodk_interface/iitem.h \
../robodk_interface/irobodk.h\
../robodk_interface/iapprobodk.h \
../robodk_interface/robodktypes.h \
../robodk_interface/robodktools.h \

SOURCES += \
../robodk_interface/robodktools.cpp \
../robodk_interface/robodktypes.cpp

INCLUDEPATH += ../robodk_interface
include($$PWD/../robodk_interface/robodk_interface.pri)
#--------------------------
15 changes: 6 additions & 9 deletions PluginRoboUI/PluginRoboUI.pro
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ exists( "$$PWD/../../destdir_rdk_plugins.pri" ) {

INCLUDEPATH += \
$${PROJECT_ROOT}/imgui \
$${PROJECT_ROOT}/../robodk_interface

SOURCES += \
imgui/imgui.cpp \
Expand All @@ -74,8 +73,6 @@ SOURCES += \
imgui/imgui_impl_qt.cpp \
imgui/imgui_tables.cpp \
imgui/imgui_widgets.cpp \
../robodk_interface/robodktools.cpp \
../robodk_interface/robodktypes.cpp \
roboui.cpp

HEADERS += \
Expand All @@ -86,13 +83,13 @@ HEADERS += \
imgui/imstb_rectpack.h \
imgui/imstb_textedit.h \
imgui/imstb_truetype.h \
../robodk_interface/iapprobodk.h \
../robodk_interface/iitem.h \
../robodk_interface/irobodk.h \
../robodk_interface/robodk_interface.h \
../robodk_interface/robodktools.h \
../robodk_interface/robodktypes.h \
roboui.h

RESOURCES += \
roboui.qrc

#--------------------------
# Header and source files required by any RoboDK plugin
# Do not change this section, make sure to have the robodk_interface folder up one folder
include($$PWD/../robodk_interface/robodk_interface.pri)
#--------------------------
13 changes: 1 addition & 12 deletions PluginRobotPilot/PluginRobotPilot.pro
Original file line number Diff line number Diff line change
Expand Up @@ -107,16 +107,5 @@ FORMS += \
#--------------------------
# Header and source files required by any RoboDK plugin
# Do not change this section, make sure to have the robodk_interface folder up one folder
HEADERS += \
../robodk_interface/iitem.h \
../robodk_interface/irobodk.h\
../robodk_interface/iapprobodk.h \
../robodk_interface/robodktypes.h \
../robodk_interface/robodktools.h \

SOURCES += \
../robodk_interface/robodktools.cpp \
../robodk_interface/robodktypes.cpp

INCLUDEPATH += ../robodk_interface
include($$PWD/../robodk_interface/robodk_interface.pri)
#--------------------------
47 changes: 47 additions & 0 deletions robodk_interface/constants.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
/****************************************************************************
**
** Copyright (c) 2015-2025 RoboDK Inc.
** Contact: https://robodk.com/
**
** This file is part of the RoboDK API.
**
** Permission is hereby granted, free of charge, to any person obtaining a copy
** of this software and associated documentation files (the "Software"), to deal
** in the Software without restriction, including without limitation the rights
** to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
** copies of the Software, and to permit persons to whom the Software is
** furnished to do so, subject to the following conditions:
**
** The above copyright notice and this permission notice shall be included in all
** copies or substantial portions of the Software.
**
** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
** IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
** FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
** AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
** LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
** OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
** SOFTWARE.
**
** RoboDK is a registered trademark of RoboDK Inc.
**
****************************************************************************/

#ifndef ROBODK_CONSTANTS_H
#define ROBODK_CONSTANTS_H


namespace robodk
{

namespace constants
{

constexpr double pi = 3.141592653589793;

} // namespace constants

} // namespace robodk


#endif // ROBODK_CONSTANTS_H
Loading
Loading