├── plugins ├── rectplugin │ ├── rectplugin.json │ ├── font │ │ └── lcdNumber.TTF │ ├── icons │ │ ├── text.svg │ │ ├── html.svg │ │ ├── triangle.svg │ │ ├── diamond.svg │ │ ├── obtusetriangle.svg │ │ ├── quadrangle.svg │ │ ├── righttriangle.svg │ │ ├── trapezium.svg │ │ ├── parallelogram.svg │ │ ├── righttrapezoid.svg │ │ ├── pie.svg │ │ ├── rectangle.svg │ │ ├── sector.svg │ │ ├── star4.svg │ │ ├── hexagon.svg │ │ ├── circle.svg │ │ ├── pentagon.svg │ │ ├── star5.svg │ │ ├── star6.svg │ │ ├── octagon.svg │ │ ├── dropdown.svg │ │ ├── star8.svg │ │ ├── stand.svg │ │ ├── loose1.svg │ │ ├── loose2.svg │ │ ├── subScript.svg │ │ ├── superScript.svg │ │ ├── tighten1.svg │ │ ├── tighten2.svg │ │ ├── align-justify.svg │ │ ├── align-left.svg │ │ ├── align-center.svg │ │ ├── align-right.svg │ │ ├── decrease.svg │ │ ├── increase.svg │ │ ├── Increase_Indent.svg │ │ ├── Descrease_Indent.svg │ │ └── List_Bullets.svg │ ├── html │ │ └── comments.xml │ ├── rectproperty.cpp │ ├── pieplugin.cpp │ ├── textplugin.cpp │ ├── diamondplugin.cpp │ ├── star4plugin.cpp │ ├── star5plugin.cpp │ ├── star6plugin.cpp │ ├── star8plugin.cpp │ ├── timeplugin.cpp │ ├── circleplugin.cpp │ ├── rectplugin.cpp │ ├── htmlitemplugin.cpp │ ├── sectorplugin.cpp │ ├── hexagonplugin.cpp │ ├── octagonplugin.cpp │ ├── pentagonplugin.cpp │ ├── triangleplugin.cpp │ ├── quadrangleplugin.cpp │ ├── trapeziumplugin.cpp │ ├── webplugin.cpp │ ├── parallelogramplugin.cpp │ ├── htmleditorform.ui │ ├── obtusetriangleplugin.cpp │ ├── righttriangleplugin.cpp │ ├── righttrapezoidplugin.cpp │ ├── pieplugin.h │ ├── textplugin.h │ ├── timeplugin.h │ ├── circleplugin.h │ ├── sectorplugin.h │ ├── hexagonplugin.h │ ├── octagonplugin.h │ ├── htmlitemplugin.h │ ├── pentagonplugin.h │ ├── star4plugin.h │ ├── star5plugin.h │ ├── star6plugin.h │ ├── star8plugin.h │ ├── diamondplugin.h │ ├── webplugin.h │ ├── triangleplugin.h │ ├── trapeziumplugin.h │ ├── quadrangleplugin.h │ ├── parallelogramplugin.h │ ├── righttriangleplugin.h │ ├── obtusetriangleplugin.h │ ├── righttrapezoidplugin.h │ ├── stable.h │ └── rectplugin.h ├── plugins.pro ├── lineplugin │ ├── icons │ │ ├── straightLine.svg │ │ ├── cubicLine.svg │ │ ├── curvedLine.svg │ │ ├── dotLine.svg │ │ ├── polygonLine.svg │ │ ├── dashLine.svg │ │ ├── horiaontalElbow.svg │ │ ├── directionalLine.svg │ │ ├── verticalElbow.svg │ │ └── bidirectionalLine.svg │ ├── arrows │ │ ├── circle.svg │ │ ├── line-sharp.svg │ │ ├── arrow.svg │ │ ├── line-normal.svg │ │ ├── triangle.svg │ │ ├── arrow-nofill.svg │ │ ├── arcArrow.svg │ │ ├── triangle-sharp.svg │ │ ├── triangle-nofill.svg │ │ ├── triangle-sharp-nofill.svg │ │ └── circle-concentric.svg │ ├── dashlineplugin.cpp │ ├── dotlineplugin.cpp │ ├── cubiclineplugin.cpp │ ├── solidlineplugin.cpp │ ├── curvedlineplugin.cpp │ ├── polygonlineplugin.cpp │ ├── directionallineplugin.cpp │ ├── verticalelbowplugin.cpp │ ├── horizontalelbowplugin.cpp │ ├── lineicons.qrc │ ├── bidirectionallineplugin.cpp │ ├── polygonlineplugin.h │ ├── dotlineplugin.h │ ├── verticalelbowplugin.h │ ├── dashlineplugin.h │ ├── cubiclineplugin.h │ ├── solidlineplugin.h │ ├── horizontalelbowplugin.h │ ├── curvedlineplugin.h │ ├── stable.h │ ├── directionallineplugin.h │ └── bidirectionallineplugin.h ├── googlecharts │ ├── icons │ │ ├── areachart.svg │ │ ├── barchart.svg │ │ ├── piechart.svg │ │ ├── bubblechart.svg │ │ ├── histogram.svg │ │ ├── scatterchart.svg │ │ └── candlestickchart.svg │ ├── html │ │ └── chart.html │ ├── chartobject.h │ ├── chartproperty.h │ └── abstractgooglechartplugin.h └── common │ ├── itextobject.h │ ├── isubwidget.h │ ├── baseproperty.h │ ├── ipropertyform.h │ └── igraphicpluginCollection.h ├── screenshots ├── 1.png ├── 2.png ├── 3.png ├── 4.png ├── 5.png ├── 6.png └── 7.png ├── BIDesigner ├── config.dat ├── icons │ ├── down.png │ ├── right.png │ ├── more-line.svg │ ├── arrow-down.svg │ ├── arrow-right.svg │ ├── bottom.svg │ ├── zoom out.svg │ ├── group.svg │ ├── zoom in.svg │ ├── library-add.svg │ ├── export.svg │ ├── shapes_unite.svg │ ├── Undo.svg │ ├── Redo.svg │ ├── bring-to-top.svg │ ├── bring-to-bottom.svg │ ├── edit-box.svg │ ├── manage.svg │ ├── flip_horizontal.svg │ └── rotateV.svg ├── animation │ └── path │ │ ├── icons │ │ ├── straightLine.svg │ │ ├── curvedLine.svg │ │ └── polygonLine.svg │ │ ├── polygonpathplugin.cpp │ │ ├── linepathplugin.cpp │ │ ├── curvedpathplugin.cpp │ │ ├── curvedpath.h │ │ ├── linepathplugin.h │ │ ├── curvedpathplugin.h │ │ └── polygonpathplugin.h ├── config.sql ├── customgraphic │ ├── userplugintype.h │ ├── userpluginservice.h │ └── userplugingroupservice.h ├── configs.h ├── dbutil │ └── tablemodelevent.h └── main.cpp ├── BIWidgets ├── bicomboboxwidget │ ├── combobox.png │ ├── comboboxicons.qrc │ ├── bicombobox.pri │ ├── modify.svg │ └── combobox.svg ├── fillpropertywidget │ ├── fillbg.png │ ├── fillicons.qrc │ └── fillproperty.pri ├── linePropertywidget │ ├── linestyle.png │ ├── lineicons.qrc │ └── lineproperty.pri ├── pospropertywidget │ ├── posproperty.png │ ├── posicons.qrc │ └── posproperty.pri ├── circleslider │ ├── circlesildericons.qrc │ ├── circleslider.pri │ └── circle.svg ├── colorpickerwidget │ ├── icons │ │ ├── colorpicker.png │ │ ├── fontawesome-webfont.ttf │ │ └── sip-line.svg │ ├── icons.qrc │ └── colorpickerwidget.pri ├── gradientcolorpicker │ ├── gradienticons.qrc │ ├── gradient.svg │ └── gradientcolorpicker.pri ├── textpropertywidget │ ├── text.svg │ ├── textproperty.pri │ ├── icons │ │ ├── dropdown.svg │ │ ├── loose1.svg │ │ ├── stand.svg │ │ ├── subScript.svg │ │ ├── superScript.svg │ │ ├── loose2.svg │ │ ├── tighten1.svg │ │ ├── align-justify.svg │ │ ├── tighten2.svg │ │ ├── align-left.svg │ │ ├── align-center.svg │ │ ├── align-right.svg │ │ ├── decrease.svg │ │ ├── increase.svg │ │ ├── Increase_Indent.svg │ │ ├── Descrease_Indent.svg │ │ └── List_Bullets.svg │ └── texticons.qrc ├── deploy.bat └── deploy-mingw.bat ├── common ├── ksyntaxhighlighting │ ├── ksyntaxhighlighting_logging.cpp │ ├── ksyntaxhighlighting_export.h │ ├── ksyntaxhighlighting_version.h │ ├── ksyntaxhighlighting_logging.h │ ├── xml_p.h │ ├── abstracthighlighter_p.h │ ├── wildcardmatcher.h │ ├── contextswitch_p.h │ ├── dynamicregexpcache_p.h │ ├── textstyledata_p.h │ ├── foldingregion.cpp │ └── htmlhighlighter.h ├── easyjsonimpl.h ├── easyjson.h ├── textproperty.h └── undoobject.h ├── .gitattributes ├── .gitignore ├── dashboard.pro ├── style.qss ├── XML存储格式.txt └── README.md /plugins/rectplugin/rectplugin.json: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /screenshots/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lsyeei/dashboard/HEAD/screenshots/1.png -------------------------------------------------------------------------------- /screenshots/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lsyeei/dashboard/HEAD/screenshots/2.png -------------------------------------------------------------------------------- /screenshots/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lsyeei/dashboard/HEAD/screenshots/3.png -------------------------------------------------------------------------------- /screenshots/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lsyeei/dashboard/HEAD/screenshots/4.png -------------------------------------------------------------------------------- /screenshots/5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lsyeei/dashboard/HEAD/screenshots/5.png -------------------------------------------------------------------------------- /screenshots/6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lsyeei/dashboard/HEAD/screenshots/6.png -------------------------------------------------------------------------------- /screenshots/7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lsyeei/dashboard/HEAD/screenshots/7.png -------------------------------------------------------------------------------- /BIDesigner/config.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lsyeei/dashboard/HEAD/BIDesigner/config.dat -------------------------------------------------------------------------------- /BIDesigner/icons/down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lsyeei/dashboard/HEAD/BIDesigner/icons/down.png -------------------------------------------------------------------------------- /BIDesigner/icons/right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lsyeei/dashboard/HEAD/BIDesigner/icons/right.png -------------------------------------------------------------------------------- /plugins/rectplugin/font/lcdNumber.TTF: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lsyeei/dashboard/HEAD/plugins/rectplugin/font/lcdNumber.TTF -------------------------------------------------------------------------------- /BIWidgets/bicomboboxwidget/combobox.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lsyeei/dashboard/HEAD/BIWidgets/bicomboboxwidget/combobox.png -------------------------------------------------------------------------------- /BIWidgets/fillpropertywidget/fillbg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lsyeei/dashboard/HEAD/BIWidgets/fillpropertywidget/fillbg.png -------------------------------------------------------------------------------- /plugins/plugins.pro: -------------------------------------------------------------------------------- 1 | TEMPLATE = subdirs 2 | SUBDIRS += \ 3 | lineplugin \ 4 | rectplugin \ 5 | googlecharts \ 6 | -------------------------------------------------------------------------------- /BIWidgets/linePropertywidget/linestyle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lsyeei/dashboard/HEAD/BIWidgets/linePropertywidget/linestyle.png -------------------------------------------------------------------------------- /BIWidgets/pospropertywidget/posproperty.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lsyeei/dashboard/HEAD/BIWidgets/pospropertywidget/posproperty.png -------------------------------------------------------------------------------- /BIWidgets/circleslider/circlesildericons.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | circle.svg 4 | 5 | 6 | -------------------------------------------------------------------------------- /BIWidgets/colorpickerwidget/icons/colorpicker.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lsyeei/dashboard/HEAD/BIWidgets/colorpickerwidget/icons/colorpicker.png -------------------------------------------------------------------------------- /BIWidgets/gradientcolorpicker/gradienticons.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | gradient.svg 4 | 5 | 6 | -------------------------------------------------------------------------------- /BIWidgets/colorpickerwidget/icons/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lsyeei/dashboard/HEAD/BIWidgets/colorpickerwidget/icons/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /BIWidgets/linePropertywidget/lineicons.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | linestyle.png 4 | pen.svg 5 | 6 | 7 | -------------------------------------------------------------------------------- /BIWidgets/fillpropertywidget/fillicons.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | fillbg.png 4 | fillcolor.svg 5 | 6 | 7 | -------------------------------------------------------------------------------- /BIWidgets/pospropertywidget/posicons.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | posproperty.png 4 | OneAXIS.svg 5 | 6 | 7 | -------------------------------------------------------------------------------- /common/ksyntaxhighlighting/ksyntaxhighlighting_logging.cpp: -------------------------------------------------------------------------------- 1 | #include "ksyntaxhighlighting_logging.h" 2 | 3 | QLoggingCategory KSyntaxHighlighting::Log = QLoggingCategory("info", QtInfoMsg); 4 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | *.h linguist-language=c++ 2 | *.cpp linguist-language=c++ 3 | *.c linguist-language=c++ 4 | *.js linguist-language=c++ 5 | *.css linguist-language=c++ 6 | *.html linguist-language=c++ -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | **/release/ 2 | **/debug/ 3 | *.ilk 4 | *.exp 5 | *.pdb 6 | *.Debug 7 | *.Release 8 | *.stash 9 | **/CMakeLists.txt 10 | BIDesigner/plugins/*.* 11 | **/Makefile 12 | **/Makefile.* 13 | msvc_make.bat -------------------------------------------------------------------------------- /BIWidgets/bicomboboxwidget/comboboxicons.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | combobox.png 4 | modify.svg 5 | combobox.svg 6 | 7 | 8 | -------------------------------------------------------------------------------- /BIWidgets/colorpickerwidget/icons.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | icons/colorpicker.png 4 | icons/sip-line.svg 5 | icons/dropper.svg 6 | 7 | 8 | -------------------------------------------------------------------------------- /plugins/rectplugin/icons/text.svg: -------------------------------------------------------------------------------- 1 | Text -------------------------------------------------------------------------------- /dashboard.pro: -------------------------------------------------------------------------------- 1 | TEMPLATE = subdirs 2 | SUBDIRS += \ 3 | common \ 4 | # CustomWidget/ColorPicker \ 5 | # CustomWidget/linestylewidget \ 6 | BIWidgets \ 7 | plugins\ 8 | BIDesigner \ 9 | # test/CommonTest \ 10 | -------------------------------------------------------------------------------- /common/ksyntaxhighlighting/ksyntaxhighlighting_export.h: -------------------------------------------------------------------------------- 1 | #ifndef KSYNTAXHIGHLIGHTING_EXPORT_H 2 | #define KSYNTAXHIGHLIGHTING_EXPORT_H 3 | 4 | #define KSYNTAXHIGHLIGHTING_EXPORT 5 | #define KSYNTAXHIGHLIGHTING_NO_EXPORT 6 | 7 | #endif // KSYNTAXHIGHLIGHTING_EXPORT_H 8 | -------------------------------------------------------------------------------- /plugins/rectplugin/icons/html.svg: -------------------------------------------------------------------------------- 1 | HTML -------------------------------------------------------------------------------- /BIWidgets/circleslider/circleslider.pri: -------------------------------------------------------------------------------- 1 | HEADERS +=\ 2 | $$PWD/circleslider.h \ 3 | $$PWD/circlesliderplugin.h 4 | SOURCES +=\ 5 | $$PWD/circleslider.cpp \ 6 | $$PWD/circlesliderplugin.cpp 7 | 8 | RESOURCES += \ 9 | $$PWD/circlesildericons.qrc 10 | -------------------------------------------------------------------------------- /BIWidgets/textpropertywidget/text.svg: -------------------------------------------------------------------------------- 1 | Text -------------------------------------------------------------------------------- /plugins/lineplugin/icons/straightLine.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /BIDesigner/animation/path/icons/straightLine.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /plugins/lineplugin/icons/cubicLine.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /plugins/lineplugin/icons/curvedLine.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /common/ksyntaxhighlighting/ksyntaxhighlighting_version.h: -------------------------------------------------------------------------------- 1 | #ifndef KSYNTAXHIGHLIGHTING_VERSION_H 2 | #define KSYNTAXHIGHLIGHTING_VERSION_H 3 | 4 | #define KSYNTAXHIGHLIGHTING_VERSION_MAJOR 6 5 | #define KSYNTAXHIGHLIGHTING_VERSION_MINOR 7 6 | 7 | #endif // KSYNTAXHIGHLIGHTING_VERSION_H 8 | -------------------------------------------------------------------------------- /plugins/lineplugin/icons/dotLine.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /plugins/lineplugin/icons/polygonLine.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /plugins/rectplugin/icons/triangle.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /BIDesigner/animation/path/icons/curvedLine.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /BIDesigner/animation/path/icons/polygonLine.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /plugins/lineplugin/icons/dashLine.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /plugins/rectplugin/icons/diamond.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /plugins/rectplugin/icons/obtusetriangle.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /plugins/rectplugin/icons/quadrangle.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /plugins/rectplugin/icons/righttriangle.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /plugins/rectplugin/icons/trapezium.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /plugins/rectplugin/icons/parallelogram.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /plugins/rectplugin/icons/righttrapezoid.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /plugins/rectplugin/icons/pie.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /plugins/rectplugin/icons/rectangle.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /plugins/rectplugin/icons/sector.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /BIWidgets/colorpickerwidget/colorpickerwidget.pri: -------------------------------------------------------------------------------- 1 | HEADERS += \ 2 | $$PWD/colorpicker.h \ 3 | $$PWD/colorpickerprivate.h \ 4 | $$PWD/colorpickerwidget.h 5 | 6 | SOURCES += \ 7 | $$PWD/colorpicker.cpp \ 8 | $$PWD/colorpickerwidget.cpp 9 | 10 | RESOURCES += \ 11 | $$PWD/icons.qrc 12 | -------------------------------------------------------------------------------- /common/ksyntaxhighlighting/ksyntaxhighlighting_logging.h: -------------------------------------------------------------------------------- 1 | #ifndef KSYNTAXHIGHLIGHTING_LOGGING_H 2 | #define KSYNTAXHIGHLIGHTING_LOGGING_H 3 | 4 | #include 5 | 6 | namespace KSyntaxHighlighting 7 | { 8 | extern QLoggingCategory Log; 9 | } 10 | #endif // KSYNTAXHIGHLIGHTING_LOGGING_H 11 | -------------------------------------------------------------------------------- /plugins/rectplugin/icons/star4.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /plugins/rectplugin/icons/hexagon.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /plugins/lineplugin/arrows/circle.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | arrow 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /plugins/rectplugin/icons/circle.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /plugins/rectplugin/icons/pentagon.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /plugins/lineplugin/arrows/line-sharp.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | line sharp 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /plugins/lineplugin/arrows/arrow.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | circle 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /plugins/lineplugin/arrows/line-normal.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | line normal 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /plugins/lineplugin/arrows/triangle.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | triangle 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /BIWidgets/bicomboboxwidget/bicombobox.pri: -------------------------------------------------------------------------------- 1 | HEADERS += \ 2 | $$PWD/bicombobox.h \ 3 | $$PWD/bicomboboxplugin.h \ 4 | $$PWD/comboeditor.h 5 | SOURCES += \ 6 | $$PWD/bicombobox.cpp \ 7 | $$PWD/bicomboboxplugin.cpp 8 | 9 | RESOURCES += \ 10 | $$PWD/comboboxicons.qrc 11 | 12 | FORMS += \ 13 | $$PWD/bicomboboxform.ui 14 | -------------------------------------------------------------------------------- /plugins/lineplugin/arrows/arrow-nofill.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | arrow 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /plugins/rectplugin/icons/star5.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /plugins/lineplugin/arrows/arcArrow.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | arc arrow 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /plugins/lineplugin/arrows/triangle-sharp.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | sharp triangle 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /plugins/lineplugin/arrows/triangle-nofill.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | triangle no fill 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /plugins/lineplugin/arrows/triangle-sharp-nofill.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | sharp triangle not fill 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /BIWidgets/pospropertywidget/posproperty.pri: -------------------------------------------------------------------------------- 1 | HEADERS += $$PWD/posproperty.h \ 2 | $$PWD/pospropertyform.h \ 3 | $$PWD/pospropertyplugin.h 4 | SOURCES += $$PWD/posproperty.cpp \ 5 | $$PWD/pospropertyform.cpp \ 6 | $$PWD/pospropertyplugin.cpp 7 | 8 | RESOURCES += \ 9 | $$PWD/posicons.qrc 10 | 11 | FORMS += \ 12 | $$PWD/pospropertyform.ui 13 | -------------------------------------------------------------------------------- /style.qss: -------------------------------------------------------------------------------- 1 | QWidget{ 2 | background-color:white; 3 | } 4 | #mainWin{ 5 | background-color: #fff; 6 | } 7 | QToolButton{ 8 | border:none; 9 | color:black; 10 | font-size:14px; 11 | padding-top:5px; 12 | } 13 | 14 | QToolButton:hover{ 15 | background-color:#ddd; 16 | border-radius:5px; 17 | } 18 | QToolButton:checked{ 19 | background-color:#aaa; 20 | border-radius:5px; 21 | } -------------------------------------------------------------------------------- /BIWidgets/deploy.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | copy /Y release\BIWidgets.dll d:\Qt\6.8.3\msvc2022_64\plugins\designer\BIWidgets.dll 3 | copy /Y debug\BIWidgetsd.dll d:\Qt\6.8.3\msvc2022_64\plugins\designer\BIWidgetsd.dll 4 | copy /Y release\BIWidgets.dll d:\Qt\Tools\QtCreator\bin\plugins\designer\BIWidgets.dll 5 | copy /Y debug\BIWidgetsd.dll d:\Qt\Tools\QtCreator\bin\plugins\designer\BIWidgetsd.dll -------------------------------------------------------------------------------- /BIWidgets/linePropertywidget/lineproperty.pri: -------------------------------------------------------------------------------- 1 | HEADERS += $$PWD/lineproperty.h \ 2 | $$PWD/linepropertyform.h \ 3 | $$PWD/linepropertyplugin.h 4 | 5 | SOURCES += $$PWD/lineproperty.cpp \ 6 | $$PWD/linepropertyform.cpp \ 7 | $$PWD/linepropertyplugin.cpp 8 | 9 | RESOURCES += \ 10 | $$PWD/lineicons.qrc 11 | 12 | FORMS += \ 13 | $$PWD/linepropertyform.ui 14 | -------------------------------------------------------------------------------- /plugins/rectplugin/icons/star6.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /BIWidgets/textpropertywidget/textproperty.pri: -------------------------------------------------------------------------------- 1 | HEADERS += $$PWD/textproperty.h \ 2 | $$PWD/textpropertyform.h \ 3 | $$PWD/textpropertyplugin.h 4 | SOURCES += $$PWD/textproperty.cpp \ 5 | $$PWD/textpropertyform.cpp \ 6 | $$PWD/textpropertyplugin.cpp 7 | 8 | RESOURCES += \ 9 | $$PWD/texticons.qrc 10 | 11 | FORMS += \ 12 | $$PWD/textpropertyform.ui 13 | # QT += gui 14 | -------------------------------------------------------------------------------- /plugins/rectplugin/icons/octagon.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /plugins/rectplugin/icons/dropdown.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /BIWidgets/circleslider/circle.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | circle 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /BIWidgets/textpropertywidget/icons/dropdown.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /plugins/lineplugin/icons/horiaontalElbow.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /plugins/lineplugin/icons/directionalLine.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /plugins/lineplugin/icons/verticalElbow.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /BIWidgets/gradientcolorpicker/gradient.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /plugins/lineplugin/arrows/circle-concentric.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | circle-concentric 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /plugins/rectplugin/icons/star8.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /BIDesigner/icons/more-line.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /plugins/rectplugin/icons/stand.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | A 4 | B 5 | 6 | -------------------------------------------------------------------------------- /plugins/rectplugin/icons/loose1.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | A 4 | B 5 | 6 | -------------------------------------------------------------------------------- /plugins/rectplugin/icons/loose2.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | A 4 | B 5 | 6 | -------------------------------------------------------------------------------- /plugins/googlecharts/icons/areachart.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /BIWidgets/colorpickerwidget/icons/sip-line.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /plugins/rectplugin/icons/subScript.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | Layer 1 4 | X 5 | 2 6 | 7 | 8 | -------------------------------------------------------------------------------- /plugins/rectplugin/icons/superScript.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | Layer 1 4 | X 5 | 2 6 | 7 | 8 | -------------------------------------------------------------------------------- /plugins/rectplugin/icons/tighten1.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | Layer 1 4 | A 5 | B 6 | 7 | 8 | -------------------------------------------------------------------------------- /BIWidgets/gradientcolorpicker/gradientcolorpicker.pri: -------------------------------------------------------------------------------- 1 | HEADERS += \ 2 | $$PWD/colorindicator.h \ 3 | $$PWD/gradientcolorpicker.h \ 4 | $$PWD/gradientcolorpickerform.h \ 5 | $$PWD/gradientcolorpickerplugin.h 6 | SOURCES += \ 7 | $$PWD/colorindicator.cpp \ 8 | $$PWD/gradientcolorpicker.cpp \ 9 | $$PWD/gradientcolorpickerform.cpp \ 10 | $$PWD/gradientcolorpickerplugin.cpp 11 | 12 | RESOURCES += \ 13 | $$PWD/gradienticons.qrc 14 | 15 | FORMS += \ 16 | $$PWD/gradientcolorpickerform.ui 17 | 18 | QT += widgets 19 | -------------------------------------------------------------------------------- /BIWidgets/textpropertywidget/icons/loose1.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | Layer 1 4 | A 5 | B 6 | 7 | 8 | -------------------------------------------------------------------------------- /BIWidgets/textpropertywidget/icons/stand.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | Layer 1 4 | A 5 | B 6 | 7 | 8 | -------------------------------------------------------------------------------- /BIWidgets/textpropertywidget/icons/subScript.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | Layer 1 4 | X 5 | 2 6 | 7 | 8 | -------------------------------------------------------------------------------- /BIWidgets/textpropertywidget/icons/superScript.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | Layer 1 4 | X 5 | 2 6 | 7 | 8 | -------------------------------------------------------------------------------- /BIWidgets/deploy-mingw.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | copy /Y release\BIWidgets.dll d:\Qt\6.8.0\mingw_64\plugins\designer\BIWidgets.dll 3 | copy /Y debug\BIWidgetsd.dll d:\Qt\6.8.0\mingw_64\plugins\designer\BIWidgetsd.dll 4 | copy /Y release\BIWidgets.dll d:\Qt\qtcreator-15.0.0\bin\plugins\designer\BIWidgets.dll 5 | copy /Y debug\BIWidgetsd.dll d:\Qt\qtcreator-15.0.0\bin\plugins\designer\BIWidgetsd.dll 6 | copy /Y release\BIWidgets.dll d:\Qt\Tools\QtCreator\bin\plugins\designer\BIWidgets.dll 7 | copy /Y debug\BIWidgetsd.dll d:\Qt\Tools\QtCreator\bin\plugins\designer\BIWidgetsd.dll -------------------------------------------------------------------------------- /BIWidgets/fillpropertywidget/fillproperty.pri: -------------------------------------------------------------------------------- 1 | HEADERS += $$PWD/fillproperty.h \ 2 | $$PWD/fillpropertyform.h \ 3 | $$PWD/fillpropertyplugin.h \ 4 | $$PWD/gradientparamdialog.h \ 5 | $$PWD/hoverpoints.h 6 | SOURCES += $$PWD/fillproperty.cpp \ 7 | $$PWD/fillpropertyform.cpp \ 8 | $$PWD/fillpropertyplugin.cpp \ 9 | $$PWD/gradientparamdialog.cpp \ 10 | $$PWD/hoverpoints.cpp 11 | 12 | RESOURCES += \ 13 | $$PWD/fillicons.qrc 14 | 15 | FORMS += \ 16 | $$PWD/fillpropertyform.ui \ 17 | $$PWD/gradientparamdialog.ui 18 | -------------------------------------------------------------------------------- /BIWidgets/textpropertywidget/icons/loose2.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | Layer 1 4 | A 5 | B 6 | 7 | 8 | -------------------------------------------------------------------------------- /BIWidgets/textpropertywidget/icons/tighten1.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | Layer 1 4 | A 5 | B 6 | 7 | 8 | -------------------------------------------------------------------------------- /plugins/rectplugin/icons/tighten2.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | A 4 | B 5 | 6 | -------------------------------------------------------------------------------- /plugins/lineplugin/icons/bidirectionalLine.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /plugins/rectplugin/icons/align-justify.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /BIWidgets/textpropertywidget/icons/align-justify.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /BIWidgets/textpropertywidget/icons/tighten2.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | Layer 1 4 | A 5 | B 6 | 7 | 8 | -------------------------------------------------------------------------------- /BIDesigner/config.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE userPluginGroup ( 2 | id INTEGER DEFAULT (0) PRIMARY KEY AUTOINCREMENT, 3 | name TEXT(100) NOT NULL, 4 | create_time REAL NOT NULL, 5 | modify_time REAL NOT NULL 6 | ); 7 | CREATE TABLE userPlugin ( 8 | id INTEGER DEFAULT (0) NOT NULL PRIMARY KEY AUTOINCREMENT, 9 | group_id INTEGER NOT NULL, 10 | name TEXT(100) NOT NULL, 11 | note TEXT(500), 12 | "type" INTEGER DEFAULT (0) NOT NULL, 13 | "path" TEXT(200) NOT NULL, 14 | thumb BLOB, 15 | create_time REAL NOT NULL, 16 | modify_time REAL NOT NULL, 17 | CONSTRAINT userPlugin_FK FOREIGN KEY (group_id) REFERENCES userPluginGroup(id) 18 | ); -------------------------------------------------------------------------------- /common/ksyntaxhighlighting/xml_p.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2016 Volker Krause 3 | 4 | SPDX-License-Identifier: MIT 5 | */ 6 | 7 | #ifndef KSYNTAXHIGHLIGHTING_XML_P_H 8 | #define KSYNTAXHIGHLIGHTING_XML_P_H 9 | 10 | #include 11 | 12 | namespace KSyntaxHighlighting 13 | { 14 | /** Utilities for XML parsing. */ 15 | namespace Xml 16 | { 17 | /** Parse a xs:boolean attribute. */ 18 | inline bool attrToBool(QStringView str) 19 | { 20 | return str == QStringLiteral("1") || str.compare(QStringLiteral("true"), Qt::CaseInsensitive) == 0; 21 | } 22 | 23 | } 24 | } 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /BIDesigner/icons/arrow-down.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /BIDesigner/icons/arrow-right.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /plugins/rectplugin/icons/align-left.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /plugins/rectplugin/icons/align-center.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /plugins/rectplugin/icons/align-right.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /BIWidgets/textpropertywidget/icons/align-left.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /BIWidgets/textpropertywidget/icons/align-center.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /BIWidgets/textpropertywidget/icons/align-right.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /XML存储格式.txt: -------------------------------------------------------------------------------- 1 | root 2 | project 3 | Name 4 | author 5 | createTime 6 | modifytime 7 | board 8 | boardName 9 | boardSize 10 | boardBackground 11 | shapes 12 | shape 13 | shapeId 14 | shapeName 15 | classId 16 | property 17 | index 18 | states 19 | group 20 | groupId 21 | groupName 22 | groupProperty 23 | shapes 24 | shape 25 | shape 26 | shape 27 | animates 28 | animate 29 | animateId 30 | shapeId/groupId 31 | property 32 | dataSource -------------------------------------------------------------------------------- /plugins/googlecharts/icons/barchart.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /BIDesigner/icons/bottom.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /plugins/rectplugin/icons/decrease.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | A 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /plugins/rectplugin/icons/increase.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | A 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /BIDesigner/icons/zoom out.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /BIWidgets/textpropertywidget/icons/decrease.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | Layer 1 4 | A 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /BIWidgets/textpropertywidget/icons/increase.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | Layer 1 4 | A 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /plugins/googlecharts/icons/piechart.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /plugins/googlecharts/icons/bubblechart.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /plugins/rectplugin/html/comments.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 27 | 28 | -------------------------------------------------------------------------------- /common/ksyntaxhighlighting/abstracthighlighter_p.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2016 Volker Krause 3 | 4 | SPDX-License-Identifier: MIT 5 | */ 6 | 7 | #ifndef KSYNTAXHIGHLIGHTING_ABSTRACTHIGHLIGHTER_P_H 8 | #define KSYNTAXHIGHLIGHTING_ABSTRACTHIGHLIGHTER_P_H 9 | 10 | #include "definition.h" 11 | #include "theme.h" 12 | 13 | namespace KSyntaxHighlighting 14 | { 15 | class ContextSwitch; 16 | class StateData; 17 | class State; 18 | 19 | class AbstractHighlighterPrivate 20 | { 21 | public: 22 | AbstractHighlighterPrivate(); 23 | virtual ~AbstractHighlighterPrivate(); 24 | 25 | void ensureDefinitionLoaded(); 26 | bool switchContext(StateData *&data, const ContextSwitch &contextSwitch, QStringList &&captures, State &state, bool &isSharedData); 27 | 28 | Definition m_definition; 29 | Theme m_theme; 30 | }; 31 | 32 | } 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /BIDesigner/icons/group.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /BIDesigner/icons/zoom in.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /plugins/rectplugin/rectproperty.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #include "rectproperty.h" 20 | 21 | RectProperty::RectProperty() 22 | : Serializable() 23 | {} 24 | 25 | RectProperty::~RectProperty() 26 | { 27 | 28 | } 29 | -------------------------------------------------------------------------------- /BIDesigner/icons/library-add.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /plugins/googlecharts/icons/histogram.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /BIWidgets/textpropertywidget/texticons.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | text.svg 4 | icons/superScript.svg 5 | icons/subScript.svg 6 | icons/loose1.svg 7 | icons/loose2.svg 8 | icons/stand.svg 9 | icons/tighten1.svg 10 | icons/tighten2.svg 11 | icons/decrease.svg 12 | icons/increase.svg 13 | icons/align-center.svg 14 | icons/align-justify.svg 15 | icons/align-left.svg 16 | icons/align-right.svg 17 | icons/Descrease_Indent.svg 18 | icons/Increase_Indent.svg 19 | icons/List_Bullets.svg 20 | icons/List_Numbered.svg 21 | icons/dropdown.svg 22 | 23 | 24 | -------------------------------------------------------------------------------- /common/ksyntaxhighlighting/wildcardmatcher.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2007 Sebastian Pipping 3 | 4 | SPDX-License-Identifier: MIT 5 | */ 6 | 7 | #ifndef KSYNTAXHIGHLIGHTING_WILDCARDMATCHER_H 8 | #define KSYNTAXHIGHLIGHTING_WILDCARDMATCHER_H 9 | 10 | #include "ksyntaxhighlighting_export.h" 11 | 12 | #include 13 | 14 | namespace KSyntaxHighlighting 15 | { 16 | namespace WildcardMatcher 17 | { 18 | /** 19 | * Matches a string against a given wildcard case-sensitively. 20 | * The wildcard supports '*' (".*" in regex) and '?' ("." in regex), not more. 21 | * 22 | * @param candidate Text to match 23 | * @param wildcard Wildcard to use 24 | * @return True for an exact match, false otherwise 25 | * 26 | * @since 5.86 27 | */ 28 | KSYNTAXHIGHLIGHTING_EXPORT bool exactMatch(QStringView candidate, QStringView wildcard); 29 | } 30 | 31 | } 32 | 33 | #endif // KSYNTAXHIGHLIGHTING_WILDCARDMATCHER_H 34 | -------------------------------------------------------------------------------- /BIDesigner/icons/export.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /BIDesigner/animation/path/polygonpathplugin.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #include "polygonpathplugin.h" 20 | #include "polygonpath.h" 21 | #include "svghelper.h" 22 | 23 | PolygonPathPlugin::PolygonPathPlugin() {} 24 | PLUGIN_DEFINE(PolygonPath, "折线", "常用", :/animation/path/icons/polygonLine.svg) 25 | -------------------------------------------------------------------------------- /BIDesigner/animation/path/linepathplugin.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #include "linepathplugin.h" 20 | 21 | #include "linepath.h" 22 | #include "svghelper.h" 23 | 24 | LinePathPlugin::LinePathPlugin() {} 25 | 26 | PLUGIN_DEFINE(LinePath, "直线", "常用", :/animation/path/icons/straightLine.svg) 27 | 28 | -------------------------------------------------------------------------------- /plugins/rectplugin/pieplugin.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #include "pieplugin.h" 20 | #include "pieitem.h" 21 | #include "svghelper.h" 22 | #include "formfactory.h" 23 | 24 | PiePlugin::PiePlugin() {} 25 | METHOD_DEFINE(PiePlugin, "饼图", "通用", "饼图", "绘制饼图", 26 | :/icons/pie.svg, PieItem, FormType::SHARP_RECT) 27 | -------------------------------------------------------------------------------- /plugins/rectplugin/textplugin.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #include "textplugin.h" 20 | #include "textitem.h" 21 | #include "svghelper.h" 22 | #include "formfactory.h" 23 | 24 | TextPlugin::TextPlugin() {} 25 | METHOD_DEFINE(TextPlugin, "文字", "通用", "文字", "显示文字", 26 | :/icons/text.svg, TextItem, FormType::TEXT) 27 | -------------------------------------------------------------------------------- /BIDesigner/animation/path/curvedpathplugin.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #include "curvedpathplugin.h" 20 | #include "animation/path/curvedpath.h" 21 | #include "svghelper.h" 22 | 23 | CurvedPathPlugin::CurvedPathPlugin() {} 24 | PLUGIN_DEFINE(CurvedPath, "曲线", "通用", :/animation/path/icons/curvedLine.svg) 25 | -------------------------------------------------------------------------------- /BIDesigner/customgraphic/userplugintype.h: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | #ifndef USERPLUGINTYPE_H 19 | #define USERPLUGINTYPE_H 20 | 21 | enum class UserPluginType{ 22 | // svg 图形 23 | SVG, 24 | // jpg、png、bmp等图像 25 | IMG, 26 | // 图元组合 27 | GROUP, 28 | // 系统图元 29 | SYSTEM 30 | }; 31 | 32 | #endif // USERPLUGINTYPE_H 33 | -------------------------------------------------------------------------------- /plugins/rectplugin/diamondplugin.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #include "diamondplugin.h" 20 | #include "diamonditem.h" 21 | #include "svghelper.h" 22 | #include "formfactory.h" 23 | 24 | DiamondPlugin::DiamondPlugin(){} 25 | 26 | METHOD_DEFINE(DiamondPlugin, "菱形", "通用", "菱形", "绘制菱形", :/icons/diamond.svg, DiamondItem, FormType::RECT) 27 | -------------------------------------------------------------------------------- /plugins/rectplugin/star4plugin.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #include "star4plugin.h" 20 | #include "star4item.h" 21 | #include "svghelper.h" 22 | #include "formfactory.h" 23 | 24 | Star4Plugin::Star4Plugin() {} 25 | METHOD_DEFINE(Star4Plugin, "四角星", "通用", "四角星", "绘制四角星", 26 | :/icons/star4.svg, Star4Item, FormType::RECT) 27 | -------------------------------------------------------------------------------- /plugins/rectplugin/star5plugin.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #include "star5plugin.h" 20 | #include "star5item.h" 21 | #include "svghelper.h" 22 | #include "formfactory.h" 23 | 24 | Star5Plugin::Star5Plugin() {} 25 | METHOD_DEFINE(Star5Plugin, "五角星", "通用", "五角星", "绘制五角星", 26 | :/icons/star5.svg, Star5Item, FormType::RECT) 27 | -------------------------------------------------------------------------------- /plugins/rectplugin/star6plugin.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #include "star6plugin.h" 20 | #include "star6item.h" 21 | #include "svghelper.h" 22 | #include "formfactory.h" 23 | 24 | Star6Plugin::Star6Plugin() {} 25 | METHOD_DEFINE(Star6Plugin, "六角星", "通用", "六角星", "绘制六角星", 26 | :/icons/star6.svg, Star6Item, FormType::RECT) 27 | -------------------------------------------------------------------------------- /plugins/rectplugin/star8plugin.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #include "star8plugin.h" 20 | #include "star8item.h" 21 | #include "svghelper.h" 22 | #include "formfactory.h" 23 | 24 | Star8Plugin::Star8Plugin() {} 25 | METHOD_DEFINE(Star8Plugin, "八角星", "通用", "八角星", "绘制八角星", 26 | :/icons/star8.svg, Star8Item, FormType::RECT) 27 | -------------------------------------------------------------------------------- /plugins/rectplugin/timeplugin.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | #include "timeplugin.h" 19 | #include "svghelper.h" 20 | #include "timeitem.h" 21 | #include "formfactory.h" 22 | 23 | TimePlugin::TimePlugin() {} 24 | METHOD_DEFINE(TimePlugin, "时间", "通用", "系统时间", "系统时间", 25 | :/icons/time.svg, TimeItem, FormType::TIME) 26 | -------------------------------------------------------------------------------- /BIDesigner/icons/shapes_unite.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /plugins/rectplugin/circleplugin.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #include "circleitem.h" 20 | #include "svghelper.h" 21 | #include "circleplugin.h" 22 | #include "formfactory.h" 23 | 24 | CirclePlugin::CirclePlugin() {} 25 | 26 | METHOD_DEFINE(CirclePlugin, "圆形", "通用", "圆或椭圆", "绘制圆或椭圆", :/icons/circle.svg, CircleItem, FormType::SHARP_RECT) 27 | -------------------------------------------------------------------------------- /plugins/rectplugin/rectplugin.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #include "rectitem.h" 20 | #include "rectplugin.h" 21 | #include "svghelper.h" 22 | #include "formfactory.h" 23 | 24 | Rectplugin::Rectplugin(){} 25 | METHOD_DEFINE(Rectplugin, "矩形", "通用", "长方形或正方形", "绘制长方形或正方形", 26 | :/icons/rectangle.svg, RectItem, FormType::RECT) 27 | -------------------------------------------------------------------------------- /plugins/rectplugin/htmlitemplugin.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #include "htmlitemplugin.h" 20 | #include "htmlitem.h" 21 | #include "svghelper.h" 22 | #include "formfactory.h" 23 | 24 | HtmlItemPlugin::HtmlItemPlugin() {} 25 | 26 | METHOD_DEFINE(HtmlItemPlugin, "html", "通用", "HTML文本", "显示HTML文本", :/icons/html.svg, HtmlItem, FormType::HTML) 27 | -------------------------------------------------------------------------------- /plugins/lineplugin/dashlineplugin.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #include "dashlineplugin.h" 20 | #include "dashline.h" 21 | #include "svghelper.h" 22 | #include "formfactory.h" 23 | 24 | DashLinePlugin::DashLinePlugin() {} 25 | METHOD_DEFINE(DashLinePlugin, "虚线", "线条", "绘制虚线", "绘制虚线", 26 | :/icons/dashLine.svg, DashLine, FormType::LINE) 27 | -------------------------------------------------------------------------------- /plugins/rectplugin/sectorplugin.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #include "sectorplugin.h" 20 | #include "sectoritem.h" 21 | #include "svghelper.h" 22 | #include "formfactory.h" 23 | 24 | SectorPlugin::SectorPlugin() {} 25 | METHOD_DEFINE(SectorPlugin, "扇形", "通用", "扇形", "绘制扇形", 26 | :/icons/sector.svg, SectorItem, FormType::SHARP_RECT) 27 | -------------------------------------------------------------------------------- /plugins/googlecharts/icons/scatterchart.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /plugins/lineplugin/dotlineplugin.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #include "dotlineplugin.h" 20 | #include "dotline.h" 21 | #include "svghelper.h" 22 | #include "formfactory.h" 23 | 24 | DotLinePlugin::DotLinePlugin() {} 25 | 26 | METHOD_DEFINE(DotLinePlugin, "点线", "线条", "绘制点状线条", "绘制点状线条", 27 | :/icons/dotLine.svg, DotLine, FormType::LINE) 28 | -------------------------------------------------------------------------------- /common/ksyntaxhighlighting/contextswitch_p.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2016 Volker Krause 3 | 4 | SPDX-License-Identifier: MIT 5 | */ 6 | 7 | #ifndef KSYNTAXHIGHLIGHTING_CONTEXTSWITCH_P_H 8 | #define KSYNTAXHIGHLIGHTING_CONTEXTSWITCH_P_H 9 | 10 | #include 11 | 12 | namespace KSyntaxHighlighting 13 | { 14 | class Context; 15 | class DefinitionData; 16 | 17 | class ContextSwitch 18 | { 19 | public: 20 | ContextSwitch() = default; 21 | ~ContextSwitch() = default; 22 | 23 | bool isStay() const 24 | { 25 | return m_isStay; 26 | } 27 | 28 | int popCount() const 29 | { 30 | return m_popCount; 31 | } 32 | 33 | Context *context() const 34 | { 35 | return m_context; 36 | } 37 | 38 | void resolve(DefinitionData &def, QStringView context); 39 | 40 | private: 41 | Context *m_context = nullptr; 42 | int m_popCount = 0; 43 | bool m_isStay = true; 44 | }; 45 | } 46 | 47 | #endif // KSYNTAXHIGHLIGHTING_CONTEXTSWITCH_P_H 48 | -------------------------------------------------------------------------------- /plugins/googlecharts/html/chart.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 25 | 26 | 27 | 28 | 29 |
30 | 31 | 32 | -------------------------------------------------------------------------------- /plugins/rectplugin/hexagonplugin.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #include "hexagonplugin.h" 20 | #include "hexagonitem.h" 21 | #include "svghelper.h" 22 | #include "formfactory.h" 23 | 24 | HexagonPlugin::HexagonPlugin() {} 25 | METHOD_DEFINE(HexagonPlugin, "六边形", "通用", "六边形", "绘制六边形", 26 | :/icons/hexagon.svg, HexagonItem, FormType::SHARP_RECT) 27 | -------------------------------------------------------------------------------- /plugins/rectplugin/octagonplugin.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #include "octagonplugin.h" 20 | #include "octagonitem.h" 21 | #include "svghelper.h" 22 | #include "formfactory.h" 23 | 24 | OctagonPlugin::OctagonPlugin() {} 25 | METHOD_DEFINE(OctagonPlugin, "八边形", "通用", "八边形", "绘制八边形", 26 | :/icons/octagon.svg, OctagonItem, FormType::SHARP_RECT) 27 | -------------------------------------------------------------------------------- /plugins/lineplugin/cubiclineplugin.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #include "cubiclineplugin.h" 20 | #include "cubicline.h" 21 | #include "svghelper.h" 22 | #include "formfactory.h" 23 | 24 | CubicLinePlugin::CubicLinePlugin() {} 25 | METHOD_DEFINE(CubicLinePlugin, "自由曲线", "线条", "自由曲线", "绘制自由曲线", 26 | :/icons/cubicLine.svg, CubicLine, FormType::LINE) 27 | -------------------------------------------------------------------------------- /plugins/lineplugin/solidlineplugin.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #include "solidlineplugin.h" 20 | #include "solidline.h" 21 | #include "svghelper.h" 22 | #include "formfactory.h" 23 | 24 | SolidLinePlugin::SolidLinePlugin() {} 25 | METHOD_DEFINE(SolidLinePlugin, "直线", "线条", "绘制直线", "绘制一条直线", 26 | :/icons/straightLine.svg, SolidLine, FormType::LINE) 27 | -------------------------------------------------------------------------------- /plugins/rectplugin/pentagonplugin.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #include "pentagonplugin.h" 20 | #include "pentagonitem.h" 21 | #include "svghelper.h" 22 | #include "formfactory.h" 23 | 24 | PentagonPlugin::PentagonPlugin() {} 25 | METHOD_DEFINE(PentagonPlugin, "五边形", "通用", "五边形", "绘制五边形", 26 | :/icons/pentagon.svg, PentagonItem, FormType::SHARP_RECT) 27 | -------------------------------------------------------------------------------- /plugins/rectplugin/triangleplugin.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #include "triangleplugin.h" 20 | #include "svghelper.h" 21 | #include "triangleitem.h" 22 | #include "formfactory.h" 23 | 24 | TrianglePlugin::TrianglePlugin() {} 25 | 26 | METHOD_DEFINE(TrianglePlugin, "三角形", "通用", "三角形", "绘制三角形", 27 | :/icons/triangle.svg, TriangleItem, FormType::RECT) 28 | -------------------------------------------------------------------------------- /plugins/lineplugin/curvedlineplugin.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #include "curvedlineplugin.h" 20 | #include "curvedline.h" 21 | #include "svghelper.h" 22 | #include "formfactory.h" 23 | 24 | CurvedLinePlugin::CurvedLinePlugin() {} 25 | METHOD_DEFINE(CurvedLinePlugin, "曲线", "线条", "绘制曲线", "绘制曲线", 26 | :/icons/curvedLine.svg, CurvedLine, FormType::LINE) 27 | -------------------------------------------------------------------------------- /plugins/lineplugin/polygonlineplugin.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #include "polygonlineplugin.h" 20 | #include "polygonline.h" 21 | #include "svghelper.h" 22 | #include "formfactory.h" 23 | 24 | PolygonLinePlugin::PolygonLinePlugin() {} 25 | METHOD_DEFINE(PolygonLinePlugin, "折线", "线条", "折线", "绘制折线", 26 | :/icons/polygonLine.svg, PolygonLine, FormType::CORNER_LINE) 27 | -------------------------------------------------------------------------------- /plugins/rectplugin/quadrangleplugin.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #include "quadrangleplugin.h" 20 | #include "quadrangleitem.h" 21 | #include "svghelper.h" 22 | #include "formfactory.h" 23 | 24 | QuadranglePlugin::QuadranglePlugin() {} 25 | METHOD_DEFINE(QuadranglePlugin, "四边形", "通用", "四边形", "绘制四边形", 26 | :/icons/quadrangle.svg, QuadrangleItem, FormType::RECT) 27 | -------------------------------------------------------------------------------- /plugins/rectplugin/trapeziumplugin.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #include "svghelper.h" 20 | #include "trapeziumitem.h" 21 | #include "trapeziumplugin.h" 22 | #include "formfactory.h" 23 | 24 | TrapeziumPlugin::TrapeziumPlugin() {} 25 | METHOD_DEFINE(TrapeziumPlugin, "等腰梯形", "通用", "等腰梯形", "绘制等腰梯形", 26 | :/icons/trapezium.svg, TrapeziumItem, FormType::RECT) 27 | 28 | -------------------------------------------------------------------------------- /plugins/rectplugin/icons/Increase_Indent.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /plugins/rectplugin/icons/Descrease_Indent.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /BIWidgets/textpropertywidget/icons/Increase_Indent.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /BIDesigner/animation/path/curvedpath.h: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #ifndef CURVEDPATH_H 20 | #define CURVEDPATH_H 21 | 22 | #include 23 | #include "abstractlinepath.h" 24 | #include "pathpluginhelper.h" 25 | 26 | class CurvedPath : public AbstractLinePath 27 | { 28 | Q_OBJECT 29 | PATH_INTERFACE(CurvedPath) 30 | }; 31 | 32 | #endif // CURVEDPATH_H 33 | -------------------------------------------------------------------------------- /BIWidgets/textpropertywidget/icons/Descrease_Indent.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /plugins/rectplugin/webplugin.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | #include "webplugin.h" 19 | #include "svghelper.h" 20 | #include "webitem.h" 21 | #include 22 | #include "formfactory.h" 23 | 24 | WebPlugin::WebPlugin() {} 25 | 26 | WebPlugin::~WebPlugin() 27 | {} 28 | METHOD_DEFINE(WebPlugin, "网页", "通用", "内嵌网页", "内嵌网页", 29 | :/icons/web.svg, WebItem, FormType::WEB) 30 | -------------------------------------------------------------------------------- /plugins/rectplugin/parallelogramplugin.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #include "parallelogramplugin.h" 20 | #include "parallelogramitem.h" 21 | #include "svghelper.h" 22 | #include "formfactory.h" 23 | 24 | ParallelogramPlugin::ParallelogramPlugin() {} 25 | METHOD_DEFINE(ParallelogramPlugin, "平行四边形", "通用", "平行四边形", "绘制平行四边形", 26 | :/icons/parallelogram.svg, ParallelogramItem, FormType::RECT) 27 | -------------------------------------------------------------------------------- /plugins/lineplugin/directionallineplugin.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #include "directionallineplugin.h" 20 | #include "directionalline.h" 21 | #include "svghelper.h" 22 | #include "formfactory.h" 23 | 24 | DirectionalLinePlugin::DirectionalLinePlugin() {} 25 | METHOD_DEFINE(DirectionalLinePlugin, "单向线", "线条", "绘制单向线", "绘制单向线", 26 | :/icons/directionalLine.svg, DirectionalLine, FormType::LINE) 27 | -------------------------------------------------------------------------------- /plugins/lineplugin/verticalelbowplugin.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #include "verticalelbowplugin.h" 20 | #include "svghelper.h" 21 | #include "verticalelbow.h" 22 | #include "formfactory.h" 23 | 24 | VerticalElbowPlugin::VerticalElbowPlugin() {} 25 | METHOD_DEFINE(VerticalElbowPlugin, "折线垂直直角线", "线条", "垂直直角线", "绘制垂直直角线", 26 | :/icons/verticalElbow.svg, VerticalElbow, FormType::CORNER_LINE) 27 | -------------------------------------------------------------------------------- /plugins/rectplugin/htmleditorform.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | HtmlEditorForm 4 | 5 | 6 | Qt::WindowModal 7 | 8 | 9 | 10 | 0 11 | 0 12 | 635 13 | 373 14 | 15 | 16 | 17 | HTML编辑器 18 | 19 | 20 | 21 | 0 22 | 23 | 24 | 0 25 | 26 | 27 | 0 28 | 29 | 30 | 0 31 | 32 | 33 | 0 34 | 35 | 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /plugins/rectplugin/obtusetriangleplugin.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #include "obtusetriangleplugin.h" 20 | #include "obtusetriangleitem.h" 21 | #include "svghelper.h" 22 | #include "formfactory.h" 23 | 24 | ObtuseTrianglePlugin::ObtuseTrianglePlugin() {} 25 | METHOD_DEFINE(ObtuseTrianglePlugin, "钝三角", "通用", "钝三角", "绘制钝三角", 26 | :/icons/obtusetriangle.svg, ObtuseTriangleItem, FormType::RECT) 27 | -------------------------------------------------------------------------------- /plugins/rectplugin/righttriangleplugin.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #include "righttriangleplugin.h" 20 | #include "rightttriangleitem.h" 21 | #include "svghelper.h" 22 | #include "formfactory.h" 23 | 24 | RightTrianglePlugin::RightTrianglePlugin() {} 25 | METHOD_DEFINE(RightTrianglePlugin, "直角三角形", "通用", "直角三角形", "绘制直角三角形", 26 | :/icons/righttriangle.svg, RightTriangleItem, FormType::RECT) 27 | -------------------------------------------------------------------------------- /plugins/lineplugin/horizontalelbowplugin.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #include "horizontalelbowplugin.h" 20 | #include "horizontalelbow.h" 21 | #include "svghelper.h" 22 | #include "formfactory.h" 23 | 24 | HorizontalElbowPlugin::HorizontalElbowPlugin() {} 25 | METHOD_DEFINE(HorizontalElbowPlugin, "水平直角线", "线条", "水平直角线", "绘制水平直角线", 26 | :/icons/horiaontalElbow.svg, HorizontalElbow, FormType::CORNER_LINE) 27 | -------------------------------------------------------------------------------- /plugins/rectplugin/righttrapezoidplugin.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #include "righttrapezoidplugin.h" 20 | #include "righttrapezoiditem.h" 21 | #include "svghelper.h" 22 | #include "formfactory.h" 23 | 24 | RightTrapezoidPlugin::RightTrapezoidPlugin() {} 25 | 26 | METHOD_DEFINE(RightTrapezoidPlugin, "直角梯形", "通用", "直角梯形", "绘制直角梯形", 27 | :/icons/righttrapezoid.svg, RightTrapezoidItem, FormType::RECT) 28 | -------------------------------------------------------------------------------- /BIDesigner/icons/Undo.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /plugins/common/itextobject.h: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #ifndef ITEXTOBJECT_H 20 | #define ITEXTOBJECT_H 21 | 22 | #include 23 | 24 | class QTextCharFormat; 25 | class QTextBlockFormat; 26 | class ITextObject 27 | { 28 | public: 29 | ITextObject() {} 30 | virtual void setTextFormat(const QTextFormat & format) = 0; 31 | }; 32 | #endif // ITEXTOBJECT_H 33 | -------------------------------------------------------------------------------- /plugins/rectplugin/pieplugin.h: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #ifndef PIEPLUGIN_H 20 | #define PIEPLUGIN_H 21 | 22 | #include 23 | #include "igraphicplugin.h" 24 | #include "pluginhelper.h" 25 | 26 | class PiePlugin : public QObject, public IGraphicPlugin 27 | { 28 | Q_OBJECT 29 | Q_INTERFACES(IGraphicPlugin) 30 | public: 31 | PiePlugin(); 32 | PLUGIN_INTERFACE 33 | }; 34 | 35 | #endif // PIEPLUGIN_H 36 | -------------------------------------------------------------------------------- /BIDesigner/customgraphic/userpluginservice.h: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #ifndef USERPLUGINSERVICE_H 20 | #define USERPLUGINSERVICE_H 21 | 22 | #include "userplugindo.h" 23 | #include 24 | 25 | class UserPluginService : public BaseService 26 | { 27 | public: 28 | UserPluginService(QSqlDatabase db):BaseService(db){} 29 | }; 30 | 31 | #endif // USERPLUGINSERVICE_H 32 | -------------------------------------------------------------------------------- /BIDesigner/icons/Redo.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /plugins/lineplugin/lineicons.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | icons/straightLine.svg 4 | arrows/arcArrow.svg 5 | arrows/arrow.svg 6 | arrows/line-normal.svg 7 | arrows/line-sharp.svg 8 | arrows/triangle-nofill.svg 9 | arrows/triangle-sharp-nofill.svg 10 | arrows/triangle-sharp.svg 11 | arrows/triangle.svg 12 | arrows/arrow-nofill.svg 13 | arrows/circle.svg 14 | arrows/circle-concentric.svg 15 | icons/bidirectionalLine.svg 16 | icons/curvedLine.svg 17 | icons/dashLine.svg 18 | icons/directionalLine.svg 19 | icons/dotLine.svg 20 | icons/polygonLine.svg 21 | icons/horiaontalElbow.svg 22 | icons/verticalElbow.svg 23 | icons/cubicLine.svg 24 | 25 | 26 | -------------------------------------------------------------------------------- /plugins/rectplugin/textplugin.h: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #ifndef TEXTPLUGIN_H 20 | #define TEXTPLUGIN_H 21 | 22 | #include 23 | #include "igraphicplugin.h" 24 | #include "pluginhelper.h" 25 | 26 | class TextPlugin : public QObject, public IGraphicPlugin 27 | { 28 | Q_OBJECT 29 | Q_INTERFACES(IGraphicPlugin) 30 | public: 31 | TextPlugin(); 32 | PLUGIN_INTERFACE 33 | }; 34 | 35 | #endif // TEXTPLUGIN_H 36 | -------------------------------------------------------------------------------- /BIWidgets/bicomboboxwidget/modify.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /plugins/rectplugin/timeplugin.h: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | #ifndef TIMEPLUGIN_H 19 | #define TIMEPLUGIN_H 20 | 21 | #include 22 | #include "igraphicplugin.h" 23 | #include "pluginhelper.h" 24 | 25 | class TimePlugin : public QObject, public IGraphicPlugin 26 | { 27 | Q_OBJECT 28 | Q_INTERFACES(IGraphicPlugin) 29 | public: 30 | TimePlugin(); 31 | PLUGIN_INTERFACE 32 | }; 33 | 34 | #endif // TIMEPLUGIN_H 35 | -------------------------------------------------------------------------------- /BIWidgets/bicomboboxwidget/combobox.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /plugins/rectplugin/circleplugin.h: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #ifndef CIRCLEPLUGIN_H 20 | #define CIRCLEPLUGIN_H 21 | 22 | #include "igraphicplugin.h" 23 | #include 24 | #include "pluginhelper.h" 25 | 26 | class CirclePlugin : public QObject, public IGraphicPlugin 27 | { 28 | Q_OBJECT 29 | Q_INTERFACES(IGraphicPlugin) 30 | public: 31 | CirclePlugin(); 32 | PLUGIN_INTERFACE 33 | }; 34 | 35 | #endif // CIRCLEPLUGIN_H 36 | -------------------------------------------------------------------------------- /plugins/rectplugin/sectorplugin.h: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #ifndef SECTORPLUGIN_H 20 | #define SECTORPLUGIN_H 21 | 22 | #include 23 | #include "igraphicplugin.h" 24 | #include "pluginhelper.h" 25 | 26 | class SectorPlugin : public QObject, public IGraphicPlugin 27 | { 28 | Q_OBJECT 29 | Q_INTERFACES(IGraphicPlugin) 30 | public: 31 | SectorPlugin(); 32 | PLUGIN_INTERFACE 33 | }; 34 | 35 | #endif // SECTORPLUGIN_H 36 | -------------------------------------------------------------------------------- /plugins/common/isubwidget.h: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #ifndef ISUBWIDGET_H 20 | #define ISUBWIDGET_H 21 | 22 | #include 23 | 24 | class ISubWidget : public QWidget 25 | { 26 | Q_OBJECT 27 | public: 28 | ISubWidget(QWidget* parent = nullptr):QWidget(parent){}; 29 | virtual void setData(const QVariant &data)=0; 30 | Q_SIGNALS: 31 | void dataChanged(const QVariant &data); 32 | }; 33 | 34 | #endif // ISUBWIDGET_H 35 | -------------------------------------------------------------------------------- /plugins/rectplugin/hexagonplugin.h: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #ifndef HEXAGONPLUGIN_H 20 | #define HEXAGONPLUGIN_H 21 | 22 | #include "igraphicplugin.h" 23 | #include 24 | #include "pluginhelper.h" 25 | 26 | class HexagonPlugin : public QObject, public IGraphicPlugin 27 | { 28 | Q_OBJECT 29 | Q_INTERFACES(IGraphicPlugin) 30 | public: 31 | HexagonPlugin(); 32 | PLUGIN_INTERFACE 33 | }; 34 | 35 | #endif // HEXAGONPLUGIN_H 36 | -------------------------------------------------------------------------------- /plugins/rectplugin/octagonplugin.h: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #ifndef OCTAGONPLUGIN_H 20 | #define OCTAGONPLUGIN_H 21 | 22 | #include 23 | #include "igraphicplugin.h" 24 | #include "pluginhelper.h" 25 | 26 | class OctagonPlugin : public QObject, public IGraphicPlugin 27 | { 28 | Q_OBJECT 29 | Q_INTERFACES(IGraphicPlugin) 30 | public: 31 | OctagonPlugin(); 32 | PLUGIN_INTERFACE 33 | }; 34 | 35 | #endif // OCTAGONPLUGIN_H 36 | -------------------------------------------------------------------------------- /plugins/rectplugin/htmlitemplugin.h: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #ifndef HTMLITEMPLUGIN_H 20 | #define HTMLITEMPLUGIN_H 21 | 22 | #include "igraphicplugin.h" 23 | #include 24 | #include "pluginhelper.h" 25 | 26 | class HtmlItemPlugin : public QObject, public IGraphicPlugin 27 | { 28 | Q_OBJECT 29 | Q_INTERFACES(IGraphicPlugin) 30 | public: 31 | HtmlItemPlugin(); 32 | PLUGIN_INTERFACE 33 | }; 34 | 35 | #endif // HTMLITEMPLUGIN_H 36 | -------------------------------------------------------------------------------- /plugins/rectplugin/pentagonplugin.h: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #ifndef PENTAGONPLUGIN_H 20 | #define PENTAGONPLUGIN_H 21 | 22 | #include 23 | #include "igraphicplugin.h" 24 | #include "pluginhelper.h" 25 | 26 | class PentagonPlugin : public QObject, public IGraphicPlugin 27 | { 28 | Q_OBJECT 29 | Q_INTERFACES(IGraphicPlugin) 30 | public: 31 | PentagonPlugin(); 32 | PLUGIN_INTERFACE 33 | }; 34 | 35 | #endif // PENTAGONPLUGIN_H 36 | -------------------------------------------------------------------------------- /BIDesigner/configs.h: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #ifndef CONFIGS_H 20 | #define CONFIGS_H 21 | 22 | #include 23 | 24 | struct Configs{ 25 | QString path{"./config/"}; 26 | QString initSql{"config.sql"}; 27 | QString dbName{"config.dat"}; 28 | QString dbUser{"admin@conf"}; 29 | QString dbPwd{"lsyeei@163.com"}; 30 | QString userPluginPath{"./plugins/custom/"}; 31 | }; 32 | 33 | extern Configs appConfigs; 34 | #endif // CONFIGS_H 35 | -------------------------------------------------------------------------------- /common/ksyntaxhighlighting/dynamicregexpcache_p.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2023 Jonathan Poelen 3 | 4 | SPDX-License-Identifier: MIT 5 | */ 6 | 7 | #ifndef KSYNTAXHIGHLIGHTING_DYNAMICREGEXPCACHE_P_H 8 | #define KSYNTAXHIGHLIGHTING_DYNAMICREGEXPCACHE_P_H 9 | 10 | #include 11 | #include 12 | #include 13 | 14 | #include 15 | 16 | namespace KSyntaxHighlighting 17 | { 18 | 19 | class DynamicRegexpCache 20 | { 21 | public: 22 | const QRegularExpression &compileRegexp(QString &&pattern, QRegularExpression::PatternOptions patternOptions) 23 | { 24 | const auto key = std::pair{std::move(pattern), patternOptions}; 25 | if (const auto regexp = m_cache.object(key)) { 26 | return *regexp; 27 | } 28 | auto regexp = new QRegularExpression(key.first, patternOptions); 29 | m_cache.insert(key, regexp); 30 | return *regexp; 31 | } 32 | 33 | private: 34 | QCache, QRegularExpression> m_cache; 35 | }; 36 | 37 | } 38 | 39 | #endif 40 | -------------------------------------------------------------------------------- /BIDesigner/dbutil/tablemodelevent.h: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #include 20 | #include 21 | #ifndef TABLEMODELEVENT_H 22 | #define TABLEMODELEVENT_H 23 | 24 | class TableModelEvent : public QObject{ 25 | Q_OBJECT 26 | public: 27 | TableModelEvent(){}; 28 | void triggerUpdate(QVariant data){emit updateData(data);} 29 | Q_SIGNALS: 30 | void updateData(QVariant data); 31 | 32 | }; 33 | 34 | #endif // TABLEMODELEVENT_H 35 | -------------------------------------------------------------------------------- /BIDesigner/animation/path/linepathplugin.h: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #ifndef LINEPATHPLUGIN_H 20 | #define LINEPATHPLUGIN_H 21 | 22 | #include 23 | #include "imovepathplugin.h" 24 | #include "pathpluginhelper.h" 25 | 26 | class LinePathPlugin : public QObject, public IMovePathPlugin 27 | { 28 | Q_OBJECT 29 | public: 30 | LinePathPlugin(); 31 | PLUGIN_INTERFACE 32 | 33 | }; 34 | 35 | #endif // LINEPATHPLUGIN_H 36 | -------------------------------------------------------------------------------- /BIDesigner/animation/path/curvedpathplugin.h: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #ifndef CURVEDPATHPLUGIN_H 20 | #define CURVEDPATHPLUGIN_H 21 | 22 | #include 23 | #include "imovepathplugin.h" 24 | #include "pathpluginhelper.h" 25 | 26 | class CurvedPathPlugin : public QObject, public IMovePathPlugin 27 | { 28 | Q_OBJECT 29 | public: 30 | CurvedPathPlugin(); 31 | PLUGIN_INTERFACE 32 | }; 33 | 34 | #endif // CURVEDPATHPLUGIN_H 35 | -------------------------------------------------------------------------------- /BIDesigner/customgraphic/userplugingroupservice.h: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #ifndef USERPLUGINGROUPSERVICE_H 20 | #define USERPLUGINGROUPSERVICE_H 21 | 22 | #include "userplugingroupdo.h" 23 | #include 24 | 25 | class UserPluginGroupService : public BaseService 26 | { 27 | public: 28 | UserPluginGroupService(QSqlDatabase db):BaseService(db){} 29 | }; 30 | 31 | #endif // USERPLUGINGROUPSERVICE_H 32 | -------------------------------------------------------------------------------- /plugins/lineplugin/bidirectionallineplugin.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #include "bidirectionallineplugin.h" 20 | #include "bidirectionalline.h" 21 | #include "svghelper.h" 22 | #include "formfactory.h" 23 | 24 | BidirectionalLinePlugin::BidirectionalLinePlugin(QObject *parent) 25 | : QObject{parent} 26 | {} 27 | METHOD_DEFINE(BidirectionalLinePlugin, "双向线", "线条", "绘制双向线", "绘制双向线", 28 | :/icons/bidirectionalLine.svg, BidirectionalLine, FormType::LINE) 29 | -------------------------------------------------------------------------------- /plugins/lineplugin/polygonlineplugin.h: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #ifndef POLYGONLINEPLUGIN_H 20 | #define POLYGONLINEPLUGIN_H 21 | 22 | #include "igraphicplugin.h" 23 | #include 24 | #include "pluginhelper.h" 25 | 26 | class PolygonLinePlugin : public QObject, public IGraphicPlugin 27 | { 28 | Q_OBJECT 29 | Q_INTERFACES(IGraphicPlugin) 30 | public: 31 | PolygonLinePlugin(); 32 | PLUGIN_INTERFACE 33 | }; 34 | 35 | #endif // POLYGONLINEPLUGIN_H 36 | -------------------------------------------------------------------------------- /plugins/rectplugin/star4plugin.h: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #ifndef STAR4PLUGIN_H 20 | #define STAR4PLUGIN_H 21 | 22 | #include 23 | #include "igraphicplugin.h" 24 | #include "pluginhelper.h" 25 | 26 | class Star4Plugin : public QObject, public IGraphicPlugin 27 | { 28 | Q_OBJECT 29 | Q_INTERFACES(IGraphicPlugin) 30 | public: 31 | Star4Plugin(); 32 | PLUGIN_INTERFACE 33 | }; 34 | 35 | #endif // STAR4PLUGIN_H 36 | -------------------------------------------------------------------------------- /plugins/rectplugin/star5plugin.h: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #ifndef STAR5PLUGIN_H 20 | #define STAR5PLUGIN_H 21 | 22 | #include "igraphicplugin.h" 23 | #include 24 | #include "pluginhelper.h" 25 | 26 | class Star5Plugin : public QObject, public IGraphicPlugin 27 | { 28 | Q_OBJECT 29 | Q_INTERFACES(IGraphicPlugin) 30 | public: 31 | Star5Plugin(); 32 | PLUGIN_INTERFACE 33 | }; 34 | 35 | #endif // STAR5PLUGIN_H 36 | -------------------------------------------------------------------------------- /plugins/rectplugin/star6plugin.h: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #ifndef STAR6PLUGIN_H 20 | #define STAR6PLUGIN_H 21 | 22 | #include 23 | #include "igraphicplugin.h" 24 | #include "pluginhelper.h" 25 | 26 | class Star6Plugin : public QObject, public IGraphicPlugin 27 | { 28 | Q_OBJECT 29 | Q_INTERFACES(IGraphicPlugin) 30 | public: 31 | Star6Plugin(); 32 | PLUGIN_INTERFACE 33 | }; 34 | 35 | #endif // STAR6PLUGIN_H 36 | -------------------------------------------------------------------------------- /plugins/rectplugin/star8plugin.h: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #ifndef STAR8PLUGIN_H 20 | #define STAR8PLUGIN_H 21 | 22 | #include "igraphicplugin.h" 23 | #include 24 | #include "pluginhelper.h" 25 | 26 | class Star8Plugin : public QObject, public IGraphicPlugin 27 | { 28 | Q_OBJECT 29 | Q_INTERFACES(IGraphicPlugin) 30 | public: 31 | Star8Plugin(); 32 | PLUGIN_INTERFACE 33 | }; 34 | 35 | #endif // STAR8PLUGIN_H 36 | -------------------------------------------------------------------------------- /plugins/googlecharts/chartobject.h: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #include 20 | #ifndef CHARTOBJECT_H 21 | #define CHARTOBJECT_H 22 | 23 | 24 | struct ChartObject{ 25 | // 图表类型 26 | QString type; 27 | // 图表名称 28 | QString name; 29 | // 图表 30 | QString icon; 31 | // 默认数据 32 | QString defaultData; 33 | // 默认配置 34 | QString defaultOpton; 35 | // 参考地址 36 | QString helpUrl; 37 | }; 38 | 39 | #endif // CHARTOBJECT_H 40 | -------------------------------------------------------------------------------- /plugins/rectplugin/diamondplugin.h: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #ifndef DIAMONDPLUGIN_H 20 | #define DIAMONDPLUGIN_H 21 | 22 | #include "igraphicplugin.h" 23 | #include 24 | #include "pluginhelper.h" 25 | 26 | class DiamondPlugin : public QObject, public IGraphicPlugin 27 | { 28 | Q_OBJECT 29 | Q_INTERFACES(IGraphicPlugin) 30 | public: 31 | DiamondPlugin(); 32 | PLUGIN_INTERFACE 33 | }; 34 | #endif // DIAMONDPLUGIN_H 35 | -------------------------------------------------------------------------------- /plugins/rectplugin/webplugin.h: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | #ifndef WEBPLUGIN_H 19 | #define WEBPLUGIN_H 20 | 21 | #include 22 | #include "igraphicplugin.h" 23 | #include "pluginhelper.h" 24 | 25 | class QWebEnginePage; 26 | class WebPlugin : public QObject, public IGraphicPlugin 27 | { 28 | Q_OBJECT 29 | Q_INTERFACES(IGraphicPlugin) 30 | public: 31 | WebPlugin(); 32 | ~WebPlugin(); 33 | PLUGIN_INTERFACE 34 | }; 35 | 36 | #endif // WEBPLUGIN_H 37 | -------------------------------------------------------------------------------- /BIDesigner/animation/path/polygonpathplugin.h: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #ifndef POLYGONPATHPLUGIN_H 20 | #define POLYGONPATHPLUGIN_H 21 | 22 | #include 23 | #include "imovepathplugin.h" 24 | #include "pathpluginhelper.h" 25 | 26 | class PolygonPathPlugin : public QObject, public IMovePathPlugin 27 | { 28 | Q_OBJECT 29 | public: 30 | PolygonPathPlugin(); 31 | PLUGIN_INTERFACE 32 | }; 33 | 34 | #endif // POLYGONPATHPLUGIN_H 35 | -------------------------------------------------------------------------------- /plugins/lineplugin/dotlineplugin.h: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #ifndef DOTLINEPLUGIN_H 20 | #define DOTLINEPLUGIN_H 21 | 22 | #include "igraphicplugin.h" 23 | #include 24 | #include "pluginhelper.h" 25 | 26 | class DotLinePlugin : public QObject, public IGraphicPlugin 27 | { 28 | Q_OBJECT 29 | Q_INTERFACES(IGraphicPlugin) 30 | public: 31 | DotLinePlugin(); 32 | PLUGIN_INTERFACE 33 | }; 34 | 35 | #endif // DOTLINEPLUGIN_H 36 | -------------------------------------------------------------------------------- /plugins/lineplugin/verticalelbowplugin.h: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #ifndef VERTICALELBOWPLUGIN_H 20 | #define VERTICALELBOWPLUGIN_H 21 | 22 | #include "igraphicplugin.h" 23 | #include 24 | #include "pluginhelper.h" 25 | 26 | class VerticalElbowPlugin : public QObject, public IGraphicPlugin 27 | { 28 | Q_OBJECT 29 | Q_INTERFACES(IGraphicPlugin) 30 | public: 31 | VerticalElbowPlugin(); 32 | PLUGIN_INTERFACE 33 | }; 34 | 35 | #endif // VERTICALELBOWPLUGIN_H 36 | -------------------------------------------------------------------------------- /plugins/lineplugin/dashlineplugin.h: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #ifndef DASHLINEPLUGIN_H 20 | #define DASHLINEPLUGIN_H 21 | 22 | #include 23 | #include "igraphicplugin.h" 24 | #include "pluginhelper.h" 25 | 26 | class DashLinePlugin : public QObject, public IGraphicPlugin 27 | { 28 | Q_OBJECT 29 | Q_INTERFACES(IGraphicPlugin) 30 | public: 31 | DashLinePlugin(); 32 | PLUGIN_INTERFACE 33 | }; 34 | 35 | #endif // DASHLINEPLUGIN_H 36 | -------------------------------------------------------------------------------- /plugins/rectplugin/triangleplugin.h: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #ifndef TRIANGLEPLUGIN_H 20 | #define TRIANGLEPLUGIN_H 21 | 22 | #include 23 | #include "igraphicplugin.h" 24 | #include "pluginhelper.h" 25 | 26 | class TrianglePlugin : public QObject, public IGraphicPlugin 27 | { 28 | Q_OBJECT 29 | Q_INTERFACES(IGraphicPlugin) 30 | public: 31 | TrianglePlugin(); 32 | PLUGIN_INTERFACE 33 | }; 34 | 35 | #endif // TRIANGLEPLUGIN_H 36 | -------------------------------------------------------------------------------- /common/ksyntaxhighlighting/textstyledata_p.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2016 Volker Krause 3 | 4 | SPDX-License-Identifier: MIT 5 | */ 6 | 7 | #ifndef KSYNTAXHIGHLIGHTING_TEXTSTYLEDATA_P_H 8 | #define KSYNTAXHIGHLIGHTING_TEXTSTYLEDATA_P_H 9 | 10 | #include 11 | 12 | namespace KSyntaxHighlighting 13 | { 14 | class TextStyleData 15 | { 16 | public: 17 | // Constructor initializing all data. 18 | TextStyleData() noexcept 19 | : bold(false) 20 | , italic(false) 21 | , underline(false) 22 | , strikeThrough(false) 23 | , hasBold(false) 24 | , hasItalic(false) 25 | , hasUnderline(false) 26 | , hasStrikeThrough(false) 27 | { 28 | } 29 | 30 | QRgb textColor = 0x0; 31 | QRgb backgroundColor = 0x0; 32 | QRgb selectedTextColor = 0x0; 33 | QRgb selectedBackgroundColor = 0x0; 34 | bool bold : 1; 35 | bool italic : 1; 36 | bool underline : 1; 37 | bool strikeThrough : 1; 38 | 39 | bool hasBold : 1; 40 | bool hasItalic : 1; 41 | bool hasUnderline : 1; 42 | bool hasStrikeThrough : 1; 43 | }; 44 | 45 | } 46 | 47 | #endif 48 | -------------------------------------------------------------------------------- /plugins/lineplugin/cubiclineplugin.h: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #ifndef CUBICLINEPLUGIN_H 20 | #define CUBICLINEPLUGIN_H 21 | 22 | #include 23 | #include "igraphicplugin.h" 24 | #include "pluginhelper.h" 25 | 26 | class CubicLinePlugin: public QObject, public IGraphicPlugin 27 | { 28 | Q_OBJECT 29 | Q_INTERFACES(IGraphicPlugin) 30 | public: 31 | CubicLinePlugin(); 32 | PLUGIN_INTERFACE 33 | }; 34 | 35 | #endif // CUBICLINEPLUGIN_H 36 | -------------------------------------------------------------------------------- /plugins/lineplugin/solidlineplugin.h: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #ifndef SOLIDLINEPLUGIN_H 20 | #define SOLIDLINEPLUGIN_H 21 | 22 | #include "igraphicplugin.h" 23 | #include 24 | #include "pluginhelper.h" 25 | 26 | class SolidLinePlugin : public QObject, public IGraphicPlugin 27 | { 28 | Q_OBJECT 29 | Q_INTERFACES(IGraphicPlugin) 30 | public: 31 | SolidLinePlugin(); 32 | PLUGIN_INTERFACE 33 | }; 34 | 35 | #endif // SOLIDLINEPLUGIN_H 36 | -------------------------------------------------------------------------------- /plugins/rectplugin/trapeziumplugin.h: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #ifndef TRAPEZIUMPLUGIN_H 20 | #define TRAPEZIUMPLUGIN_H 21 | 22 | #include "igraphicplugin.h" 23 | #include 24 | #include "pluginhelper.h" 25 | 26 | class TrapeziumPlugin : public QObject, public IGraphicPlugin 27 | { 28 | Q_OBJECT 29 | Q_INTERFACES(IGraphicPlugin) 30 | public: 31 | TrapeziumPlugin(); 32 | PLUGIN_INTERFACE 33 | }; 34 | 35 | #endif // TRAPEZIUMPLUGIN_H 36 | -------------------------------------------------------------------------------- /plugins/lineplugin/horizontalelbowplugin.h: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #ifndef HORIZONTALELBOWPLUGIN_H 20 | #define HORIZONTALELBOWPLUGIN_H 21 | 22 | #include 23 | #include "igraphicplugin.h" 24 | #include "pluginhelper.h" 25 | 26 | class HorizontalElbowPlugin : public QObject, public IGraphicPlugin 27 | { 28 | Q_OBJECT 29 | Q_INTERFACES(IGraphicPlugin) 30 | public: 31 | HorizontalElbowPlugin(); 32 | PLUGIN_INTERFACE 33 | }; 34 | 35 | #endif // HORIZONTALELBOWPLUGIN_H 36 | -------------------------------------------------------------------------------- /plugins/lineplugin/curvedlineplugin.h: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #ifndef CURVEDLINEPLUGIN_H 20 | #define CURVEDLINEPLUGIN_H 21 | 22 | #include 23 | #include "igraphicplugin.h" 24 | #include "pluginhelper.h" 25 | 26 | class CurvedLinePlugin : public QObject, public IGraphicPlugin 27 | { 28 | Q_OBJECT 29 | Q_INTERFACES(IGraphicPlugin) 30 | public: 31 | CurvedLinePlugin(); 32 | PLUGIN_INTERFACE 33 | }; 34 | 35 | #endif // CURVEDLINEPLUGIN_H 36 | -------------------------------------------------------------------------------- /plugins/rectplugin/quadrangleplugin.h: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #ifndef QUADRANGLEPLUGIN_H 20 | #define QUADRANGLEPLUGIN_H 21 | 22 | #include "igraphicplugin.h" 23 | #include 24 | #include "pluginhelper.h" 25 | 26 | class QuadranglePlugin : public QObject, public IGraphicPlugin 27 | { 28 | Q_OBJECT 29 | Q_INTERFACES(IGraphicPlugin) 30 | public: 31 | QuadranglePlugin(); 32 | PLUGIN_INTERFACE 33 | }; 34 | 35 | #endif // QUADRANGLEPLUGIN_H 36 | -------------------------------------------------------------------------------- /plugins/rectplugin/parallelogramplugin.h: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #ifndef PARALLELOGRAMPLUGIN_H 20 | #define PARALLELOGRAMPLUGIN_H 21 | 22 | #include "igraphicplugin.h" 23 | #include 24 | #include "pluginhelper.h" 25 | 26 | class ParallelogramPlugin : public QObject, public IGraphicPlugin 27 | { 28 | Q_OBJECT 29 | Q_INTERFACES(IGraphicPlugin) 30 | public: 31 | ParallelogramPlugin(); 32 | PLUGIN_INTERFACE 33 | }; 34 | 35 | #endif // PARALLELOGRAMPLUGIN_H 36 | -------------------------------------------------------------------------------- /plugins/rectplugin/righttriangleplugin.h: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #ifndef RIGHTTRIANGLEPLUGIN_H 20 | #define RIGHTTRIANGLEPLUGIN_H 21 | 22 | #include 23 | #include "igraphicplugin.h" 24 | #include "pluginhelper.h" 25 | 26 | class RightTrianglePlugin : public QObject, public IGraphicPlugin 27 | { 28 | Q_OBJECT 29 | Q_INTERFACES(IGraphicPlugin) 30 | public: 31 | RightTrianglePlugin(); 32 | PLUGIN_INTERFACE 33 | }; 34 | 35 | #endif // RIGHTTRIANGLEPLUGIN_H 36 | -------------------------------------------------------------------------------- /plugins/lineplugin/stable.h: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | #ifndef STABLE_H 19 | #define STABLE_H 20 | 21 | #include 22 | #include "endtypefactory.h" 23 | #include "pluginhelper.h" 24 | 25 | #include "abstractitem.h" 26 | #include "abstractselector.h" 27 | #include "adjustpoint.h" 28 | #include "baseproperty.h" 29 | #include "ilinepath.h" 30 | #include "ipropertyform.h" 31 | #include "lineselector.h" 32 | #include "namedpoint.h" 33 | #include "pointstyle.h" 34 | #include "curvecontrolparam.h" 35 | #endif // 36 | -------------------------------------------------------------------------------- /plugins/rectplugin/obtusetriangleplugin.h: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #ifndef OBTUSETRIANGLEPLUGIN_H 20 | #define OBTUSETRIANGLEPLUGIN_H 21 | 22 | #include "igraphicplugin.h" 23 | #include 24 | #include "pluginhelper.h" 25 | 26 | class ObtuseTrianglePlugin : public QObject, public IGraphicPlugin 27 | { 28 | Q_OBJECT 29 | Q_INTERFACES(IGraphicPlugin) 30 | public: 31 | ObtuseTrianglePlugin(); 32 | PLUGIN_INTERFACE 33 | }; 34 | 35 | #endif // OBTUSETRIANGLEPLUGIN_H 36 | -------------------------------------------------------------------------------- /BIDesigner/icons/bring-to-top.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /plugins/lineplugin/directionallineplugin.h: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #ifndef DIRECTIONALLINEPLUGIN_H 20 | #define DIRECTIONALLINEPLUGIN_H 21 | 22 | #include 23 | #include "igraphicplugin.h" 24 | #include "pluginhelper.h" 25 | 26 | class DirectionalLinePlugin :public QObject, public IGraphicPlugin 27 | { 28 | Q_OBJECT 29 | Q_INTERFACES(IGraphicPlugin) 30 | public: 31 | DirectionalLinePlugin(); 32 | PLUGIN_INTERFACE 33 | }; 34 | 35 | #endif // DIRECTIONALLINEPLUGIN_H 36 | -------------------------------------------------------------------------------- /plugins/rectplugin/righttrapezoidplugin.h: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #ifndef RIGHTTRAPEZOIDPLUGIN_H 20 | #define RIGHTTRAPEZOIDPLUGIN_H 21 | 22 | #include "igraphicplugin.h" 23 | #include 24 | #include "pluginhelper.h" 25 | 26 | class RightTrapezoidPlugin : public QObject, public IGraphicPlugin 27 | { 28 | Q_OBJECT 29 | Q_INTERFACES(IGraphicPlugin) 30 | public: 31 | RightTrapezoidPlugin(); 32 | 33 | PLUGIN_INTERFACE 34 | }; 35 | 36 | #endif // RIGHTTRAPEZOIDPLUGIN_H 37 | -------------------------------------------------------------------------------- /BIDesigner/icons/bring-to-bottom.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /plugins/common/baseproperty.h: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #ifndef BASEPROEPRTY_H 20 | #define BASEPROEPRTY_H 21 | 22 | #include "serializable.h" 23 | class BaseProperty : public Serializable 24 | { 25 | Q_GADGET 26 | SERIALIZE(BaseProperty) 27 | public: 28 | BaseProperty() : Serializable() {} 29 | private: 30 | // 属性集ID 31 | qint32 id{0}; 32 | // 属性集合名称 33 | QString name{""}; 34 | 35 | JSONFIELD(id, Id) 36 | JSONFIELD(name, Name) 37 | }; 38 | 39 | #endif // BASEPROEPRTY_H 40 | -------------------------------------------------------------------------------- /plugins/common/ipropertyform.h: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #ifndef IPROPERTYFORM_H 20 | #define IPROPERTYFORM_H 21 | 22 | #include "icustomgraphic.h" 23 | #include 24 | class IPropertyForm : public QWidget 25 | { 26 | public: 27 | IPropertyForm() = delete; 28 | explicit IPropertyForm(QWidget* parent = nullptr):QWidget(parent){}; 29 | virtual void updateData()=0; 30 | virtual ICustomGraphic *getGraphicItem() = 0; 31 | virtual void setGraphicItem(ICustomGraphic *graphic) = 0; 32 | }; 33 | 34 | #endif // IPROPERTYFORM_H 35 | -------------------------------------------------------------------------------- /common/ksyntaxhighlighting/foldingregion.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2016 Volker Krause 3 | 4 | SPDX-License-Identifier: MIT 5 | */ 6 | 7 | #include "foldingregion.h" 8 | 9 | using namespace KSyntaxHighlighting; 10 | 11 | static_assert(sizeof(FoldingRegion) == sizeof(int), "FoldingRegion is size-sensitive to frequent use in KTextEditor!"); 12 | 13 | FoldingRegion::FoldingRegion() = default; 14 | 15 | FoldingRegion::FoldingRegion(Type type, int id) 16 | : m_idWithType((type == End) ? -id : id) 17 | { 18 | } 19 | 20 | bool FoldingRegion::operator==(const FoldingRegion &other) const 21 | { 22 | return m_idWithType == other.m_idWithType; 23 | } 24 | 25 | bool FoldingRegion::isValid() const 26 | { 27 | return m_idWithType != 0; 28 | } 29 | 30 | int FoldingRegion::id() const 31 | { 32 | return (m_idWithType < 0) ? -m_idWithType : m_idWithType; 33 | } 34 | 35 | FoldingRegion::Type FoldingRegion::type() const 36 | { 37 | if (isValid()) { 38 | return (m_idWithType < 0) ? End : Begin; 39 | } 40 | return None; 41 | } 42 | 43 | FoldingRegion FoldingRegion::sibling() const 44 | { 45 | return isValid() ? FoldingRegion(type() ? End : Begin, id()) : FoldingRegion(); 46 | } 47 | -------------------------------------------------------------------------------- /plugins/rectplugin/stable.h: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | #ifndef STABLE_H 19 | #define STABLE_H 20 | #include 21 | 22 | #include "pluginhelper.h" 23 | #include "igraphicplugin.h" 24 | 25 | #include "abstractitem.h" 26 | #include "abstractselector.h" 27 | #include "abstracttextitem.h" 28 | #include "abstractzoneitem.h" 29 | #include "adjustpoint.h" 30 | #include "baseproperty.h" 31 | #include "isubwidget.h" 32 | #include "namedpoint.h" 33 | #include "pointstyle.h" 34 | #include "rectselector.h" 35 | #include "zoneproperty.h" 36 | #endif // STABLE_H 37 | -------------------------------------------------------------------------------- /BIDesigner/icons/edit-box.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /BIDesigner/main.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #include "mainwindow.h" 20 | 21 | #include 22 | #include 23 | 24 | int main(int argc, char *argv[]) 25 | { 26 | qSetMessagePattern("%{time MM-dd hh:mm:ss.sss} [ %{file}: %{line} ] %{message}"); 27 | 28 | // 启用 ANGLE 29 | // QCoreApplication::setAttribute(Qt::AA_UseOpenGLES); 30 | QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts); 31 | 32 | QApplication a(argc, argv); 33 | MainWindow w; 34 | w.show(); 35 | return a.exec(); 36 | } 37 | -------------------------------------------------------------------------------- /plugins/googlecharts/chartproperty.h: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | #ifndef CHARTPROPERTY_H 19 | #define CHARTPROPERTY_H 20 | 21 | #include "zoneproperty.h" 22 | class ChartProperty: public ZoneProperty 23 | { 24 | Q_GADGET 25 | SERIALIZE(ChartProperty) 26 | public: 27 | ChartProperty():ZoneProperty(){} 28 | private: 29 | QString chartType; 30 | QString dataTable; 31 | QString options; 32 | 33 | JSONFIELD(chartType, ChartType) 34 | JSONFIELD(dataTable, DataTable) 35 | JSONFIELD(options, Options) 36 | }; 37 | 38 | #endif // CHARTPROPERTY_H 39 | -------------------------------------------------------------------------------- /plugins/lineplugin/bidirectionallineplugin.h: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #ifndef BIDIRECTIONALLINEPLUGIN_H 20 | #define BIDIRECTIONALLINEPLUGIN_H 21 | 22 | #include "igraphicplugin.h" 23 | #include 24 | #include "pluginhelper.h" 25 | 26 | class BidirectionalLinePlugin : public QObject, public IGraphicPlugin 27 | { 28 | Q_OBJECT 29 | Q_INTERFACES(IGraphicPlugin) 30 | public: 31 | explicit BidirectionalLinePlugin(QObject *parent = nullptr); 32 | PLUGIN_INTERFACE 33 | 34 | }; 35 | 36 | #endif // BIDIRECTIONALLINEPLUGIN_H 37 | -------------------------------------------------------------------------------- /BIDesigner/icons/manage.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /BIDesigner/icons/flip_horizontal.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /plugins/googlecharts/icons/candlestickchart.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Compelling Data Designer 2 | Compelling Data Designer用于数据的可视化设计,支持HTTP RESTfull、数据库、TCP、UDP等多种数据接口协议,通过图表、动画等多种方式支持数据呈现。可满足工厂设备状态监控、生产线OEE效率看板、能源消耗动态分析、交通流量热力图、环境监测站PM2.5实时播报等各种数据可视化需求。软件采用可扩展架构,支持扩展图形插件、数据接口。目前已设计完成基本图形、多属性配置、动画等功能。 3 | # features 4 | - 低代码开发,灵活配置 5 | - 插件式设计,可灵活添加图元插件、动画插件 6 | - 支持图元多属性集配置,通过数据源可控制并选择图元属性集 7 | - 支持图元动画,通过数据源可控制并选择图元当前播放的动画 8 | - 支持多种数据接口 9 | # environment 10 | - QT 6.8.1 11 | - C++ 11 12 | # build 13 | 1. 首先编译common模块 14 | 2. 其次编译BIWidgets模块生成插件,并将插件安装到\Qt\6.8.0\msvc2022_64\plugins\designer目录和\Qt\qtcreator-15.0.0\bin\plugins\designer目录 15 | 3. 编译plugins模块生成图元插件 16 | 4. 编译BIDesigner模块生成可执行程序 17 | # Screenshots 18 | 1. 项目配置:可定义页面大小,页面填充样式。绘图区域根据配置及缩放大小自动调整标尺,并提供参考线用于图元对其。 19 | 20 | ![项目配置](./screenshots/1.png) 21 | 22 | 23 | 2. 图元样式:可控制图元大小、线条样式、颜色,填充样式、颜色、渐变、背景图,圆角,旋转角度等 24 | 25 | ![图元配置](./screenshots/2.png) 26 | ![渐变色](./screenshots/5.png) 27 | 28 | 29 | 30 | 3. 线条图元:提供起点和终点箭头样式(该样式可通过SVG图片进行扩展),流动动画(可配置流动样式及播放速度) 31 | 32 | ![线条](./screenshots/4.png) 33 | 34 | 35 | 4. 动画:提供缩放、闪烁、运动路径、旋转、水平拉伸、垂直拉伸、水平翻转、垂直翻转动画,所有图元(包括组合图元)支持动画。 36 | 37 | ![动画](./screenshots/3.png) 38 | 39 | ![路劲动画](./screenshots/7.png) 40 | 41 | 42 | 43 | 5. 图元组合:所有图元均可组合,组合后可以通过合并、交集、差集、排除作为一个新图元继续配置属性集和动画 44 | 45 | ![组合](./screenshots/6.png) -------------------------------------------------------------------------------- /plugins/common/igraphicpluginCollection.h: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #ifndef IGRAPHICPLUGINCOLLECTION_H 20 | #define IGRAPHICPLUGINCOLLECTION_H 21 | 22 | #include "igraphicplugin.h" 23 | class IGraphicPluginCollection 24 | { 25 | public: 26 | virtual ~IGraphicPluginCollection() = default; 27 | virtual QList graphicPlugins() = 0; 28 | }; 29 | 30 | #define IGraphicPluginCollection_iid "cn.devhome.BIDEsigner.IGraphicPluginCollection" 31 | Q_DECLARE_INTERFACE(IGraphicPluginCollection, IGraphicPluginCollection_iid) 32 | 33 | #endif // IGRAPHICPLUGINCOLLECTION_H 34 | -------------------------------------------------------------------------------- /BIDesigner/icons/rotateV.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /plugins/googlecharts/abstractgooglechartplugin.h: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | #ifndef ABSTRACTGOOGLECHARTPLUGIN_H 19 | #define ABSTRACTGOOGLECHARTPLUGIN_H 20 | 21 | #include "igraphicplugin.h" 22 | #include "chartobject.h" 23 | #include 24 | #include "pluginhelper.h" 25 | 26 | class AbstractGoogleChartPlugin : public QObject, public IGraphicPlugin 27 | { 28 | Q_OBJECT 29 | Q_INTERFACES(IGraphicPlugin) 30 | public: 31 | AbstractGoogleChartPlugin(const ChartObject &obj); 32 | PLUGIN_INTERFACE 33 | 34 | private: 35 | ChartObject chart; 36 | }; 37 | 38 | #endif // ABSTRACTGOOGLECHARTPLUGIN_H 39 | -------------------------------------------------------------------------------- /plugins/rectplugin/icons/List_Bullets.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /common/easyjsonimpl.h: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #ifndef EASYJSONIMPL_H 20 | #define EASYJSONIMPL_H 21 | 22 | #include "easyjson.h" 23 | 24 | class EasyJsonImpl: public EasyJson 25 | { 26 | public: 27 | EasyJsonImpl(); 28 | 29 | // EasyJson interface 30 | private: 31 | QJsonObject toJson(const Serializable &obj) override; 32 | QString toJsonString(const Serializable &obj) override; 33 | QVariant parseObject(QJsonObject json, QMetaType typeName) override; 34 | QVariant parseObject(QString json, QMetaType typeName) override; 35 | }; 36 | 37 | #endif // EASYJSONIMPL_H 38 | -------------------------------------------------------------------------------- /BIWidgets/textpropertywidget/icons/List_Bullets.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /common/easyjson.h: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #ifndef EASYJSON_H 20 | #define EASYJSON_H 21 | 22 | #include "serializable.h" 23 | 24 | #include 25 | 26 | class EasyJson{ 27 | public: 28 | EasyJson(){} 29 | ~EasyJson(){} 30 | virtual QJsonObject toJson(const Serializable &obj) = 0; 31 | virtual QString toJsonString(const Serializable &obj) = 0; 32 | virtual QVariant parseObject(QJsonObject json, QMetaType typeName) = 0; 33 | virtual QVariant parseObject(QString json, QMetaType typeName) = 0; 34 | }; 35 | 36 | extern EasyJson *EASYJSON; 37 | #endif // EASYJSON_H 38 | -------------------------------------------------------------------------------- /common/ksyntaxhighlighting/htmlhighlighter.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2016 Volker Krause 3 | 4 | SPDX-License-Identifier: MIT 5 | */ 6 | 7 | #ifndef KSYNTAXHIGHLIGHTING_HTMLHIGHLIGHTER_H 8 | #define KSYNTAXHIGHLIGHTING_HTMLHIGHLIGHTER_H 9 | 10 | #include "abstracthighlighter.h" 11 | #include "ksyntaxhighlighting_export.h" 12 | #include "theme.h" 13 | 14 | #include 15 | 16 | QT_BEGIN_NAMESPACE 17 | class QIODevice; 18 | QT_END_NAMESPACE 19 | 20 | namespace KSyntaxHighlighting 21 | { 22 | class HtmlHighlighterPrivate; 23 | 24 | class KSYNTAXHIGHLIGHTING_EXPORT HtmlHighlighter : public AbstractHighlighter 25 | { 26 | public: 27 | HtmlHighlighter(); 28 | ~HtmlHighlighter() override; 29 | 30 | void highlightFile(const QString &fileName, const QString &title = QString()); 31 | void highlightData(QIODevice *device, const QString &title = QString()); 32 | 33 | void setOutputFile(const QString &fileName); 34 | void setOutputFile(FILE *fileHandle); 35 | 36 | void setBackgroundRole(Theme::EditorColorRole bgRole); 37 | 38 | protected: 39 | void applyFormat(int offset, int length, const Format &format) override; 40 | 41 | private: 42 | Q_DECLARE_PRIVATE(HtmlHighlighter) 43 | }; 44 | } 45 | 46 | #endif // KSYNTAXHIGHLIGHTING_HTMLHIGHLIGHTER_H 47 | -------------------------------------------------------------------------------- /common/textproperty.h: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #ifndef TEXTPROPERTY_H 20 | #define TEXTPROPERTY_H 21 | 22 | #include "serializable.h" 23 | 24 | #include 25 | 26 | class TextProperty : public Serializable 27 | { 28 | Q_GADGET 29 | SERIALIZE(TextProperty) 30 | public: 31 | explicit TextProperty():Serializable(){}; 32 | private: 33 | // 字体 34 | QFont font; 35 | // 颜色 36 | QColor color; 37 | // 自动换行 38 | bool lineWrape; 39 | // 行间距 40 | float lineSpace; 41 | // 缩进字体宽度 42 | float indent; 43 | }; 44 | 45 | #endif // TEXTPROPERTY_H 46 | -------------------------------------------------------------------------------- /common/undoobject.h: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #ifndef UNDOOBJECT_H 20 | #define UNDOOBJECT_H 21 | 22 | #include 23 | 24 | class UndoObject 25 | { 26 | public: 27 | UndoObject(){}; 28 | virtual void undo(QVariant undoData) = 0; 29 | virtual void redo(QVariant redoData) = 0; 30 | /** 31 | * @brief undo事件信号 32 | * @param text 改变信息描述 33 | * @param undoData 撤销数据 34 | * @param redoData 重做数据 35 | */ 36 | Q_SIGNAL virtual void undoEvent(const QString &text, QVariant undoData, QVariant redoData) = 0; 37 | 38 | }; 39 | 40 | #endif // UNDOOBJECT_H 41 | -------------------------------------------------------------------------------- /plugins/rectplugin/rectplugin.h: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of the dashboard library 3 | * 4 | * Copyright 2025 lishiying lsyeei@163.com 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the License); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an AS IS BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #ifndef RECTPLUGIN_H 20 | #define RECTPLUGIN_H 21 | 22 | #define Pro 23 | #include 24 | #include 25 | #include 26 | #include "igraphicplugin.h" 27 | #include "pluginhelper.h" 28 | 29 | class Rectplugin : public QObject, public IGraphicPlugin 30 | { 31 | Q_OBJECT 32 | // Q_PLUGIN_METADATA(IID "cn.devhome.BIDEsigner.IGraphicPlugin" FILE "rectplugin.json") 33 | Q_INTERFACES(IGraphicPlugin) 34 | 35 | public: 36 | Rectplugin(); 37 | PLUGIN_INTERFACE 38 | }; 39 | 40 | #endif // RECTPLUGIN_H 41 | --------------------------------------------------------------------------------