Browse Source

删除模块
QFDWidget
mindmap

chengxr 1 year ago
parent
commit
66d1959c61
100 changed files with 0 additions and 9336 deletions
  1. 0 2
      QFD/QFD.pro
  2. 0 281
      QFD/QFDWidget/CustomGrip.cpp
  3. 0 52
      QFD/QFDWidget/CustomGrip.h
  4. 0 359
      QFD/QFDWidget/PatternCodeLock.cpp
  5. 0 63
      QFD/QFDWidget/PatternCodeLock.h
  6. 0 41
      QFD/QFDWidget/ProInfoPopWidget.cpp
  7. 0 28
      QFD/QFDWidget/ProInfoPopWidget.h
  8. 0 461
      QFD/QFDWidget/QFDApp.cpp
  9. 0 64
      QFD/QFDWidget/QFDApp.h
  10. 0 2454
      QFD/QFDWidget/QFDApp.ui
  11. 0 19
      QFD/QFDWidget/QFDWidget.pri
  12. 0 53
      QFD/QFDWidget/ToolMenuWidget.cpp
  13. 0 53
      QFD/QFDWidget/ToolMenuWidget.h
  14. 0 532
      QFD/QFDWidget/UIObject.h
  15. 0 18
      QFD/mindmap/aboutdialog.cpp
  16. 0 24
      QFD/mindmap/aboutdialog.h
  17. 0 145
      QFD/mindmap/aboutdialog.ui
  18. 0 3
      QFD/mindmap/api/README.md
  19. 0 11
      QFD/mindmap/api/algo/fnconvert.cpp
  20. 0 17
      QFD/mindmap/api/algo/fnconvert.h
  21. 0 25
      QFD/mindmap/api/algo/fndatetime.cpp
  22. 0 17
      QFD/mindmap/api/algo/fndatetime.h
  23. 0 89
      QFD/mindmap/api/audio/audiorecorderdialog.cpp
  24. 0 48
      QFD/mindmap/api/audio/audiorecorderdialog.h
  25. 0 113
      QFD/mindmap/api/audio/audiorecorderdialog.ui
  26. 0 183
      QFD/mindmap/api/capture/capturewindow.cpp
  27. 0 53
      QFD/mindmap/api/capture/capturewindow.h
  28. 0 23
      QFD/mindmap/api/capture/capturewindow.ui
  29. 0 81
      QFD/mindmap/api/chat/chatlistitem.cpp
  30. 0 45
      QFD/mindmap/api/chat/chatlistitem.h
  31. 0 21
      QFD/mindmap/api/chat/chatlistitem.ui
  32. 0 17
      QFD/mindmap/api/chat/chatplaintextedit.cpp
  33. 0 19
      QFD/mindmap/api/chat/chatplaintextedit.h
  34. 0 109
      QFD/mindmap/api/color/colorobject.cpp
  35. 0 51
      QFD/mindmap/api/color/colorobject.h
  36. 0 78
      QFD/mindmap/api/color/colortable.cpp
  37. 0 34
      QFD/mindmap/api/color/colortable.h
  38. 0 166
      QFD/mindmap/api/controls/card/selectcard.cpp
  39. 0 43
      QFD/mindmap/api/controls/card/selectcard.h
  40. 0 19
      QFD/mindmap/api/controls/card/selectcard.ui
  41. 0 84
      QFD/mindmap/api/controls/category/datacategory.cpp
  42. 0 53
      QFD/mindmap/api/controls/category/datacategory.h
  43. 0 21
      QFD/mindmap/api/controls/category/datacategory.ui
  44. 0 103
      QFD/mindmap/api/controls/color/colorschemepanel.cpp
  45. 0 41
      QFD/mindmap/api/controls/color/colorschemepanel.h
  46. 0 21
      QFD/mindmap/api/controls/color/colorschemepanel.ui
  47. 0 138
      QFD/mindmap/api/controls/color/purecoloricon.cpp
  48. 0 62
      QFD/mindmap/api/controls/color/purecoloricon.h
  49. 0 21
      QFD/mindmap/api/controls/color/purecoloricon.ui
  50. 0 163
      QFD/mindmap/api/controls/color/purecolorpanel.cpp
  51. 0 64
      QFD/mindmap/api/controls/color/purecolorpanel.h
  52. 0 21
      QFD/mindmap/api/controls/color/purecolorpanel.ui
  53. 0 64
      QFD/mindmap/api/controls/colorwidget.cpp
  54. 0 33
      QFD/mindmap/api/controls/colorwidget.h
  55. 0 21
      QFD/mindmap/api/controls/colorwidget.ui
  56. 0 81
      QFD/mindmap/api/controls/edit/coloredit.cpp
  57. 0 42
      QFD/mindmap/api/controls/edit/coloredit.h
  58. 0 21
      QFD/mindmap/api/controls/edit/coloredit.ui
  59. 0 195
      QFD/mindmap/api/controls/knowledgegraphwidget.cpp
  60. 0 48
      QFD/mindmap/api/controls/knowledgegraphwidget.h
  61. 0 21
      QFD/mindmap/api/controls/knowledgegraphwidget.ui
  62. 0 114
      QFD/mindmap/api/controls/knowledgegraphwidgetitem.cpp
  63. 0 58
      QFD/mindmap/api/controls/knowledgegraphwidgetitem.h
  64. 0 52
      QFD/mindmap/api/controls/knowledgegraphwidgetlink.cpp
  65. 0 30
      QFD/mindmap/api/controls/knowledgegraphwidgetlink.h
  66. 0 83
      QFD/mindmap/api/controls/logowidget.cpp
  67. 0 37
      QFD/mindmap/api/controls/logowidget.h
  68. 0 21
      QFD/mindmap/api/controls/logowidget.ui
  69. 0 98
      QFD/mindmap/api/controls/navbar/vernavbar.cpp
  70. 0 34
      QFD/mindmap/api/controls/navbar/vernavbar.h
  71. 0 21
      QFD/mindmap/api/controls/navbar/vernavbar.ui
  72. 0 78
      QFD/mindmap/api/controls/pixmapviewer.cpp
  73. 0 37
      QFD/mindmap/api/controls/pixmapviewer.h
  74. 0 19
      QFD/mindmap/api/controls/pixmapviewer.ui
  75. 0 47
      QFD/mindmap/api/controls/selectionitem.cpp
  76. 0 32
      QFD/mindmap/api/controls/selectionitem.h
  77. 0 55
      QFD/mindmap/api/controls/setvaluedialog.cpp
  78. 0 29
      QFD/mindmap/api/controls/setvaluedialog.h
  79. 0 94
      QFD/mindmap/api/controls/setvaluedialog.ui
  80. 0 23
      QFD/mindmap/api/controls/showpixmapdialog.cpp
  81. 0 26
      QFD/mindmap/api/controls/showpixmapdialog.h
  82. 0 19
      QFD/mindmap/api/controls/showpixmapdialog.ui
  83. 0 5
      QFD/mindmap/api/core/qstr.cpp
  84. 0 10
      QFD/mindmap/api/core/qstr.h
  85. 0 97
      QFD/mindmap/api/cron/fncron.cpp
  86. 0 19
      QFD/mindmap/api/cron/fncron.h
  87. 0 186
      QFD/mindmap/api/date/fncalender.cpp
  88. 0 53
      QFD/mindmap/api/date/fncalender.h
  89. 0 156
      QFD/mindmap/api/date/fncalender.ui
  90. 0 59
      QFD/mindmap/api/dialogs/selectdatedialog.cpp
  91. 0 32
      QFD/mindmap/api/dialogs/selectdatedialog.h
  92. 0 75
      QFD/mindmap/api/dialogs/selectdatedialog.ui
  93. 0 49
      QFD/mindmap/api/dialogs/selectfiledialog.cpp
  94. 0 36
      QFD/mindmap/api/dialogs/selectfiledialog.h
  95. 0 131
      QFD/mindmap/api/dialogs/selectfiledialog.ui
  96. 0 14
      QFD/mindmap/api/dialogs/selectvaluedialog.cpp
  97. 0 22
      QFD/mindmap/api/dialogs/selectvaluedialog.h
  98. 0 69
      QFD/mindmap/api/dialogs/selectvaluedialog.ui
  99. 0 55
      QFD/mindmap/api/dialogs/setvaluedialog.cpp
  100. 0 29
      QFD/mindmap/api/dialogs/setvaluedialog.h

+ 0 - 2
QFD/QFD.pro

@@ -156,14 +156,12 @@ HEADERS += \
     widgets/SchemeWidget.h
 
 
-include(./mindmap/mindmap.pri)
 include(./CCanvas/CCanvas.pri)
 include(./shemeTable/shemeTable.pri)
 include(./QtAwesome/QtAwesome.pri)
 include(./EasyQtSql/EasyQtSql.pri)
 include(./dbService/dbService.pri)
 include(./helper/helper.pri)
-include(./QFDWidget/QFDWidget.pri)
 include(./QXlsx-1.4.3/QXlsx.pri)
 include(./qcustomplot/qcustomplot.pri)
 

+ 0 - 281
QFD/QFDWidget/CustomGrip.cpp

@@ -1,281 +0,0 @@
-#include "CustomGrip.h"
-
-#include <QMouseEvent>
-#include <QSizeGrip>
-#include <QDebug>
-
-CustomGrip::CustomGrip(QWidget *parent, Qt::Edge positon, bool disableColor) : QWidget(parent)
-{
-    wi = new Widgets(this);
-
-    switch (positon) {
-    // SHOW TOP GRIP
-    case Qt::TopEdge: {
-        this->wi->top(this);
-        setGeometry(0, 0, qobject_cast<QWidget *>(this->parent())->width(), 10);
-        setMaximumHeight(10);
-
-        // GRIPS
-        QSizeGrip *topLeft  = new QSizeGrip(this->wi->m_topLeft);
-        QSizeGrip *topRight = new QSizeGrip(this->wi->m_topRight);
-
-        if (disableColor) {
-            this->wi->m_topLeft->setStyleSheet("background: transparent");
-            this->wi->m_topRight->setStyleSheet("background: transparent");
-            this->wi->m_top->setStyleSheet("background: transparent");
-        }
-
-        wi->m_top->installEventFilter(this);
-    } break;
-
-    // SHOW BOTTOM GRIP
-    case Qt::BottomEdge: {
-        this->wi->bottom(this);
-        setGeometry(0, qobject_cast<QWidget *>(this->parent())->height() - 10,
-                    qobject_cast<QWidget *>(this->parent())->width(), 10);
-        setMaximumHeight(10);
-
-        // GRIPS
-        QSizeGrip *bottom_left  = new QSizeGrip(this->wi->m_bottomLeft);
-        QSizeGrip *bottom_right = new QSizeGrip(this->wi->m_bottomRight);
-
-        if (disableColor) {
-            this->wi->m_bottomLeft->setStyleSheet("background: transparent");
-            this->wi->m_bottomRight->setStyleSheet("background: transparent");
-            this->wi->m_bottom->setStyleSheet("background: transparent");
-        }
-
-        wi->m_bottom->installEventFilter(this);
-    } break;
-
-    // SHOW LEFT GRIP
-    case Qt::LeftEdge: {
-        this->wi->left(this);
-        setGeometry(0, 10, 10, qobject_cast<QWidget *>(this->parent())->height());
-        setMaximumWidth(10);
-
-        if (disableColor) {
-            this->wi->m_leftgrip->setStyleSheet("background: transparent");
-        }
-        wi->m_leftgrip->installEventFilter(this);
-    } break;
-
-    case Qt::RightEdge: {
-        this->wi->right(this);
-        setGeometry(qobject_cast<QWidget *>(this->parent())->width() - 10, 10, 10,
-                    qobject_cast<QWidget *>(this->parent())->height());
-        setMaximumWidth(10);
-
-        if (disableColor) {
-            this->wi->m_rightgrip->setStyleSheet("background: transparent");
-        }
-        wi->m_rightgrip->installEventFilter(this);
-    } break;
-    default:
-        break;
-    }
-}
-
-void CustomGrip::mouseReleaseEvent(QMouseEvent *event)
-{
-    Q_UNUSED(event)
-
-    mousePos = QPoint();
-}
-
-void CustomGrip::resizeEvent(QResizeEvent *event)
-{
-    Q_UNUSED(event)
-
-    if (this->wi->property("container_top").isValid()) {
-        this->wi->m_containerTop->setGeometry(0, 0, this->width(), 10);
-    } else if (this->wi->property("container_bottom").isValid()) {
-        this->wi->m_containerBottom->setGeometry(0, 0, this->width(), 10);
-    } else if (this->wi->property("leftgrip").isValid()) {
-        this->wi->m_leftgrip->setGeometry(0, 0, 10, this->height() - 20);
-    } else if (this->wi->property("rightgrip").isValid()) {
-        this->wi->m_rightgrip->setGeometry(0, 0, 10, this->height() - 20);
-    }
-}
-
-bool CustomGrip::eventFilter(QObject *watched, QEvent *event)
-{
-    if (watched != nullptr && event->type() == QEvent::MouseMove) {
-        QMouseEvent *mouseEvent = static_cast<QMouseEvent *>(event);
-        if (watched == this->wi->m_top) {  // RESIZE TOP
-            QPoint delta    = mouseEvent->pos();
-            QWidget *parent = qobject_cast<QWidget *>(this->parent());
-            int height      = std::max(parent->minimumHeight(), parent->height() - delta.y());
-            QRect geo       = parent->geometry();
-            geo.setTop(geo.bottom() - height);
-            parent->setGeometry(geo);
-            event->accept();
-
-        } else if (watched == this->wi->m_bottom) {  // RESIZE BOTTOM
-            QPoint delta    = mouseEvent->pos();
-            QWidget *parent = qobject_cast<QWidget *>(this->parent());
-            int height      = std::max(parent->minimumHeight(), parent->height() + delta.y());
-            parent->resize(parent->width(), height);
-            event->accept();
-
-        } else if (watched == this->wi->m_leftgrip) {  // RESIZE LEFT
-            QPoint delta    = mouseEvent->pos();
-            QWidget *parent = qobject_cast<QWidget *>(this->parent());
-            int width       = std::max(parent->minimumWidth(), parent->width() - delta.x());
-            QRect geo       = parent->geometry();
-            geo.setLeft(geo.right() - width);
-            parent->setGeometry(geo);
-            event->accept();
-
-        } else if (watched == this->wi->m_rightgrip) {  // RESIZE RIGHT
-            QPoint delta    = mouseEvent->pos();
-            QWidget *parent = qobject_cast<QWidget *>(this->parent());
-            int width       = std::max(parent->minimumWidth(), parent->width() + delta.x());
-            parent->resize(width, parent->height());
-            event->accept();
-        }
-    }
-
-    return QWidget::eventFilter(watched, event);
-}
-
-////////////////////////////////////////////////////////////////////////////////////////////////
-Widgets::Widgets(QObject *parent) : QObject(parent)
-{
-    m_containerTop = nullptr;
-    m_topLayout    = nullptr;
-    m_topLeft      = nullptr;
-    m_top          = nullptr;
-    m_topRight     = nullptr;
-
-    m_containerBottom = nullptr;
-    m_bottomLayout    = nullptr;
-    m_bottomLeft      = nullptr;
-    m_bottom          = nullptr;
-    m_bottomRight     = nullptr;
-
-    m_leftgrip  = nullptr;
-    m_rightgrip = nullptr;
-}
-
-void Widgets::top(QWidget *form)
-{
-    if (form->objectName().isEmpty()) {
-        form->setObjectName("Form");
-    }
-
-    this->setProperty("container_top", "container_top");
-    this->m_containerTop = new QFrame(form);
-    this->m_containerTop->setObjectName("container-top");
-    this->m_containerTop->setGeometry(QRect(0, 0, 500, 10));
-    this->m_containerTop->setMinimumSize(QSize(0, 10));
-    this->m_containerTop->setMaximumSize(QSize(16777215, 10));
-    this->m_containerTop->setFrameShape(QFrame::NoFrame);
-    this->m_containerTop->setFrameShadow(QFrame::Raised);
-    this->m_topLayout = new QHBoxLayout(this->m_containerTop);
-    this->m_topLayout->setSpacing(0);
-    this->m_topLayout->setObjectName("top-layout");
-    this->m_topLayout->setContentsMargins(0, 0, 0, 0);
-    this->m_topLeft = new QFrame(this->m_containerTop);
-    this->m_topLeft->setObjectName("top-left");
-    this->m_topLeft->setMinimumSize(QSize(10, 10));
-    this->m_topLeft->setMaximumSize(QSize(10, 10));
-    this->m_topLeft->setCursor(QCursor(Qt::SizeFDiagCursor));
-    this->m_topLeft->setStyleSheet("background-color: rgb(33, 37, 43);");
-    this->m_topLeft->setFrameShape(QFrame::NoFrame);
-    this->m_topLeft->setFrameShadow(QFrame::Raised);
-    this->m_topLayout->addWidget(this->m_topLeft);
-    this->m_top = new QFrame(this->m_containerTop);
-    this->m_top->setObjectName("top");
-    this->m_top->setCursor(QCursor(Qt::SizeVerCursor));
-    this->m_top->setStyleSheet("background-color: rgb(85, 255, 255);");
-    this->m_top->setFrameShape(QFrame::NoFrame);
-    this->m_top->setFrameShadow(QFrame::Raised);
-    this->m_topLayout->addWidget(this->m_top);
-    this->m_topRight = new QFrame(this->m_containerTop);
-    this->m_topRight->setObjectName("top_right");
-    this->m_topRight->setMinimumSize(QSize(10, 10));
-    this->m_topRight->setMaximumSize(QSize(10, 10));
-    this->m_topRight->setCursor(QCursor(Qt::SizeBDiagCursor));
-    this->m_topRight->setStyleSheet("background-color: rgb(33, 37, 43);");
-    this->m_topRight->setFrameShape(QFrame::NoFrame);
-    this->m_topRight->setFrameShadow(QFrame::Raised);
-    this->m_topLayout->addWidget(this->m_topRight);
-}
-
-void Widgets::bottom(QWidget *form)
-{
-    if (form->objectName().isEmpty()) {
-        form->setObjectName("Form");
-    }
-    this->setProperty("container_bottom", "container_bottom");
-    this->m_containerBottom = new QFrame(form);
-    this->m_containerBottom->setObjectName("container_bottom");
-    this->m_containerBottom->setGeometry(QRect(0, 0, 500, 10));
-    this->m_containerBottom->setMinimumSize(QSize(0, 10));
-    this->m_containerBottom->setMaximumSize(QSize(16777215, 10));
-    this->m_containerBottom->setFrameShape(QFrame::NoFrame);
-    this->m_containerBottom->setFrameShadow(QFrame::Raised);
-    this->m_bottomLayout = new QHBoxLayout(this->m_containerBottom);
-    this->m_bottomLayout->setSpacing(0);
-    this->m_bottomLayout->setObjectName("bottom_layout");
-    this->m_bottomLayout->setContentsMargins(0, 0, 0, 0);
-    this->m_bottomLeft = new QFrame(this->m_containerBottom);
-    this->m_bottomLeft->setObjectName("bottom_left");
-    this->m_bottomLeft->setMinimumSize(QSize(10, 10));
-    this->m_bottomLeft->setMaximumSize(QSize(10, 10));
-    this->m_bottomLeft->setCursor(QCursor(Qt::SizeBDiagCursor));
-    this->m_bottomLeft->setStyleSheet("background-color: rgb(33, 37, 43);");
-    this->m_bottomLeft->setFrameShape(QFrame::NoFrame);
-    this->m_bottomLeft->setFrameShadow(QFrame::Raised);
-    this->m_bottomLayout->addWidget(this->m_bottomLeft);
-    this->m_bottom = new QFrame(this->m_containerBottom);
-    this->m_bottom->setObjectName("bottom");
-    this->m_bottom->setCursor(QCursor(Qt::SizeVerCursor));
-    this->m_bottom->setStyleSheet("background-color: rgb(85, 170, 0);");
-    this->m_bottom->setFrameShape(QFrame::NoFrame);
-    this->m_bottom->setFrameShadow(QFrame::Raised);
-    this->m_bottomLayout->addWidget(this->m_bottom);
-    this->m_bottomRight = new QFrame(this->m_containerBottom);
-    this->m_bottomRight->setObjectName("bottom_right");
-    this->m_bottomRight->setMinimumSize(QSize(10, 10));
-    this->m_bottomRight->setMaximumSize(QSize(10, 10));
-    this->m_bottomRight->setCursor(QCursor(Qt::SizeFDiagCursor));
-    this->m_bottomRight->setStyleSheet("background-color: rgb(33, 37, 43);");
-    this->m_bottomRight->setFrameShape(QFrame::NoFrame);
-    this->m_bottomRight->setFrameShadow(QFrame::Raised);
-    this->m_bottomLayout->addWidget(this->m_bottomRight);
-}
-
-void Widgets::left(QWidget *form)
-{
-    if (form->objectName().isEmpty()) {
-        form->setObjectName("Form");
-    }
-    this->setProperty("leftgrip", "leftgrip");
-    this->m_leftgrip = new QFrame(form);
-    this->m_leftgrip->setObjectName("left");
-    this->m_leftgrip->setGeometry(QRect(0, 10, 10, 480));
-    this->m_leftgrip->setMinimumSize(QSize(10, 0));
-    this->m_leftgrip->setCursor(QCursor(Qt::SizeHorCursor));
-    this->m_leftgrip->setStyleSheet("background-color: rgb(255, 121, 198);");
-    this->m_leftgrip->setFrameShape(QFrame::NoFrame);
-    this->m_leftgrip->setFrameShadow(QFrame::Raised);
-}
-
-void Widgets::right(QWidget *form)
-{
-    if (form->objectName().isEmpty()) {
-        form->setObjectName("Form");
-    }
-    this->setProperty("rightgrip", "rightgrip");
-    form->resize(500, 500);
-    this->m_rightgrip = new QFrame(form);
-    this->m_rightgrip->setObjectName("right");
-    this->m_rightgrip->setGeometry(QRect(0, 0, 10, 500));
-    this->m_rightgrip->setMinimumSize(QSize(10, 0));
-    this->m_rightgrip->setCursor(QCursor(Qt::SizeHorCursor));
-    this->m_rightgrip->setStyleSheet("background-color: rgb(255, 0, 127);");
-    this->m_rightgrip->setFrameShape(QFrame::NoFrame);
-    this->m_rightgrip->setFrameShadow(QFrame::Raised);
-}

+ 0 - 52
QFD/QFDWidget/CustomGrip.h

@@ -1,52 +0,0 @@
-#ifndef CUSTOMGRIP_H
-#define CUSTOMGRIP_H
-
-#include <QFrame>
-#include <QHBoxLayout>
-
-class Widgets;
-
-class CustomGrip : public QWidget
-{
-    Q_OBJECT
-public:
-    explicit CustomGrip(QWidget *parent, Qt::Edge positon, bool disableColor = false);
-
-    QPoint mousePos;
-
-private:
-    Widgets *wi;
-
-    // QWidget interface
-protected:
-    void mouseReleaseEvent(QMouseEvent *event) Q_DECL_OVERRIDE;
-    void resizeEvent(QResizeEvent *event) Q_DECL_OVERRIDE;
-    bool eventFilter(QObject *watched, QEvent *event) Q_DECL_OVERRIDE;
-};
-
-class Widgets : public QObject
-{
-public:
-    Widgets(QObject *parent = nullptr);
-
-    void top(QWidget *form);
-    void bottom(QWidget *form);
-    void left(QWidget *form);
-    void right(QWidget *form);
-
-    QFrame *m_containerTop;
-    QHBoxLayout *m_topLayout;
-    QFrame *m_topLeft;
-    QFrame *m_top;
-    QFrame *m_topRight;
-
-    QFrame *m_containerBottom;
-    QHBoxLayout *m_bottomLayout;
-    QFrame *m_bottomLeft;
-    QFrame *m_bottom;
-    QFrame *m_bottomRight;
-
-    QFrame *m_leftgrip;
-    QFrame *m_rightgrip;
-};
-#endif  // CUSTOMGRIP_H

+ 0 - 359
QFD/QFDWidget/PatternCodeLock.cpp

@@ -1,359 +0,0 @@
-#include "PatternCodeLock.h"
-#include <QPainter>
-#include <QPainterPath>
-#include <QPaintEvent>
-
-PatternCodeLockWidget::PatternCodeLockWidget(int numberOfEachRowAndCol, QWidget *parent)
-    : QWidget(parent), numberOfEachRowAndCol(numberOfEachRowAndCol)
-{
-    setMouseTracking(true);
-    setMinimumSize(400, 400);
-
-    for (int i = 0; i < numberOfEachRowAndCol; ++i) {
-        for (int j = 0; j < numberOfEachRowAndCol; ++j) {
-            circularStateList << CircularState::normal;
-            smartCircularRectList << QRect();
-        }
-    }
-
-    connect(&hoverTimer, &QTimer::timeout, this, &PatternCodeLockWidget::onHoverTimer);
-    hoverTimer.setInterval(40);
-}
-
-PatternCodeLockWidget::~PatternCodeLockWidget() { }
-
-void PatternCodeLockWidget::paintEvent(QPaintEvent *event)
-{
-    QPainter painter(this);
-    painter.setRenderHint(QPainter::Antialiasing, true);
-    const auto rect = event->rect();
-    painter.fillRect(rect, QColor("#1D1D1D"));
-
-    auto width          = rect.width();
-    auto height         = rect.height();
-    auto sideLength     = std::min(width, height) - 20;
-    auto halfSideLength = sideLength / 2;
-
-    QRect drawZoneRect = QRect(-halfSideLength, -halfSideLength, sideLength, sideLength);
-    drawZoneRect.translate(rect.center());
-
-    painter.save();
-    painter.setPen(QPen(QBrush("#141414"), 5));
-    painter.drawRoundedRect(drawZoneRect, 12, 12);
-    painter.restore();
-
-    radiu = sideLength / (1 + 1 + numberOfEachRowAndCol * 2 + (numberOfEachRowAndCol - 1) * 3);
-
-    bool mustUpdateCircularRect = isUpdateSmartCircularRect;
-    for (int i = 0, listIndex = 0; i < numberOfEachRowAndCol; ++i) {
-        for (int j = 0; j < numberOfEachRowAndCol; ++j, ++listIndex) {
-            QPoint circularCenter =
-                    drawZoneRect.topLeft() + QPoint(2 * radiu + i * 5 * radiu, 2 * radiu + j * 5 * radiu);
-            if (setList.contains(listIndex)) {
-                if (PatternCodeLockSetUpState == PatternCodeLockState::setting
-                    || PatternCodeLockSetUpState == PatternCodeLockState::setted_valid) {
-                    painter.setPen(QPen(QBrush(QColor("#00FF80")), 3));
-                } else {
-                    painter.setPen(QPen(QBrush(QColor("#FE4C40")), 3));
-                }
-            } else {
-                painter.setPen(QPen(QBrush(Qt::white), 3));
-            }
-
-            if (listIndex == lastHoverIndex && hoverTimer.isActive()
-                && PatternCodeLockSetUpState == PatternCodeLockState::setting) {
-                painter.drawEllipse(circularCenter, radiu + currentchangeLength, radiu + currentchangeLength);
-            } else {
-                painter.drawEllipse(circularCenter, radiu, radiu);
-            }
-
-            if (mustUpdateCircularRect) {
-                QRect newCircularRect = QRect(-radiu / 2, -radiu / 2, radiu, radiu);
-                newCircularRect.translate(circularCenter);
-                smartCircularRectList[listIndex] = newCircularRect;
-            }
-
-            painter.save();
-            switch (circularStateList.at(listIndex)) {
-            case CircularState::normal: {
-                if (listIndex == lastHoverIndex && hoverTimer.isActive()
-                    && PatternCodeLockSetUpState == PatternCodeLockState::notSet) {
-                    painter.setBrush(Qt::white);
-                    painter.setPen(Qt::transparent);
-                    painter.drawEllipse(circularCenter, static_cast<int>(radiu * 0.5 + currentchangeLength),
-                                        static_cast<int>(radiu * 0.5 + currentchangeLength));
-                } else {
-                    painter.setBrush(QColor("#888888"));
-                    painter.setPen(Qt::transparent);
-                    painter.drawEllipse(circularCenter, radiu / 2, radiu / 2);
-                }
-            } break;
-            case CircularState::hoverOnInnerSamrtCircular: {
-                painter.setPen(Qt::transparent);
-
-                if (PatternCodeLockSetUpState == PatternCodeLockState::notSet) {
-                    painter.setBrush(Qt::white);
-                    if (hoverTimer.isActive()) {
-                        painter.drawEllipse(circularCenter, static_cast<int>(radiu * 0.5 + currentchangeLength),
-                                            static_cast<int>(radiu * 0.5 + currentchangeLength));
-                    } else {
-                        painter.drawEllipse(circularCenter, static_cast<int>(radiu * 0.7),
-                                            static_cast<int>(radiu * 0.7));
-                    }
-                } else {
-                    if (PatternCodeLockSetUpState == PatternCodeLockState::setting
-                        || PatternCodeLockSetUpState == PatternCodeLockState::setted_valid) {
-                        painter.setBrush(QColor("#00FF80"));
-                    } else {
-                        painter.setBrush(QColor("#FE4C40"));
-                    }
-                    painter.drawEllipse(circularCenter, static_cast<int>(radiu * 0.7), static_cast<int>(radiu * 0.7));
-                }
-            } break;
-            }
-            painter.restore();
-        }
-    }
-
-    if (PatternCodeLockSetUpState != PatternCodeLockState::notSet) {
-        painter.setBrush(Qt::transparent);
-        if (PatternCodeLockSetUpState == PatternCodeLockState::setted_invalid) {
-            painter.setPen(QPen(QBrush(QColor("#FE4C40")), 7, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin));
-        } else {
-            painter.setPen(QPen(QBrush(QColor("#00FF80")), 7, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin));
-        }
-        int setListSize = setList.size();
-        for (int i = 0; i < setListSize; ++i) {
-            if (i < (setListSize - 1)) {
-                painter.drawLine(smartCircularRectList.at(setList.at(i)).center(),
-                                 smartCircularRectList.at(setList.at(i + 1)).center());
-            }
-        }
-
-        if (PatternCodeLockSetUpState == PatternCodeLockState::setting) {
-            painter.drawLine(smartCircularRectList.at(setList.last()).center(), settingMousPos);
-        }
-    }
-
-    if (mustUpdateCircularRect)
-        isUpdateSmartCircularRect = false;
-}
-
-void PatternCodeLockWidget::resizeEvent(QResizeEvent *event)
-{
-    isUpdateSmartCircularRect = true;
-    QWidget::resizeEvent(event);
-}
-
-void PatternCodeLockWidget::mouseMoveEvent(QMouseEvent *event)
-{
-    auto pos              = event->pos();
-    int currentHoverIndex = -1;
-    if (PatternCodeLockSetUpState == PatternCodeLockState::notSet) {
-        bool mouseInSomeSmartCircular { false };
-        for (int i = 0; i < smartCircularRectList.size(); ++i) {
-            if (smartCircularRectList.at(i).contains(pos)) {
-                circularStateList[i]     = CircularState::hoverOnInnerSamrtCircular;
-                currentHoverIndex        = i;
-                mouseInSomeSmartCircular = true;
-            } else {
-                circularStateList[i] = CircularState::normal;
-            }
-        }
-
-        if (mouseInSomeSmartCircular) {
-            lastHoverIndex = currentHoverIndex;
-            setCursor(Qt::PointingHandCursor);
-        } else {
-            setCursor(Qt::ArrowCursor);
-        }
-
-        if (!hoverTimer.isActive()) {
-            if (this->mouseInSomeSmartCircular != mouseInSomeSmartCircular)  //鼠标进入了某个小圆或从小圆出来
-            {
-                this->mouseInSomeSmartCircular = mouseInSomeSmartCircular;
-                if (this->mouseInSomeSmartCircular) {
-                    currentchangeLength = 0;
-                } else {
-                    currentchangeLength = radiu * 0.2;
-                }
-                hoverTimer.start();
-            }
-        }
-    } else if (PatternCodeLockSetUpState == PatternCodeLockState::setting) {
-        bool mouseInSomeSmartCircular { false };
-        for (int i = 0; i < smartCircularRectList.size(); ++i) {
-            if (smartCircularRectList.at(i).contains(pos)) {
-                if (!setList.contains(i)) {
-                    setList << i;
-                    circularStateList[i] = CircularState::hoverOnInnerSamrtCircular;
-                    currentHoverIndex    = i;
-                }
-                mouseInSomeSmartCircular = true;
-            }
-        }
-
-        if (this->mouseInSomeSmartCircular != mouseInSomeSmartCircular) {
-            this->mouseInSomeSmartCircular = mouseInSomeSmartCircular;
-            if (mouseInSomeSmartCircular) {
-                lastHoverIndex = currentHoverIndex;
-                setCursor(Qt::PointingHandCursor);
-
-                if (!hoverTimer.isActive()) {
-                    currentchangeLength = 0;
-                    hoverTimer.start();
-                }
-            } else {
-                setCursor(Qt::ArrowCursor);
-            }
-        }
-
-        settingMousPos = pos;
-    }
-    update();
-    QWidget::mouseMoveEvent(event);
-}
-
-void PatternCodeLockWidget::onHoverTimer()
-{
-    if (PatternCodeLockSetUpState == PatternCodeLockState::notSet) {
-        if (mouseInSomeSmartCircular) {
-            if (currentchangeLength >= (radiu * 0.2)) {
-                hoverTimer.stop();
-            }
-            currentchangeLength += 2;
-        } else {
-            if (currentchangeLength <= -(radiu * 0.1)) {
-                hoverTimer.stop();
-            }
-            currentchangeLength -= 2;
-        }
-    } else if (PatternCodeLockSetUpState == PatternCodeLockState::setting) {
-        if (currentchangeLength >= (radiu * 0.1)) {
-            hoverTimer.stop();
-        }
-        currentchangeLength += 2;
-    }
-    update();
-}
-
-void PatternCodeLockWidget::mousePressEvent(QMouseEvent *event)
-{
-    if (lastHoverIndex != -1) {
-        if (PatternCodeLockSetUpState == PatternCodeLockState::notSet)  //开始设置
-        {
-            PatternCodeLockSetUpState = PatternCodeLockState::setting;
-            setList << lastHoverIndex;
-            circularStateList[lastHoverIndex] = CircularState::hoverOnInnerSamrtCircular;
-            settingMousPos                    = event->pos();
-            currentchangeLength               = 0;
-            hoverTimer.start();
-            update();
-        }
-    }
-
-    QWidget::mousePressEvent(event);
-}
-
-void PatternCodeLockWidget::mouseDoubleClickEvent(QMouseEvent *event)
-{
-    if (PatternCodeLockSetUpState == PatternCodeLockState::setting && !mouseInSomeSmartCircular) {
-        if (setList.size() < 4) {
-            PatternCodeLockSetUpState = PatternCodeLockState::setted_invalid;
-            emit setPassword("4位以下的无效密码");
-        } else {
-            PatternCodeLockSetUpState = PatternCodeLockState::setted_valid;
-            emit setPassword(getPassWord());
-        }
-        update();
-    }
-
-    QWidget::mouseDoubleClickEvent(event);
-}
-
-QString PatternCodeLockWidget::getPassWord()
-{
-    QString psw;
-    for (const int &value : setList) {
-        psw.append(QString::number(value, 16));
-    }
-
-    return psw;
-}
-
-int PatternCodeLockWidget::getNumberOfEachRowAndCol() const
-{
-    return numberOfEachRowAndCol;
-}
-
-void PatternCodeLockWidget::setNumberOfEachRowAndCol(int newNumberOfEachRowAndCol)
-{
-    if (newNumberOfEachRowAndCol > 1 && newNumberOfEachRowAndCol < 10) {
-        reset();
-        circularStateList.clear();
-        smartCircularRectList.clear();
-        numberOfEachRowAndCol = newNumberOfEachRowAndCol;
-        for (int i = 0; i < numberOfEachRowAndCol; ++i) {
-            for (int j = 0; j < numberOfEachRowAndCol; ++j) {
-                circularStateList << CircularState::normal;
-                smartCircularRectList << QRect();
-            }
-        }
-        update();
-    }
-}
-
-void PatternCodeLockWidget::reset()
-{
-    PatternCodeLockSetUpState = PatternCodeLockState::notSet;
-    std::fill(circularStateList.begin(), circularStateList.end(), CircularState::normal);
-    lastHoverIndex = -1;
-    hoverTimer.stop();
-    currentchangeLength       = 0;
-    isUpdateSmartCircularRect = true;
-    mouseInSomeSmartCircular  = false;
-    setList.clear();
-    settingMousPos = QPoint(0, 0);
-    update();
-}
-
-/************************ demo **************************************
-#include <QVBoxLayout>
-#include <QHBoxLayout>
-#include <QLabel>
-#include <QSpinBox>
-#include <QLineEdit>
-#include <QPushButton>
-
-int main(int argc, char *argv[])
-{
-    QApplication a(argc, argv);
-
-    PatternCodeLockWidget *w = new PatternCodeLockWidget(4);
-
-    QWidget widget;
-    auto hb = new QHBoxLayout;
-    hb->addWidget(new QLabel("设置的密码:"));
-    auto lineEdit = new QLineEdit;
-    hb->addWidget(lineEdit);
-    hb->addWidget(new QLabel("设置行列数:"));
-    auto spinbox = new QSpinBox;
-    spinbox->setRange(2, 9);
-    spinbox->setMinimumWidth(100);
-    spinbox->setValue(w->getNumberOfEachRowAndCol());
-    hb->addWidget(spinbox);
-    auto btn = new QPushButton("还原");
-    hb->addWidget(btn);
-    auto vb = new QVBoxLayout;
-    vb->addWidget(w, 5);
-    vb->addLayout(hb, 1);
-    widget.setLayout(vb);
-    QObject::connect(w, &PatternCodeLockWidget::setPassword, lineEdit, &QLineEdit::setText);
-    QObject::connect(spinbox, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged), w,
-                     &PatternCodeLockWidget::setNumberOfEachRowAndCol);
-    QObject::connect(btn, &QPushButton::clicked, w, &PatternCodeLockWidget::reset);
-
-    widget.show();
-    return a.exec();
-}
-*********************************************************************************/

+ 0 - 63
QFD/QFDWidget/PatternCodeLock.h

@@ -1,63 +0,0 @@
-#ifndef PATTERNCODELOCK_H
-#define PATTERNCODELOCK_H
-
-#include <QWidget>
-#include <QTimer>
-
-/**
- * @brief 图案密码锁,手机锁屏界面
- */
-class PatternCodeLockWidget : public QWidget
-{
-    Q_OBJECT
-
-public:
-    PatternCodeLockWidget(int numberOfEachRowAndCol, QWidget *parent = nullptr);
-    ~PatternCodeLockWidget() override;
-    void reset();
-
-    int getNumberOfEachRowAndCol() const;
-    void setNumberOfEachRowAndCol(int newNumberOfEachRowAndCol);
-
-signals:
-    void setPassword(QString);
-
-protected:
-    void paintEvent(QPaintEvent *event) override;
-    void resizeEvent(QResizeEvent *event) override;
-    void mouseMoveEvent(QMouseEvent *event) override;
-    void mousePressEvent(QMouseEvent *event) override;
-    void mouseDoubleClickEvent(QMouseEvent *event) override;
-
-private:
-    void onHoverTimer();
-    QString getPassWord();
-
-    enum class CircularState
-    {
-        normal,                    //正常
-        hoverOnInnerSamrtCircular  //鼠标悬浮在中间的小圆上面
-    };
-
-    enum class PatternCodeLockState
-    {
-        notSet,
-        setting,
-        setted_valid,   //有效
-        setted_invalid  //无效
-    };
-
-    int numberOfEachRowAndCol;
-    PatternCodeLockState PatternCodeLockSetUpState { PatternCodeLockState::notSet };
-    QList<CircularState> circularStateList;
-    QList<QRect> smartCircularRectList;
-    bool isUpdateSmartCircularRect { true };
-    QTimer hoverTimer;
-    int radiu;
-    int lastHoverIndex { -1 };
-    int currentchangeLength;
-    bool mouseInSomeSmartCircular { false };
-    QList<int> setList;
-    QPoint settingMousPos;
-};
-#endif  // PATTERNCODELOCK_H

+ 0 - 41
QFD/QFDWidget/ProInfoPopWidget.cpp

@@ -1,41 +0,0 @@
-#include "ProInfoPopWidget.h"
-#include "UIObject.h"
-#include <QVBoxLayout>
-#include <QDebug>
-#include <cmath>
-
-ProInfoPopWidget::ProInfoPopWidget(QWidget *parent) : ToolMenuWidget(parent)
-{
-    setToolTip("专家信息");
-
-    this->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
-    this->setIcon(QIcon(":/res/userinfo.png"));
-    this->setStyleSheet(QString("QToolButton{border: 0px;}"));
-    initWidget();
-}
-
-ProInfoPopWidget::~ProInfoPopWidget() { }
-
-void ProInfoPopWidget::updatePopMessage(const QString &message)
-{
-    m_textEdit->clear();
-    m_textEdit->setPlainText(message);
-}
-
-void ProInfoPopWidget::initWidget()
-{
-    setTranslucentBackground();
-
-    m_containWidget->setObjectName("containWidget");
-    QVBoxLayout *vlay = new QVBoxLayout;
-    vlay->setSpacing(0);
-    vlay->setMargin(0);
-    m_textEdit = new QPlainTextEdit(m_containWidget);
-    m_textEdit->setFixedSize(150, 120);
-    vlay->addWidget(m_textEdit);
-
-    m_textEdit->setCursor(Qt::PointingHandCursor);
-    m_containWidget->setLayout(vlay);
-    m_textEdit->setReadOnly(true);
-    m_textEdit->setPlainText("9527是华府一等家奴");
-}

+ 0 - 28
QFD/QFDWidget/ProInfoPopWidget.h

@@ -1,28 +0,0 @@
-#ifndef PROINFOPOPWIDGET_H
-#define PROINFOPOPWIDGET_H
-
-#include "ToolMenuWidget.h"
-#include <QPlainTextEdit>
-
-/**
- * @brief 专家信息详细弹出窗口
- */
-class ProInfoPopWidget : public ToolMenuWidget
-{
-    Q_OBJECT
-public:
-    explicit ProInfoPopWidget(QWidget *parent = nullptr);
-    ~ProInfoPopWidget();
-
-    void updatePopMessage(const QString &message);
-
-protected:
-    /*!
-     * Create all widget in layout.
-     */
-    void initWidget();
-
-    QPlainTextEdit *m_textEdit;
-};
-
-#endif  // PROINFOPOPWIDGET_H

+ 0 - 461
QFD/QFDWidget/QFDApp.cpp

@@ -1,461 +0,0 @@
-#include "QFDApp.h"
-#include "ui_QFDApp.h"
-#include "CustomGrip.h"
-
-#include <QPropertyAnimation>
-#include <QTimer>
-#include <QDebug>
-#include <QParallelAnimationGroup>
-
-class Settings
-{
-public:
-    static bool ENABLE_CUSTOM_TITLE_BAR;
-    static int MENU_WIDTH;
-    static int LEFT_BOX_WIDTH;
-    static int RIGHT_BOX_WIDTH;
-    static int TIME_ANIMATION;
-
-    // BTNS LEFT AND RIGHT BOX COLORS
-    static QString BTN_LEFT_BOX_COLOR;
-    static QString BTN_RIGHT_BOX_COLOR;
-
-    // MENU SELECTED STYLESHEET
-    static QString MENU_SELECTED_STYLESHEET;
-};
-
-bool Settings::ENABLE_CUSTOM_TITLE_BAR = true;
-int Settings::MENU_WIDTH               = 240;
-int Settings::LEFT_BOX_WIDTH           = 240;
-int Settings::RIGHT_BOX_WIDTH          = 240;
-int Settings::TIME_ANIMATION           = 500;
-QString Settings::BTN_LEFT_BOX_COLOR   = "background-color: rgb(44, 49, 58);";
-QString Settings::BTN_RIGHT_BOX_COLOR  = "background-color: #ff79c6;";
-QString Settings::MENU_SELECTED_STYLESHEET =
-        "border-left: 22px solid qlineargradient(spread:pad, x1:0.034, y1:0, x2:0.216, y2:0, stop:0.499 rgba(255, 121, "
-        "198, 255), stop:0.5 rgba(85, 170, 255, 0));  background-color: rgb(40, 44, 52);";
-
-static bool GLOBAL_STATE     = false;
-static bool GLOBAL_TITLE_BAR = true;
-
-QFDApp::QFDApp(QWidget *parent) : QMainWindow(parent), ui(new Ui::QFDApp)
-{
-    ui->setupUi(this);
-
-    init();
-}
-
-QFDApp::~QFDApp()
-{
-    delete ui;
-}
-
-/**
- * @brief TOGGLE MENU
- * @param checked
- */
-void QFDApp::toggleMenu()
-{
-    // GET WIDTH
-    int width = ui->leftMenuBg->width();
-    //        qDebug() << width;
-    int maxExtend     = Settings::MENU_WIDTH;
-    int widthExtended = 60;  // default
-
-    // SET MAX WIDTH
-    if (width == 60) {
-        widthExtended = maxExtend;
-    }
-
-    QPropertyAnimation *animation = new QPropertyAnimation(ui->leftMenuBg, QByteArray("minimumWidth"));
-    animation->setDuration(Settings::TIME_ANIMATION);
-    animation->setStartValue(width);
-    animation->setEndValue(widthExtended);
-    animation->setEasingCurve(QEasingCurve::InOutQuart);
-    animation->start(QAbstractAnimation::DeleteWhenStopped);
-}
-
-void QFDApp::maximizeRestore()
-{
-    if (!GLOBAL_STATE) {
-        this->showMaximized();
-        GLOBAL_STATE = true;
-        ui->appMargins->setContentsMargins(0, 0, 0, 0);
-        ui->maximizeRestoreAppBtn->setToolTip("向下还原");
-        ui->maximizeRestoreAppBtn->setIcon(QIcon(":/res/icons/icon_restore.png"));
-        ui->frame_size_grip->hide();
-        this->m_leftGrip->hide();
-        this->m_rightGrip->hide();
-        this->m_topGrip->hide();
-        this->m_bottomGrip->hide();
-    } else {
-        GLOBAL_STATE = false;
-        this->showNormal();
-        this->resize(this->width() + 1, this->height() + 1);
-        ui->appMargins->setContentsMargins(10, 10, 10, 10);
-        ui->maximizeRestoreAppBtn->setToolTip("最大化");
-        ui->maximizeRestoreAppBtn->setIcon(QIcon(":/res/icons/icon_maximize.png"));
-        ui->frame_size_grip->show();
-        this->m_leftGrip->show();
-        this->m_rightGrip->show();
-        this->m_topGrip->show();
-        this->m_bottomGrip->show();
-    }
-}
-
-void QFDApp::leftMenuButtonClick()
-{
-    QPushButton *btn = qobject_cast<QPushButton *>(sender());
-    QString btnName  = btn->objectName();
-
-    if (btnName == "btn_home") {
-        ui->stackedWidget->setCurrentWidget(ui->home);
-        this->resetStyle(btnName);
-        btn->setStyleSheet(this->selectMenu(btn->styleSheet()));
-    }
-
-    if (btnName == "btn_widgets") {
-        ui->stackedWidget->setCurrentWidget(ui->widgets);
-        this->resetStyle(btnName);
-        btn->setStyleSheet(this->selectMenu(btn->styleSheet()));
-    }
-
-    if (btnName == "btn_new") {
-        ui->stackedWidget->setCurrentWidget(ui->new_page);
-        this->resetStyle(btnName);
-        btn->setStyleSheet(this->selectMenu(btn->styleSheet()));
-    }
-
-    if (btnName == "btn_save") {
-        qDebug() << "Save BTN clicked!";
-    }
-    qDebug() << "Button " + btnName + " clicked!";
-}
-
-void QFDApp::openCloseLeftBox()
-{
-    // GET WIDTH
-    int width         = ui->extraLeftBox->width();
-    int widthRightBox = ui->extraRightBox->width();
-    //    int maxExtend     = Settings::LEFT_BOX_WIDTH;
-    QString color = Settings::BTN_LEFT_BOX_COLOR;
-    //    int standard      = 0;
-
-    // GET BTN STYLE
-    QString style = ui->toggleLeftBox->styleSheet();
-
-    // SET MAX WIDTH
-    if (width == 0) {
-        // SELECT BTN
-        ui->toggleLeftBox->setStyleSheet(style + color);
-        if (widthRightBox != 0) {
-            style = ui->settingsTopBtn->styleSheet();
-            ui->settingsTopBtn->setStyleSheet(style.replace(Settings::BTN_LEFT_BOX_COLOR, ""));
-        }
-    } else {
-        // RESET BTN
-        ui->toggleLeftBox->setStyleSheet(style.replace(color, ""));
-    }
-
-    this->startBoxAnimation(width, widthRightBox, "left");
-}
-
-void QFDApp::openCloseRightBox()
-{  // GET WIDTH
-    int width        = ui->extraRightBox->width();
-    int widthLeftBox = ui->extraLeftBox->width();
-    int maxExtend    = Settings::RIGHT_BOX_WIDTH;
-    QString color    = Settings::BTN_RIGHT_BOX_COLOR;
-    int standard     = 0;
-
-    // GET BTN STYLE
-    QString style = ui->settingsTopBtn->styleSheet();
-
-    // SET MAX WIDTH
-    if (width == 0) {
-        // SELECT BTN
-        ui->settingsTopBtn->setStyleSheet(style + color);
-        if (widthLeftBox != 0) {
-            style = ui->toggleLeftBox->styleSheet();
-            ui->toggleLeftBox->setStyleSheet(style.replace(Settings::BTN_LEFT_BOX_COLOR, ""));
-        }
-    } else {
-        // RESET BTN
-        ui->settingsTopBtn->setStyleSheet(style.replace(color, ""));
-    }
-
-    this->startBoxAnimation(widthLeftBox, width, "right");
-}
-
-void QFDApp::init()
-{
-    // USE CUSTOM TITLE BAR | USE AS "False" FOR MAC OR LINUX
-    Settings::ENABLE_CUSTOM_TITLE_BAR = true;
-
-    // APP NAME
-    QString title       = "QFD - 专家决策软件";
-    QString description = "QFD APP - Dracula主题风格.";
-    this->setWindowTitle(title);
-    ui->titleRightInfo->setText(description);
-
-    // TOGGLE MENU
-    connect(ui->toggleButton, &QPushButton::clicked, this, &QFDApp::toggleMenu);
-    uiDefinitions();
-
-    // QTableWidget PARAMETERS
-    ui->tableWidget->horizontalHeader()->setSectionResizeMode(QHeaderView::Stretch);
-
-    // LEFT MENUS
-    connect(ui->btn_home, &QPushButton::clicked, this, &QFDApp::leftMenuButtonClick);
-    connect(ui->btn_widgets, &QPushButton::clicked, this, &QFDApp::leftMenuButtonClick);
-    connect(ui->btn_new, &QPushButton::clicked, this, &QFDApp::leftMenuButtonClick);
-    connect(ui->btn_save, &QPushButton::clicked, this, &QFDApp::leftMenuButtonClick);
-
-    // EXTRA LEFT BOX
-    connect(ui->toggleLeftBox, &QPushButton::clicked, this, &QFDApp::openCloseLeftBox);
-    connect(ui->extraCloseColumnBtn, &QPushButton::clicked, this, &QFDApp::openCloseLeftBox);
-
-    // EXTRA RIGHT BOX
-    connect(ui->settingsTopBtn, &QPushButton::clicked, this, &QFDApp::openCloseRightBox);
-
-    // SET CUSTOM THEME
-    bool useCustomTheme = false;
-    QString themeFile   = "themes\\py_dracula_light.qss";
-
-    // SET THEME AND HACKS
-    if (useCustomTheme) {
-        // LOAD AND APPLY STYLE
-        this->loadTheme(themeFile, true);
-
-        // SET HACKS
-        this->setThemeHack();
-    }
-
-    // SET HOME PAGE AND SELECT MENU
-
-    ui->stackedWidget->setCurrentWidget(ui->home);
-    ui->btn_home->setStyleSheet(this->selectMenu(ui->btn_home->styleSheet()));
-}
-
-void QFDApp::loadTheme(const QString &file, bool useCustomTheme)
-{
-    if (useCustomTheme) {
-        QFile qssFile(file);
-        if (qssFile.open(QIODevice::ReadOnly)) {
-            QTextStream in(&qssFile);
-            in.setCodec("UTF-8");
-            this->setStyle(nullptr);
-            this->setStyleSheet(in.readAll());
-            qssFile.close();
-        }
-    }
-}
-
-void QFDApp::setThemeHack()
-{
-    Settings::BTN_LEFT_BOX_COLOR  = "background-color: #495474;";
-    Settings::BTN_RIGHT_BOX_COLOR = "background-color: #495474;";
-    Settings::MENU_SELECTED_STYLESHEET =
-            "border-left: 22px solid qlineargradient(spread:pad, x1:0.034, y1:0, x2:0.216, y2:0, stop:0.499 rgba(255, "
-            "121, 198, 255), stop:0.5 rgba(85, 170, 255, 0)); background-color: #566388;";
-
-    // SET MANUAL STYLES
-    ui->lineEdit->setStyleSheet("background-color: #6272a4;");
-    ui->pushButton->setStyleSheet("background-color: #6272a4;");
-    ui->plainTextEdit->setStyleSheet("background-color: #6272a4;");
-    ui->tableWidget->setStyleSheet(
-            "QScrollBar:vertical { background: #6272a4; } QScrollBar:horizontal { background: #6272a4; }");
-    ui->scrollArea->setStyleSheet(
-            "QScrollBar:vertical { background: #6272a4; } QScrollBar:horizontal { background: #6272a4; }");
-    ui->comboBox->setStyleSheet("background-color: #6272a4;");
-    ui->horizontalScrollBar->setStyleSheet("background-color: #6272a4;");
-    ui->verticalScrollBar->setStyleSheet("background-color: #6272a4;");
-    ui->commandLinkButton->setStyleSheet("color: #ff79c6;");
-}
-
-void QFDApp::uiDefinitions()
-{
-    ui->settingsTopBtn->setToolTip("右侧设置");
-    ui->minimizeAppBtn->setToolTip("最小化");
-    ui->maximizeRestoreAppBtn->setToolTip("最大化");
-    ui->closeAppBtn->setToolTip("关闭");
-    ui->toggleLeftBox->setToolTip("设置");
-
-    ui->titleRightInfo->installEventFilter(this);
-
-    if (Settings::ENABLE_CUSTOM_TITLE_BAR) {
-        // STANDARD TITLE BAR
-        this->setWindowFlags(Qt::FramelessWindowHint);
-        this->setAttribute(Qt::WA_TranslucentBackground);
-
-        // CUSTOM GRIPS
-        this->m_leftGrip   = new CustomGrip(this, Qt::LeftEdge, true);
-        this->m_rightGrip  = new CustomGrip(this, Qt::RightEdge, true);
-        this->m_topGrip    = new CustomGrip(this, Qt::TopEdge, true);
-        this->m_bottomGrip = new CustomGrip(this, Qt::BottomEdge, true);
-    } else {
-        ui->appMargins->setContentsMargins(0, 0, 0, 0);
-        ui->minimizeAppBtn->hide();
-        ui->maximizeRestoreAppBtn->hide();
-        ui->closeAppBtn->hide();
-        ui->frame_size_grip->hide();
-    }
-
-    // DROP SHADOW
-    this->shadow = new QGraphicsDropShadowEffect(this);
-    this->shadow->setBlurRadius(17);
-    this->shadow->setXOffset(0);
-    this->shadow->setYOffset(0);
-    this->shadow->setColor(QColor(0, 0, 0, 150));
-    ui->bgApp->setGraphicsEffect(this->shadow);
-
-    // RESIZE WINDOW
-    this->sizegrip = new QSizeGrip(ui->frame_size_grip);
-    this->sizegrip->setStyleSheet("width: 20px; height: 20px; margin 0px; padding: 0px;");
-
-    // MINIMIZE
-    connect(ui->minimizeAppBtn, &QPushButton::clicked, this, &QFDApp::showMinimized);
-    // MAXIMIZE/RESTORE
-    connect(ui->maximizeRestoreAppBtn, &QPushButton::clicked, this, &QFDApp::maximizeRestore);
-    // CLOSE APPLICATION
-    connect(ui->closeAppBtn, &QPushButton::clicked, this, &QFDApp::close);
-}
-
-bool QFDApp::returStatus()
-{
-    return GLOBAL_STATE;
-}
-
-void QFDApp::setStatus(bool status)
-{
-    GLOBAL_STATE = status;
-}
-
-QString QFDApp::selectMenu(const QString &getStyle)
-{
-    QString select = getStyle + Settings::MENU_SELECTED_STYLESHEET;
-    return select;
-}
-
-QString QFDApp::deselectMenu(const QString &getStyle)
-{
-    QString style    = getStyle;
-    QString deselect = style.replace(Settings::MENU_SELECTED_STYLESHEET, "");
-    return deselect;
-}
-
-/**
- * @brief START SELECTION
- * @param widget
- */
-void QFDApp::selectStandardMenu(const QString &widget)
-{
-    for (auto w : ui->topMenu->findChildren<QPushButton *>()) {
-        if (w->objectName() != widget) {
-            w->setStyleSheet(this->selectMenu(w->styleSheet()));
-        }
-    }
-}
-
-/**
- * @brief RESET SELECTION
- * @param widget
- */
-void QFDApp::resetStyle(const QString &widget)
-{
-    for (auto w : ui->topMenu->findChildren<QPushButton *>()) {
-        if (w->objectName() != widget) {
-            w->setStyleSheet(this->deselectMenu(w->styleSheet()));
-        }
-    }
-}
-
-void QFDApp::resizeGrips()
-{
-    if (Settings::ENABLE_CUSTOM_TITLE_BAR) {
-        this->m_leftGrip->setGeometry(0, 10, 10, this->height());
-        this->m_rightGrip->setGeometry(this->width() - 10, 10, 10, this->height());
-        this->m_topGrip->setGeometry(0, 0, this->width(), 10);
-        this->m_bottomGrip->setGeometry(0, this->height() - 10, this->width(), 10);
-    }
-}
-
-void QFDApp::startBoxAnimation(int leftBoxWidth, int rightBoxWidth, const QString &direction)
-{
-    int rightWidth = 0;
-    int leftWidth  = 0;
-
-    // Check values
-    if (leftBoxWidth == 0 && direction == "left") {
-        leftWidth = 240;
-    }
-
-    if (rightBoxWidth == 0 && direction == "right") {
-        rightWidth = 240;
-    }
-
-    // ANIMATION LEFT BOX
-    QPropertyAnimation *leftBox = new QPropertyAnimation(ui->extraLeftBox, QByteArray("minimumWidth"));
-    leftBox->setDuration(Settings::TIME_ANIMATION);
-    leftBox->setStartValue(leftBoxWidth);
-    leftBox->setEndValue(leftWidth);
-    leftBox->setEasingCurve(QEasingCurve::InOutQuart);
-
-    // ANIMATION RIGHT BOX
-    QPropertyAnimation *rightBox = new QPropertyAnimation(ui->extraRightBox, QByteArray("minimumWidth"));
-    rightBox->setDuration(Settings::TIME_ANIMATION);
-    rightBox->setStartValue(rightBoxWidth);
-    rightBox->setEndValue(rightWidth);
-    rightBox->setEasingCurve(QEasingCurve::InOutQuart);
-
-    // GROUP ANIMATION
-    QParallelAnimationGroup *group = new QParallelAnimationGroup(this);
-    group->addAnimation(leftBox);
-    group->addAnimation(rightBox);
-    group->start(QAbstractAnimation::DeleteWhenStopped);
-}
-
-void QFDApp::mousePressEvent(QMouseEvent *event)
-{
-    // SET DRAG POS WINDOW
-    this->dragPos = event->globalPos();
-
-    // PRINT MOUSE EVENTS
-    if (event->buttons() == Qt::LeftButton) {
-        qDebug() << "Mouse click: LEFT CLICK";
-    } else if (event->buttons() == Qt::RightButton) {
-        qDebug() << "Mouse click: RIGHT CLICK";
-    }
-}
-
-void QFDApp::resizeEvent(QResizeEvent *event)
-{
-    resizeGrips();
-}
-
-bool QFDApp::eventFilter(QObject *watched, QEvent *event)
-{
-    if (watched == ui->titleRightInfo) {
-        if (event->type() == QEvent::MouseButtonDblClick) {
-            QTimer::singleShot(250, this, &QFDApp::maximizeRestore);
-            //            return true;
-        }
-
-        if (event->type() == QEvent::MouseMove) {
-            QMouseEvent *moveEvent = static_cast<QMouseEvent *>(event);
-            // IF MAXIMIZED CHANGE TO NORMAL
-            if (returStatus()) {
-                maximizeRestore();
-            }
-            // MOVE WINDOW
-            if (moveEvent->buttons() == Qt::LeftButton) {
-                this->move(this->pos() + moveEvent->globalPos() - this->dragPos);
-                this->dragPos = moveEvent->globalPos();
-                //                event->accept();
-                //                return true;
-            }
-        }
-    }
-
-    return QMainWindow::eventFilter(watched, event);
-}

+ 0 - 64
QFD/QFDWidget/QFDApp.h

@@ -1,64 +0,0 @@
-#ifndef QFDAPP_H
-#define QFDAPP_H
-
-#include <QMainWindow>
-#include <QGraphicsDropShadowEffect>
-#include <QSizeGrip>
-
-class CustomGrip;
-namespace Ui {
-class QFDApp;
-}
-
-class QFDApp : public QMainWindow
-{
-    Q_OBJECT
-
-public:
-    explicit QFDApp(QWidget *parent = nullptr);
-    ~QFDApp();
-
-private slots:
-    void toggleMenu();
-    void maximizeRestore();
-    void leftMenuButtonClick();
-    void openCloseLeftBox();
-    void openCloseRightBox();
-
-private:
-    Ui::QFDApp *ui;
-
-    QPoint dragPos;
-    CustomGrip *m_leftGrip;
-    CustomGrip *m_rightGrip;
-    CustomGrip *m_topGrip;
-    CustomGrip *m_bottomGrip;
-
-    QGraphicsDropShadowEffect *shadow;
-    QSizeGrip *sizegrip;
-
-    void init();
-    void loadTheme(const QString &file, bool useCustomTheme);
-    void setThemeHack();
-
-    /**
-     * @brief START - GUI DEFINITIONS
-     */
-    void uiDefinitions();
-    bool returStatus();
-    void setStatus(bool status);
-    QString selectMenu(const QString &getStyle);
-    QString deselectMenu(const QString &getStyle);
-    void selectStandardMenu(const QString &widget);
-    void resetStyle(const QString &widget);
-    void resizeGrips();
-    void startBoxAnimation(int leftBoxWidth, int rightBoxWidth, const QString &direction);
-
-    // QWidget interface
-protected:
-    void mousePressEvent(QMouseEvent *event) Q_DECL_OVERRIDE;
-    void resizeEvent(QResizeEvent *event) Q_DECL_OVERRIDE;
-    bool eventFilter(QObject *watched, QEvent *event) Q_DECL_OVERRIDE;
-};
-
-#endif  // QFDAPP_H

+ 0 - 2454
QFD/QFDWidget/QFDApp.ui

@@ -1,2454 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<ui version="4.0">
- <class>QFDApp</class>
- <widget class="QMainWindow" name="QFDApp">
-  <property name="geometry">
-   <rect>
-    <x>0</x>
-    <y>0</y>
-    <width>1280</width>
-    <height>720</height>
-   </rect>
-  </property>
-  <property name="windowTitle">
-   <string>MainWindow</string>
-  </property>
-  <widget class="QWidget" name="styleSheet">
-   <property name="styleSheet">
-    <string notr="true">/* /////////////////////////////////////////////////////////////////////////////////////////////////
-
-SET APP STYLESHEET - FULL STYLES HERE
-DARK THEME - DRACULA COLOR BASED
-
-///////////////////////////////////////////////////////////////////////////////////////////////// */
-
-QWidget{
-	color: rgb(221, 221, 221);
-	font: 10pt &quot;Segoe UI&quot;;
-}
-
-/* /////////////////////////////////////////////////////////////////////////////////////////////////
-Tooltip */
-QToolTip {
-	color: #ffffff;
-	background-color: rgba(33, 37, 43, 180);
-	border: 1px solid rgb(44, 49, 58);
-	background-image: none;
-	background-position: left center;
-    background-repeat: no-repeat;
-	border: none;
-	border-left: 2px solid rgb(255, 121, 198);
-	text-align: left;
-	padding-left: 8px;
-	margin: 0px;
-}
-
-/* /////////////////////////////////////////////////////////////////////////////////////////////////
-Bg App */
-#bgApp {	
-	background-color: rgb(40, 44, 52);
-	border: 1px solid rgb(44, 49, 58);
-}
-
-/* /////////////////////////////////////////////////////////////////////////////////////////////////
-Left Menu */
-#leftMenuBg {	
-	background-color: rgb(33, 37, 43);
-}
-#topLogo {
-	background-color: rgb(33, 37, 43);
-	background-image: url(:/res/logo32.png);
-	background-position: centered;
-	background-repeat: no-repeat;
-}
-#titleLeftApp { font: 63 12pt &quot;Segoe UI Semibold&quot;; }
-#titleLeftDescription { font: 8pt &quot;Segoe UI&quot;; color: rgb(189, 147, 249); }
-
-/* MENUS */
-#topMenu .QPushButton {	
-	background-position: left center;
-    background-repeat: no-repeat;
-	border: none;
-	border-left: 22px solid transparent;
-	background-color: transparent;
-	text-align: left;
-	padding-left: 44px;
-}
-#topMenu .QPushButton:hover {
-	background-color: rgb(40, 44, 52);
-}
-#topMenu .QPushButton:pressed {	
-	background-color: rgb(189, 147, 249);
-	color: rgb(255, 255, 255);
-}
-#bottomMenu .QPushButton {	
-	background-position: left center;
-    background-repeat: no-repeat;
-	border: none;
-	border-left: 20px solid transparent;
-	background-color:transparent;
-	text-align: left;
-	padding-left: 44px;
-}
-#bottomMenu .QPushButton:hover {
-	background-color: rgb(40, 44, 52);
-}
-#bottomMenu .QPushButton:pressed {	
-	background-color: rgb(189, 147, 249);
-	color: rgb(255, 255, 255);
-}
-#leftMenuFrame{
-	border-top: 3px solid rgb(44, 49, 58);
-}
-
-/* Toggle Button */
-#toggleButton {
-	background-position: left center;
-    background-repeat: no-repeat;
-	border: none;
-	border-left: 20px solid transparent;
-	background-color: rgb(37, 41, 48);
-	text-align: left;
-	padding-left: 44px;
-	color: rgb(113, 126, 149);
-}
-#toggleButton:hover {
-	background-color: rgb(40, 44, 52);
-}
-#toggleButton:pressed {
-	background-color: rgb(189, 147, 249);
-}
-
-/* Title Menu */
-#titleRightInfo { padding-left: 10px; }
-
-
-/* /////////////////////////////////////////////////////////////////////////////////////////////////
-Extra Tab */
-#extraLeftBox {	
-	background-color: rgb(44, 49, 58);
-}
-#extraTopBg{	
-	background-color: rgb(189, 147, 249)
-}
-
-/* Icon */
-#extraIcon {
-	background-position: center;
-	background-repeat: no-repeat;
-	background-image: url(:/res/icons/icon_settings.png);
-}
-
-/* Label */
-#extraLabel { color: rgb(255, 255, 255); }
-
-/* Btn Close */
-#extraCloseColumnBtn { background-color: rgba(255, 255, 255, 0); border: none;  border-radius: 5px; }
-#extraCloseColumnBtn:hover { background-color: rgb(196, 161, 249); border-style: solid; border-radius: 4px; }
-#extraCloseColumnBtn:pressed { background-color: rgb(180, 141, 238); border-style: solid; border-radius: 4px; }
-
-/* Extra Content */
-#extraContent{
-	border-top: 3px solid rgb(40, 44, 52);
-}
-
-/* Extra Top Menus */
-#extraTopMenu .QPushButton {
-background-position: left center;
-    background-repeat: no-repeat;
-	border: none;
-	border-left: 22px solid transparent;
-	background-color:transparent;
-	text-align: left;
-	padding-left: 44px;
-}
-#extraTopMenu .QPushButton:hover {
-	background-color: rgb(40, 44, 52);
-}
-#extraTopMenu .QPushButton:pressed {	
-	background-color: rgb(189, 147, 249);
-	color: rgb(255, 255, 255);
-}
-
-/* /////////////////////////////////////////////////////////////////////////////////////////////////
-Content App */
-#contentTopBg{	
-	background-color: rgb(33, 37, 43);
-}
-#contentBottom{
-	border-top: 3px solid rgb(44, 49, 58);
-}
-
-/* Top Buttons */
-#rightButtons .QPushButton { background-color: rgba(255, 255, 255, 0); border: none;  border-radius: 5px; }
-#rightButtons .QPushButton:hover { background-color: rgb(44, 49, 57); border-style: solid; border-radius: 4px; }
-#rightButtons .QPushButton:pressed { background-color: rgb(23, 26, 30); border-style: solid; border-radius: 4px; }
-
-/* Theme Settings */
-#extraRightBox { background-color: rgb(44, 49, 58); }
-#themeSettingsTopDetail { background-color: rgb(189, 147, 249); }
-
-/* Bottom Bar */
-#bottomBar { background-color: rgb(44, 49, 58); }
-#bottomBar QLabel { font-size: 11px; color: rgb(113, 126, 149); padding-left: 10px; padding-right: 10px; padding-bottom: 2px; }
-
-/* CONTENT SETTINGS */
-/* MENUS */
-#contentSettings .QPushButton {	
-	background-position: left center;
-    background-repeat: no-repeat;
-	border: none;
-	border-left: 22px solid transparent;
-	background-color:transparent;
-	text-align: left;
-	padding-left: 44px;
-}
-#contentSettings .QPushButton:hover {
-	background-color: rgb(40, 44, 52);
-}
-#contentSettings .QPushButton:pressed {	
-	background-color: rgb(189, 147, 249);
-	color: rgb(255, 255, 255);
-}
-
-/* /////////////////////////////////////////////////////////////////////////////////////////////////
-QTableWidget */
-QTableWidget {	
-	background-color: transparent;
-	padding: 10px;
-	border-radius: 5px;
-	gridline-color: rgb(44, 49, 58);
-	border-bottom: 1px solid rgb(44, 49, 60);
-}
-QTableWidget::item{
-	border-color: rgb(44, 49, 60);
-	padding-left: 5px;
-	padding-right: 5px;
-	gridline-color: rgb(44, 49, 60);
-}
-QTableWidget::item:selected{
-	background-color: rgb(189, 147, 249);
-}
-QHeaderView::section{
-	background-color: rgb(33, 37, 43);
-	max-width: 30px;
-	border: 1px solid rgb(44, 49, 58);
-	border-style: none;
-    border-bottom: 1px solid rgb(44, 49, 60);
-    border-right: 1px solid rgb(44, 49, 60);
-}
-QTableWidget::horizontalHeader {	
-	background-color: rgb(33, 37, 43);
-}
-QHeaderView::section:horizontal
-{
-    border: 1px solid rgb(33, 37, 43);
-	background-color: rgb(33, 37, 43);
-	padding: 3px;
-	border-top-left-radius: 7px;
-    border-top-right-radius: 7px;
-}
-QHeaderView::section:vertical
-{
-    border: 1px solid rgb(44, 49, 60);
-}
-
-/* /////////////////////////////////////////////////////////////////////////////////////////////////
-LineEdit */
-QLineEdit {
-	background-color: rgb(33, 37, 43);
-	border-radius: 5px;
-	border: 2px solid rgb(33, 37, 43);
-	padding-left: 10px;
-	selection-color: rgb(255, 255, 255);
-	selection-background-color: rgb(255, 121, 198);
-}
-QLineEdit:hover {
-	border: 2px solid rgb(64, 71, 88);
-}
-QLineEdit:focus {
-	border: 2px solid rgb(91, 101, 124);
-}
-
-/* /////////////////////////////////////////////////////////////////////////////////////////////////
-PlainTextEdit */
-QPlainTextEdit {
-	background-color: rgb(27, 29, 35);
-	border-radius: 5px;
-	padding: 10px;
-	selection-color: rgb(255, 255, 255);
-	selection-background-color: rgb(255, 121, 198);
-}
-QPlainTextEdit  QScrollBar:vertical {
-    width: 8px;
- }
-QPlainTextEdit  QScrollBar:horizontal {
-    height: 8px;
- }
-QPlainTextEdit:hover {
-	border: 2px solid rgb(64, 71, 88);
-}
-QPlainTextEdit:focus {
-	border: 2px solid rgb(91, 101, 124);
-}
-
-/* /////////////////////////////////////////////////////////////////////////////////////////////////
-ScrollBars */
-QScrollBar:horizontal {
-    border: none;
-    background: rgb(52, 59, 72);
-    height: 8px;
-    margin: 0px 21px 0 21px;
-	border-radius: 0px;
-}
-QScrollBar::handle:horizontal {
-    background: rgb(189, 147, 249);
-    min-width: 25px;
-	border-radius: 4px
-}
-QScrollBar::add-line:horizontal {
-    border: none;
-    background: rgb(55, 63, 77);
-    width: 20px;
-	border-top-right-radius: 4px;
-    border-bottom-right-radius: 4px;
-    subcontrol-position: right;
-    subcontrol-origin: margin;
-}
-QScrollBar::sub-line:horizontal {
-    border: none;
-    background: rgb(55, 63, 77);
-    width: 20px;
-	border-top-left-radius: 4px;
-    border-bottom-left-radius: 4px;
-    subcontrol-position: left;
-    subcontrol-origin: margin;
-}
-QScrollBar::up-arrow:horizontal, QScrollBar::down-arrow:horizontal
-{
-     background: none;
-}
-QScrollBar::add-page:horizontal, QScrollBar::sub-page:horizontal
-{
-     background: none;
-}
- QScrollBar:vertical {
-	border: none;
-    background: rgb(52, 59, 72);
-    width: 8px;
-    margin: 21px 0 21px 0;
-	border-radius: 0px;
- }
- QScrollBar::handle:vertical {	
-	background: rgb(189, 147, 249);
-    min-height: 25px;
-	border-radius: 4px
- }
- QScrollBar::add-line:vertical {
-     border: none;
-    background: rgb(55, 63, 77);
-     height: 20px;
-	border-bottom-left-radius: 4px;
-    border-bottom-right-radius: 4px;
-     subcontrol-position: bottom;
-     subcontrol-origin: margin;
- }
- QScrollBar::sub-line:vertical {
-	border: none;
-    background: rgb(55, 63, 77);
-     height: 20px;
-	border-top-left-radius: 4px;
-    border-top-right-radius: 4px;
-     subcontrol-position: top;
-     subcontrol-origin: margin;
- }
- QScrollBar::up-arrow:vertical, QScrollBar::down-arrow:vertical {
-     background: none;
- }
-
- QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical {
-     background: none;
- }
-
-/* /////////////////////////////////////////////////////////////////////////////////////////////////
-CheckBox */
-QCheckBox::indicator {
-    border: 3px solid rgb(52, 59, 72);
-	width: 15px;
-	height: 15px;
-	border-radius: 10px;
-    background: rgb(44, 49, 60);
-}
-QCheckBox::indicator:hover {
-    border: 3px solid rgb(58, 66, 81);
-}
-QCheckBox::indicator:checked {
-    background: 3px solid rgb(52, 59, 72);
-	border: 3px solid rgb(52, 59, 72);	
-	background-image: url(:/res/icons/cil-check-alt.png);
-}
-
-/* /////////////////////////////////////////////////////////////////////////////////////////////////
-RadioButton */
-QRadioButton::indicator {
-    border: 3px solid rgb(52, 59, 72);
-	width: 15px;
-	height: 15px;
-	border-radius: 10px;
-    background: rgb(44, 49, 60);
-}
-QRadioButton::indicator:hover {
-    border: 3px solid rgb(58, 66, 81);
-}
-QRadioButton::indicator:checked {
-    background: 3px solid rgb(94, 106, 130);
-	border: 3px solid rgb(52, 59, 72);	
-}
-
-/* /////////////////////////////////////////////////////////////////////////////////////////////////
-ComboBox */
-QComboBox{
-	background-color: rgb(27, 29, 35);
-	border-radius: 5px;
-	border: 2px solid rgb(33, 37, 43);
-	padding: 5px;
-	padding-left: 10px;
-}
-QComboBox:hover{
-	border: 2px solid rgb(64, 71, 88);
-}
-QComboBox::drop-down {
-	subcontrol-origin: padding;
-	subcontrol-position: top right;
-	width: 25px; 
-	border-left-width: 3px;
-	border-left-color: rgba(39, 44, 54, 150);
-	border-left-style: solid;
-	border-top-right-radius: 3px;
-	border-bottom-right-radius: 3px;	
-	background-image: url(:/res/icons/cil-arrow-bottom.png);
-	background-position: center;
-	background-repeat: no-reperat;
- }
-QComboBox QAbstractItemView {
-	color: rgb(255, 121, 198);	
-	background-color: rgb(33, 37, 43);
-	padding: 10px;
-	selection-background-color: rgb(39, 44, 54);
-}
-
-/* /////////////////////////////////////////////////////////////////////////////////////////////////
-Sliders */
-QSlider::groove:horizontal {
-    border-radius: 5px;
-    height: 10px;
-	margin: 0px;
-	background-color: rgb(52, 59, 72);
-}
-QSlider::groove:horizontal:hover {
-	background-color: rgb(55, 62, 76);
-}
-QSlider::handle:horizontal {
-    background-color: rgb(189, 147, 249);
-    border: none;
-    height: 10px;
-    width: 10px;
-    margin: 0px;
-	border-radius: 5px;
-}
-QSlider::handle:horizontal:hover {
-    background-color: rgb(195, 155, 255);
-}
-QSlider::handle:horizontal:pressed {
-    background-color: rgb(255, 121, 198);
-}
-
-QSlider::groove:vertical {
-    border-radius: 5px;
-    width: 10px;
-    margin: 0px;
-	background-color: rgb(52, 59, 72);
-}
-QSlider::groove:vertical:hover {
-	background-color: rgb(55, 62, 76);
-}
-QSlider::handle:vertical {
-    background-color: rgb(189, 147, 249);
-	border: none;
-    height: 10px;
-    width: 10px;
-    margin: 0px;
-	border-radius: 5px;
-}
-QSlider::handle:vertical:hover {
-    background-color: rgb(195, 155, 255);
-}
-QSlider::handle:vertical:pressed {
-    background-color: rgb(255, 121, 198);
-}
-
-/* /////////////////////////////////////////////////////////////////////////////////////////////////
-CommandLinkButton */
-QCommandLinkButton {	
-	color: rgb(255, 121, 198);
-	border-radius: 5px;
-	padding: 5px;
-	color: rgb(255, 170, 255);
-}
-QCommandLinkButton:hover {	
-	color: rgb(255, 170, 255);
-	background-color: rgb(44, 49, 60);
-}
-QCommandLinkButton:pressed {	
-	color: rgb(189, 147, 249);
-	background-color: rgb(52, 58, 71);
-}
-
-/* /////////////////////////////////////////////////////////////////////////////////////////////////
-Button */
-#pagesContainer QPushButton {
-	border: 2px solid rgb(52, 59, 72);
-	border-radius: 5px;	
-	background-color: rgb(52, 59, 72);
-}
-#pagesContainer QPushButton:hover {
-	background-color: rgb(57, 65, 80);
-	border: 2px solid rgb(61, 70, 86);
-}
-#pagesContainer QPushButton:pressed {	
-	background-color: rgb(35, 40, 49);
-	border: 2px solid rgb(43, 50, 61);
-}
-
-</string>
-   </property>
-   <layout class="QVBoxLayout" name="appMargins">
-    <property name="spacing">
-     <number>0</number>
-    </property>
-    <property name="leftMargin">
-     <number>10</number>
-    </property>
-    <property name="topMargin">
-     <number>10</number>
-    </property>
-    <property name="rightMargin">
-     <number>10</number>
-    </property>
-    <property name="bottomMargin">
-     <number>10</number>
-    </property>
-    <item>
-     <widget class="QFrame" name="bgApp">
-      <property name="frameShape">
-       <enum>QFrame::NoFrame</enum>
-      </property>
-      <property name="frameShadow">
-       <enum>QFrame::Raised</enum>
-      </property>
-      <layout class="QHBoxLayout" name="appLayout">
-       <property name="spacing">
-        <number>0</number>
-       </property>
-       <property name="leftMargin">
-        <number>0</number>
-       </property>
-       <property name="topMargin">
-        <number>0</number>
-       </property>
-       <property name="rightMargin">
-        <number>0</number>
-       </property>
-       <property name="bottomMargin">
-        <number>0</number>
-       </property>
-       <item>
-        <widget class="QFrame" name="leftMenuBg">
-         <property name="minimumSize">
-          <size>
-           <width>60</width>
-           <height>0</height>
-          </size>
-         </property>
-         <property name="maximumSize">
-          <size>
-           <width>60</width>
-           <height>16777215</height>
-          </size>
-         </property>
-         <property name="frameShape">
-          <enum>QFrame::NoFrame</enum>
-         </property>
-         <property name="frameShadow">
-          <enum>QFrame::Raised</enum>
-         </property>
-         <layout class="QVBoxLayout" name="verticalLayout_2">
-          <property name="spacing">
-           <number>0</number>
-          </property>
-          <property name="leftMargin">
-           <number>0</number>
-          </property>
-          <property name="topMargin">
-           <number>0</number>
-          </property>
-          <property name="rightMargin">
-           <number>0</number>
-          </property>
-          <property name="bottomMargin">
-           <number>0</number>
-          </property>
-          <item>
-           <widget class="QFrame" name="topLogoInfo">
-            <property name="minimumSize">
-             <size>
-              <width>0</width>
-              <height>50</height>
-             </size>
-            </property>
-            <property name="maximumSize">
-             <size>
-              <width>16777215</width>
-              <height>50</height>
-             </size>
-            </property>
-            <property name="frameShape">
-             <enum>QFrame::NoFrame</enum>
-            </property>
-            <property name="frameShadow">
-             <enum>QFrame::Raised</enum>
-            </property>
-            <widget class="QFrame" name="topLogo">
-             <property name="geometry">
-              <rect>
-               <x>10</x>
-               <y>5</y>
-               <width>42</width>
-               <height>42</height>
-              </rect>
-             </property>
-             <property name="minimumSize">
-              <size>
-               <width>42</width>
-               <height>42</height>
-              </size>
-             </property>
-             <property name="maximumSize">
-              <size>
-               <width>42</width>
-               <height>42</height>
-              </size>
-             </property>
-             <property name="layoutDirection">
-              <enum>Qt::LeftToRight</enum>
-             </property>
-             <property name="autoFillBackground">
-              <bool>false</bool>
-             </property>
-             <property name="frameShape">
-              <enum>QFrame::NoFrame</enum>
-             </property>
-             <property name="frameShadow">
-              <enum>QFrame::Raised</enum>
-             </property>
-            </widget>
-            <widget class="QLabel" name="titleLeftApp">
-             <property name="geometry">
-              <rect>
-               <x>70</x>
-               <y>8</y>
-               <width>160</width>
-               <height>20</height>
-              </rect>
-             </property>
-             <property name="font">
-              <font>
-               <family>Segoe UI Semibold</family>
-               <pointsize>12</pointsize>
-               <weight>7</weight>
-               <italic>false</italic>
-               <bold>false</bold>
-              </font>
-             </property>
-             <property name="text">
-              <string>TextLabel</string>
-             </property>
-            </widget>
-            <widget class="QLabel" name="titleLeftDescription">
-             <property name="geometry">
-              <rect>
-               <x>70</x>
-               <y>27</y>
-               <width>160</width>
-               <height>16</height>
-              </rect>
-             </property>
-             <property name="maximumSize">
-              <size>
-               <width>16777215</width>
-               <height>16</height>
-              </size>
-             </property>
-             <property name="font">
-              <font>
-               <family>Segoe UI</family>
-               <pointsize>8</pointsize>
-               <weight>50</weight>
-               <italic>false</italic>
-               <bold>false</bold>
-              </font>
-             </property>
-             <property name="text">
-              <string>TextLabel</string>
-             </property>
-            </widget>
-           </widget>
-          </item>
-          <item>
-           <widget class="QFrame" name="leftMenuFrame">
-            <property name="frameShape">
-             <enum>QFrame::NoFrame</enum>
-            </property>
-            <property name="frameShadow">
-             <enum>QFrame::Raised</enum>
-            </property>
-            <layout class="QVBoxLayout" name="verticalLayout_3">
-             <property name="spacing">
-              <number>0</number>
-             </property>
-             <property name="leftMargin">
-              <number>0</number>
-             </property>
-             <property name="topMargin">
-              <number>0</number>
-             </property>
-             <property name="rightMargin">
-              <number>0</number>
-             </property>
-             <property name="bottomMargin">
-              <number>0</number>
-             </property>
-             <item>
-              <widget class="QFrame" name="toggleBox">
-               <property name="maximumSize">
-                <size>
-                 <width>16777215</width>
-                 <height>45</height>
-                </size>
-               </property>
-               <property name="frameShape">
-                <enum>QFrame::NoFrame</enum>
-               </property>
-               <property name="frameShadow">
-                <enum>QFrame::Raised</enum>
-               </property>
-               <layout class="QVBoxLayout" name="verticalLayout_5">
-                <property name="spacing">
-                 <number>0</number>
-                </property>
-                <property name="leftMargin">
-                 <number>0</number>
-                </property>
-                <property name="topMargin">
-                 <number>0</number>
-                </property>
-                <property name="rightMargin">
-                 <number>0</number>
-                </property>
-                <property name="bottomMargin">
-                 <number>0</number>
-                </property>
-                <item>
-                 <widget class="QPushButton" name="toggleButton">
-                  <property name="minimumSize">
-                   <size>
-                    <width>0</width>
-                    <height>45</height>
-                   </size>
-                  </property>
-                  <property name="cursor">
-                   <cursorShape>PointingHandCursor</cursorShape>
-                  </property>
-                  <property name="styleSheet">
-                   <string notr="true">background-image: url(:/res/icons/icon_menu.png);</string>
-                  </property>
-                  <property name="text">
-                   <string>toggle</string>
-                  </property>
-                  <property name="checked">
-                   <bool>false</bool>
-                  </property>
-                 </widget>
-                </item>
-               </layout>
-              </widget>
-             </item>
-             <item alignment="Qt::AlignTop">
-              <widget class="QFrame" name="topMenu">
-               <property name="frameShape">
-                <enum>QFrame::NoFrame</enum>
-               </property>
-               <property name="frameShadow">
-                <enum>QFrame::Raised</enum>
-               </property>
-               <layout class="QVBoxLayout" name="verticalLayout_6">
-                <property name="spacing">
-                 <number>0</number>
-                </property>
-                <property name="leftMargin">
-                 <number>0</number>
-                </property>
-                <property name="topMargin">
-                 <number>0</number>
-                </property>
-                <property name="rightMargin">
-                 <number>0</number>
-                </property>
-                <property name="bottomMargin">
-                 <number>0</number>
-                </property>
-                <item>
-                 <widget class="QPushButton" name="btn_home">
-                  <property name="sizePolicy">
-                   <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
-                    <horstretch>0</horstretch>
-                    <verstretch>0</verstretch>
-                   </sizepolicy>
-                  </property>
-                  <property name="minimumSize">
-                   <size>
-                    <width>0</width>
-                    <height>45</height>
-                   </size>
-                  </property>
-                  <property name="cursor">
-                   <cursorShape>PointingHandCursor</cursorShape>
-                  </property>
-                  <property name="styleSheet">
-                   <string notr="true">background-image: url(:/res/icons/cil-home.png);</string>
-                  </property>
-                  <property name="text">
-                   <string>Home</string>
-                  </property>
-                 </widget>
-                </item>
-                <item>
-                 <widget class="QPushButton" name="btn_widgets">
-                  <property name="sizePolicy">
-                   <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
-                    <horstretch>0</horstretch>
-                    <verstretch>0</verstretch>
-                   </sizepolicy>
-                  </property>
-                  <property name="minimumSize">
-                   <size>
-                    <width>0</width>
-                    <height>45</height>
-                   </size>
-                  </property>
-                  <property name="cursor">
-                   <cursorShape>PointingHandCursor</cursorShape>
-                  </property>
-                  <property name="styleSheet">
-                   <string notr="true">background-image: url(:/res/icons/cil-gamepad.png);</string>
-                  </property>
-                  <property name="text">
-                   <string>Widgets</string>
-                  </property>
-                 </widget>
-                </item>
-                <item>
-                 <widget class="QPushButton" name="btn_new">
-                  <property name="sizePolicy">
-                   <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
-                    <horstretch>0</horstretch>
-                    <verstretch>0</verstretch>
-                   </sizepolicy>
-                  </property>
-                  <property name="minimumSize">
-                   <size>
-                    <width>0</width>
-                    <height>45</height>
-                   </size>
-                  </property>
-                  <property name="cursor">
-                   <cursorShape>PointingHandCursor</cursorShape>
-                  </property>
-                  <property name="styleSheet">
-                   <string notr="true">background-image: url(:/res/icons/cil-file.png);</string>
-                  </property>
-                  <property name="text">
-                   <string>New</string>
-                  </property>
-                 </widget>
-                </item>
-                <item>
-                 <widget class="QPushButton" name="btn_save">
-                  <property name="sizePolicy">
-                   <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
-                    <horstretch>0</horstretch>
-                    <verstretch>0</verstretch>
-                   </sizepolicy>
-                  </property>
-                  <property name="minimumSize">
-                   <size>
-                    <width>0</width>
-                    <height>45</height>
-                   </size>
-                  </property>
-                  <property name="cursor">
-                   <cursorShape>PointingHandCursor</cursorShape>
-                  </property>
-                  <property name="styleSheet">
-                   <string notr="true">background-image: url(:/res/icons/cil-save.png)</string>
-                  </property>
-                  <property name="text">
-                   <string>Save</string>
-                  </property>
-                 </widget>
-                </item>
-                <item>
-                 <widget class="QPushButton" name="btn_exit">
-                  <property name="sizePolicy">
-                   <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
-                    <horstretch>0</horstretch>
-                    <verstretch>0</verstretch>
-                   </sizepolicy>
-                  </property>
-                  <property name="minimumSize">
-                   <size>
-                    <width>0</width>
-                    <height>45</height>
-                   </size>
-                  </property>
-                  <property name="cursor">
-                   <cursorShape>PointingHandCursor</cursorShape>
-                  </property>
-                  <property name="styleSheet">
-                   <string notr="true">background-image: url(:/res/icons/cil-x.png);</string>
-                  </property>
-                  <property name="text">
-                   <string>Exit</string>
-                  </property>
-                 </widget>
-                </item>
-               </layout>
-              </widget>
-             </item>
-             <item alignment="Qt::AlignBottom">
-              <widget class="QFrame" name="bottomMenu">
-               <property name="frameShape">
-                <enum>QFrame::NoFrame</enum>
-               </property>
-               <property name="frameShadow">
-                <enum>QFrame::Raised</enum>
-               </property>
-               <layout class="QVBoxLayout" name="verticalLayout_4">
-                <property name="spacing">
-                 <number>0</number>
-                </property>
-                <property name="leftMargin">
-                 <number>0</number>
-                </property>
-                <property name="topMargin">
-                 <number>0</number>
-                </property>
-                <property name="rightMargin">
-                 <number>0</number>
-                </property>
-                <property name="bottomMargin">
-                 <number>0</number>
-                </property>
-                <item>
-                 <widget class="QPushButton" name="toggleLeftBox">
-                  <property name="sizePolicy">
-                   <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
-                    <horstretch>0</horstretch>
-                    <verstretch>0</verstretch>
-                   </sizepolicy>
-                  </property>
-                  <property name="minimumSize">
-                   <size>
-                    <width>0</width>
-                    <height>45</height>
-                   </size>
-                  </property>
-                  <property name="cursor">
-                   <cursorShape>PointingHandCursor</cursorShape>
-                  </property>
-                  <property name="styleSheet">
-                   <string notr="true">background-image: url(:/res/icons/icon_settings.png);</string>
-                  </property>
-                  <property name="text">
-                   <string>Left Box</string>
-                  </property>
-                 </widget>
-                </item>
-               </layout>
-              </widget>
-             </item>
-            </layout>
-           </widget>
-          </item>
-         </layout>
-        </widget>
-       </item>
-       <item>
-        <widget class="QFrame" name="extraLeftBox">
-         <property name="minimumSize">
-          <size>
-           <width>0</width>
-           <height>0</height>
-          </size>
-         </property>
-         <property name="maximumSize">
-          <size>
-           <width>0</width>
-           <height>16777215</height>
-          </size>
-         </property>
-         <property name="frameShape">
-          <enum>QFrame::NoFrame</enum>
-         </property>
-         <property name="frameShadow">
-          <enum>QFrame::Raised</enum>
-         </property>
-         <layout class="QVBoxLayout" name="verticalLayout_7">
-          <property name="spacing">
-           <number>0</number>
-          </property>
-          <property name="leftMargin">
-           <number>0</number>
-          </property>
-          <property name="topMargin">
-           <number>0</number>
-          </property>
-          <property name="rightMargin">
-           <number>0</number>
-          </property>
-          <property name="bottomMargin">
-           <number>0</number>
-          </property>
-          <item>
-           <widget class="QFrame" name="extraTopBg">
-            <property name="minimumSize">
-             <size>
-              <width>0</width>
-              <height>50</height>
-             </size>
-            </property>
-            <property name="maximumSize">
-             <size>
-              <width>16777215</width>
-              <height>50</height>
-             </size>
-            </property>
-            <property name="frameShape">
-             <enum>QFrame::NoFrame</enum>
-            </property>
-            <property name="frameShadow">
-             <enum>QFrame::Raised</enum>
-            </property>
-            <layout class="QVBoxLayout" name="verticalLayout_8">
-             <property name="spacing">
-              <number>0</number>
-             </property>
-             <property name="leftMargin">
-              <number>0</number>
-             </property>
-             <property name="topMargin">
-              <number>0</number>
-             </property>
-             <property name="rightMargin">
-              <number>0</number>
-             </property>
-             <property name="bottomMargin">
-              <number>0</number>
-             </property>
-             <item>
-              <layout class="QGridLayout" name="gridLayout">
-               <property name="leftMargin">
-                <number>10</number>
-               </property>
-               <property name="rightMargin">
-                <number>10</number>
-               </property>
-               <property name="horizontalSpacing">
-                <number>10</number>
-               </property>
-               <property name="verticalSpacing">
-                <number>0</number>
-               </property>
-               <item row="0" column="0">
-                <widget class="QFrame" name="extraIcon">
-                 <property name="minimumSize">
-                  <size>
-                   <width>20</width>
-                   <height>0</height>
-                  </size>
-                 </property>
-                 <property name="maximumSize">
-                  <size>
-                   <width>20</width>
-                   <height>20</height>
-                  </size>
-                 </property>
-                 <property name="frameShape">
-                  <enum>QFrame::NoFrame</enum>
-                 </property>
-                 <property name="frameShadow">
-                  <enum>QFrame::Raised</enum>
-                 </property>
-                </widget>
-               </item>
-               <item row="0" column="1">
-                <widget class="QLabel" name="extraLabel">
-                 <property name="minimumSize">
-                  <size>
-                   <width>150</width>
-                   <height>0</height>
-                  </size>
-                 </property>
-                 <property name="text">
-                  <string>Left Box</string>
-                 </property>
-                </widget>
-               </item>
-               <item row="0" column="2">
-                <widget class="QPushButton" name="extraCloseColumnBtn">
-                 <property name="minimumSize">
-                  <size>
-                   <width>28</width>
-                   <height>28</height>
-                  </size>
-                 </property>
-                 <property name="maximumSize">
-                  <size>
-                   <width>28</width>
-                   <height>28</height>
-                  </size>
-                 </property>
-                 <property name="cursor">
-                  <cursorShape>PointingHandCursor</cursorShape>
-                 </property>
-                 <property name="text">
-                  <string/>
-                 </property>
-                 <property name="icon">
-                  <iconset resource="../app.qrc">
-                   <normaloff>:/res/icons/icon_close.png</normaloff>:/res/icons/icon_close.png</iconset>
-                 </property>
-                </widget>
-               </item>
-              </layout>
-             </item>
-            </layout>
-           </widget>
-          </item>
-          <item>
-           <widget class="QFrame" name="extraContent">
-            <property name="frameShape">
-             <enum>QFrame::NoFrame</enum>
-            </property>
-            <property name="frameShadow">
-             <enum>QFrame::Raised</enum>
-            </property>
-            <layout class="QVBoxLayout" name="verticalLayout_9">
-             <property name="spacing">
-              <number>0</number>
-             </property>
-             <property name="leftMargin">
-              <number>0</number>
-             </property>
-             <property name="topMargin">
-              <number>0</number>
-             </property>
-             <property name="rightMargin">
-              <number>0</number>
-             </property>
-             <property name="bottomMargin">
-              <number>0</number>
-             </property>
-             <item>
-              <widget class="QFrame" name="extraTopMenu">
-               <property name="frameShape">
-                <enum>QFrame::NoFrame</enum>
-               </property>
-               <property name="frameShadow">
-                <enum>QFrame::Raised</enum>
-               </property>
-               <layout class="QVBoxLayout" name="verticalLayout_10">
-                <property name="spacing">
-                 <number>0</number>
-                </property>
-                <property name="leftMargin">
-                 <number>0</number>
-                </property>
-                <property name="topMargin">
-                 <number>0</number>
-                </property>
-                <property name="rightMargin">
-                 <number>0</number>
-                </property>
-                <property name="bottomMargin">
-                 <number>0</number>
-                </property>
-                <item>
-                 <widget class="QPushButton" name="btn_share">
-                  <property name="minimumSize">
-                   <size>
-                    <width>0</width>
-                    <height>45</height>
-                   </size>
-                  </property>
-                  <property name="styleSheet">
-                   <string notr="true">background-image: url(:/res/icons/cil-share-boxed.png);</string>
-                  </property>
-                  <property name="text">
-                   <string>Share</string>
-                  </property>
-                 </widget>
-                </item>
-                <item>
-                 <widget class="QPushButton" name="btn_adjustments">
-                  <property name="minimumSize">
-                   <size>
-                    <width>0</width>
-                    <height>45</height>
-                   </size>
-                  </property>
-                  <property name="styleSheet">
-                   <string notr="true">background-image: url(:/res/icons/cil-equalizer.png);</string>
-                  </property>
-                  <property name="text">
-                   <string>Adjustments</string>
-                  </property>
-                 </widget>
-                </item>
-                <item>
-                 <widget class="QPushButton" name="btn_more">
-                  <property name="minimumSize">
-                   <size>
-                    <width>0</width>
-                    <height>45</height>
-                   </size>
-                  </property>
-                  <property name="styleSheet">
-                   <string notr="true">background-image: url(:/res/icons/cil-layers.png);</string>
-                  </property>
-                  <property name="text">
-                   <string>More</string>
-                  </property>
-                 </widget>
-                </item>
-               </layout>
-              </widget>
-             </item>
-             <item>
-              <widget class="QFrame" name="extraCenter">
-               <property name="frameShape">
-                <enum>QFrame::NoFrame</enum>
-               </property>
-               <property name="frameShadow">
-                <enum>QFrame::Raised</enum>
-               </property>
-               <layout class="QVBoxLayout" name="verticalLayout_11">
-                <item>
-                 <widget class="QTextEdit" name="textEdit">
-                  <property name="minimumSize">
-                   <size>
-                    <width>222</width>
-                    <height>0</height>
-                   </size>
-                  </property>
-                  <property name="maximumSize">
-                   <size>
-                    <width>16777215</width>
-                    <height>16777215</height>
-                   </size>
-                  </property>
-                  <property name="styleSheet">
-                   <string notr="true">background: transparent;</string>
-                  </property>
-                  <property name="frameShape">
-                   <enum>QFrame::NoFrame</enum>
-                  </property>
-                  <property name="readOnly">
-                   <bool>true</bool>
-                  </property>
-                  <property name="html">
-                   <string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
-&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
-p, li { white-space: pre-wrap; }
-&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Segoe UI'; font-size:10pt; font-weight:400; font-style:normal;&quot;&gt;
-&lt;p align=&quot;center&quot; style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:12pt; font-weight:600; color:#ff79c6;&quot;&gt;PyDracula&lt;/span&gt;&lt;/p&gt;
-&lt;p align=&quot;center&quot; style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; color:#ffffff;&quot;&gt;An interface created using Python and PySide (support for PyQt), and with colors based on the Dracula theme created by Zeno Rocha.&lt;/span&gt;&lt;/p&gt;
-&lt;p align=&quot;center&quot; style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; color:#ffffff;&quot;&gt;MIT License&lt;/span&gt;&lt;/p&gt;
-&lt;p align=&quot;center&quot; style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; color:#bd93f9;&quot;&gt;Created by: Wanderson M. Pimenta&lt;/span&gt;&lt;/p&gt;
-&lt;p align=&quot;center&quot; style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:12pt; font-weight:600; color:#ff79c6;&quot;&gt;Convert UI&lt;/span&gt;&lt;/p&gt;
-&lt;p align=&quot;center&quot; style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:9pt; color:#ffffff;&quot;&gt;pyside6-uic main.ui &amp;gt; ui_main.py&lt;/span&gt;&lt;/p&gt;
-&lt;p align=&quot;center&quot; style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:12pt; font-weight:600; color:#ff79c6;&quot;&gt;Convert QRC&lt;/span&gt;&lt;/p&gt;
-&lt;p align=&quot;center&quot; style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:9pt; color:#ffffff;&quot;&gt;pyside6-rcc resources.qrc -o resources_rc.py&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
-                  </property>
-                 </widget>
-                </item>
-               </layout>
-              </widget>
-             </item>
-             <item>
-              <widget class="QFrame" name="extraBottom">
-               <property name="frameShape">
-                <enum>QFrame::NoFrame</enum>
-               </property>
-               <property name="frameShadow">
-                <enum>QFrame::Raised</enum>
-               </property>
-              </widget>
-             </item>
-            </layout>
-           </widget>
-          </item>
-         </layout>
-        </widget>
-       </item>
-       <item>
-        <widget class="QFrame" name="contentBox">
-         <property name="frameShape">
-          <enum>QFrame::NoFrame</enum>
-         </property>
-         <property name="frameShadow">
-          <enum>QFrame::Raised</enum>
-         </property>
-         <layout class="QVBoxLayout" name="verticalLayout_12">
-          <property name="spacing">
-           <number>0</number>
-          </property>
-          <property name="leftMargin">
-           <number>0</number>
-          </property>
-          <property name="topMargin">
-           <number>0</number>
-          </property>
-          <property name="rightMargin">
-           <number>0</number>
-          </property>
-          <property name="bottomMargin">
-           <number>0</number>
-          </property>
-          <item>
-           <widget class="QFrame" name="contentTopBg">
-            <property name="minimumSize">
-             <size>
-              <width>0</width>
-              <height>50</height>
-             </size>
-            </property>
-            <property name="maximumSize">
-             <size>
-              <width>16777215</width>
-              <height>50</height>
-             </size>
-            </property>
-            <property name="frameShape">
-             <enum>QFrame::NoFrame</enum>
-            </property>
-            <property name="frameShadow">
-             <enum>QFrame::Raised</enum>
-            </property>
-            <layout class="QHBoxLayout" name="horizontalLayout_4">
-             <property name="spacing">
-              <number>0</number>
-             </property>
-             <property name="leftMargin">
-              <number>0</number>
-             </property>
-             <property name="topMargin">
-              <number>0</number>
-             </property>
-             <property name="rightMargin">
-              <number>10</number>
-             </property>
-             <property name="bottomMargin">
-              <number>0</number>
-             </property>
-             <item>
-              <widget class="QFrame" name="leftBox">
-               <property name="sizePolicy">
-                <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
-                 <horstretch>0</horstretch>
-                 <verstretch>0</verstretch>
-                </sizepolicy>
-               </property>
-               <property name="frameShape">
-                <enum>QFrame::StyledPanel</enum>
-               </property>
-               <property name="frameShadow">
-                <enum>QFrame::Raised</enum>
-               </property>
-               <layout class="QHBoxLayout" name="horizontalLayout_3">
-                <property name="spacing">
-                 <number>0</number>
-                </property>
-                <property name="leftMargin">
-                 <number>0</number>
-                </property>
-                <property name="topMargin">
-                 <number>0</number>
-                </property>
-                <property name="rightMargin">
-                 <number>0</number>
-                </property>
-                <property name="bottomMargin">
-                 <number>0</number>
-                </property>
-                <item>
-                 <widget class="QLabel" name="titleRightInfo">
-                  <property name="sizePolicy">
-                   <sizepolicy hsizetype="Preferred" vsizetype="Expanding">
-                    <horstretch>0</horstretch>
-                    <verstretch>0</verstretch>
-                   </sizepolicy>
-                  </property>
-                  <property name="maximumSize">
-                   <size>
-                    <width>16777215</width>
-                    <height>45</height>
-                   </size>
-                  </property>
-                  <property name="text">
-                   <string>QFD APP - A Dracula theme working</string>
-                  </property>
-                 </widget>
-                </item>
-               </layout>
-              </widget>
-             </item>
-             <item alignment="Qt::AlignRight">
-              <widget class="QFrame" name="rightButtons">
-               <property name="minimumSize">
-                <size>
-                 <width>0</width>
-                 <height>28</height>
-                </size>
-               </property>
-               <property name="frameShape">
-                <enum>QFrame::NoFrame</enum>
-               </property>
-               <property name="frameShadow">
-                <enum>QFrame::Raised</enum>
-               </property>
-               <layout class="QHBoxLayout" name="horizontalLayout_2">
-                <property name="spacing">
-                 <number>5</number>
-                </property>
-                <property name="leftMargin">
-                 <number>0</number>
-                </property>
-                <property name="topMargin">
-                 <number>0</number>
-                </property>
-                <property name="rightMargin">
-                 <number>0</number>
-                </property>
-                <property name="bottomMargin">
-                 <number>0</number>
-                </property>
-                <item>
-                 <widget class="QPushButton" name="settingsTopBtn">
-                  <property name="minimumSize">
-                   <size>
-                    <width>28</width>
-                    <height>28</height>
-                   </size>
-                  </property>
-                  <property name="maximumSize">
-                   <size>
-                    <width>28</width>
-                    <height>28</height>
-                   </size>
-                  </property>
-                  <property name="cursor">
-                   <cursorShape>PointingHandCursor</cursorShape>
-                  </property>
-                  <property name="text">
-                   <string/>
-                  </property>
-                  <property name="icon">
-                   <iconset resource="../app.qrc">
-                    <normaloff>:/res/icons/icon_settings.png</normaloff>:/res/icons/icon_settings.png</iconset>
-                  </property>
-                 </widget>
-                </item>
-                <item>
-                 <widget class="QPushButton" name="minimizeAppBtn">
-                  <property name="minimumSize">
-                   <size>
-                    <width>28</width>
-                    <height>28</height>
-                   </size>
-                  </property>
-                  <property name="maximumSize">
-                   <size>
-                    <width>28</width>
-                    <height>28</height>
-                   </size>
-                  </property>
-                  <property name="cursor">
-                   <cursorShape>PointingHandCursor</cursorShape>
-                  </property>
-                  <property name="text">
-                   <string/>
-                  </property>
-                  <property name="icon">
-                   <iconset resource="../app.qrc">
-                    <normaloff>:/res/icons/icon_minimize.png</normaloff>:/res/icons/icon_minimize.png</iconset>
-                  </property>
-                 </widget>
-                </item>
-                <item>
-                 <widget class="QPushButton" name="maximizeRestoreAppBtn">
-                  <property name="minimumSize">
-                   <size>
-                    <width>28</width>
-                    <height>28</height>
-                   </size>
-                  </property>
-                  <property name="maximumSize">
-                   <size>
-                    <width>28</width>
-                    <height>28</height>
-                   </size>
-                  </property>
-                  <property name="cursor">
-                   <cursorShape>PointingHandCursor</cursorShape>
-                  </property>
-                  <property name="toolTip">
-                   <string>MaximizeRestore</string>
-                  </property>
-                  <property name="text">
-                   <string/>
-                  </property>
-                  <property name="icon">
-                   <iconset resource="../app.qrc">
-                    <normaloff>:/res/icons/icon_maximize.png</normaloff>:/res/icons/icon_maximize.png</iconset>
-                  </property>
-                 </widget>
-                </item>
-                <item>
-                 <widget class="QPushButton" name="closeAppBtn">
-                  <property name="minimumSize">
-                   <size>
-                    <width>28</width>
-                    <height>28</height>
-                   </size>
-                  </property>
-                  <property name="maximumSize">
-                   <size>
-                    <width>28</width>
-                    <height>28</height>
-                   </size>
-                  </property>
-                  <property name="cursor">
-                   <cursorShape>PointingHandCursor</cursorShape>
-                  </property>
-                  <property name="toolTip">
-                   <string>Close</string>
-                  </property>
-                  <property name="text">
-                   <string/>
-                  </property>
-                  <property name="icon">
-                   <iconset resource="../app.qrc">
-                    <normaloff>:/res/icons/icon_close.png</normaloff>:/res/icons/icon_close.png</iconset>
-                  </property>
-                 </widget>
-                </item>
-               </layout>
-              </widget>
-             </item>
-            </layout>
-           </widget>
-          </item>
-          <item>
-           <widget class="QFrame" name="contentBottom">
-            <property name="frameShape">
-             <enum>QFrame::NoFrame</enum>
-            </property>
-            <property name="frameShadow">
-             <enum>QFrame::Raised</enum>
-            </property>
-            <layout class="QVBoxLayout" name="verticalLayout_13">
-             <property name="spacing">
-              <number>0</number>
-             </property>
-             <property name="leftMargin">
-              <number>0</number>
-             </property>
-             <property name="topMargin">
-              <number>0</number>
-             </property>
-             <property name="rightMargin">
-              <number>0</number>
-             </property>
-             <property name="bottomMargin">
-              <number>0</number>
-             </property>
-             <item>
-              <widget class="QFrame" name="content">
-               <property name="frameShape">
-                <enum>QFrame::NoFrame</enum>
-               </property>
-               <property name="frameShadow">
-                <enum>QFrame::Raised</enum>
-               </property>
-               <layout class="QHBoxLayout" name="horizontalLayout_6">
-                <property name="spacing">
-                 <number>0</number>
-                </property>
-                <property name="leftMargin">
-                 <number>0</number>
-                </property>
-                <property name="topMargin">
-                 <number>0</number>
-                </property>
-                <property name="rightMargin">
-                 <number>0</number>
-                </property>
-                <property name="bottomMargin">
-                 <number>0</number>
-                </property>
-                <item>
-                 <widget class="QFrame" name="pagesContainer">
-                  <property name="frameShape">
-                   <enum>QFrame::NoFrame</enum>
-                  </property>
-                  <property name="frameShadow">
-                   <enum>QFrame::Raised</enum>
-                  </property>
-                  <layout class="QVBoxLayout" name="verticalLayout_17">
-                   <property name="spacing">
-                    <number>0</number>
-                   </property>
-                   <property name="leftMargin">
-                    <number>10</number>
-                   </property>
-                   <property name="topMargin">
-                    <number>10</number>
-                   </property>
-                   <property name="rightMargin">
-                    <number>10</number>
-                   </property>
-                   <property name="bottomMargin">
-                    <number>10</number>
-                   </property>
-                   <item>
-                    <widget class="QStackedWidget" name="stackedWidget">
-                     <property name="styleSheet">
-                      <string notr="true">background: transparent;</string>
-                     </property>
-                     <property name="currentIndex">
-                      <number>0</number>
-                     </property>
-                     <widget class="QWidget" name="home">
-                      <property name="styleSheet">
-                       <string notr="true">background-image: url(:/res/logo.png);
-background-position: center;
-background-repeat: no-repeat;</string>
-                      </property>
-                     </widget>
-                     <widget class="QWidget" name="widgets">
-                      <layout class="QVBoxLayout" name="verticalLayout_18">
-                       <property name="spacing">
-                        <number>10</number>
-                       </property>
-                       <property name="leftMargin">
-                        <number>10</number>
-                       </property>
-                       <property name="topMargin">
-                        <number>10</number>
-                       </property>
-                       <property name="rightMargin">
-                        <number>10</number>
-                       </property>
-                       <property name="bottomMargin">
-                        <number>10</number>
-                       </property>
-                       <item>
-                        <widget class="QFrame" name="row_1">
-                         <property name="frameShape">
-                          <enum>QFrame::StyledPanel</enum>
-                         </property>
-                         <property name="frameShadow">
-                          <enum>QFrame::Raised</enum>
-                         </property>
-                         <layout class="QVBoxLayout" name="verticalLayout_21">
-                          <item>
-                           <widget class="QFrame" name="frame_div_content_1">
-                            <property name="minimumSize">
-                             <size>
-                              <width>0</width>
-                              <height>110</height>
-                             </size>
-                            </property>
-                            <property name="maximumSize">
-                             <size>
-                              <width>16777215</width>
-                              <height>110</height>
-                             </size>
-                            </property>
-                            <property name="frameShape">
-                             <enum>QFrame::NoFrame</enum>
-                            </property>
-                            <property name="frameShadow">
-                             <enum>QFrame::Raised</enum>
-                            </property>
-                            <layout class="QVBoxLayout" name="verticalLayout_20">
-                             <property name="spacing">
-                              <number>0</number>
-                             </property>
-                             <property name="leftMargin">
-                              <number>0</number>
-                             </property>
-                             <property name="topMargin">
-                              <number>0</number>
-                             </property>
-                             <property name="rightMargin">
-                              <number>0</number>
-                             </property>
-                             <property name="bottomMargin">
-                              <number>0</number>
-                             </property>
-                             <item>
-                              <widget class="QFrame" name="frame_title_wid_1">
-                               <property name="maximumSize">
-                                <size>
-                                 <width>16777215</width>
-                                 <height>35</height>
-                                </size>
-                               </property>
-                               <property name="frameShape">
-                                <enum>QFrame::NoFrame</enum>
-                               </property>
-                               <property name="frameShadow">
-                                <enum>QFrame::Raised</enum>
-                               </property>
-                               <layout class="QHBoxLayout" name="horizontalLayout_8">
-                                <item>
-                                 <widget class="QLabel" name="labelBoxBlenderInstalation">
-                                  <property name="text">
-                                   <string>FILE BOX</string>
-                                  </property>
-                                 </widget>
-                                </item>
-                               </layout>
-                              </widget>
-                             </item>
-                             <item>
-                              <widget class="QFrame" name="frame_content_wid_1">
-                               <property name="frameShape">
-                                <enum>QFrame::NoFrame</enum>
-                               </property>
-                               <property name="frameShadow">
-                                <enum>QFrame::Raised</enum>
-                               </property>
-                               <layout class="QHBoxLayout" name="horizontalLayout_7">
-                                <item>
-                                 <layout class="QGridLayout" name="gridLayout_2">
-                                  <item row="0" column="1">
-                                   <widget class="QLineEdit" name="lineEdit">
-                                    <property name="minimumSize">
-                                     <size>
-                                      <width>0</width>
-                                      <height>30</height>
-                                     </size>
-                                    </property>
-                                    <property name="styleSheet">
-                                     <string notr="true">background-color: rgb(33, 37, 43);</string>
-                                    </property>
-                                    <property name="placeholderText">
-                                     <string>Type here</string>
-                                    </property>
-                                   </widget>
-                                  </item>
-                                  <item row="0" column="2">
-                                   <widget class="QPushButton" name="pushButton">
-                                    <property name="minimumSize">
-                                     <size>
-                                      <width>150</width>
-                                      <height>30</height>
-                                     </size>
-                                    </property>
-                                    <property name="cursor">
-                                     <cursorShape>PointingHandCursor</cursorShape>
-                                    </property>
-                                    <property name="styleSheet">
-                                     <string notr="true">background-color: rgb(52, 59, 72);</string>
-                                    </property>
-                                    <property name="text">
-                                     <string>Open</string>
-                                    </property>
-                                    <property name="icon">
-                                     <iconset resource="../app.qrc">
-                                      <normaloff>:/res/icons/cil-folder-open.png</normaloff>:/res/icons/cil-folder-open.png</iconset>
-                                    </property>
-                                   </widget>
-                                  </item>
-                                  <item row="2" column="0" colspan="3">
-                                   <widget class="QLabel" name="labelVersion_3">
-                                    <property name="styleSheet">
-                                     <string notr="true">color: rgb(113, 126, 149);</string>
-                                    </property>
-                                    <property name="text">
-                                     <string>Label description</string>
-                                    </property>
-                                   </widget>
-                                  </item>
-                                 </layout>
-                                </item>
-                               </layout>
-                              </widget>
-                             </item>
-                            </layout>
-                           </widget>
-                          </item>
-                         </layout>
-                        </widget>
-                       </item>
-                       <item>
-                        <widget class="QFrame" name="row_2">
-                         <property name="frameShape">
-                          <enum>QFrame::StyledPanel</enum>
-                         </property>
-                         <property name="frameShadow">
-                          <enum>QFrame::Raised</enum>
-                         </property>
-                         <layout class="QVBoxLayout" name="verticalLayout_19">
-                          <item>
-                           <layout class="QGridLayout" name="gridLayout_3" columnstretch="0,0,0,0,0,0,0">
-                            <item row="2" column="0" colspan="2">
-                             <widget class="QSlider" name="horizontalSlider">
-                              <property name="orientation">
-                               <enum>Qt::Horizontal</enum>
-                              </property>
-                             </widget>
-                            </item>
-                            <item row="0" column="0">
-                             <widget class="QCheckBox" name="checkBox">
-                              <property name="text">
-                               <string>CheckBox</string>
-                              </property>
-                             </widget>
-                            </item>
-                            <item row="0" column="1">
-                             <widget class="QRadioButton" name="radioButton">
-                              <property name="text">
-                               <string>RadioButton</string>
-                              </property>
-                             </widget>
-                            </item>
-                            <item row="1" column="0" colspan="2">
-                             <widget class="QComboBox" name="comboBox">
-                              <property name="font">
-                               <font>
-                                <family>Segoe UI</family>
-                                <pointsize>10</pointsize>
-                                <weight>50</weight>
-                                <italic>false</italic>
-                                <bold>false</bold>
-                               </font>
-                              </property>
-                              <property name="styleSheet">
-                               <string notr="true">background-color: rgb(33, 37, 43);</string>
-                              </property>
-                              <item>
-                               <property name="text">
-                                <string>Test 1</string>
-                               </property>
-                              </item>
-                              <item>
-                               <property name="text">
-                                <string>Test 2</string>
-                               </property>
-                              </item>
-                              <item>
-                               <property name="text">
-                                <string>Test 3</string>
-                               </property>
-                              </item>
-                             </widget>
-                            </item>
-                            <item row="0" column="5" rowspan="3">
-                             <widget class="QScrollArea" name="scrollArea">
-                              <property name="styleSheet">
-                               <string notr="true"> QScrollBar:vertical {
-    background: rgb(52, 59, 72);
- }
- QScrollBar:horizontal {
-    background: rgb(52, 59, 72);
- }</string>
-                              </property>
-                              <property name="frameShape">
-                               <enum>QFrame::NoFrame</enum>
-                              </property>
-                              <property name="widgetResizable">
-                               <bool>true</bool>
-                              </property>
-                              <widget class="QWidget" name="scrollAreaWidgetContents">
-                               <property name="geometry">
-                                <rect>
-                                 <x>0</x>
-                                 <y>0</y>
-                                 <width>97</width>
-                                 <height>103</height>
-                                </rect>
-                               </property>
-                               <property name="styleSheet">
-                                <string notr="true"> QScrollBar:vertical {
-	border: none;
-    background: rgb(52, 59, 72);
-    width: 14px;
-    margin: 21px 0 21px 0;
-	border-radius: 0px;
- }</string>
-                               </property>
-                               <layout class="QHBoxLayout" name="horizontalLayout_9">
-                                <item>
-                                 <widget class="QPlainTextEdit" name="plainTextEdit">
-                                  <property name="styleSheet">
-                                   <string notr="true">background-color: rgb(33, 37, 43);</string>
-                                  </property>
-                                 </widget>
-                                </item>
-                               </layout>
-                              </widget>
-                             </widget>
-                            </item>
-                            <item row="1" column="6">
-                             <widget class="QCommandLinkButton" name="commandLinkButton">
-                              <property name="text">
-                               <string>Link Button</string>
-                              </property>
-                              <property name="icon">
-                               <iconset resource="../app.qrc">
-                                <normaloff>:/res/icons/cil-link.png</normaloff>:/res/icons/cil-link.png</iconset>
-                              </property>
-                              <property name="description">
-                               <string>Link description</string>
-                              </property>
-                             </widget>
-                            </item>
-                            <item row="0" column="4" rowspan="3">
-                             <widget class="QScrollBar" name="verticalScrollBar">
-                              <property name="styleSheet">
-                               <string notr="true"> QScrollBar:vertical { background: rgb(52, 59, 72); }
- QScrollBar:horizontal { background: rgb(52, 59, 72); }</string>
-                              </property>
-                              <property name="orientation">
-                               <enum>Qt::Vertical</enum>
-                              </property>
-                             </widget>
-                            </item>
-                            <item row="0" column="2" rowspan="3">
-                             <widget class="QSlider" name="verticalSlider">
-                              <property name="orientation">
-                               <enum>Qt::Vertical</enum>
-                              </property>
-                             </widget>
-                            </item>
-                            <item row="1" column="3">
-                             <widget class="QScrollBar" name="horizontalScrollBar">
-                              <property name="sizePolicy">
-                               <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
-                                <horstretch>0</horstretch>
-                                <verstretch>0</verstretch>
-                               </sizepolicy>
-                              </property>
-                              <property name="styleSheet">
-                               <string notr="true"> QScrollBar:vertical { background: rgb(52, 59, 72); }
- QScrollBar:horizontal { background: rgb(52, 59, 72); }</string>
-                              </property>
-                              <property name="orientation">
-                               <enum>Qt::Horizontal</enum>
-                              </property>
-                             </widget>
-                            </item>
-                           </layout>
-                          </item>
-                         </layout>
-                        </widget>
-                       </item>
-                       <item>
-                        <widget class="QFrame" name="row_3">
-                         <property name="frameShape">
-                          <enum>QFrame::StyledPanel</enum>
-                         </property>
-                         <property name="frameShadow">
-                          <enum>QFrame::Raised</enum>
-                         </property>
-                         <layout class="QVBoxLayout" name="verticalLayout_22">
-                          <item>
-                           <widget class="QTableWidget" name="tableWidget">
-                            <property name="frameShape">
-                             <enum>QFrame::NoFrame</enum>
-                            </property>
-                            <property name="verticalScrollBarPolicy">
-                             <enum>Qt::ScrollBarAlwaysOn</enum>
-                            </property>
-                            <property name="sizeAdjustPolicy">
-                             <enum>QAbstractScrollArea::AdjustToContents</enum>
-                            </property>
-                            <property name="editTriggers">
-                             <set>QAbstractItemView::NoEditTriggers</set>
-                            </property>
-                            <property name="selectionMode">
-                             <enum>QAbstractItemView::SingleSelection</enum>
-                            </property>
-                            <property name="selectionBehavior">
-                             <enum>QAbstractItemView::SelectRows</enum>
-                            </property>
-                            <property name="rowCount">
-                             <number>16</number>
-                            </property>
-                            <property name="columnCount">
-                             <number>4</number>
-                            </property>
-                            <attribute name="horizontalHeaderVisible">
-                             <bool>false</bool>
-                            </attribute>
-                            <attribute name="horizontalHeaderCascadingSectionResizes">
-                             <bool>true</bool>
-                            </attribute>
-                            <attribute name="horizontalHeaderDefaultSectionSize">
-                             <number>200</number>
-                            </attribute>
-                            <attribute name="horizontalHeaderStretchLastSection">
-                             <bool>true</bool>
-                            </attribute>
-                            <attribute name="verticalHeaderVisible">
-                             <bool>false</bool>
-                            </attribute>
-                            <attribute name="verticalHeaderHighlightSections">
-                             <bool>false</bool>
-                            </attribute>
-                            <attribute name="verticalHeaderStretchLastSection">
-                             <bool>true</bool>
-                            </attribute>
-                            <row>
-                             <property name="text">
-                              <string>New one</string>
-                             </property>
-                            </row>
-                            <row>
-                             <property name="text">
-                              <string>New one</string>
-                             </property>
-                            </row>
-                            <row>
-                             <property name="text">
-                              <string>New one</string>
-                             </property>
-                            </row>
-                            <row>
-                             <property name="text">
-                              <string>New one</string>
-                             </property>
-                            </row>
-                            <row>
-                             <property name="text">
-                              <string>New one</string>
-                             </property>
-                            </row>
-                            <row>
-                             <property name="text">
-                              <string>New one</string>
-                             </property>
-                            </row>
-                            <row>
-                             <property name="text">
-                              <string>New one</string>
-                             </property>
-                            </row>
-                            <row>
-                             <property name="text">
-                              <string>New one</string>
-                             </property>
-                            </row>
-                            <row>
-                             <property name="text">
-                              <string>New one</string>
-                             </property>
-                            </row>
-                            <row>
-                             <property name="text">
-                              <string>New one</string>
-                             </property>
-                            </row>
-                            <row>
-                             <property name="text">
-                              <string>New one</string>
-                             </property>
-                            </row>
-                            <row>
-                             <property name="text">
-                              <string>New one</string>
-                             </property>
-                            </row>
-                            <row>
-                             <property name="text">
-                              <string>New one</string>
-                             </property>
-                            </row>
-                            <row>
-                             <property name="text">
-                              <string>New one</string>
-                             </property>
-                            </row>
-                            <row>
-                             <property name="text">
-                              <string>New one</string>
-                             </property>
-                            </row>
-                            <row>
-                             <property name="text">
-                              <string>New one</string>
-                             </property>
-                            </row>
-                            <column>
-                             <property name="text">
-                              <string>0</string>
-                             </property>
-                            </column>
-                            <column>
-                             <property name="text">
-                              <string>1</string>
-                             </property>
-                            </column>
-                            <column>
-                             <property name="text">
-                              <string>2</string>
-                             </property>
-                            </column>
-                            <column>
-                             <property name="text">
-                              <string>3</string>
-                             </property>
-                            </column>
-                            <item row="0" column="0">
-                             <property name="text">
-                              <string>Test</string>
-                             </property>
-                            </item>
-                            <item row="0" column="1">
-                             <property name="text">
-                              <string>Text</string>
-                             </property>
-                            </item>
-                            <item row="0" column="2">
-                             <property name="text">
-                              <string>Column</string>
-                             </property>
-                            </item>
-                            <item row="0" column="3">
-                             <property name="text">
-                              <string>Line</string>
-                             </property>
-                            </item>
-                           </widget>
-                          </item>
-                         </layout>
-                        </widget>
-                       </item>
-                      </layout>
-                     </widget>
-                     <widget class="QWidget" name="new_page">
-                      <layout class="QVBoxLayout" name="verticalLayout_23">
-                       <item>
-                        <widget class="QLabel" name="label">
-                         <property name="text">
-                          <string>NEW PAGE TEST</string>
-                         </property>
-                         <property name="alignment">
-                          <set>Qt::AlignCenter</set>
-                         </property>
-                        </widget>
-                       </item>
-                      </layout>
-                     </widget>
-                    </widget>
-                   </item>
-                  </layout>
-                 </widget>
-                </item>
-                <item>
-                 <widget class="QFrame" name="extraRightBox">
-                  <property name="maximumSize">
-                   <size>
-                    <width>0</width>
-                    <height>16777215</height>
-                   </size>
-                  </property>
-                  <property name="frameShape">
-                   <enum>QFrame::NoFrame</enum>
-                  </property>
-                  <property name="frameShadow">
-                   <enum>QFrame::Raised</enum>
-                  </property>
-                  <layout class="QVBoxLayout" name="verticalLayout_14">
-                   <property name="spacing">
-                    <number>0</number>
-                   </property>
-                   <property name="leftMargin">
-                    <number>0</number>
-                   </property>
-                   <property name="topMargin">
-                    <number>0</number>
-                   </property>
-                   <property name="rightMargin">
-                    <number>0</number>
-                   </property>
-                   <property name="bottomMargin">
-                    <number>0</number>
-                   </property>
-                   <item>
-                    <widget class="QFrame" name="themeSettingsTopDetail">
-                     <property name="maximumSize">
-                      <size>
-                       <width>16777215</width>
-                       <height>3</height>
-                      </size>
-                     </property>
-                     <property name="frameShape">
-                      <enum>QFrame::NoFrame</enum>
-                     </property>
-                     <property name="frameShadow">
-                      <enum>QFrame::Raised</enum>
-                     </property>
-                    </widget>
-                   </item>
-                   <item>
-                    <widget class="QFrame" name="contentSettings">
-                     <property name="frameShape">
-                      <enum>QFrame::NoFrame</enum>
-                     </property>
-                     <property name="frameShadow">
-                      <enum>QFrame::Raised</enum>
-                     </property>
-                     <layout class="QVBoxLayout" name="verticalLayout_15">
-                      <property name="spacing">
-                       <number>0</number>
-                      </property>
-                      <property name="leftMargin">
-                       <number>0</number>
-                      </property>
-                      <property name="topMargin">
-                       <number>0</number>
-                      </property>
-                      <property name="rightMargin">
-                       <number>0</number>
-                      </property>
-                      <property name="bottomMargin">
-                       <number>0</number>
-                      </property>
-                      <item alignment="Qt::AlignTop">
-                       <widget class="QFrame" name="topMenus">
-                        <property name="frameShape">
-                         <enum>QFrame::NoFrame</enum>
-                        </property>
-                        <property name="frameShadow">
-                         <enum>QFrame::Raised</enum>
-                        </property>
-                        <layout class="QVBoxLayout" name="verticalLayout_16">
-                         <property name="spacing">
-                          <number>0</number>
-                         </property>
-                         <property name="leftMargin">
-                          <number>0</number>
-                         </property>
-                         <property name="topMargin">
-                          <number>0</number>
-                         </property>
-                         <property name="rightMargin">
-                          <number>0</number>
-                         </property>
-                         <property name="bottomMargin">
-                          <number>0</number>
-                         </property>
-                         <item>
-                          <widget class="QPushButton" name="btn_message">
-                           <property name="sizePolicy">
-                            <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
-                             <horstretch>0</horstretch>
-                             <verstretch>0</verstretch>
-                            </sizepolicy>
-                           </property>
-                           <property name="minimumSize">
-                            <size>
-                             <width>0</width>
-                             <height>45</height>
-                            </size>
-                           </property>
-                           <property name="cursor">
-                            <cursorShape>PointingHandCursor</cursorShape>
-                           </property>
-                           <property name="styleSheet">
-                            <string notr="true">background-image: url(:/res/icons/cil-envelope-open.png);</string>
-                           </property>
-                           <property name="text">
-                            <string>Message</string>
-                           </property>
-                          </widget>
-                         </item>
-                         <item>
-                          <widget class="QPushButton" name="btn_print">
-                           <property name="styleSheet">
-                            <string notr="true">background-image: url(:/res/icons/cil-print.png);</string>
-                           </property>
-                           <property name="text">
-                            <string>Print</string>
-                           </property>
-                          </widget>
-                         </item>
-                         <item>
-                          <widget class="QPushButton" name="btn_logout">
-                           <property name="sizePolicy">
-                            <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
-                             <horstretch>0</horstretch>
-                             <verstretch>0</verstretch>
-                            </sizepolicy>
-                           </property>
-                           <property name="minimumSize">
-                            <size>
-                             <width>0</width>
-                             <height>45</height>
-                            </size>
-                           </property>
-                           <property name="cursor">
-                            <cursorShape>PointingHandCursor</cursorShape>
-                           </property>
-                           <property name="styleSheet">
-                            <string notr="true">background-image: url(:/res/icons/cil-account-logout.png);</string>
-                           </property>
-                           <property name="text">
-                            <string>Logout</string>
-                           </property>
-                          </widget>
-                         </item>
-                        </layout>
-                       </widget>
-                      </item>
-                     </layout>
-                    </widget>
-                   </item>
-                  </layout>
-                 </widget>
-                </item>
-               </layout>
-              </widget>
-             </item>
-             <item>
-              <widget class="QFrame" name="bottomBar">
-               <property name="minimumSize">
-                <size>
-                 <width>0</width>
-                 <height>22</height>
-                </size>
-               </property>
-               <property name="maximumSize">
-                <size>
-                 <width>16777215</width>
-                 <height>22</height>
-                </size>
-               </property>
-               <property name="frameShape">
-                <enum>QFrame::NoFrame</enum>
-               </property>
-               <property name="frameShadow">
-                <enum>QFrame::Raised</enum>
-               </property>
-               <layout class="QHBoxLayout" name="horizontalLayout_5">
-                <property name="spacing">
-                 <number>0</number>
-                </property>
-                <property name="leftMargin">
-                 <number>0</number>
-                </property>
-                <property name="topMargin">
-                 <number>0</number>
-                </property>
-                <property name="rightMargin">
-                 <number>0</number>
-                </property>
-                <property name="bottomMargin">
-                 <number>0</number>
-                </property>
-                <item>
-                 <widget class="QLabel" name="creditsLabel">
-                  <property name="maximumSize">
-                   <size>
-                    <width>16777215</width>
-                    <height>16</height>
-                   </size>
-                  </property>
-                  <property name="text">
-                   <string>By: 赵孟收</string>
-                  </property>
-                 </widget>
-                </item>
-                <item>
-                 <widget class="QLabel" name="version">
-                  <property name="maximumSize">
-                   <size>
-                    <width>16777215</width>
-                    <height>16</height>
-                   </size>
-                  </property>
-                  <property name="text">
-                   <string>v0.0.1</string>
-                  </property>
-                  <property name="alignment">
-                   <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
-                  </property>
-                 </widget>
-                </item>
-                <item>
-                 <widget class="QFrame" name="frame_size_grip">
-                  <property name="minimumSize">
-                   <size>
-                    <width>20</width>
-                    <height>0</height>
-                   </size>
-                  </property>
-                  <property name="maximumSize">
-                   <size>
-                    <width>20</width>
-                    <height>16777215</height>
-                   </size>
-                  </property>
-                  <property name="frameShape">
-                   <enum>QFrame::NoFrame</enum>
-                  </property>
-                  <property name="frameShadow">
-                   <enum>QFrame::Raised</enum>
-                  </property>
-                 </widget>
-                </item>
-               </layout>
-              </widget>
-             </item>
-            </layout>
-           </widget>
-          </item>
-         </layout>
-        </widget>
-       </item>
-      </layout>
-     </widget>
-    </item>
-   </layout>
-  </widget>
- </widget>
- <resources>
-  <include location="../app.qrc"/>
- </resources>
- <connections/>
-</ui>

+ 0 - 19
QFD/QFDWidget/QFDWidget.pri

@@ -1,19 +0,0 @@
-INCLUDEPATH += $$PWD
-
-HEADERS += \
-    $$PWD/CustomGrip.h \
-    $$PWD/PatternCodeLock.h \
-    $$PWD/ProInfoPopWidget.h \
-    $$PWD/QFDApp.h \
-    $$PWD/ToolMenuWidget.h \
-    $$PWD/UIObject.h
-
-SOURCES += \
-    $$PWD/CustomGrip.cpp \
-    $$PWD/PatternCodeLock.cpp \
-    $$PWD/ProInfoPopWidget.cpp \
-    $$PWD/QFDApp.cpp \
-    $$PWD/ToolMenuWidget.cpp
-
-FORMS += \
-    $$PWD/QFDApp.ui

+ 0 - 53
QFD/QFDWidget/ToolMenuWidget.cpp

@@ -1,53 +0,0 @@
-#include "ToolMenuWidget.h"
-#include "UIObject.h"
-#include <QWidgetAction>
-
-ToolMenu::ToolMenu(QWidget *parent) : QMenu(parent) { }
-
-void ToolMenu::showEvent(QShowEvent *event)
-{
-    QMenu::showEvent(event);
-    emit windowStateChanged(true);
-}
-
-void ToolMenu::hideEvent(QHideEvent *event)
-{
-    QMenu::hideEvent(event);
-    emit windowStateChanged(false);
-}
-
-ToolMenuWidget::ToolMenuWidget(QWidget *parent) : QToolButton(parent)
-{
-    setCursor(Qt::PointingHandCursor);
-
-    m_menu                      = new ToolMenu(this);
-    QWidgetAction *actionWidget = new QWidgetAction(m_menu);
-    m_containWidget             = new QWidget(m_menu);
-
-    actionWidget->setDefaultWidget(m_containWidget);
-    m_menu->addAction(actionWidget);
-
-    connect(this, &ToolMenuWidget::clicked, this, &ToolMenuWidget::popupMenu);
-}
-
-ToolMenuWidget::~ToolMenuWidget()
-{
-    delete m_containWidget;
-    delete m_menu;
-}
-
-void ToolMenuWidget::setTranslucentBackground()
-{
-    m_menu->setWindowFlags(m_menu->windowFlags() | Qt::FramelessWindowHint);
-    m_menu->setAttribute(Qt::WA_TranslucentBackground);
-    //    m_menu->setStyleSheet(UIObject::MQSSMenuStyle03);
-}
-
-void ToolMenuWidget::popupMenu()
-{
-    QPoint pos = mapToGlobal(QPoint(0, 0));
-    pos.setY(pos.y() + 20);
-    pos.setX(pos.x() - (m_containWidget->width() - width()) / 2);
-
-    m_menu->exec(pos);
-}

+ 0 - 53
QFD/QFDWidget/ToolMenuWidget.h

@@ -1,53 +0,0 @@
-#ifndef TOOLMENUWIDGET_H
-#define TOOLMENUWIDGET_H
-
-#include <QMenu>
-#include <QToolButton>
-
-class ToolMenu : public QMenu
-{
-    Q_OBJECT
-public:
-    explicit ToolMenu(QWidget *parent = nullptr);
-
-signals:
-    /*!
-     * Window state changed.
-     */
-    void windowStateChanged(bool state);
-
-protected:
-    /*!
-     * Override the widget event.
-     */
-    virtual void showEvent(QShowEvent *event) override;
-    virtual void hideEvent(QHideEvent *event) override;
-};
-
-/**
- * @brief The class of the tool menu base widget.
- */
-class ToolMenuWidget : public QToolButton
-{
-    Q_OBJECT
-public:
-    explicit ToolMenuWidget(QWidget *parent = nullptr);
-    ~ToolMenuWidget();
-
-    /**
-     * @brief setTranslucentBackground
-     */
-    void setTranslucentBackground();
-
-public slots:
-    /*!
-     * To popup menu.
-     */
-    virtual void popupMenu();
-
-protected:
-    ToolMenu *m_menu;
-    QWidget *m_containWidget;
-};
-
-#endif  // TOOLMENUWIDGET_H

+ 0 - 532
QFD/QFDWidget/UIObject.h

@@ -1,532 +0,0 @@
-#ifndef UIOBJECT_H
-#define UIOBJECT_H
-
-#include <QString>
-
-namespace UIObject {
-/// Color
-const QString MQSSColor01 = "#404040";
-
-/// Color
-const QString MQSSColorStyle01 = " \
-            color:#FFFFFF;";
-
-const QString MQSSColorStyle02 = " \
-            color:#E67300;";
-
-const QString MQSSColorStyle03 = " \
-            color:#888888;";
-
-const QString MQSSColorStyle04 = " \
-            color:#AAAAAA;";
-
-const QString MQSSColorStyle05 = " \
-            color:#FF0000;";
-
-const QString MQSSColorStyle06 = " \
-            color:#F4F4F4;";
-
-const QString MQSSColorStyle07 = " \
-            color:#A0630B;";
-
-const QString MQSSColorStyle08 = " \
-            color:#158FE1;";
-
-const QString MQSSColorStyle09 = " \
-            color:#666666;";
-
-const QString MQSSColorStyle10 = " \
-            color:#444444;";
-
-const QString MQSSColorStyle11 = " \
-            color:#169AF3;";
-
-const QString MQSSColorStyle12 = " \
-            color:#323232;";
-
-const QString MQSSColorStyle13 = " \
-            color:#000000;";
-
-const QString MQSSColorStyle14 = " \
-            color:#CCCCCC;";
-
-const QString MQSSColorStyle15 = " \
-            color:#404040;";
-
-/// Background
-const QString MQSSBackgroundStyle01 = " \
-            background-color:transparent; "
-#ifdef Q_OS_UNIX
-        + QString("border-style:falt;")
-#endif
-        ;
-
-const QString MQSSBackgroundStyle02 = " \
-            background-color:black;";
-
-const QString MQSSBackgroundStyle03 = " \
-            background-color:rgb(240, 240, 240);";
-
-const QString MQSSBackgroundStyle04 = " \
-            background-color:rgba(0, 0, 0, 50);";
-
-const QString MQSSBackgroundStyle05 = " \
-            background:rgb(250, 231, 191);";
-
-const QString MQSSBackgroundStyle06 = " \
-            background:rgba(41, 41, 41);";
-
-const QString MQSSBackgroundStyle07 = " \
-            background:rgba(0, 0, 0, 35);";
-
-const QString MQSSBackgroundStyle08 = " \
-            background:rgba(0, 0, 0, 100);";
-
-const QString MQSSBackgroundStyle09 = " \
-            background:rgba(255, 255, 255, 25);";
-
-const QString MQSSBackgroundStyle10 = " \
-            background:rgba(255 ,255, 255, 50);";
-
-const QString MQSSBackgroundStyle11 = " \
-            background:rgba(255, 255, 255, 125);";
-
-const QString MQSSBackgroundStyle12 = " \
-            background:rgba(255, 255, 255, 180);";
-
-const QString MQSSBackgroundStyle13 = " \
-            background:rgba(255, 255, 255, 200);";
-
-const QString MQSSBackgroundStyle14 = " \
-            background:#158FE1;";
-
-const QString MQSSBackgroundStyle15 = " \
-            background:#BFBFBF;";
-
-const QString MQSSBackgroundStyle16 = " \
-            background:#F9D982;";
-
-const QString MQSSBackgroundStyle17 = " \
-            background:#FFFFFF;";
-
-const QString MQSSBackgroundStyle18 = " \
-            background:rgb(254, 249, 229);";
-
-const QString MQSSBackgroundStyle19 = " \
-            background:rgba(0, 0, 0, 175);";
-
-const QString MQSSBackgroundStyle20 = " \
-            background:#EDF8FE;";
-
-/// border
-const QString MQSSBorderStyle01 = " \
-            border:none;";
-
-const QString MQSSBorderStyle02 = " \
-            border:1px solid #666666;";
-
-const QString MQSSBorderStyle03 = " \
-            border:1px solid #555555;";
-
-const QString MQSSBorderStyle04 = " \
-            border:1px solid gray;";
-
-const QString MQSSBorderStyle05 = " \
-            border:1px solid #0095CD;";
-
-const QString MQSSBorderStyle06 = " \
-            border-top:1px dashed gray;";
-
-const QString MQSSBorderStyle07 = " \
-            border-radius:3px;";
-
-/// Font
-const QString MQSSFontStyle01 = " \
-            font-weight:bold;";
-
-const QString MQSSFontStyle02 = " \
-            font-size:12px;";
-
-const QString MQSSFontStyle03 = " \
-            font-size:15px;";
-
-const QString MQSSFontStyle04 = " \
-            font-size:18px;";
-
-const QString MQSSFontStyle05 = " \
-            font-size:20px;";
-
-const QString MQSSFontStyle06 = " \
-            font-size:25px;";
-
-/// Custom
-const QString MQSSCustomStyle01 = " \
-            text-align:left;";
-
-const QString MQSSCustomStyle02 = " \
-            text-align:center;";
-
-/// ToolButton
-const QString MQSSToolButtonStyle01 = " \
-            QToolButton{  background-color:transparent; "
-        +
-#ifdef Q_OS_UNIX
-        QString("border-style:falt;") +
-#endif
-        QString("}");
-
-const QString MQSSToolButtonStyle02 = " \
-            QToolButton::hover{ border:1px solid #000000; }";
-
-const QString MQSSToolButtonStyle03 = " \
-            QToolButton{ border:none; }";
-
-const QString MQSSToolButtonStyle04 = MQSSToolButtonStyle01 + MQSSToolButtonStyle03 + " \
-            QToolButton::hover{ background-color:rgba(255, 255, 255, 20); }";
-
-const QString MQSSToolButtonStyle05 = MQSSToolButtonStyle01 + " \
-            QToolButton::menu-indicator{ image:None; }";
-
-const QString MQSSToolButtonStyle06 = " \
-            QToolButton{ border:1px solid #777777; background:#FFFFFF; color:#555555; } \
-            QToolButton::hover{ border:1px solid #444444; color:#222222; } \
-            QToolButton::disabled{ color:#999999; border:1px solid #BBBBBB; }";
-
-/// PushButton
-const QString MQSSPushButtonStyle01 = " \
-            QPushButton{ background-color:transparent; "
-        +
-#ifdef Q_OS_UNIX
-        QString("border-style:falt;") +
-#endif
-        QString("}");
-
-const QString MQSSPushButtonStyle02 = MQSSPushButtonStyle01 + " \
-            QPushButton{ border-none; }";
-
-const QString MQSSPushButtonStyle03 = " \
-            QPushButton{ border-radius:3px; background-color:#158FE1; color:white; } \
-            QPushButton::disabled{ background-color:#BBBBBB; }";
-
-const QString MQSSPushButtonStyle04 = " \
-            QPushButton{ border:1px solid #AAAAAA; background:#FFFFFF; color:#777777; } \
-            QPushButton::hover{ border:1px solid #555555; color:#444444; } \
-            QPushButton::disabled{ color:#BBBBBB; border:1px solid #DDDDDD; }";
-
-const QString MQSSPushButtonStyle05 = " \
-            QPushButton{ border:none; color:#3333FF; } \
-            QPushButton::hover{ color:#7777FF; }";
-
-const QString MQSSPushButtonStyle06 = MQSSPushButtonStyle03 + " \
-            QPushButton{ font-size:17px; font-weight:bold; }";
-
-const QString MQSSPushButtonStyle07 = MQSSPushButtonStyle02 + " \
-            QPushButton{ font-size:12px; color:#FFFFFF; }";
-
-const QString MQSSPushButtonStyle08 = " \
-            QPushButton{ color:#CCCCCC; } \
-            QPushButton:hover{ color:#FFFFFF; }";
-
-const QString MQSSPushButtonStyle09 = MQSSPushButtonStyle08 + " \
-            QPushButton{ text-align:right; }";
-
-const QString MQSSPushButtonStyle10 = MQSSPushButtonStyle01 + " \
-            QPushButton::hover{ border:1px solid #000000; }";
-
-const QString MQSSPushButtonStyle11 = " \
-            QPushButton{ border-radius:5px; font-size:20px; \
-            background:rgba(0, 0, 0, 50); } \
-            QPushButton::hover{ background:rgba(0, 0, 0, 100); }";
-
-const QString MQSSPushButtonStyle12 = " \
-            QPushButton{ border-radius:2px; background:rgba(0, 0, 0, 50); }";
-
-const QString MQSSPushButtonStyle13 = " \
-            QPushButton::menu-indicator{ image:none; }";
-
-const QString MQSSPushButtonStyle14 = " \
-            QPushButton{ color:#E6C117; } \
-            QPushButton:hover{ color:#E6E317; } \
-            QPushButton{ text-align:right; }";
-
-const QString MQSSPushButtonStyle15 = " \
-            QPushButton{ background-color:#DDDDDD; color:#222222; }";
-
-/// RadioButton
-const QString MQSSRadioButtonStyle01 = " \
-            QRadioButton{ background-color:transparent; } \
-            QRadioButton::indicator::unchecked{ image:url(:/control/btn_radioButton_unchecked); } \
-            QRadioButton::checked { color:#E67300; } \
-            QRadioButton::indicator:checked { image:url(:/control/btn_radiobutton_checked); } \
-            QRadioButton::disabled{ color:#BBBBBB; }";
-
-/// CheckBox
-const QString MQSSCheckBoxStyle01 = " \
-            QCheckBox{ background-color:transparent; } \
-            QCheckBox::indicator::unchecked{ image:url(:/control/btn_checkBox_unchecked); } \
-            QCheckBox::checked{ color:#E67300; } \
-            QCheckBox::indicator:checked { image:url(:/control/btn_checkBox_checked); } \
-            QCheckBox::disabled{ color:#BBBBBB; }";
-
-const QString MQSSCheckBoxStyle02 = " \
-            QCheckBox{ background-color:transparent; } \
-            QCheckBox::indicator::unchecked{ image:url(:/control/btn_radioButton2_unchecked); } \
-            QCheckBox::checked { color:#E67300; } \
-            QCheckBox::indicator:checked { image:url(:/control/btn_radiobutton2_checked); } \
-            QCheckBox::disabled{ color:#BBBBBB; }";
-
-const QString MQSSCheckBoxStyle03 = MQSSCheckBoxStyle01 + " \
-            QCheckBox::checked{ color:rgb(0, 169, 236); }";
-
-const QString MQSSCheckBoxStyle04 = MQSSCheckBoxStyle01 + " \
-            QCheckBox{ color:#888888; }";
-
-const QString MQSSCheckBoxStyle05 = " \
-            QCheckBox{ background-color:transparent; color:rgb(222, 222, 222); } \
-            QCheckBox::indicator::unchecked{ image:url(:/control/btn_checkBox2_unchecked); } \
-            QCheckBox::checked { color:rgb(255, 255, 255); } \
-            QCheckBox::indicator:checked { image:url(:/control/btn_checkBox2_checked); } \
-            QCheckBox::disabled{ color:#BBBBBB; }";
-
-/// GroupBox
-const QString MQSSGroupBoxStyle01 = " \
-            QGroupBox::indicator::unchecked{ image:url(:/control/btn_checkBox_unchecked); } \
-            QGroupBox::indicator:checked { image:url(:/control/btn_checkBox_checked); }";
-
-/// ScrollBar
-const QString MQSSScrollBarStyle01 = " \
-            QScrollBar{ background:#FFFFFF; width:8px; padding-top:0px; padding-bottom:0px; } \
-            QScrollBar::handle:vertical{ border-radius:4px; background:#CFCFCF; min-height: 30px; } \
-            QScrollBar::handle:vertical::disabled{ background:#DBDBDB; } \
-            QScrollBar::handle:vertical:hover{ background:#BBBBBB; } \
-            QScrollBar::add-line, QScrollBar::sub-line{ background:none; border:none; } \
-            QScrollBar::add-page, QScrollBar::sub-page{ background:none; }";
-
-const QString MQSSScrollBarStyle02 = " \
-            QScrollBar{ background:#FFFFFF; height:8px; padding-left:0px; padding-right:0px; } \
-            QScrollBar::handle:horizontal{ border-radius:4px; background:#CFCFCF; min-width: 30px; } \
-            QScrollBar::handle:horizontal::disabled{ background:#DBDBDB; } \
-            QScrollBar::handle:horizontal:hover{ background:#BBBBBB; } \
-            QScrollBar::add-line, QScrollBar::sub-line{ background:none; border:none; } \
-            QScrollBar::add-page, QScrollBar::sub-page{ background:none; }";
-
-const QString MQSSScrollBarStyle03 = MQSSScrollBarStyle01 + " \
-            QScrollBar{ background:transparent; }";
-
-const QString MQSSScrollBarStyle04 = MQSSScrollBarStyle02 + " \
-            QScrollBar{ background:transparent; }";
-
-const QString MQSSScrollBarStyle05 = " \
-            QScrollBar{ background:rgba(255, 255, 255, %1); }";
-
-/// Label
-const QString MQSSLabelStyle01 = " \
-            QLabel{ color:#888888; background-color:#FFE6E6; border:1px solid gray; }";
-
-const QString MQSSLabelStyle02 = " \
-            QLabel{ color:#777777; font-size:15px; } \
-            QLabel::hover{ color:rgb(22, 154, 243); }";
-
-const QString MQSSLabelStyle03 = " \
-            QLabel{ color:rgb(22, 154, 243); }";
-
-/// LineEdit
-const QString MQSSLineEditStyle01 = " \
-            QLineEdit{ font-size:12px; color:#666666; font-weight:normal; border:1px solid gray; } \
-            QLineEdit::hover{ border:1px solid rgb(22, 154, 243); } \
-            QLineEdit::disabled{ color:#BBBBBB; border:1px solid #BBBBBB; }";
-
-const QString MQSSLineEditStyle02 = " \
-            QLineEdit{ border-image:url(:/tiny/lb_transparent); }";
-
-const QString MQSSLineEditStyle03 = MQSSLineEditStyle02 + " \
-            QLineEdit{ font-size:13px; color:#333333; }";
-
-const QString MQSSLineEditStyle04 = MQSSLineEditStyle02 + " \
-            QLineEdit{ color:#6495ED; }";
-
-const QString MQSSLineEditStyle05 = " \
-            QLineEdit{ color:#6495ED; border:1px solid #555555; }";
-
-const QString MQSSLineEditStyle06 = MQSSLineEditStyle01 + " \
-            QLineEdit{ color:white; border:1px solid #545454; } \
-            QLineEdit::disabled{ color:#323232; border:1px solid #323232; }";
-
-/// Menu
-const QString MQSSMenuStyle01 = " \
-            QMenu{ padding:5px; } \
-            QMenu::icon{ margin-left:10px; } \
-            QMenu::right-arrow{ background: url(:/tiny/lb_arrow_up_normal); } \
-            QMenu::item{ color:#666666; padding:6px 30px 6px 30px; border:1px solid transparent; } \
-            QMenu::item:disabled{ color:#AAAAAA; } \
-            QMenu::item:selected{ color:white; background: rgb(22, 154, 243); } \
-            QMenu::separator{ height:1px; background:#DDDDDD; margin-top:5px; margin-bottom:5px; }"
-        + QString();
-
-const QString MQSSMenuStyle02 = MQSSMenuStyle01 + " \
-            QMenu{ background:rgba(255, 255, 255, 235); }";
-
-const QString MQSSMenuStyle03 = MQSSMenuStyle01 + " \
-            QMenu{ border:none; background:rgba(0, 0, 0, 210); border-radius:4px; } \
-            QMenu::item{ color:#BBBBBB; } \
-            QMenu::item:disabled{ color:#555555; } \
-            QMenu::item:selected{ background:rgba(0, 0, 0, 200); } \
-            QMenu::separator{ background:#BBBBBB; }";
-
-const QString MQSSMenuStyle04 = MQSSMenuStyle03 + " \
-            QMenu{ background:rgba(0, 0, 0, 150); }";
-
-const QString MQSSMenuStyle05 = " \
-            QMenu{ border:none; background:transparent; }";
-
-/// Slider
-const QString MQSSSliderStyle01 = " \
-            QSlider::groove:horizontal{ \
-            background:#FFFEA1; height:3px; border-radius:1px; } \
-            QSlider::sub-page:horizontal{ background:#FFFEA1; } \
-            QSlider::add-page:horizontal{ background:#4E4F4F; } \
-            QSlider::handle:horizontal{ background:#FFFEA1; \
-            width:9px; margin-top:-3px; margin-bottom:-3px; border-radius:4px; }";
-
-const QString MQSSSliderStyle02 = " \
-            QSlider::groove:vertical{ \
-            background: #FFFEA1; width:3px; border-radius:1px; } \
-            QSlider::sub-page:vertical{ background:#4E4F4F; } \
-            QSlider::add-page:vertical{ background:#FFFEA1; } \
-            QSlider::handle:vertical{ background:#FFFEA1; \
-            height:9px; margin-left:-3px; margin-right:-3px; border-radius:4px; }";
-
-const QString MQSSSliderStyle03 = " \
-            QSlider::groove:vertical{ background: qlineargradient(x1:0, y1:0, x2:0, y2:1, \
-            stop:0 #B5B4B4, stop:1 #FCFCFC); width:3px; } \
-            QSlider::handle:vertical{ border-image:url(:/control/lb_slider_handle_normal); \
-            height:21px; margin-left:-8px; margin-right:-8px; } \
-            QSlider::handle:vertical:disabled{ border-image:url(:/control/lb_slider_disable); } \
-            QSlider::handle:vertical:hover{ border-image:url(:/control/lb_slider_handle_hover); border:none; }";
-
-const QString MQSSSliderStyle04 = MQSSSliderStyle03 + " \
-            QSlider::groove:vertical{ background:white; } \
-            QSlider::sub-page:vertical{ background:#AFC7F8; } \
-            QSlider::add-page:vertical{ background:white; border:1px solid #ACF; }";
-
-const QString MQSSSliderStyle05 = " \
-            QSlider::groove:horizontal{ background: qlineargradient(x1:0, y1:0, x2:0, y2:1, \
-            stop:0 #B5B4B4, stop:1 #FCFCFC); height:4px; } \
-            QSlider::handle:horizontal{ border-image:url(:/control/lb_slider_handle_normal); \
-            width:21px; margin-top:-8px; margin-bottom:-8px; } \
-            QSlider::handle:horizontal:disabled{ border-image:url(:/control/lb_slider_disable); } \
-            QSlider::handle:horizontal:hover{ border-image:url(:/control/lb_slider_handle_hover); border:none; }";
-
-const QString MQSSSliderStyle06 = MQSSSliderStyle05 + " \
-            QSlider::groove:horizontal{ background:white; } \
-            QSlider::sub-page:horizontal{ background:#AFC7F8; } \
-            QSlider::add-page:horizontal{ background:white; border:1px solid #ACF; }";
-
-const QString MQSSSliderStyle07 = " \
-            QSlider::add-page:Horizontal{ background-color:rgba(120, 120, 120, 100); height:4px; } \
-            QSlider::sub-page:Horizontal{ background-color:qlineargradient(spread:pad, x1:0, y1:0, x2:1, \
-            y2:0, stop:0 rgba(231, 80, 229, 255), stop:1 rgba(7, 208, 255, 255)); height:4px; } \
-            QSlider::groove:Horizontal{ background:transparent; height:4px; } \
-            QSlider::handle:Horizontal{ border-image:url(':/image/lb_slider'); \
-            width:8px; height:6px; margin:-2px 0px -2px 0px; }";
-
-const QString MQSSSliderStyle08 = " \
-            QSlider::groove:horizontal{ background-image:url(:/control/lb_volume_back); } \
-            QSlider::sub-page:horizontal{ border-image:url(:/control/lb_volume_fore); } \
-            QSlider::add-page:horizontal{ background-image:url(:/control/lb_volume_back); } \
-            QSlider::handle:horizontal{ margin:0px -2px 0px -2px; \
-            background-image:url(:/control/lb_volume_handle_normal); width:13px; } \
-            QSlider::handle:horizontal:hover{ background-image:url(:/control/lb_volume_handle_hover); }";
-
-const QString MQSSSliderStyle09 = " \
-            QSlider::groove:horizontal{ background-image:url(:/control/lb_volume_back); } \
-            QSlider::sub-page:horizontal{ border-image:url(:/control/lb_make_fore); } \
-            QSlider::add-page:horizontal{ border-image:url(:/control/lb_make_back); } \
-            QSlider::handle:horizontal{ margin:0px -1px 0px -1x; \
-            border-image:url(:/control/lb_make_slider_handle_normal); width:18px; } \
-            QSlider::handle:horizontal:hover{ border-image:url(:/control/lb_make_slider_handle_hover); } \
-            QSlider::handle:horizontal:disabled{ border-image:url(:/control/lb_make_slider_disable); }";
-
-const QString MQSSSliderStyle10 = " \
-            QSlider::groove:horizontal{ \
-            background:transparent; height:3px; border-radius:1px; } \
-            QSlider::sub-page:horizontal{ background:rgba(255, 255, 255, 190); } \
-            QSlider::add-page:horizontal{ background:rgba(255, 255, 255, 50); } \
-            QSlider::handle:horizontal{ background:rgba(255, 255, 255, 255); \
-            width:9px; margin-top:-3px; margin-bottom:-3px; border-radius:4px; }";
-
-/// ComboBox
-const QString MQSSComboBoxStyle01 = " \
-            QComboBox{ border: 1px solid gray; } \
-            QComboBox::hover{ border: 1px solid rgb(22, 154, 243); } \
-            QComboBox::drop-down{ subcontrol-origin:padding; \
-            subcontrol-position:top right; width:20px; border-left:none; } \
-            QComboBox::down-arrow{ image:url(:/usermanager/btn_down_arrow); } \
-            QComboBox::disabled{ border: 1px solid #BBBBBB; }";
-
-const QString MQSSComboBoxStyle02 = MQSSComboBoxStyle01 + " \
-            QComboBox{ border:none; } \
-            QComboBox::hover{ border:none; }";
-
-/// TableWidget
-const QString MQSSTableWidgetStyle01 = " \
-            QTableWidget{ selection-background-color:rgba(20, 20, 20, 20); }";
-
-const QString MQSSTableWidgetStyle02 = " \
-            QTableWidget{ selection-background-color:rgb(220, 220, 220); }";
-
-const QString MQSSTableWidgetStyle03 = " \
-            QTableWidget{ selection-background-color:rgb(50, 50, 50); }";
-
-const QString MQSSTableWidgetStyle04 = " \
-            QTableWidget{ background:rgba(0, 0, 0, 255); }";
-
-/// TabWidget
-const QString MQSSTabWidgetStyle01 = " \
-            QTabWidget{ border:none; } \
-            QTabWidget::pane{ border:none; } \
-            QTabBar::tab{ height:30px; width:100px; background-color:#BFBFBF; color:white; margin-left:0; margin-right:0; } \
-            QTabBar::tab:selected{ background-color:#158FE1; color:white}";
-
-/// TextEdit
-const QString MQSSTextEditStyle01 = " \
-            QTextEdit{ border:1px solid gray; color:#666666; } \
-            QTextEdit::hover{ border:1px solid rgb(22, 154, 243); } \
-            QTextEdit::disabled{ color:#BBBBBB; border: 1px solid #BBBBBB; }";
-
-/// HeadView
-const QString MQSSHeaderView01 = " \
-            QHeaderView{ background-color:white; color:black; }";
-
-/// Widget
-const QString MQSSWidgetStyle01 = " \
-            QWidget{ background:rgba(255, 255, 255, 50); color:white; font-weight:bold; }";
-
-/// DateEdit
-const QString MQSSDateEditStyle01 = " \
-            QDateEdit{ font-size:12px; color:#666666; font-weight:normal; border: 1px solid gray; } \
-            QDateEdit::hover{ border:1px solid rgb(22, 154, 243); } \
-            QDateEdit::up-button{ image:url(:/usermanager/btn_up_arrow); } \
-            QDateEdit::down-button{ image:url(:/usermanager/btn_down_arrow); } \
-            QDateEdit::disabled{ color:#BBBBBB; border: 1px solid #BBBBBB; }";
-
-/// SpinBox
-const QString MQSSSpinBoxStyle01 = " \
-            QSpinBox{ font-size:12px; color:#666666; font-weight:normal; border: 1px solid gray; } \
-            QSpinBoxt::hover{ border:1px solid rgb(22, 154, 243); } \
-            QSpinBox::up-button{ image:url(:/usermanager/btn_up_arrow); } \
-            QSpinBox::down-button{ image:url(:/usermanager/btn_down_arrow); } \
-            QSpinBox::disabled{ color:#BBBBBB; border: 1px solid #BBBBBB; }";
-
-/// ProgressBar
-const QString MQSSProgressBar01 = " \
-            QProgressBar{ border:none; background:rgb(210, 225, 240); text-align:center; } \
-            QProgressBar::chunk{ background:rgb(60, 140, 220); }";
-
-/// ItemView
-const QString MQSSItemView01 = " \
-            QAbstractItemView::item { height:20px; }";
-
-}  // namespace UIObject
-
-#endif  // UIOBJECT_H

+ 0 - 18
QFD/mindmap/aboutdialog.cpp

@@ -1,18 +0,0 @@
-#include "aboutdialog.h"
-#include "ui_aboutdialog.h"
-
-AboutDialog::AboutDialog(QWidget *parent) : QDialog(parent), ui(new Ui::AboutDialog)
-{
-    setWindowFlags(Qt::CustomizeWindowHint | Qt::WindowCloseButtonHint);
-    ui->setupUi(this);
-}
-
-AboutDialog::~AboutDialog()
-{
-    delete ui;
-}
-
-void AboutDialog::on_btnOk_clicked()
-{
-    close();
-}

+ 0 - 24
QFD/mindmap/aboutdialog.h

@@ -1,24 +0,0 @@
-#ifndef ABOUTDIALOG_H
-#define ABOUTDIALOG_H
-
-#include <QDialog>
-
-namespace Ui {
-class AboutDialog;
-}
-
-class AboutDialog : public QDialog {
-    Q_OBJECT
-
-public:
-    explicit AboutDialog(QWidget* parent = nullptr);
-    ~AboutDialog();
-
-private slots:
-    void on_btnOk_clicked();
-
-private:
-    Ui::AboutDialog* ui;
-};
-
-#endif // ABOUTDIALOG_H

+ 0 - 145
QFD/mindmap/aboutdialog.ui

@@ -1,145 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<ui version="4.0">
- <class>AboutDialog</class>
- <widget class="QDialog" name="AboutDialog">
-  <property name="geometry">
-   <rect>
-    <x>0</x>
-    <y>0</y>
-    <width>446</width>
-    <height>239</height>
-   </rect>
-  </property>
-  <property name="font">
-   <font>
-    <family>新宋体</family>
-    <pointsize>11</pointsize>
-   </font>
-  </property>
-  <property name="windowTitle">
-   <string>Dialog</string>
-  </property>
-  <layout class="QVBoxLayout" name="verticalLayout">
-   <item>
-    <widget class="QWidget" name="widget" native="true">
-     <layout class="QVBoxLayout" name="verticalLayout_2">
-      <property name="leftMargin">
-       <number>64</number>
-      </property>
-      <property name="topMargin">
-       <number>0</number>
-      </property>
-      <property name="rightMargin">
-       <number>64</number>
-      </property>
-      <item>
-       <layout class="QHBoxLayout" name="horizontalLayout_2">
-        <property name="spacing">
-         <number>16</number>
-        </property>
-        <item>
-         <widget class="QLabel" name="lblLogo">
-          <property name="minimumSize">
-           <size>
-            <width>62</width>
-            <height>64</height>
-           </size>
-          </property>
-          <property name="maximumSize">
-           <size>
-            <width>62</width>
-            <height>64</height>
-           </size>
-          </property>
-          <property name="styleSheet">
-           <string notr="true">border-image: url(:/res/app.png);</string>
-          </property>
-          <property name="text">
-           <string/>
-          </property>
-         </widget>
-        </item>
-        <item>
-         <widget class="QLabel" name="label">
-          <property name="font">
-           <font>
-            <family>新宋体</family>
-            <pointsize>32</pointsize>
-           </font>
-          </property>
-          <property name="styleSheet">
-           <string notr="true">color: rgb(0, 188, 212);</string>
-          </property>
-          <property name="text">
-           <string>关于</string>
-          </property>
-         </widget>
-        </item>
-       </layout>
-      </item>
-      <item>
-       <widget class="Line" name="line">
-        <property name="orientation">
-         <enum>Qt::Horizontal</enum>
-        </property>
-       </widget>
-      </item>
-      <item>
-       <spacer name="verticalSpacer">
-        <property name="orientation">
-         <enum>Qt::Vertical</enum>
-        </property>
-        <property name="sizeHint" stdset="0">
-         <size>
-          <width>20</width>
-          <height>34</height>
-         </size>
-        </property>
-       </spacer>
-      </item>
-     </layout>
-    </widget>
-   </item>
-   <item>
-    <widget class="QWidget" name="widget_2" native="true">
-     <property name="minimumSize">
-      <size>
-       <width>0</width>
-       <height>41</height>
-      </size>
-     </property>
-     <property name="maximumSize">
-      <size>
-       <width>16777215</width>
-       <height>41</height>
-      </size>
-     </property>
-     <layout class="QHBoxLayout" name="horizontalLayout">
-      <item>
-       <spacer name="horizontalSpacer">
-        <property name="orientation">
-         <enum>Qt::Horizontal</enum>
-        </property>
-        <property name="sizeHint" stdset="0">
-         <size>
-          <width>289</width>
-          <height>20</height>
-         </size>
-        </property>
-       </spacer>
-      </item>
-      <item>
-       <widget class="QPushButton" name="btnOk">
-        <property name="text">
-         <string>关闭</string>
-        </property>
-       </widget>
-      </item>
-     </layout>
-    </widget>
-   </item>
-  </layout>
- </widget>
- <resources/>
- <connections/>
-</ui>

+ 0 - 3
QFD/mindmap/api/README.md

@@ -1,3 +0,0 @@
-# api
-
-项目公用代码

+ 0 - 11
QFD/mindmap/api/algo/fnconvert.cpp

@@ -1,11 +0,0 @@
-#include "fnconvert.h"
-
-FnConvert::FnConvert(QObject* parent) : QObject(parent)
-{
-
-}
-
-QString intToStr(int i)
-{
-    return QString("%1").arg(i);
-}

+ 0 - 17
QFD/mindmap/api/algo/fnconvert.h

@@ -1,17 +0,0 @@
-#ifndef FNCONVERT_H
-#define FNCONVERT_H
-
-#include <QObject>
-
-class FnConvert : public QObject
-{
-    Q_OBJECT
-public:
-    explicit FnConvert(QObject* parent = nullptr);
-
-signals:
-
-};
-QString intToStr(int i);
-
-#endif // FNCONVERT_H

+ 0 - 25
QFD/mindmap/api/algo/fndatetime.cpp

@@ -1,25 +0,0 @@
-#include "fndatetime.h"
-
-FnDateTime::FnDateTime(QObject* parent) : QObject(parent)
-{
-
-}
-
-QString secondToString(int i)
-{
-    if (i < 60)
-    {
-        return QString("00:00:%1").arg(i, 2, 10, QLatin1Char('0'));
-    }
-    else if (i < 3600)
-    {
-        int n = i % 60;
-        int m = (i - n) / 60;
-        return QString("00:%1:%2").arg(m, 2).arg(n, 2);
-
-    }
-    else
-    {
-        return "";
-    }
-}

+ 0 - 17
QFD/mindmap/api/algo/fndatetime.h

@@ -1,17 +0,0 @@
-#ifndef FNDATETIME_H
-#define FNDATETIME_H
-
-#include <QObject>
-
-class FnDateTime : public QObject
-{
-    Q_OBJECT
-public:
-    explicit FnDateTime(QObject* parent = nullptr);
-
-signals:
-
-};
-QString secondToString(int i);
-
-#endif // FNDATETIME_H

+ 0 - 89
QFD/mindmap/api/audio/audiorecorderdialog.cpp

@@ -1,89 +0,0 @@
-#include "audiorecorderdialog.h"
-#include "ui_audiorecorderdialog.h"
-
-AudioRecorderDialog::AudioRecorderDialog(QWidget* parent) :
-    QDialog(parent),
-    ui(new Ui::AudioRecorderDialog)
-{
-    ui->setupUi(this);
-    m_recorder = new QAudioRecorder(this);
-    ui->cbbDev->addItems(m_recorder->audioInputs());
-    m_tmr = new QTimer(this);
-    connect(m_tmr, &QTimer::timeout, this, &AudioRecorderDialog::onTimeOut);
-    m_start = 0;
-    QDateTime d = QDateTime::currentDateTime();
-    m_fileName = QApplication::applicationDirPath() + "/data/audios/" + d.toString("yyyyMMddhhmmss");
-    m_path = m_fileName + ".wav";
-}
-
-AudioRecorderDialog::~AudioRecorderDialog()
-{
-    delete ui;
-}
-
-bool showAudioRecorderDialog(QString& path)
-{
-    AudioRecorderDialog* dlg = new AudioRecorderDialog();
-    bool f;
-    int ret = dlg->exec();
-    if (ret == QDialog::Accepted)
-    {
-        f = true;
-        path = dlg->path();
-    }
-    else
-    {
-        f = false;
-        path = "";
-    }
-    delete dlg;
-    return f;
-}
-
-void AudioRecorderDialog::on_btnOk_clicked()
-{
-    if (ui->btnOk->text() == "开始录制")
-    {
-        QAudioEncoderSettings audioSettings;
-        qDebug() << audioSettings.codec();
-        audioSettings.setCodec("audio/amr");
-        audioSettings.setQuality(QMultimedia::HighQuality);
-        m_recorder->setAudioInput(ui->cbbDev->currentText());
-        m_recorder->setEncodingSettings(audioSettings);
-
-        m_recorder->setOutputLocation(QUrl::fromLocalFile(m_fileName));
-        m_recorder->record();
-        m_tmr->start(1000);
-        ui->btnOk->setText("停止录制");
-    }
-    else
-    {
-        m_recorder->stop();
-        accept();
-    }
-}
-
-
-void AudioRecorderDialog::on_btnCancel_clicked(bool checked)
-{
-    m_recorder->stop();
-    reject();
-}
-
-void AudioRecorderDialog::onTimeOut()
-{
-    m_start++;
-    ui->lblTime->setText(secondToString(m_start));
-
-
-}
-
-QString AudioRecorderDialog::path() const
-{
-    return m_path;
-}
-
-void AudioRecorderDialog::setPath(const QString& path)
-{
-    m_path = path;
-}

+ 0 - 48
QFD/mindmap/api/audio/audiorecorderdialog.h

@@ -1,48 +0,0 @@
-#ifndef AUDIORECORDERDIALOG_H
-#define AUDIORECORDERDIALOG_H
-
-#include <QDialog>
-#include <QFile>
-#include <QApplication>
-#include <QAudioRecorder>
-#include <QDebug>
-#include <QUrl>
-#include <QTimer>
-#include "src/api/algo/fndatetime.h"
-#include <QDateTime>
-
-
-
-namespace Ui
-{
-class AudioRecorderDialog;
-}
-
-class AudioRecorderDialog : public QDialog
-{
-    Q_OBJECT
-
-public:
-    explicit AudioRecorderDialog(QWidget* parent = nullptr);
-    ~AudioRecorderDialog();
-    qint64 addWavHeader(QString catheFileName, QString wavFileName);
-
-    QString path() const;
-    void setPath(const QString& path);
-
-private slots:
-    void on_btnOk_clicked();
-
-    void on_btnCancel_clicked(bool checked);
-    void onTimeOut();
-private:
-    Ui::AudioRecorderDialog* ui;
-    QString m_path;
-    QString m_fileName;
-    int m_start;
-    QAudioRecorder* m_recorder;
-    QTimer* m_tmr;
-};
-bool showAudioRecorderDialog(QString& path);
-
-#endif // AUDIORECORDERDIALOG_H

+ 0 - 113
QFD/mindmap/api/audio/audiorecorderdialog.ui

@@ -1,113 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<ui version="4.0">
- <class>AudioRecorderDialog</class>
- <widget class="QDialog" name="AudioRecorderDialog">
-  <property name="geometry">
-   <rect>
-    <x>0</x>
-    <y>0</y>
-    <width>400</width>
-    <height>161</height>
-   </rect>
-  </property>
-  <property name="font">
-   <font>
-    <family>新宋体</family>
-    <pointsize>11</pointsize>
-   </font>
-  </property>
-  <property name="windowTitle">
-   <string>开始录音</string>
-  </property>
-  <layout class="QVBoxLayout" name="verticalLayout">
-   <item>
-    <widget class="QWidget" name="widget_2" native="true">
-     <layout class="QHBoxLayout" name="horizontalLayout_2">
-      <item>
-       <widget class="QLabel" name="lblTime">
-        <property name="font">
-         <font>
-          <pointsize>30</pointsize>
-         </font>
-        </property>
-        <property name="text">
-         <string>00:00:00</string>
-        </property>
-        <property name="alignment">
-         <set>Qt::AlignCenter</set>
-        </property>
-       </widget>
-      </item>
-     </layout>
-    </widget>
-   </item>
-   <item>
-    <layout class="QHBoxLayout" name="horizontalLayout_3">
-     <item>
-      <widget class="QLabel" name="lblDev">
-       <property name="maximumSize">
-        <size>
-         <width>80</width>
-         <height>16777215</height>
-        </size>
-       </property>
-       <property name="text">
-        <string>录音设备:</string>
-       </property>
-      </widget>
-     </item>
-     <item>
-      <widget class="QComboBox" name="cbbDev"/>
-     </item>
-    </layout>
-   </item>
-   <item>
-    <widget class="QWidget" name="widget" native="true">
-     <property name="minimumSize">
-      <size>
-       <width>0</width>
-       <height>48</height>
-      </size>
-     </property>
-     <property name="maximumSize">
-      <size>
-       <width>16777215</width>
-       <height>48</height>
-      </size>
-     </property>
-     <layout class="QHBoxLayout" name="horizontalLayout">
-      <item>
-       <spacer name="horizontalSpacer">
-        <property name="orientation">
-         <enum>Qt::Horizontal</enum>
-        </property>
-        <property name="sizeHint" stdset="0">
-         <size>
-          <width>189</width>
-          <height>20</height>
-         </size>
-        </property>
-       </spacer>
-      </item>
-      <item>
-       <widget class="QPushButton" name="btnOk">
-        <property name="text">
-         <string>开始录制</string>
-        </property>
-       </widget>
-      </item>
-      <item>
-       <widget class="QPushButton" name="btnCancel">
-        <property name="text">
-         <string>取消</string>
-        </property>
-       </widget>
-      </item>
-     </layout>
-    </widget>
-   </item>
-  </layout>
- </widget>
- <resources/>
- <connections/>
-</ui>

+ 0 - 183
QFD/mindmap/api/capture/capturewindow.cpp

@@ -1,183 +0,0 @@
-#include "capturewindow.h"
-#include "ui_capturewindow.h"
-
-CaptureWindow::CaptureWindow(QWidget* parent)
-    : QMainWindow(parent)
-    , ui(new Ui::CaptureWindow)
-{
-    ui->setupUi(this);
-    takeCentralWidget();
-    setMouseTracking(true);
-    setAttribute(Qt::WA_DeleteOnClose);
-    m_mousedownPoint = QPoint(0, 0);
-    m_mousedownFlag = false;
-
-}
-
-CaptureWindow::~CaptureWindow()
-{
-    delete ui;
-}
-
-void CaptureWindow::paintEvent(QPaintEvent* event)
-{
-    QPoint pt = mapFromGlobal(cursor().pos());
-    qreal n = qApp->devicePixelRatio();
-    QPainter painter;
-    painter.begin(this);
-    painter.drawPixmap(rect(), m_pix, m_pix.rect());
-    painter.fillRect(rect(), QColor(0, 0, 0, 80));
-    if (m_mousedownFlag == true)
-    {
-        painter.setPen(Qt::red);
-        painter.setBrush(Qt::NoBrush);
-        getSelectRect();
-        m_pixRc.setRect(m_selectRc.left() * n, m_selectRc.top() * n, m_selectRc.width() * n, m_selectRc.height() * n);
-        painter.drawPixmap(m_selectRc, m_pix, m_pixRc);
-        painter.drawRect(m_selectRc);
-    }
-    else
-    {
-        painter.setPen(Qt::red);
-        painter.drawLine(0, pt.y(), width(), pt.y());
-        painter.drawLine(pt.x(), 0, pt.x(), height());
-    }
-    painter.end();
-}
-
-void CaptureWindow::mousePressEvent(QMouseEvent* event)
-{
-    m_mousedownFlag = true;
-    m_mousedownPoint = mapFromGlobal(cursor().pos());
-}
-
-void CaptureWindow::mouseReleaseEvent(QMouseEvent* event)
-{
-    QMenu* menu = new QMenu(this);
-    QStringList menuNames;
-    if (event->button() == Qt::RightButton)
-    {
-        menuNames << "退出";
-    }
-    else
-    {
-        menuNames << "复制OCR文本到剪贴板";
-        menuNames << "追加OCR文本到剪贴板";
-        menuNames << "截图";
-        menuNames << "取消";
-        menuNames << "退出";
-    }
-    for (int i = 0; i < menuNames.count(); i++)
-    {
-        QAction* act = new QAction(menu);
-        act->setText(menuNames[i]);
-        connect(act, &QAction::triggered, this, &CaptureWindow::onMenuTriggered);
-        menu->addAction(act);
-    }
-    QPoint pt = mapToGlobal(cursor().pos());
-    menu->exec(pt);
-    delete menu;
-
-    m_mousedownFlag = false;
-    update();
-}
-
-void CaptureWindow::mouseMoveEvent(QMouseEvent* event)
-{
-    update();
-}
-
-void CaptureWindow::keyPressEvent(QKeyEvent* event)
-{
-    if (event->key() == Qt::Key_Escape)
-    {
-        close();
-    }
-}
-
-QPixmap CaptureWindow::pix() const
-{
-    return m_pix;
-}
-
-void CaptureWindow::setPix(const QPixmap& pix)
-{
-    m_pix = pix;
-    update();
-}
-
-void CaptureWindow::getSelectRect()
-{
-    QPoint pt = mapFromGlobal(cursor().pos());
-
-    int x = m_mousedownPoint.x() < pt.x() ? m_mousedownPoint.x() : pt.x();
-    int y = m_mousedownPoint.y() < pt.y() ? m_mousedownPoint.y() : pt.y();
-    int w = abs(m_mousedownPoint.x() - pt.x());
-    int h = abs(m_mousedownPoint.y() - pt.y());
-    m_selectRc.setRect(x, y, w, h);
-}
-
-void CaptureWindow::onMenuTriggered(bool checked)
-{
-    QAction* act = static_cast<QAction*>(sender());
-    if (act->text() == "退出")
-    {
-        close();
-    }
-    else if (act->text() == "截图")
-    {
-        QPixmap clipPix = m_pix.copy(m_pixRc);
-        qApp->clipboard()->setPixmap(clipPix);
-        close();
-    }
-    else if (act->text() == "复制OCR文本到剪贴板")
-    {
-
-
-        QPixmap clipPix = m_pix.copy(m_pixRc);
-
-
-
-
-    }
-    else if (act->text() == "追加OCR文本到剪贴板")
-    {
-        QString txt = qApp->clipboard()->text();
-
-        QPixmap clipPix = m_pix.copy(m_pixRc);
-
-        qApp->clipboard()->setText(txt);
-
-    }
-}
-
-void startShootScreen(bool hideWindow)
-{
-    QWidget* activeWindow = qApp->activeWindow();
-    if (hideWindow)
-    {
-        activeWindow->hide();
-    }
-
-    QElapsedTimer t;
-    t.start();
-    while (t.elapsed() < 500)
-    {
-        QApplication::processEvents();
-    }
-    QScreen* screen = QApplication::primaryScreen();
-
-
-    while (t.elapsed() < 500)
-    {
-        QApplication::processEvents();
-    }
-    CaptureWindow* captureWindow = new CaptureWindow(nullptr);
-    if (hideWindow)
-    {
-        activeWindow->show();
-    }
-
-    captureWindow->showFullScreen();
-
-}

+ 0 - 53
QFD/mindmap/api/capture/capturewindow.h

@@ -1,53 +0,0 @@
-#ifndef CAPTUREWINDOW_H
-#define CAPTUREWINDOW_H
-
-#include <QAction>
-#include <QClipboard>
-
-#include <QElapsedTimer>
-#include <QKeyEvent>
-#include <QMainWindow>
-#include <QMenu>
-#include <QMessageBox>
-#include <QPainter>
-#include <QtDebug>
-#include <math.h>
-
-namespace Ui
-{
-class CaptureWindow;
-}
-
-class CaptureWindow : public QMainWindow
-{
-    Q_OBJECT
-
-public:
-    explicit CaptureWindow(QWidget* parent = nullptr);
-    ~CaptureWindow();
-
-    QPixmap pix() const;
-    void setPix(const QPixmap& pix);
-    void getSelectRect();
-public slots:
-    void onMenuTriggered(bool checked = false);
-
-protected:
-    void paintEvent(QPaintEvent* event);
-    void mousePressEvent(QMouseEvent* event);
-    void mouseReleaseEvent(QMouseEvent* event);
-    void mouseMoveEvent(QMouseEvent* event);
-    void keyPressEvent(QKeyEvent* event);
-
-private:
-    Ui::CaptureWindow* ui;
-    QPixmap m_pix;
-    QPoint m_mousedownPoint;
-    bool m_mousedownFlag;
-    QRect m_selectRc;
-    QRect m_pixRc;
-
-};
-void startShootScreen(bool hideWindow = true);
-
-#endif // CAPTUREWINDOW_H

+ 0 - 23
QFD/mindmap/api/capture/capturewindow.ui

@@ -1,23 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<ui version="4.0">
- <class>CaptureWindow</class>
- <widget class="QMainWindow" name="CaptureWindow">
-  <property name="windowModality">
-   <enum>Qt::ApplicationModal</enum>
-  </property>
-  <property name="geometry">
-   <rect>
-    <x>0</x>
-    <y>0</y>
-    <width>800</width>
-    <height>600</height>
-   </rect>
-  </property>
-  <property name="windowTitle">
-   <string>MainWindow</string>
-  </property>
-  <widget class="QWidget" name="centralwidget"/>
- </widget>
- <resources/>
- <connections/>
-</ui>

+ 0 - 81
QFD/mindmap/api/chat/chatlistitem.cpp

@@ -1,81 +0,0 @@
-#include "chatlistitem.h"
-#include "ui_chatlistitem.h"
-
-ChatListItem::ChatListItem(QWidget* parent)
-    : QWidget(parent)
-    , ui(new Ui::ChatListItem)
-{
-    ui->setupUi(this);
-    m_iconAlign = IaRight;
-    m_textBackColor = QColor(158, 234, 106);
-}
-
-ChatListItem::~ChatListItem()
-{
-    delete ui;
-}
-
-void ChatListItem::paintEvent(QPaintEvent* event)
-{
-    QPainter painter;
-    painter.begin(this);
-    QRect iconRc, infoRc;
-    QFontMetrics fm = painter.fontMetrics();
-    int infoWidth = fm.width(m_info) + 24;
-    if (m_iconAlign == IaLeft) {
-        iconRc = QRect(12, 6, 24, 24);
-        infoRc = QRect(48, 6, infoWidth, 24);
-    } else {
-        iconRc = QRect(width() - 36, 6, 24, 24);
-        infoRc = QRect(width() - 48 - infoWidth, 6, infoWidth, 24);
-    }
-
-    painter.drawPixmap(iconRc, m_icon, m_icon.rect());
-    painter.setPen(Qt::NoPen);
-    painter.setBrush(m_textBackColor);
-    painter.drawRoundRect(infoRc, 10, 10);
-    painter.setPen(Qt::black);
-    painter.drawText(infoRc, Qt::AlignCenter, m_info);
-    painter.end();
-}
-
-QColor ChatListItem::textBackColor() const
-{
-    return m_textBackColor;
-}
-
-void ChatListItem::setTextBackColor(const QColor& textBackColor)
-{
-    m_textBackColor = textBackColor;
-}
-
-IconAlign ChatListItem::iconAlign() const
-{
-    return m_iconAlign;
-}
-
-void ChatListItem::setIconAlign(const IconAlign& iconAlign)
-{
-    m_iconAlign = iconAlign;
-    update();
-}
-
-QString ChatListItem::info() const
-{
-    return m_info;
-}
-
-void ChatListItem::setInfo(const QString& info)
-{
-    m_info = info;
-}
-
-QPixmap ChatListItem::icon() const
-{
-    return m_icon;
-}
-
-void ChatListItem::setIcon(const QPixmap& icon)
-{
-    m_icon = icon;
-}

+ 0 - 45
QFD/mindmap/api/chat/chatlistitem.h

@@ -1,45 +0,0 @@
-#ifndef CHATLISTITEM_H
-#define CHATLISTITEM_H
-
-#include <QPainter>
-#include <QPixmap>
-#include <QWidget>
-
-namespace Ui {
-class ChatListItem;
-}
-enum IconAlign {
-    IaLeft,
-    IaRight
-};
-
-class ChatListItem : public QWidget {
-    Q_OBJECT
-
-public:
-    explicit ChatListItem(QWidget* parent = nullptr);
-    ~ChatListItem();
-    QPixmap icon() const;
-    void setIcon(const QPixmap& icon);
-
-    QString info() const;
-    void setInfo(const QString& info);
-
-    IconAlign iconAlign() const;
-    void setIconAlign(const IconAlign& iconAlign);
-
-    QColor textBackColor() const;
-    void setTextBackColor(const QColor& textBackColor);
-
-protected:
-    void paintEvent(QPaintEvent* event);
-
-private:
-    Ui::ChatListItem* ui;
-    QPixmap m_icon;
-    QString m_info;
-    IconAlign m_iconAlign;
-    QColor m_textBackColor;
-};
-
-#endif // CHATLISTITEM_H

+ 0 - 21
QFD/mindmap/api/chat/chatlistitem.ui

@@ -1,21 +0,0 @@
-<ui version="4.0">
- <author/>
- <comment/>
- <exportmacro/>
- <class>ChatListItem</class>
- <widget name="ChatListItem" class="QWidget">
-  <property name="geometry">
-   <rect>
-    <x>0</x>
-    <y>0</y>
-    <width>400</width>
-    <height>300</height>
-   </rect>
-  </property>
-  <property name="windowTitle">
-   <string>Form</string>
-  </property>
- </widget>
- <pixmapfunction/>
- <connections/>
-</ui>

+ 0 - 17
QFD/mindmap/api/chat/chatplaintextedit.cpp

@@ -1,17 +0,0 @@
-#include "chatplaintextedit.h"
-
-ChatPlainTextEdit::ChatPlainTextEdit(QWidget* parent)
-    : QPlainTextEdit(parent)
-{
-}
-
-void ChatPlainTextEdit::keyPressEvent(QKeyEvent* event)
-{
-    if (event->modifiers() == Qt::ControlModifier) {
-        if (event->key() == Qt::Key_Return) {
-            emit pressReturnButton();
-            return;
-        }
-    }
-    QPlainTextEdit::keyPressEvent(event);
-}

+ 0 - 19
QFD/mindmap/api/chat/chatplaintextedit.h

@@ -1,19 +0,0 @@
-#ifndef CHATPLAINTEXTEDIT_H
-#define CHATPLAINTEXTEDIT_H
-
-#include <QPlainTextEdit>
-#include <QWidget>
-#include <QtDebug>
-
-class ChatPlainTextEdit : public QPlainTextEdit {
-    Q_OBJECT
-public:
-    explicit ChatPlainTextEdit(QWidget* parent = nullptr);
-
-protected:
-    void keyPressEvent(QKeyEvent* event);
-signals:
-    void pressReturnButton(bool checked = false);
-};
-
-#endif // CHATPLAINTEXTEDIT_H

+ 0 - 109
QFD/mindmap/api/color/colorobject.cpp

@@ -1,109 +0,0 @@
-#include "colorobject.h"
-
-ColorObject::ColorObject(QObject* parent)
-    : QObject(parent)
-{
-}
-
-int ColorObject::id() const
-{
-    return m_id;
-}
-
-void ColorObject::setId(int id)
-{
-    m_id = id;
-}
-
-int ColorObject::r() const
-{
-    return m_r;
-}
-
-void ColorObject::setR(int r)
-{
-    m_r = r;
-}
-
-int ColorObject::g() const
-{
-    return m_g;
-}
-
-void ColorObject::setG(int g)
-{
-    m_g = g;
-}
-
-int ColorObject::b() const
-{
-    return m_b;
-}
-
-void ColorObject::setB(int b)
-{
-    m_b = b;
-}
-
-int ColorObject::a() const
-{
-    return m_a;
-}
-
-void ColorObject::setA(int a)
-{
-    m_a = a;
-}
-
-QRect ColorObject::rect() const
-{
-    return m_rect;
-}
-
-void ColorObject::setRect(const QRect& rect)
-{
-    m_rect = rect;
-}
-
-QString ColorObject::name() const
-{
-    return m_name;
-}
-
-void ColorObject::setName(const QString& name)
-{
-    m_name = name;
-}
-
-QColor ColorObject::color()
-{
-    return QColor(m_r, m_g, m_b);
-}
-
-QColor ColorObject::antiColor()
-{
-    return QColor(255 - m_r, 255 - m_g, 255 - m_b);
-}
-
-QString ColorObject::rgbColor()
-{
-    return QString("RGB:%1,%2,%3").arg(m_r).arg(m_g).arg(m_b);
-}
-
-QString ColorObject::htmlColor()
-{
-    return htmlColor(m_r, m_g, m_b);
-}
-
-QString ColorObject::htmlColor(int r, int g, int b)
-{
-    return QString("#%1%2%3").arg(intToHex(r)).arg(intToHex(g)).arg(intToHex(b));
-}
-QString ColorObject::intToHex(int i)
-{
-    QString ret = QString::number(i, 16);
-    if (ret.length() == 1) {
-        ret = "0" + ret;
-    }
-    return ret.toUpper();
-}

+ 0 - 51
QFD/mindmap/api/color/colorobject.h

@@ -1,51 +0,0 @@
-#ifndef COLOROBJECT_H
-#define COLOROBJECT_H
-
-#include <QColor>
-#include <QObject>
-#include <QRect>
-
-class ColorObject : public QObject {
-    Q_OBJECT
-public:
-    explicit ColorObject(QObject* parent = nullptr);
-
-    int id() const;
-    void setId(int id);
-
-    int r() const;
-    void setR(int r);
-
-    int g() const;
-    void setG(int g);
-
-    int b() const;
-    void setB(int b);
-
-    int a() const;
-    void setA(int a);
-
-    QRect rect() const;
-    void setRect(const QRect& rect);
-
-    QString name() const;
-    void setName(const QString& name);
-    QColor color();
-    QColor antiColor();
-    QString rgbColor();
-    QString htmlColor();
-    static QString htmlColor(int r, int g, int b);
-    static QString intToHex(int i);
-signals:
-
-private:
-    QString m_name;
-    int m_id;
-    int m_r;
-    int m_g;
-    int m_b;
-    int m_a;
-    QRect m_rect;
-};
-
-#endif // COLOROBJECT_H

+ 0 - 78
QFD/mindmap/api/color/colortable.cpp

@@ -1,78 +0,0 @@
-#include "colortable.h"
-ColorTable* ColorTable::m_instance = nullptr;
-int ColorTable::fontColorIndex = 0;
-int ColorTable::backColorIndex = ColorTable::lastIndex();
-QStack<int> ColorTable::colorIndexes;
-ColorTable::ColorTable(QObject* parent)
-    : QObject(parent)
-{
-
-    int n = 0;
-    int values[5] = { 0, 64, 128, 192, 255 };
-    for (int i = 0; i < 5; i++)
-    {
-        for (int j = 0; j < 5; j++)
-        {
-            for (int k = 0; k < 5; k++)
-            {
-                m_colors << QColor(values[i], values[j], values[k]);
-                n++;
-            }
-        }
-    }
-}
-
-QList<QColor>& ColorTable::colors()
-{
-    return m_colors;
-}
-
-ColorTable* ColorTable::getInstance()
-{
-    if (m_instance == nullptr)
-    {
-        m_instance = new ColorTable();
-    }
-    return m_instance;
-}
-
-void ColorTable::freeColorTable()
-{
-    if (m_instance != nullptr)
-    {
-        delete m_instance;
-    }
-}
-
-QColor ColorTable::getColor(int i)
-{
-    if (i == -1)
-    {
-        i = 0;
-    }
-    return getInstance()->colors().at(i);
-}
-
-void ColorTable::addColorIndex(int i)
-{
-    if (!colorIndexes.contains(i))
-    {
-        colorIndexes.push(i);
-    }
-}
-
-int ColorTable::lastIndex()
-{
-    static int ret = getInstance()->colors().count() - 1;
-    return ret;
-}
-
-QColor ColorTable::getRandomColor()
-{
-    static QColor colors[12] = { QColor(229, 77, 66), QColor(243, 123, 29), QColor(251, 189, 8),
-                                 QColor(141, 198, 63), QColor(57, 181, 74), QColor(28, 187, 180), QColor(0, 129, 255),
-                                 QColor(103, 57, 182), QColor(156, 38, 176), QColor(224, 57, 151), QColor(165, 103, 63), QColor(135, 153, 163)
-                               };
-    int i = rand() % 12;
-    return colors[i];
-}

+ 0 - 34
QFD/mindmap/api/color/colortable.h

@@ -1,34 +0,0 @@
-#ifndef COLORTABLE_H
-#define COLORTABLE_H
-
-#include <QColor>
-#include <QObject>
-#include <QSet>
-#include <QStack>
-#include <QtDebug>
-
-class ColorTable : public QObject
-{
-    Q_OBJECT
-public:
-    QList<QColor>& colors();
-    static ColorTable* getInstance();
-    static void freeColorTable();
-    static QColor getColor(int i);
-    static int fontColorIndex;
-    static int backColorIndex;
-    static QStack<int> colorIndexes;
-    static void addColorIndex(int i);
-    static int lastIndex();
-    static QColor getRandomColor();
-
-private:
-    explicit ColorTable(QObject* parent = nullptr);
-    QList<QColor> m_colors;
-    static ColorTable* m_instance;
-signals:
-
-public slots:
-};
-
-#endif // COLORTABLE_H

+ 0 - 166
QFD/mindmap/api/controls/card/selectcard.cpp

@@ -1,166 +0,0 @@
-#include "selectcard.h"
-#include "ui_selectcard.h"
-
-SelectCard::SelectCard(QWidget* parent) :
-    QWidget(parent),
-    ui(new Ui::SelectCard)
-{
-    ui->setupUi(this);
-}
-
-SelectCard::~SelectCard()
-{
-    delete ui;
-}
-
-void SelectCard::addItem(QString caption, int id)
-{
-    SelectCardItem* item = new SelectCardItem();
-    item->id = id;
-    item->caption = caption;
-    items << item;
-    update();
-
-}
-
-void SelectCard::setSelected(int id)
-{
-    SelectCardItem* selItem = nullptr;
-    for (int i = 0; i < items.count(); i++)
-    {
-        SelectCardItem* item = items.at(i);
-        item->selected = item->id == id;
-        if (item->selected)
-        {
-            selItem = item;
-
-        }
-    }
-    update();
-    if (selItem != nullptr)
-    {
-        emit onSelected(selItem);
-    }
-}
-
-bool SelectCard::hasItemId(int id)
-{
-
-    for (int i = 0; i < items.count(); i++)
-    {
-        SelectCardItem* item = items.at(i);
-        if (item->id == id)
-        {
-            return true;
-        }
-
-    }
-    return false;
-}
-
-void SelectCard::mousePressEvent(QMouseEvent* event)
-{
-    QPoint pt = mapFromGlobal(cursor().pos());
-    for (int i = 0; i < items.count(); i++)
-    {
-        SelectCardItem* item = items.at(i);
-        if (item->rect.contains(pt))
-        {
-            setSelected(item->id);
-            return;
-        }
-
-    }
-
-}
-
-void SelectCard::updateItemText(int id, QString& s)
-{
-    for (int i = 0; i < items.count(); i++)
-    {
-        SelectCardItem* item = items.at(i);
-        if (item->id == id)
-        {
-            item->caption = s;
-
-        }
-
-    }
-    update();
-}
-
-void SelectCard::deleteItemById(int id)
-{
-    for (int i = 0; i < items.count(); i++)
-    {
-        SelectCardItem* item = items.at(i);
-        if (item->id == id)
-        {
-            items.removeAt(i);
-            delete  item;
-            break;
-
-        }
-
-    }
-    update();
-}
-
-void SelectCard::paintEvent(QPaintEvent* event)
-{
-    QPainter painter;
-    painter.begin(this);
-    int l = 16;
-
-    for (int i = 0; i < items.count(); i++)
-    {
-        if (i == 0)
-        {
-            painter.setPen(QColor(197, 197, 197));
-            painter.drawLine(0, height(), l, height());
-        }
-        SelectCardItem* item = items.at(i);
-        QFontMetrics fm = painter.fontMetrics();
-        int w = fm.width(item->caption);
-        item->rect = QRect(l, 0, w + 32, height());
-        item->closeRect = QRect();
-        if (item->selected)
-        {
-
-            painter.fillRect(item->rect, QBrush(QColor(255, 255, 255)));
-        }
-        else
-        {
-            painter.fillRect(item->rect, QBrush(QColor(237, 237, 237)));
-        }
-        //绘制线条
-        painter.setPen(QColor(197, 197, 197));
-        painter.drawLine(l, 0, l, height());
-        painter.setPen(QColor(197, 197, 197));
-        painter.drawLine(l, 0, l + w + 32, 0);
-
-
-
-        QRect rc;
-        rc = QRect(l + 6, 0, w, height());
-
-        painter.setPen(QColor(0, 0, 0));
-        painter.drawText(rc, Qt::AlignCenter, item->caption);
-        if (item->selected == false)
-        {
-            painter.setPen(QColor(197, 197, 197));
-            painter.drawLine(l, height(), l + w + 32, height());
-        }
-        l = l + w + 32;
-    }
-    if (items.count() > 0)
-    {
-        painter.setPen(QColor(197, 197, 197));
-        painter.drawLine(l, 0, l, height());
-        painter.drawLine(l, height(), width(), height());
-    }
-
-
-    painter.end();
-
-}

+ 0 - 43
QFD/mindmap/api/controls/card/selectcard.h

@@ -1,43 +0,0 @@
-#ifndef SELECTCARD_H
-#define SELECTCARD_H
-
-#include <QWidget>
-#include <QPainter>
-#include <QDebug>
-
-namespace Ui
-{
-class SelectCard;
-}
-struct SelectCardItem
-{
-    QString caption;
-    int id;
-    QRect rect;
-    QRect closeRect;
-    bool selected = false;
-};
-
-class SelectCard : public QWidget
-{
-    Q_OBJECT
-
-public:
-    explicit SelectCard(QWidget* parent = nullptr);
-    ~SelectCard();
-    void addItem(QString name, int id);
-    void setSelected(int id);
-    bool hasItemId(int id);
-    void mousePressEvent(QMouseEvent* event);
-    void updateItemText(int id, QString& s);
-    void deleteItemById(int id);
-signals:
-    void onSelected(SelectCardItem* item);
-protected:
-    void paintEvent(QPaintEvent* event);
-private:
-    Ui::SelectCard* ui;
-    QList<SelectCardItem*> items;
-};
-
-#endif // SELECTCARD_H

+ 0 - 19
QFD/mindmap/api/controls/card/selectcard.ui

@@ -1,19 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<ui version="4.0">
- <class>SelectCard</class>
- <widget class="QWidget" name="SelectCard">
-  <property name="geometry">
-   <rect>
-    <x>0</x>
-    <y>0</y>
-    <width>781</width>
-    <height>103</height>
-   </rect>
-  </property>
-  <property name="windowTitle">
-   <string>Form</string>
-  </property>
- </widget>
- <resources/>
- <connections/>
-</ui>

+ 0 - 84
QFD/mindmap/api/controls/category/datacategory.cpp

@@ -1,84 +0,0 @@
-#include "datacategory.h"
-#include "ui_datacategory.h"
-
-DataCateGory::DataCateGory(QWidget* parent)
-    : QWidget(parent)
-    , ui(new Ui::DataCateGory)
-{
-    ui->setupUi(this);
-}
-
-DataCateGory::~DataCateGory()
-{
-    qDebug() << "~DataCateGory()";
-    delete ui;
-}
-
-QString DataCateGory::caption() const
-{
-    return m_caption;
-}
-
-void DataCateGory::setCaption(const QString& caption)
-{
-    m_caption = caption;
-}
-
-void DataCateGory::paintEvent(QPaintEvent* event)
-{
-    QRect rc;
-
-    QPainter painter;
-    painter.begin(this);
-    rc.setRect(6, 0, width() - 12, height());
-    QFont font = painter.font();
-    font.setFamily("微软雅黑");
-    font.setPointSize(11);
-    painter.setFont(font);
-    painter.drawText(rc, Qt::AlignLeft | Qt::AlignVCenter, m_caption);
-    painter.end();
-}
-
-void DataCateGory::mousePressEvent(QMouseEvent* event)
-{
-    m_listWidget->setCurrentItem(m_item);
-    emit onClick();
-}
-
-int DataCateGory::id() const
-{
-    return m_id;
-}
-
-void DataCateGory::setId(int id)
-{
-    m_id = id;
-}
-
-QListWidget* DataCateGory::listWidget() const
-{
-    return m_listWidget;
-}
-
-void DataCateGory::setListWidget(QListWidget* listWidget)
-{
-    m_listWidget = listWidget;
-}
-
-QListWidgetItem* DataCateGory::item() const
-{
-    return m_item;
-}
-
-void DataCateGory::setItem(QListWidgetItem* item)
-{
-    m_item = item;
-}
-
-DataCateGoryItem newDataCateGoryItem(int id, QString name)
-{
-    DataCateGoryItem item;
-    item.id = id;
-    item.name = name;
-    return item;
-}

+ 0 - 53
QFD/mindmap/api/controls/category/datacategory.h

@@ -1,53 +0,0 @@
-#ifndef DATACATEGORY_H
-#define DATACATEGORY_H
-
-#include <QDebug>
-#include <QListWidgetItem>
-#include <QPainter>
-#include <QWidget>
-
-namespace Ui {
-class DataCateGory;
-}
-struct DataCateGoryItem {
-    int id;
-    QString name;
-};
-
-class DataCateGory : public QWidget {
-    Q_OBJECT
-
-public:
-    explicit DataCateGory(QWidget* parent = nullptr);
-    ~DataCateGory();
-
-    QString caption() const;
-    void setCaption(const QString& caption);
-    QListWidgetItem* item() const;
-    void setItem(QListWidgetItem* item);
-
-    QListWidget* listWidget() const;
-    void setListWidget(QListWidget* listWidget);
-
-    int id() const;
-    void setId(int id);
-
-signals:
-    void onClick();
-
-protected:
-    void paintEvent(QPaintEvent* event);
-    void mousePressEvent(QMouseEvent* event);
-
-private:
-    Ui::DataCateGory* ui;
-    QString m_caption;
-    QString m_remark;
-    QString m_number;
-    bool m_showNumber;
-    QListWidgetItem* m_item;
-    QListWidget* m_listWidget;
-    int m_id;
-};
-DataCateGoryItem newDataCateGoryItem(int id, QString name);
-#endif // DATACATEGORY_H

+ 0 - 21
QFD/mindmap/api/controls/category/datacategory.ui

@@ -1,21 +0,0 @@
-<ui version="4.0">
- <author/>
- <comment/>
- <exportmacro/>
- <class>DataCateGory</class>
- <widget class="QWidget" name="DataCateGory">
-  <property name="geometry">
-   <rect>
-    <x>0</x>
-    <y>0</y>
-    <width>400</width>
-    <height>300</height>
-   </rect>
-  </property>
-  <property name="windowTitle">
-   <string>Form</string>
-  </property>
- </widget>
- <pixmapfunction/>
- <connections/>
-</ui>

+ 0 - 103
QFD/mindmap/api/controls/color/colorschemepanel.cpp

@@ -1,103 +0,0 @@
-#include "colorschemepanel.h"
-#include "ui_colorschemepanel.h"
-
-ColorSchemePanel::ColorSchemePanel(QWidget* parent)
-    : QWidget(parent)
-    , ui(new Ui::ColorSchemePanel)
-{
-    ui->setupUi(this);
-    setContextMenuPolicy(Qt::ActionsContextMenu);
-    QStringList menuNames;
-    menuNames << "删除";
-    for (int i = 0; i < menuNames.count(); i++) {
-        QAction* act = new QAction(this);
-        act->setText(menuNames[i]);
-        addAction(act);
-    }
-}
-
-ColorSchemePanel::~ColorSchemePanel()
-{
-    delete ui;
-    qDeleteAll(m_colors);
-}
-
-int ColorSchemePanel::id() const
-{
-    return m_id;
-}
-
-void ColorSchemePanel::setId(int id)
-{
-    m_id = id;
-}
-
-QString& ColorSchemePanel::name()
-{
-    return m_name;
-}
-
-void ColorSchemePanel::setName(QString name)
-{
-    m_name = name;
-}
-
-void ColorSchemePanel::paintEvent(QPaintEvent* event)
-{
-    QPainter painter;
-    painter.begin(this);
-    painter.setPen(Qt::white);
-    QRect rc;
-    rc.setRect(8, 0, width() - 8, 16);
-    painter.drawText(rc, Qt::AlignLeft | Qt::AlignVCenter, m_name);
-    int l = 0;
-    for (int i = 0; i < m_colors.count(); i++) {
-        ColorObject* obj = m_colors.at(i);
-        rc.setRect(l, 20, 96, height() - 20);
-        painter.fillRect(rc, obj->color());
-        painter.setPen(obj->antiColor());
-        rc.setRect(l + 8, 20, width() - 8, 16);
-        painter.drawText(rc, Qt::AlignLeft | Qt::AlignVCenter, obj->name());
-        rc.setRect(l + 8, 36, width() - 8, 16);
-        painter.drawText(rc, Qt::AlignLeft | Qt::AlignVCenter, obj->rgbColor());
-        rc.setRect(l + 8, 52, width() - 8, 16);
-        painter.drawText(rc, Qt::AlignLeft | Qt::AlignVCenter, obj->htmlColor());
-
-        l = l + 96;
-    }
-    painter.end();
-}
-
-void ColorSchemePanel::clearColors()
-{
-    qDeleteAll(m_colors);
-    m_colors.clear();
-}
-
-QList<ColorObject*> ColorSchemePanel::colors() const
-{
-    return m_colors;
-}
-
-void ColorSchemePanel::setColors(const QList<ColorObject*>& colors)
-{
-    m_colors = colors;
-}
-
-void ColorSchemePanel::addColor(int id, QString name, int r, int g, int b)
-{
-    ColorObject* obj = new ColorObject(this);
-    obj->setId(id);
-    obj->setName(name);
-    obj->setR(r);
-    obj->setG(g);
-    obj->setB(b);
-
-    m_colors << obj;
-    update();
-}
-
-void ColorSchemePanel::mouseDoubleClickEvent(QMouseEvent* event)
-{
-    emit onDoubleClick();
-}

+ 0 - 41
QFD/mindmap/api/controls/color/colorschemepanel.h

@@ -1,41 +0,0 @@
-#ifndef COLORSCHEMEPANEL_H
-#define COLORSCHEMEPANEL_H
-
-#include "../../color/colorobject.h"
-#include <QAction>
-#include <QPainter>
-#include <QWidget>
-
-namespace Ui {
-class ColorSchemePanel;
-}
-
-class ColorSchemePanel : public QWidget {
-    Q_OBJECT
-
-public:
-    explicit ColorSchemePanel(QWidget* parent = nullptr);
-    ~ColorSchemePanel();
-
-    int id() const;
-    void setId(int id);
-
-    QString& name();
-    void setName(QString name);
-    void paintEvent(QPaintEvent* event);
-    void clearColors();
-    QList<ColorObject*> colors() const;
-    void setColors(const QList<ColorObject*>& colors);
-    void addColor(int id, QString name, int r, int g, int b);
-    void mouseDoubleClickEvent(QMouseEvent* event);
-signals:
-    void onDoubleClick();
-
-private:
-    Ui::ColorSchemePanel* ui;
-    int m_id;
-    QString m_name;
-    QList<ColorObject*> m_colors;
-};
-
-#endif // COLORSCHEMEPANEL_H

+ 0 - 21
QFD/mindmap/api/controls/color/colorschemepanel.ui

@@ -1,21 +0,0 @@
-<ui version="4.0">
- <author/>
- <comment/>
- <exportmacro/>
- <class>ColorSchemePanel</class>
- <widget name="ColorSchemePanel" class="QWidget">
-  <property name="geometry">
-   <rect>
-    <x>0</x>
-    <y>0</y>
-    <width>400</width>
-    <height>300</height>
-   </rect>
-  </property>
-  <property name="windowTitle">
-   <string>Form</string>
-  </property>
- </widget>
- <pixmapfunction/>
- <connections/>
-</ui>

+ 0 - 138
QFD/mindmap/api/controls/color/purecoloricon.cpp

@@ -1,138 +0,0 @@
-#include "purecoloricon.h"
-#include "ui_purecoloricon.h"
-
-PureColorIcon::PureColorIcon(QWidget* parent)
-    : QWidget(parent)
-    , ui(new Ui::PureColorIcon)
-{
-    ui->setupUi(this);
-}
-
-PureColorIcon::~PureColorIcon()
-{
-    delete ui;
-}
-
-void PureColorIcon::paintEvent(QPaintEvent* event)
-{
-    QColor color = QColor(255 - m_r, 255 - m_g, 255 - m_b);
-    QPainter painter;
-    painter.begin(this);
-    painter.fillRect(rect(), QColor(m_r, m_g, m_b));
-    painter.setPen(color);
-    QRect rc;
-    rc.setRect(8, 0, width() - 8, 16);
-    painter.drawText(rc, Qt::AlignLeft | Qt::AlignVCenter, m_name);
-    rc.setRect(8, 16, width() - 8, 16);
-    painter.drawText(rc, Qt::AlignLeft | Qt::AlignVCenter,
-        QString("rgb(%1,%2,%3)").arg(m_r).arg(m_g).arg(m_b));
-    rc.setRect(8, 32, width() - 8, 16);
-    painter.drawText(rc, Qt::AlignLeft | Qt::AlignVCenter,
-        htmlColor());
-    painter.end();
-}
-
-void PureColorIcon::mouseDoubleClickEvent(QMouseEvent* event)
-{
-    emit onDoubleClick();
-}
-
-QListWidgetItem* PureColorIcon::getItem() const
-{
-    return m_item;
-}
-
-void PureColorIcon::setItem(QListWidgetItem* item)
-{
-    m_item = item;
-}
-
-QString PureColorIcon::name() const
-{
-    return m_name;
-}
-
-QString PureColorIcon::intToHex(int i)
-{
-    QString ret = QString::number(i, 16);
-    if (ret.length() == 1) {
-        ret = "0" + ret;
-    }
-    return ret.toUpper();
-}
-
-QString PureColorIcon::htmlColor()
-{
-    return QString("#%1%2%3").arg(intToHex(m_r)).arg(intToHex(m_g)).arg(intToHex(m_b));
-}
-
-PureColorIcon* PureColorIcon::getNew(QWidget* parent)
-{
-    PureColorIcon* icon = new PureColorIcon(parent);
-    icon->setR(m_r);
-    icon->setG(m_g);
-    icon->setB(m_b);
-    icon->setName(m_name);
-    icon->setId(m_id);
-    return icon;
-}
-
-void PureColorIcon::setName(QString name)
-{
-    m_name = name;
-    update();
-}
-
-int PureColorIcon::id() const
-{
-    return m_id;
-}
-
-void PureColorIcon::setId(int id)
-{
-    m_id = id;
-    update();
-}
-
-int PureColorIcon::a() const
-{
-    return m_a;
-}
-
-void PureColorIcon::setA(int a)
-{
-    m_a = a;
-    update();
-}
-
-int PureColorIcon::b() const
-{
-    return m_b;
-}
-
-void PureColorIcon::setB(int b)
-{
-    m_b = b;
-    update();
-}
-
-int PureColorIcon::g() const
-{
-    return m_g;
-}
-
-void PureColorIcon::setG(int g)
-{
-    m_g = g;
-    update();
-}
-
-int PureColorIcon::r() const
-{
-    return m_r;
-}
-
-void PureColorIcon::setR(int r)
-{
-    m_r = r;
-}

+ 0 - 62
QFD/mindmap/api/controls/color/purecoloricon.h

@@ -1,62 +0,0 @@
-#ifndef PURECOLORICON_H
-#define PURECOLORICON_H
-
-#include <QListWidgetItem>
-#include <QPainter>
-#include <QWidget>
-
-namespace Ui {
-class PureColorIcon;
-}
-
-class PureColorIcon : public QWidget {
-    Q_OBJECT
-
-public:
-    explicit PureColorIcon(QWidget* parent = nullptr);
-    ~PureColorIcon();
-    int r() const;
-    void setR(int r);
-
-    int g() const;
-    void setG(int g);
-
-    int b() const;
-    void setB(int b);
-
-    int a() const;
-    void setA(int a);
-
-    int id() const;
-    void setId(int id);
-
-    void setName(QString name);
-
-    QString name() const;
-    QString intToHex(int i);
-    QString htmlColor();
-    PureColorIcon* getNew(QWidget* parent);
-
-    QListWidgetItem* getItem() const;
-    void setItem(QListWidgetItem* item);
-
-signals:
-    void onDoubleClick();
-
-protected:
-    void paintEvent(QPaintEvent* event);
-    void mouseDoubleClickEvent(QMouseEvent* event);
-
-private:
-    Ui::PureColorIcon* ui;
-    int m_r;
-    int m_g;
-    int m_b;
-    int m_a;
-    int m_id;
-
-    QString m_name;
-    QListWidgetItem* m_item;
-};
-
-#endif // PURECOLORICON_H

+ 0 - 21
QFD/mindmap/api/controls/color/purecoloricon.ui

@@ -1,21 +0,0 @@
-<ui version="4.0">
- <author/>
- <comment/>
- <exportmacro/>
- <class>PureColorIcon</class>
- <widget class="QWidget" name="PureColorIcon">
-  <property name="geometry">
-   <rect>
-    <x>0</x>
-    <y>0</y>
-    <width>400</width>
-    <height>300</height>
-   </rect>
-  </property>
-  <property name="windowTitle">
-   <string>Form</string>
-  </property>
- </widget>
- <pixmapfunction/>
- <connections/>
-</ui>

+ 0 - 163
QFD/mindmap/api/controls/color/purecolorpanel.cpp

@@ -1,163 +0,0 @@
-#include "purecolorpanel.h"
-#include "ui_purecolorpanel.h"
-int PureColorPanel::lastId = -1;
-PureColorPanel::PureColorPanel(QWidget* parent)
-    : QWidget(parent)
-    , ui(new Ui::PureColorPanel)
-{
-    ui->setupUi(this);
-    setMouseTracking(true);
-    setContextMenuPolicy(Qt::ActionsContextMenu);
-}
-
-PureColorPanel::~PureColorPanel()
-{
-    delete ui;
-}
-
-int PureColorPanel::r() const
-{
-    return m_r;
-}
-
-void PureColorPanel::setR(int r)
-{
-    m_r = r;
-}
-
-int PureColorPanel::g() const
-{
-    return m_g;
-}
-
-void PureColorPanel::setG(int g)
-{
-    m_g = g;
-}
-
-int PureColorPanel::b() const
-{
-    return m_b;
-}
-
-void PureColorPanel::setB(int b)
-{
-    m_b = b;
-}
-
-int PureColorPanel::a() const
-{
-    return m_a;
-}
-
-void PureColorPanel::setA(int a)
-{
-    m_a = a;
-}
-
-QString PureColorPanel::name() const
-{
-    return m_name;
-}
-
-void PureColorPanel::setName(const QString& name)
-{
-    m_name = name;
-}
-
-void PureColorPanel::paintEvent(QPaintEvent* event)
-{
-    QPainter painter;
-    QPoint pt = mapFromGlobal(cursor().pos());
-    painter.begin(this);
-    if (rect().contains(pt)) {
-        painter.setBrush(Qt::NoBrush);
-        painter.setPen(Qt::white);
-        painter.drawRect(rect());
-    }
-    QRect rc;
-    QString rgbInfo;
-    rc.setRect(1, 1, width() - 2, 32);
-    painter.fillRect(rc, QColor(m_r, m_g, m_b, m_a));
-    rc.setRect(1, 33, width() - 2, 24);
-    painter.setPen(Qt::white);
-    painter.drawText(rc, Qt::AlignCenter, m_name);
-
-    rc.setRect(8, 57, width() - 16, 18);
-    painter.setPen(Qt::white);
-    rgbInfo = QString("RGB:%1,%2,%3").arg(m_r).arg(m_g).arg(m_b);
-    painter.drawText(rc, Qt::AlignLeft | Qt::AlignVCenter, rgbInfo);
-
-    rc.setRect(8, 75, width() - 16, 18);
-    painter.setPen(Qt::white);
-    rgbInfo = htmlColor();
-    painter.drawText(rc, Qt::AlignLeft | Qt::AlignVCenter, rgbInfo.toUpper());
-    painter.end();
-}
-
-void PureColorPanel::focusOutEvent(QFocusEvent* event)
-{
-    update();
-}
-
-void PureColorPanel::mousePressEvent(QMouseEvent* event)
-{
-    for (int i = actions().count() - 1; i >= 0; i--) {
-        QAction* act = actions().at(i);
-        removeAction(act);
-    }
-    QStringList menuNames;
-    menuNames << QString("复制为QColor(%1,%2,%3)").arg(m_r).arg(m_g).arg(m_b);
-    menuNames << QString("复制为rgb(%1,%2,%3)").arg(m_r).arg(m_g).arg(m_b);
-    menuNames << QString("复制为HTML:%1").arg(htmlColor());
-    menuNames << "获取相关颜色";
-    menuNames << "修改";
-    menuNames << "删除";
-    for (int i = 0; i < menuNames.count(); i++) {
-        QAction* act = new QAction(this);
-        connect(act, &QAction::triggered, this, &PureColorPanel::triggered);
-        act->setText(menuNames[i]);
-        addAction(act);
-    }
-    emit onClick();
-}
-
-QListWidgetItem* PureColorPanel::item() const
-{
-    return m_item;
-}
-
-void PureColorPanel::setItem(QListWidgetItem* item)
-{
-    m_item = item;
-}
-
-QString PureColorPanel::htmlColor()
-{
-    return QString("#%1%2%3").arg(intToHex(m_r)).arg(intToHex(m_g)).arg(intToHex(m_b));
-}
-
-int PureColorPanel::id() const
-{
-    return m_id;
-}
-
-void PureColorPanel::setId(int id)
-{
-    m_id = id;
-}
-
-QString PureColorPanel::intToHex(int i)
-{
-    QString ret = QString::number(i, 16);
-    if (ret.length() == 1) {
-        ret = "0" + ret;
-    }
-    return ret.toUpper();
-}
-
-void PureColorPanel::triggered()
-{
-    QAction* action = static_cast<QAction*>(sender());
-    emit onMenuClick(this, action);
-}

+ 0 - 64
QFD/mindmap/api/controls/color/purecolorpanel.h

@@ -1,64 +0,0 @@
-#ifndef PURECOLORPANEL_H
-#define PURECOLORPANEL_H
-
-#include <QAction>
-#include <QListWidget>
-#include <QPainter>
-#include <QWidget>
-namespace Ui {
-class PureColorPanel;
-}
-
-class PureColorPanel : public QWidget {
-    Q_OBJECT
-
-public:
-    explicit PureColorPanel(QWidget* parent = nullptr);
-    ~PureColorPanel();
-
-    int r() const;
-    void setR(int r);
-
-    int g() const;
-    void setG(int g);
-
-    int b() const;
-    void setB(int b);
-
-    int a() const;
-    void setA(int a);
-
-    QString name() const;
-    void setName(const QString& name);
-
-    int id() const;
-    void setId(int id);
-    QString intToHex(int i);
-    static int lastId;
-    QListWidgetItem* item() const;
-    void setItem(QListWidgetItem* item);
-    QString htmlColor();
-
-public slots:
-    void triggered();
-signals:
-    void onClick();
-    void onMenuClick(PureColorPanel* sender, QAction* action);
-
-protected:
-    void paintEvent(QPaintEvent* event);
-    void focusOutEvent(QFocusEvent* event);
-    void mousePressEvent(QMouseEvent* event);
-
-private:
-    Ui::PureColorPanel* ui;
-    int m_r;
-    int m_g;
-    int m_b;
-    int m_a;
-    int m_id;
-    QString m_name;
-    QListWidgetItem* m_item;
-};
-
-#endif // PURECOLORPANEL_H

+ 0 - 21
QFD/mindmap/api/controls/color/purecolorpanel.ui

@@ -1,21 +0,0 @@
-<ui version="4.0">
- <author/>
- <comment/>
- <exportmacro/>
- <class>PureColorPanel</class>
- <widget name="PureColorPanel" class="QWidget">
-  <property name="geometry">
-   <rect>
-    <x>0</x>
-    <y>0</y>
-    <width>400</width>
-    <height>300</height>
-   </rect>
-  </property>
-  <property name="windowTitle">
-   <string>Form</string>
-  </property>
- </widget>
- <pixmapfunction/>
- <connections/>
-</ui>

+ 0 - 64
QFD/mindmap/api/controls/colorwidget.cpp

@@ -1,64 +0,0 @@
-#include "colorwidget.h"
-#include "ui_colorwidget.h"
-
-ColorWidget::ColorWidget(QWidget* parent)
-    : QWidget(parent)
-    , ui(new Ui::ColorWidget)
-{
-    ui->setupUi(this);
-}
-
-ColorWidget::~ColorWidget()
-{
-    delete ui;
-}
-
-void ColorWidget::setColor(QColor color)
-{
-    m_color = color;
-    update();
-}
-
-QColor& ColorWidget::color()
-{
-    return m_color;
-}
-
-void ColorWidget::paintEvent(QPaintEvent* event)
-{
-    QPainter painter;
-    painter.begin(this);
-    QRect rc;
-    rc.setRect(1, 1, width() - 2, height() - 2);
-    QPen pen;
-    QColor c = hasFocus() == true ? QColor(117, 117, 117) : QColor(223, 223, 223);
-    pen.setColor(c);
-    painter.setPen(pen);
-
-    painter.drawRect(rc);
-    rc.setRect(2, 2, width() - 4, height() - 4);
-    painter.fillRect(rc, QBrush(m_color));
-    painter.end();
-}
-
-void ColorWidget::focusInEvent(QFocusEvent* event)
-{
-    update();
-}
-
-void ColorWidget::focusOutEvent(QFocusEvent* event)
-{
-    update();
-}
-
-void ColorWidget::mousePressEvent(QMouseEvent* event)
-{
-    setFocus();
-    emit onClick(m_index, m_color);
-    update();
-}
-
-void ColorWidget::setIndex(int index)
-{
-    m_index = index;
-}

+ 0 - 33
QFD/mindmap/api/controls/colorwidget.h

@@ -1,33 +0,0 @@
-#ifndef COLORWIDGET_H
-#define COLORWIDGET_H
-
-#include <QPainter>
-#include <QWidget>
-
-namespace Ui {
-class ColorWidget;
-}
-
-class ColorWidget : public QWidget {
-    Q_OBJECT
-
-public:
-    explicit ColorWidget(QWidget* parent = nullptr);
-    ~ColorWidget();
-    void setColor(QColor color);
-    QColor& color();
-    void paintEvent(QPaintEvent* event);
-    void focusInEvent(QFocusEvent* event);
-    void focusOutEvent(QFocusEvent* event);
-    void mousePressEvent(QMouseEvent* event);
-    void setIndex(int index);
-signals:
-    void onClick(int index, QColor color);
-
-private:
-    Ui::ColorWidget* ui;
-    QColor m_color;
-    int m_index;
-};
-
-#endif // COLORWIDGET_H

+ 0 - 21
QFD/mindmap/api/controls/colorwidget.ui

@@ -1,21 +0,0 @@
-<ui version="4.0">
- <author/>
- <comment/>
- <exportmacro/>
- <class>ColorWidget</class>
- <widget name="ColorWidget" class="QWidget">
-  <property name="geometry">
-   <rect>
-    <x>0</x>
-    <y>0</y>
-    <width>400</width>
-    <height>300</height>
-   </rect>
-  </property>
-  <property name="windowTitle">
-   <string>Form</string>
-  </property>
- </widget>
- <pixmapfunction/>
- <connections/>
-</ui>

+ 0 - 81
QFD/mindmap/api/controls/edit/coloredit.cpp

@@ -1,81 +0,0 @@
-#include "coloredit.h"
-#include "ui_coloredit.h"
-
-ColorEdit::ColorEdit(QWidget* parent)
-    : QWidget(parent)
-    , ui(new Ui::ColorEdit)
-{
-    ui->setupUi(this);
-    m_a = 255;
-    m_r = 255;
-    m_g = 255;
-    m_b = 255;
-}
-
-ColorEdit::~ColorEdit()
-{
-    delete ui;
-}
-
-int ColorEdit::r() const
-{
-    return m_r;
-}
-
-void ColorEdit::setR(int r)
-{
-    m_r = r;
-    update();
-}
-
-int ColorEdit::g() const
-{
-    return m_g;
-}
-void ColorEdit::setG(int g)
-{
-    m_g = g;
-    update();
-}
-
-int ColorEdit::b() const
-{
-    return m_b;
-}
-
-void ColorEdit::setB(int b)
-{
-    m_b = b;
-    update();
-}
-
-void ColorEdit::paintEvent(QPaintEvent* event)
-{
-    QPainter painter;
-    painter.begin(this);
-    painter.fillRect(rect(), QColor(m_r, m_g, m_b, m_a));
-    painter.setPen(QColor(255 - m_r, 255 - m_g, 255 - m_b));
-    QString s = QString("RGBA(%1,%2,%3,%4)").arg(m_r).arg(m_g).arg(m_b).arg(m_a);
-    QRect rc;
-    rc.setRect(16, 0, width() - 16, height());
-    painter.drawText(rc, Qt::AlignCenter, s);
-    painter.end();
-}
-
-void ColorEdit::mousePressEvent(QMouseEvent* event)
-{
-    QColor color = QColorDialog::getColor();
-    color.getRgb(&m_r, &m_g, &m_b, &m_a);
-    update();
-}
-
-int ColorEdit::a() const
-{
-    return m_a;
-}
-
-void ColorEdit::setA(int a)
-{
-    m_a = a;
-    update();
-}

+ 0 - 42
QFD/mindmap/api/controls/edit/coloredit.h

@@ -1,42 +0,0 @@
-#ifndef COLOREDIT_H
-#define COLOREDIT_H
-
-#include <QColorDialog>
-#include <QPainter>
-#include <QWidget>
-
-namespace Ui {
-class ColorEdit;
-}
-
-class ColorEdit : public QWidget {
-    Q_OBJECT
-
-public:
-    explicit ColorEdit(QWidget* parent = nullptr);
-    ~ColorEdit();
-
-    int r() const;
-    void setR(int r);
-
-    int g() const;
-    void setG(int g);
-
-    int b() const;
-    void setB(int b);
-    int a() const;
-    void setA(int a);
-
-protected:
-    void paintEvent(QPaintEvent* event);
-    void mousePressEvent(QMouseEvent* event);
-
-private:
-    Ui::ColorEdit* ui;
-    int m_r;
-    int m_g;
-    int m_b;
-    int m_a;
-};
-
-#endif // COLOREDIT_H

+ 0 - 21
QFD/mindmap/api/controls/edit/coloredit.ui

@@ -1,21 +0,0 @@
-<ui version="4.0">
- <author/>
- <comment/>
- <exportmacro/>
- <class>ColorEdit</class>
- <widget name="ColorEdit" class="QWidget">
-  <property name="geometry">
-   <rect>
-    <x>0</x>
-    <y>0</y>
-    <width>400</width>
-    <height>300</height>
-   </rect>
-  </property>
-  <property name="windowTitle">
-   <string>Form</string>
-  </property>
- </widget>
- <pixmapfunction/>
- <connections/>
-</ui>

+ 0 - 195
QFD/mindmap/api/controls/knowledgegraphwidget.cpp

@@ -1,195 +0,0 @@
-#include "knowledgegraphwidget.h"
-#include "ui_knowledgegraphwidget.h"
-
-KnowledgeGraphWidget::KnowledgeGraphWidget(QWidget* parent)
-    : QWidget(parent)
-    , ui(new Ui::KnowledgeGraphWidget)
-{
-    ui->setupUi(this);
-    m_rootItem = nullptr;
-}
-
-KnowledgeGraphWidget::~KnowledgeGraphWidget()
-{
-    delete ui;
-}
-
-void KnowledgeGraphWidget::clearItems()
-{
-    linkNames.clear();
-    qDeleteAll(items);
-    items.clear();
-    qDeleteAll(links);
-    links.clear();
-    update();
-}
-
-void KnowledgeGraphWidget::paintEvent(QPaintEvent* event)
-{
-    QPainter painter;
-    painter.begin(this);
-    painter.setRenderHints(QPainter::HighQualityAntialiasing);
-    QRect rc = rect();
-    painter.fillRect(rc, QColor(255, 255, 255));
-
-    if (m_rootItem != nullptr) {
-        m_rootItem->center = QPoint(width() / 2, height() / 2);
-        m_rootItem->rect = QRect(m_rootItem->center.x() - 8, m_rootItem->center.y() - 8, 16, 16);
-        m_rootItem->setStartAngle(0);
-        initChildnum();
-        setItemsPosition(m_rootItem);
-    }
-
-    for (int i = 0; i < links.count(); i++) {
-        KnowledgeGraphWidgetLink* link = links.at(i);
-        link->drawLine(painter, items);
-    }
-    for (int i = 0; i < items.count(); i++) {
-        KnowledgeGraphWidgetItem* item = items.at(i);
-        drawNode(painter, item);
-    }
-
-    painter.end();
-}
-
-KnowledgeGraphWidgetItem* KnowledgeGraphWidget::rootItem() const
-{
-    return m_rootItem;
-}
-
-void KnowledgeGraphWidget::setRootItem(KnowledgeGraphWidgetItem* rootItem)
-{
-    m_rootItem = rootItem;
-}
-
-void KnowledgeGraphWidget::addItem(KnowledgeGraphWidgetItem* parentItem, KnowledgeGraphWidgetItem* item)
-{
-    item->setParentItem(parentItem);
-    items << item;
-}
-
-KnowledgeGraphWidgetItem* KnowledgeGraphWidget::addRootItem(QString& value)
-{
-    clearItems();
-
-    m_rootItem = addItem(-1, "", value);
-
-    return m_rootItem;
-}
-
-void KnowledgeGraphWidget::drawNode(QPainter& painter, KnowledgeGraphWidgetItem* item)
-{
-
-    if (item->parentItem() != nullptr) {
-        painter.setBrush(item->parentItem()->childColor());
-    } else {
-        painter.setBrush(item->color());
-    }
-
-    painter.setPen(Qt::NoPen);
-    painter.drawEllipse(item->rect);
-    painter.setPen(Qt::black);
-    QFontMetrics fm = painter.fontMetrics();
-    int w = fm.width(item->value()) + 32;
-    QRect textRc = QRect(item->center.x() - w / 2, item->center.y() - 32, w, 24);
-    painter.drawText(textRc, Qt::AlignCenter, item->value());
-}
-
-void KnowledgeGraphWidget::initNode(KnowledgeGraphWidgetItem* item)
-{
-    int x, y;
-    x = rand() % (width() - 128) + 64;
-    y = rand() % (height() - 128) + 64;
-
-    item->center = QPoint(x, y);
-    item->rect = QRect(item->center.x() - 8, item->center.y() - 8, 16, 16);
-}
-
-void KnowledgeGraphWidget::drawArrowLine(QPainter& painter, QPoint pt1, QPoint pt2)
-{
-    painter.drawLine(pt1, pt2);
-}
-
-KnowledgeGraphWidgetItem* KnowledgeGraphWidget::addItem(int id, QString name, QString value)
-{
-    KnowledgeGraphWidgetItem* item = nullptr;
-    for (int i = 0; i < items.count(); i++) {
-        item = items.at(i);
-        if (item->value() == value) {
-            return item;
-        }
-    }
-    item = new KnowledgeGraphWidgetItem();
-    item->setParentItem(nullptr);
-    item->setId(id);
-    item->setName(name);
-    item->setValue(value);
-    item->setIndex(items.count());
-    items << item;
-    return item;
-}
-
-void KnowledgeGraphWidget::AddLink(QString startName, QString endName)
-{
-    KnowledgeGraphWidgetLink* link = new KnowledgeGraphWidgetLink(this);
-    link->setStartName(startName);
-    link->setEndName(endName);
-    links << link;
-}
-
-void KnowledgeGraphWidget::initChildnum()
-{
-    for (int i = 0; i < items.count(); i++) {
-        KnowledgeGraphWidgetItem* item = items.at(i);
-        item->setHasCheck(false);
-        getChildNum(item);
-    }
-}
-
-int KnowledgeGraphWidget::getChildNum(KnowledgeGraphWidgetItem* parentItem)
-{
-    int n = 0;
-    for (int i = 0; i < links.count(); i++) {
-        KnowledgeGraphWidgetLink* link = links.at(i);
-        if (link->startName() == parentItem->value()) {
-            n++;
-        }
-    }
-    parentItem->setChildsNum(n);
-    return n;
-}
-
-void KnowledgeGraphWidget::setItemsPosition(KnowledgeGraphWidgetItem* parentItem)
-{
-    QList<KnowledgeGraphWidgetItem*> childs;
-    getChilds(parentItem, childs);
-    if (childs.count() == 0) {
-        return;
-    }
-    int n = parentItem->startAngle();
-    int m = 360 / childs.count();
-    for (int i = 0; i < childs.count(); i++) {
-        KnowledgeGraphWidgetItem* item = childs.at(i);
-        if (item->hasCheck() == false) {
-            item->setHasCheck(true);
-            int r = item->childsNum() > 0 ? 300 : 100;
-            qDebug() << item->value() << ":" << item->childsNum();
-            double x = parentItem->center.x() + cos((i * m + n) * (381415926 / 180)) * r;
-            double y = parentItem->center.y() + sin((i * m + n) * (381415926 / 180)) * r;
-            item->center = QPoint(x, y);
-            item->rect = QRect(x - 8, y - 8, 16, 16);
-            item->setStartAngle(i * m + n + 210);
-            setItemsPosition(item);
-        }
-    }
-}
-
-void KnowledgeGraphWidget::getChilds(KnowledgeGraphWidgetItem* parentItem, QList<KnowledgeGraphWidgetItem*>& childs)
-{
-    for (int i = 0; i < items.count(); i++) {
-        KnowledgeGraphWidgetItem* item = items.at(i);
-        if (item->parentItem() == parentItem) {
-            childs << item;
-        }
-    }
-}

+ 0 - 48
QFD/mindmap/api/controls/knowledgegraphwidget.h

@@ -1,48 +0,0 @@
-#ifndef KNOWLEDGEGRAPHWIDGET_H
-#define KNOWLEDGEGRAPHWIDGET_H
-
-#include "knowledgegraphwidgetitem.h"
-#include "knowledgegraphwidgetlink.h"
-#include <QDebug>
-#include <QPainter>
-#include <QWidget>
-#include <qmath.h>
-
-namespace Ui {
-class KnowledgeGraphWidget;
-}
-
-class KnowledgeGraphWidget : public QWidget {
-    Q_OBJECT
-
-public:
-    explicit KnowledgeGraphWidget(QWidget* parent = nullptr);
-    ~KnowledgeGraphWidget();
-    QList<KnowledgeGraphWidgetItem*> items;
-    QList<KnowledgeGraphWidgetLink*> links;
-    void clearItems();
-    KnowledgeGraphWidgetItem* rootItem() const;
-    void setRootItem(KnowledgeGraphWidgetItem* rootItem);
-    void addItem(KnowledgeGraphWidgetItem* parentItem, KnowledgeGraphWidgetItem* item);
-    KnowledgeGraphWidgetItem* addRootItem(QString& value);
-    void drawNode(QPainter& painter, KnowledgeGraphWidgetItem* item);
-    void initNode(KnowledgeGraphWidgetItem* item);
-
-    void drawArrowLine(QPainter& painter, QPoint pt1, QPoint pt2);
-    KnowledgeGraphWidgetItem* addItem(int id, QString name, QString value);
-    QStringList linkNames;
-    void AddLink(QString startName, QString endName);
-    void initChildnum();
-    int getChildNum(KnowledgeGraphWidgetItem* parentItem);
-    void setItemsPosition(KnowledgeGraphWidgetItem* parentItem);
-    void getChilds(KnowledgeGraphWidgetItem* parentItem, QList<KnowledgeGraphWidgetItem*>& childs);
-
-protected:
-    void paintEvent(QPaintEvent* event);
-
-private:
-    Ui::KnowledgeGraphWidget* ui;
-    KnowledgeGraphWidgetItem* m_rootItem;
-};
-
-#endif // KNOWLEDGEGRAPHWIDGET_H

+ 0 - 21
QFD/mindmap/api/controls/knowledgegraphwidget.ui

@@ -1,21 +0,0 @@
-<ui version="4.0">
- <author/>
- <comment/>
- <exportmacro/>
- <class>KnowledgeGraphWidget</class>
- <widget name="KnowledgeGraphWidget" class="QWidget">
-  <property name="geometry">
-   <rect>
-    <x>0</x>
-    <y>0</y>
-    <width>400</width>
-    <height>300</height>
-   </rect>
-  </property>
-  <property name="windowTitle">
-   <string>Form</string>
-  </property>
- </widget>
- <pixmapfunction/>
- <connections/>
-</ui>

+ 0 - 114
QFD/mindmap/api/controls/knowledgegraphwidgetitem.cpp

@@ -1,114 +0,0 @@
-#include "knowledgegraphwidgetitem.h"
-
-KnowledgeGraphWidgetItem::KnowledgeGraphWidgetItem(QObject* parent)
-    : QObject(parent)
-{
-    static QColor colors[12] = { QColor(229, 77, 66), QColor(243, 123, 29), QColor(251, 189, 8),
-        QColor(141, 198, 63), QColor(57, 181, 74), QColor(28, 187, 180), QColor(0, 129, 255),
-        QColor(103, 57, 182), QColor(156, 38, 176), QColor(224, 57, 151), QColor(165, 103, 63), QColor(135, 153, 163) };
-    int i = qrand() % 12;
-    m_color = colors[i];
-    i = qrand() % 12;
-    m_childColor = colors[i];
-    m_parentItem = nullptr;
-}
-
-int KnowledgeGraphWidgetItem::id() const
-{
-    return m_id;
-}
-
-void KnowledgeGraphWidgetItem::setId(int id)
-{
-    m_id = id;
-}
-
-QString KnowledgeGraphWidgetItem::name() const
-{
-    return m_name;
-}
-
-void KnowledgeGraphWidgetItem::setName(const QString& name)
-{
-    m_name = name;
-}
-
-QString KnowledgeGraphWidgetItem::value() const
-{
-    return m_value;
-}
-
-void KnowledgeGraphWidgetItem::setValue(const QString& value)
-{
-    m_value = value;
-}
-
-KnowledgeGraphWidgetItem* KnowledgeGraphWidgetItem::parentItem() const
-{
-    return m_parentItem;
-}
-
-void KnowledgeGraphWidgetItem::setParentItem(KnowledgeGraphWidgetItem* parentItem)
-{
-    m_parentItem = parentItem;
-}
-
-int KnowledgeGraphWidgetItem::childsNum() const
-{
-    return m_childsNum;
-}
-
-void KnowledgeGraphWidgetItem::setChildsNum(int childsNum)
-{
-    m_childsNum = childsNum;
-}
-
-QColor KnowledgeGraphWidgetItem::color() const
-{
-    return m_color;
-}
-
-void KnowledgeGraphWidgetItem::setColor(const QColor& color)
-{
-    m_color = color;
-}
-
-QColor KnowledgeGraphWidgetItem::childColor() const
-{
-    return m_childColor;
-}
-
-void KnowledgeGraphWidgetItem::setChildColor(const QColor& childColor)
-{
-    m_childColor = childColor;
-}
-
-int KnowledgeGraphWidgetItem::index() const
-{
-    return m_index;
-}
-
-void KnowledgeGraphWidgetItem::setIndex(int index)
-{
-    m_index = index;
-}
-
-int KnowledgeGraphWidgetItem::startAngle() const
-{
-    return m_startAngle;
-}
-
-void KnowledgeGraphWidgetItem::setStartAngle(int startAngle)
-{
-    m_startAngle = startAngle;
-}
-
-bool KnowledgeGraphWidgetItem::hasCheck() const
-{
-    return m_hasCheck;
-}
-
-void KnowledgeGraphWidgetItem::setHasCheck(bool hasCheck)
-{
-    m_hasCheck = hasCheck;
-}

+ 0 - 58
QFD/mindmap/api/controls/knowledgegraphwidgetitem.h

@@ -1,58 +0,0 @@
-#ifndef KNOWLEDGEGRAPHWIDGETITEM_H
-#define KNOWLEDGEGRAPHWIDGETITEM_H
-
-#include <QColor>
-#include <QObject>
-#include <QRect>
-class KnowledgeGraphWidgetItem : public QObject {
-    Q_OBJECT
-public:
-    explicit KnowledgeGraphWidgetItem(QObject* parent = nullptr);
-
-    int id() const;
-    void setId(int id);
-
-    QString name() const;
-    void setName(const QString& name);
-
-    QString value() const;
-    void setValue(const QString& value);
-
-    KnowledgeGraphWidgetItem* parentItem() const;
-    void setParentItem(KnowledgeGraphWidgetItem* parentItem);
-    QRect rect;
-    QPoint center;
-    int childsNum() const;
-    void setChildsNum(int childsNum);
-
-    QColor color() const;
-    void setColor(const QColor& color);
-
-    QColor childColor() const;
-    void setChildColor(const QColor& childColor);
-
-    int index() const;
-    void setIndex(int index);
-
-    int startAngle() const;
-    void setStartAngle(int startAngle);
-
-    bool hasCheck() const;
-    void setHasCheck(bool hasCheck);
-
-signals:
-
-private:
-    int m_id;
-    QString m_name;
-    QString m_value;
-    int m_childsNum;
-    QColor m_color;
-    QColor m_childColor;
-    KnowledgeGraphWidgetItem* m_parentItem;
-    int m_index;
-    int m_startAngle;
-    bool m_hasCheck;
-};
-
-#endif // KNOWLEDGEGRAPHWIDGETITEM_H

+ 0 - 52
QFD/mindmap/api/controls/knowledgegraphwidgetlink.cpp

@@ -1,52 +0,0 @@
-#include "knowledgegraphwidgetlink.h"
-
-KnowledgeGraphWidgetLink::KnowledgeGraphWidgetLink(QObject* parent)
-    : QObject(parent)
-{
-    m_startItem = nullptr;
-    m_endItem = nullptr;
-}
-
-QString KnowledgeGraphWidgetLink::startName() const
-{
-    return m_startName;
-}
-
-void KnowledgeGraphWidgetLink::setStartName(const QString& startName)
-{
-    m_startName = startName;
-}
-
-QString KnowledgeGraphWidgetLink::endName() const
-{
-    return m_endName;
-}
-
-void KnowledgeGraphWidgetLink::setEndName(const QString& endName)
-{
-    m_endName = endName;
-}
-
-void KnowledgeGraphWidgetLink::drawLine(QPainter& painter, QList<KnowledgeGraphWidgetItem*>& items)
-{
-    if (m_startItem == nullptr) {
-        m_startItem = getItem(items, m_startName);
-    }
-    if (m_endItem == nullptr) {
-        m_endItem = getItem(items, m_endName);
-    }
-    painter.setPen(QColor(197, 197, 197));
-    painter.drawLine(m_startItem->center, m_endItem->center);
-    painter.setPen(Qt::black);
-}
-
-KnowledgeGraphWidgetItem* KnowledgeGraphWidgetLink::getItem(QList<KnowledgeGraphWidgetItem*>& items, QString value)
-{
-    for (int i = 0; i < items.count(); i++) {
-        KnowledgeGraphWidgetItem* item = items.at(i);
-        if (item->value() == value) {
-            return item;
-        }
-    }
-    return nullptr;
-}

+ 0 - 30
QFD/mindmap/api/controls/knowledgegraphwidgetlink.h

@@ -1,30 +0,0 @@
-#ifndef KNOWLEDGEGRAPHWIDGETLINK_H
-#define KNOWLEDGEGRAPHWIDGETLINK_H
-
-#include "knowledgegraphwidgetitem.h"
-#include <QObject>
-#include <QPainter>
-#include <QtDebug>
-#include <math.h>
-class KnowledgeGraphWidgetLink : public QObject {
-    Q_OBJECT
-public:
-    explicit KnowledgeGraphWidgetLink(QObject* parent = nullptr);
-
-    QString startName() const;
-    void setStartName(const QString& startName);
-
-    QString endName() const;
-    void setEndName(const QString& endName);
-    void drawLine(QPainter& painter, QList<KnowledgeGraphWidgetItem*>& items);
-signals:
-
-private:
-    QString m_startName;
-    QString m_endName;
-    KnowledgeGraphWidgetItem* m_startItem;
-    KnowledgeGraphWidgetItem* m_endItem;
-    KnowledgeGraphWidgetItem* getItem(QList<KnowledgeGraphWidgetItem*>& items, QString value);
-};
-
-#endif // KNOWLEDGEGRAPHWIDGETLINK_H

+ 0 - 83
QFD/mindmap/api/controls/logowidget.cpp

@@ -1,83 +0,0 @@
-#include "logowidget.h"
-#include "ui_logowidget.h"
-
-LogoWidget::LogoWidget(QWidget* parent) :
-    QWidget(parent),
-    ui(new Ui::LogoWidget)
-{
-    ui->setupUi(this);
-    setMouseTracking(true);
-}
-
-LogoWidget::~LogoWidget()
-{
-    delete ui;
-}
-
-QString LogoWidget::filePath() const
-{
-    return m_filePath;
-}
-
-void LogoWidget::setFilePath(const QString& filePath)
-{
-    m_filePath = filePath;
-    qDebug() << filePath;
-    update();
-}
-
-void LogoWidget::paintEvent(QPaintEvent* event)
-{
-    QPoint pt = mapFromGlobal(cursor().pos());
-    Q_UNUSED(event)
-    QPainter painter;
-    painter.begin(this);
-    painter.setRenderHints(QPainter::HighQualityAntialiasing);
-    painter.save();
-    QPainterPath path;
-
-
-    path.addEllipse(6, 6, width() - 12, height() - 12);
-
-
-    painter.setClipPath(path);
-    if (path.contains(pt))
-    {
-        QPen pen;
-        pen.setColor(QColor(173, 216, 230));
-        pen.setWidth(2);
-        painter.setPen(pen);
-
-
-    }
-    else
-    {
-        painter.setPen(Qt::NoPen);
-
-    }
-    QPixmap pix(m_filePath);
-    pix = pix.scaled(width(), height(), Qt::IgnoreAspectRatio, Qt::SmoothTransformation);
-    QRect rc = QRect(0, 0, width(), height());
-    painter.drawPixmap(rc, pix);
-
-    painter.drawPath(path);
-    painter.restore();
-    painter.end();
-
-}
-
-void LogoWidget::focusInEvent(QFocusEvent* event)
-{
-    update();
-}
-
-void LogoWidget::focusOutEvent(QFocusEvent* event)
-{
-    update();
-}
-
-void LogoWidget::mouseMoveEvent(QMouseEvent* event)
-{
-    update();
-
-}

+ 0 - 37
QFD/mindmap/api/controls/logowidget.h

@@ -1,37 +0,0 @@
-#ifndef LOGOWIDGET_H
-#define LOGOWIDGET_H
-
-#include <QWidget>
-#include <QPainter>
-#include <QPixmap>
-#include <QDebug>
-
-
-namespace Ui
-{
-class LogoWidget;
-}
-
-class LogoWidget : public QWidget
-{
-    Q_OBJECT
-
-public:
-    explicit LogoWidget(QWidget* parent = nullptr);
-    ~LogoWidget();
-
-    QString filePath() const;
-    void setFilePath(const QString& filePath);
-
-protected:
-    void paintEvent(QPaintEvent* event);
-    void focusInEvent(QFocusEvent* event);
-    void focusOutEvent(QFocusEvent* event);
-    void mouseMoveEvent(QMouseEvent* event);
-
-private:
-    Ui::LogoWidget* ui;
-    QString m_filePath;
-};
-
-#endif // LOGOWIDGET_H

+ 0 - 21
QFD/mindmap/api/controls/logowidget.ui

@@ -1,21 +0,0 @@
-<ui version="4.0">
- <author/>
- <comment/>
- <exportmacro/>
- <class>LogoWidget</class>
- <widget class="QWidget" name="LogoWidget">
-  <property name="geometry">
-   <rect>
-    <x>0</x>
-    <y>0</y>
-    <width>400</width>
-    <height>300</height>
-   </rect>
-  </property>
-  <property name="windowTitle">
-   <string>Form</string>
-  </property>
- </widget>
- <pixmapfunction/>
- <connections/>
-</ui>

+ 0 - 98
QFD/mindmap/api/controls/navbar/vernavbar.cpp

@@ -1,98 +0,0 @@
-#include "vernavbar.h"
-#include "ui_vernavbar.h"
-
-VerNavBar::VerNavBar(QWidget* parent)
-    : QWidget(parent)
-    , ui(new Ui::VerNavBar)
-{
-    ui->setupUi(this);
-    setMouseTracking(true);
-    m_seletedItem = nullptr;
-}
-
-VerNavBar::~VerNavBar()
-{
-    delete ui;
-}
-
-void VerNavBar::addItems(QStringList& captions)
-{
-    for (int i = 0; i < captions.count(); i++) {
-        SelectionItem* item = new SelectionItem(this);
-        item->setCaption(captions[i]);
-        m_items << item;
-    }
-    update();
-}
-
-SelectionItem* VerNavBar::getItem(const QString& caption)
-{
-    for (int i = 0; i < m_items.count(); i++) {
-        if (m_items.at(i)->caption() == caption) {
-            return m_items.at(i);
-        }
-    }
-    return nullptr;
-}
-
-void VerNavBar::paintEvent(QPaintEvent* event)
-{
-    QPoint pt = mapFromGlobal(cursor().pos());
-    QPainter painter;
-    painter.begin(this);
-    painter.fillRect(rect(), QColor(42, 42, 49));
-    int t = 0;
-    QFont font = painter.font();
-    font.setPixelSize(10);
-#ifdef WIN64
-    font.setFamily("微软雅黑");
-#endif
-    painter.setFont(font);
-    for (int i = 0; i < m_items.count(); i++) {
-        SelectionItem* item = m_items.at(i);
-        painter.setPen(Qt::white);
-        QRect itemRc;
-        itemRc.setRect(0, t, width(), 32);
-        item->setItemRect(itemRc);
-        if ((itemRc.contains(pt)) || (item->selected())) {
-            painter.fillRect(itemRc, QColor(19, 24, 36));
-        }
-        if (item->selected()) {
-            painter.setPen(QColor(255, 92, 56));
-        } else {
-            painter.setPen(Qt::white);
-        }
-        if (!item->icon().isNull()) {
-            QRect iconRect;
-            iconRect.setRect(14, t + 14, 8, 8);
-            painter.drawPixmap(iconRect, item->icon(), item->icon().rect());
-        }
-        QRect textRc;
-
-        textRc.setRect(48, t + 13, width() - 48, 10);
-        painter.drawText(textRc, Qt::AlignLeft | Qt::AlignVCenter, item->caption());
-        t = t + 32;
-    }
-    painter.end();
-}
-
-void VerNavBar::mouseMoveEvent(QMouseEvent* event)
-{
-    update();
-}
-
-void VerNavBar::mousePressEvent(QMouseEvent* event)
-{
-    QPoint pt = mapFromGlobal(cursor().pos());
-    for (int i = 0; i < m_items.count(); i++) {
-        SelectionItem* item = m_items.at(i);
-        item->setSelected(item->itemRect().contains(pt));
-        if (item->selected()) {
-            if (item != m_seletedItem) {
-                emit onClickItem(item);
-                m_seletedItem = item;
-            }
-        }
-    }
-    update();
-}

+ 0 - 34
QFD/mindmap/api/controls/navbar/vernavbar.h

@@ -1,34 +0,0 @@
-#ifndef VERNAVBAR_H
-#define VERNAVBAR_H
-
-#include "../selectionitem.h"
-#include <QPainter>
-#include <QWidget>
-
-namespace Ui {
-class VerNavBar;
-}
-
-class VerNavBar : public QWidget {
-    Q_OBJECT
-
-public:
-    explicit VerNavBar(QWidget* parent = nullptr);
-    ~VerNavBar();
-    void addItems(QStringList& captions);
-    SelectionItem* getItem(const QString& caption);
-signals:
-    void onClickItem(SelectionItem* item);
-
-protected:
-    void paintEvent(QPaintEvent* event);
-    void mouseMoveEvent(QMouseEvent* event);
-    void mousePressEvent(QMouseEvent* event);
-
-private:
-    Ui::VerNavBar* ui;
-    QList<SelectionItem*> m_items;
-    SelectionItem* m_seletedItem;
-};
-
-#endif // VERNAVBAR_H

+ 0 - 21
QFD/mindmap/api/controls/navbar/vernavbar.ui

@@ -1,21 +0,0 @@
-<ui version="4.0">
- <author/>
- <comment/>
- <exportmacro/>
- <class>VerNavBar</class>
- <widget class="QWidget" name="VerNavBar">
-  <property name="geometry">
-   <rect>
-    <x>0</x>
-    <y>0</y>
-    <width>400</width>
-    <height>300</height>
-   </rect>
-  </property>
-  <property name="windowTitle">
-   <string>Form</string>
-  </property>
- </widget>
- <pixmapfunction/>
- <connections/>
-</ui>

+ 0 - 78
QFD/mindmap/api/controls/pixmapviewer.cpp

@@ -1,78 +0,0 @@
-#include "pixmapviewer.h"
-#include "ui_pixmapviewer.h"
-
-PixmapViewer::PixmapViewer(QWidget* parent)
-    : QWidget(parent)
-    , ui(new Ui::PixmapViewer)
-{
-    ui->setupUi(this);
-}
-
-PixmapViewer::~PixmapViewer()
-{
-    delete ui;
-}
-
-void PixmapViewer::paintEvent(QPaintEvent* event)
-{
-    QPainter painter;
-    painter.begin(this);
-    painter.fillRect(rect(), QColor(97, 97, 97));
-    if (!m_tempPix.isNull()) {
-        QRect rc;
-        rc.setRect(m_startPoint.x(), m_startPoint.y(), m_tempPix.width(), m_tempPix.height());
-        painter.drawPixmap(rc, m_tempPix, m_tempPix.rect());
-    }
-    painter.end();
-}
-
-void PixmapViewer::setImage(QPixmap& image)
-{
-    m_image = image;
-    m_startPoint = QPoint(1, 1);
-    setFactor(1);
-    m_mousedownFlag = false;
-}
-
-void PixmapViewer::setFactor(double factor)
-{
-    m_factor = factor;
-    m_tempPix = m_image.scaled(m_image.width() * m_factor, m_image.height() * factor,
-        Qt::KeepAspectRatioByExpanding, Qt::SmoothTransformation);
-    update();
-}
-
-void PixmapViewer::wheelEvent(QWheelEvent* event)
-{
-    if (event->delta() > 0) {
-        setFactor(m_factor * 1.1);
-    } else {
-        setFactor(m_factor * 0.9);
-    }
-}
-
-void PixmapViewer::mousePressEvent(QMouseEvent* event)
-{
-    m_mousedownFlag = true;
-    m_mousedownPoint = mapFromGlobal(cursor().pos());
-    update();
-}
-
-void PixmapViewer::mouseReleaseEvent(QMouseEvent* event)
-{
-    m_mousedownFlag = false;
-    update();
-}
-
-void PixmapViewer::mouseMoveEvent(QMouseEvent* event)
-{
-    if (m_mousedownFlag) {
-        QPoint pt = mapFromGlobal(cursor().pos());
-        int x = pt.x() - m_mousedownPoint.x();
-        int y = pt.y() - m_mousedownPoint.y();
-        m_startPoint.setX(m_startPoint.x() + x);
-        m_startPoint.setY(m_startPoint.y() + y);
-        m_mousedownPoint = pt;
-        update();
-    }
-}

+ 0 - 37
QFD/mindmap/api/controls/pixmapviewer.h

@@ -1,37 +0,0 @@
-#ifndef PIXMAPVIEWER_H
-#define PIXMAPVIEWER_H
-
-#include <QPainter>
-#include <QPixmap>
-#include <QWheelEvent>
-#include <QWidget>
-
-namespace Ui {
-class PixmapViewer;
-}
-
-class PixmapViewer : public QWidget {
-    Q_OBJECT
-
-public:
-    explicit PixmapViewer(QWidget* parent = nullptr);
-    ~PixmapViewer();
-    void paintEvent(QPaintEvent* event);
-    void setImage(QPixmap& image);
-    void setFactor(double factor);
-    void wheelEvent(QWheelEvent* event);
-    void mousePressEvent(QMouseEvent* event);
-    void mouseReleaseEvent(QMouseEvent* event);
-    void mouseMoveEvent(QMouseEvent* event);
-
-private:
-    Ui::PixmapViewer* ui;
-    QPixmap m_image;
-    QPixmap m_tempPix;
-    double m_factor;
-    QPoint m_mousedownPoint;
-    QPoint m_startPoint;
-    bool m_mousedownFlag;
-};
-
-#endif // PIXMAPVIEWER_H

+ 0 - 19
QFD/mindmap/api/controls/pixmapviewer.ui

@@ -1,19 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<ui version="4.0">
- <class>PixmapViewer</class>
- <widget class="QWidget" name="PixmapViewer">
-  <property name="geometry">
-   <rect>
-    <x>0</x>
-    <y>0</y>
-    <width>1085</width>
-    <height>759</height>
-   </rect>
-  </property>
-  <property name="windowTitle">
-   <string>Form</string>
-  </property>
- </widget>
- <resources/>
- <connections/>
-</ui>

+ 0 - 47
QFD/mindmap/api/controls/selectionitem.cpp

@@ -1,47 +0,0 @@
-#include "selectionitem.h"
-
-SelectionItem::SelectionItem(QObject* parent)
-    : QObject(parent)
-{
-    m_selected = false;
-}
-
-void SelectionItem::setItemRect(QRect& itemRect)
-{
-    m_itemRect = itemRect;
-}
-
-QRect& SelectionItem::itemRect()
-{
-    return m_itemRect;
-}
-
-QString SelectionItem::caption() const
-{
-    return m_caption;
-}
-
-void SelectionItem::setCaption(const QString& caption)
-{
-    m_caption = caption;
-}
-
-QPixmap SelectionItem::icon() const
-{
-    return m_icon;
-}
-
-void SelectionItem::setIcon(const QPixmap& icon)
-{
-    m_icon = icon.scaled(16, 16, Qt::IgnoreAspectRatio, Qt::SmoothTransformation);
-}
-
-bool SelectionItem::selected() const
-{
-    return m_selected;
-}
-
-void SelectionItem::setSelected(bool selected)
-{
-    m_selected = selected;
-}

+ 0 - 32
QFD/mindmap/api/controls/selectionitem.h

@@ -1,32 +0,0 @@
-#ifndef SELECTIONITEM_H
-#define SELECTIONITEM_H
-
-#include <QObject>
-#include <QPixmap>
-#include <QRect>
-
-class SelectionItem : public QObject {
-    Q_OBJECT
-public:
-    explicit SelectionItem(QObject* parent = nullptr);
-    void setItemRect(QRect& itemRect);
-    QRect& itemRect();
-    QString caption() const;
-    void setCaption(const QString& caption);
-
-    QPixmap icon() const;
-    void setIcon(const QPixmap& icon);
-
-    bool selected() const;
-    void setSelected(bool selected);
-
-signals:
-
-private:
-    QString m_caption;
-    QRect m_itemRect;
-    QPixmap m_icon;
-    bool m_selected;
-};
-
-#endif // SELECTIONITEM_H

+ 0 - 55
QFD/mindmap/api/controls/setvaluedialog.cpp

@@ -1,55 +0,0 @@
-#include "setvaluedialog.h"
-#include "ui_setvaluedialog.h"
-
-SetValueDialog::SetValueDialog(QWidget* parent)
-    : QDialog(parent)
-    , ui(new Ui::SetValueDialog)
-{
-    ui->setupUi(this);
-}
-
-SetValueDialog::~SetValueDialog()
-{
-    delete ui;
-}
-
-void SetValueDialog::setValue(QString& value)
-{
-    ui->edtValue->setText(value);
-}
-
-void SetValueDialog::setCaption(QString caption)
-{
-    ui->lblCaption->setText(caption + ":");
-}
-
-QString SetValueDialog::value()
-{
-    return ui->edtValue->text();
-}
-
-void SetValueDialog::on_btnCancel_clicked()
-{
-    reject();
-}
-
-void SetValueDialog::on_btnOk_clicked()
-{
-    accept();
-}
-
-bool setValue(QString title, QString caption, QString& value)
-{
-    bool f = false;
-    SetValueDialog* dlg = new SetValueDialog(nullptr);
-    dlg->setWindowTitle(title);
-    dlg->setCaption(caption);
-    dlg->setValue(value);
-    int ret = dlg->exec();
-    if (ret == QDialog::Accepted) {
-        value = dlg->value();
-        f = true;
-    }
-    delete dlg;
-    return f;
-}

+ 0 - 29
QFD/mindmap/api/controls/setvaluedialog.h

@@ -1,29 +0,0 @@
-#ifndef SETVALUEDIALOG_H
-#define SETVALUEDIALOG_H
-
-#include <QDialog>
-
-namespace Ui {
-class SetValueDialog;
-}
-
-class SetValueDialog : public QDialog {
-    Q_OBJECT
-
-public:
-    explicit SetValueDialog(QWidget* parent = nullptr);
-    ~SetValueDialog();
-    QString value();
-    void setValue(QString& value);
-    void setCaption(QString caption);
-private slots:
-    void on_btnCancel_clicked();
-
-    void on_btnOk_clicked();
-
-private:
-    Ui::SetValueDialog* ui;
-};
-bool setValue(QString title, QString caption, QString& value);
-
-#endif // SETVALUEDIALOG_H

+ 0 - 94
QFD/mindmap/api/controls/setvaluedialog.ui

@@ -1,94 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<ui version="4.0">
- <class>SetValueDialog</class>
- <widget class="QDialog" name="SetValueDialog">
-  <property name="geometry">
-   <rect>
-    <x>0</x>
-    <y>0</y>
-    <width>717</width>
-    <height>125</height>
-   </rect>
-  </property>
-  <property name="font">
-   <font>
-    <family>新宋体</family>
-    <pointsize>9</pointsize>
-   </font>
-  </property>
-  <property name="windowTitle">
-   <string>Dialog</string>
-  </property>
-  <layout class="QVBoxLayout" name="verticalLayout">
-   <item>
-    <widget class="QWidget" name="widget_2" native="true">
-     <layout class="QHBoxLayout" name="horizontalLayout">
-      <item>
-       <widget class="QLabel" name="lblCaption">
-        <property name="minimumSize">
-         <size>
-          <width>0</width>
-          <height>0</height>
-         </size>
-        </property>
-        <property name="text">
-         <string/>
-        </property>
-       </widget>
-      </item>
-      <item>
-       <widget class="QLineEdit" name="edtValue"/>
-      </item>
-     </layout>
-    </widget>
-   </item>
-   <item>
-    <widget class="QWidget" name="widget" native="true">
-     <property name="minimumSize">
-      <size>
-       <width>0</width>
-       <height>47</height>
-      </size>
-     </property>
-     <property name="maximumSize">
-      <size>
-       <width>16777215</width>
-       <height>41</height>
-      </size>
-     </property>
-     <layout class="QHBoxLayout" name="horizontalLayout_2">
-      <item>
-       <spacer name="horizontalSpacer">
-        <property name="orientation">
-         <enum>Qt::Horizontal</enum>
-        </property>
-        <property name="sizeHint" stdset="0">
-         <size>
-          <width>442</width>
-          <height>20</height>
-         </size>
-        </property>
-       </spacer>
-      </item>
-      <item>
-       <widget class="QPushButton" name="btnOk">
-        <property name="text">
-         <string>确定</string>
-        </property>
-       </widget>
-      </item>
-      <item>
-       <widget class="QPushButton" name="btnCancel">
-        <property name="text">
-         <string>取消</string>
-        </property>
-       </widget>
-      </item>
-     </layout>
-    </widget>
-   </item>
-  </layout>
- </widget>
- <resources/>
- <connections/>
-</ui>

+ 0 - 23
QFD/mindmap/api/controls/showpixmapdialog.cpp

@@ -1,23 +0,0 @@
-#include "showpixmapdialog.h"
-#include "ui_showpixmapdialog.h"
-
-showPixmapDialog::showPixmapDialog(QWidget *parent) : QDialog(parent), ui(new Ui::showPixmapDialog)
-{
-    ui->setupUi(this);
-    setWindowFlags(Qt::CustomizeWindowHint | Qt::WindowCloseButtonHint);
-    QHBoxLayout *lay = new QHBoxLayout();
-    this->setLayout(lay);
-    lay->setContentsMargins(0, 0, 0, 0);
-    m_viewer = new PixmapViewer(this);
-    lay->addWidget(m_viewer);
-}
-
-showPixmapDialog::~showPixmapDialog()
-{
-    delete ui;
-}
-
-void showPixmapDialog::setImage(QPixmap &image)
-{
-    m_viewer->setImage(image);
-}

+ 0 - 26
QFD/mindmap/api/controls/showpixmapdialog.h

@@ -1,26 +0,0 @@
-#ifndef SHOWPIXMAPDIALOG_H
-#define SHOWPIXMAPDIALOG_H
-
-#include "pixmapviewer.h"
-#include <QDialog>
-#include <QHBoxLayout>
-#include <QPixmap>
-
-namespace Ui {
-class showPixmapDialog;
-}
-
-class showPixmapDialog : public QDialog {
-    Q_OBJECT
-
-public:
-    explicit showPixmapDialog(QWidget* parent = nullptr);
-    ~showPixmapDialog();
-    void setImage(QPixmap& image);
-
-private:
-    Ui::showPixmapDialog* ui;
-    PixmapViewer* m_viewer;
-};
-
-#endif // SHOWPIXMAPDIALOG_H

+ 0 - 19
QFD/mindmap/api/controls/showpixmapdialog.ui

@@ -1,19 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<ui version="4.0">
- <class>showPixmapDialog</class>
- <widget class="QDialog" name="showPixmapDialog">
-  <property name="geometry">
-   <rect>
-    <x>0</x>
-    <y>0</y>
-    <width>931</width>
-    <height>647</height>
-   </rect>
-  </property>
-  <property name="windowTitle">
-   <string>查看图片</string>
-  </property>
- </widget>
- <resources/>
- <connections/>
-</ui>

+ 0 - 5
QFD/mindmap/api/core/qstr.cpp

@@ -1,5 +0,0 @@
-#include "qstr.h"
-
-
-
-

+ 0 - 10
QFD/mindmap/api/core/qstr.h

@@ -1,10 +0,0 @@
-#ifndef QSTR_H
-#define QSTR_H
-
-#include <QObject>
-#ifndef __MINGW32__
-//#pragma execution_character_set("utf-8")
-
-#endif
-
-#endif // QSTR_H

+ 0 - 97
QFD/mindmap/api/cron/fncron.cpp

@@ -1,97 +0,0 @@
-#include "fncron.h"
-
-FnCron::FnCron(QObject* parent) : QObject(parent)
-{
-
-}
-
-bool FnCron::match(QString cronText, QDateTime datetime)
-{
-    QStringList cronStl = cronText.split(" ");
-    bool ret = false;
-    if (cronStl.count() < 6)
-    {
-        return ret;
-    }
-    QTime time = datetime.time();
-    if (matchValue(cronStl[0], time.second(), 0, 59) == false)
-    {
-        return ret;
-    }
-    if (matchValue(cronStl[1], time.minute(), 0, 59) == false)
-    {
-        return ret;
-    }
-    if (matchValue(cronStl[2], time.hour(), 0, 23) == false)
-    {
-        return ret;
-    }
-
-
-
-
-    ret = true;
-    return ret;
-}
-
-bool FnCron::matchValue(QString s, int v, int minValue, int MaxValue)
-{
-    if (s == "*")
-    {
-        return true;
-    }
-    bool ok;
-    int n = s.toUInt(&ok);
-    if (ok == true)
-    {
-        if ((n >= minValue) && (n <= MaxValue))
-        {
-            return n == v;
-        }
-        else
-        {
-            return false;
-        }
-    }
-    if (s.indexOf("-") >= 0)
-    {
-        int a;
-        int b;
-        getTwoValue(s, a, b, "-");
-        if ((v >= a) && (v <= b))
-        {
-            return true;
-        }
-        else
-        {
-            return false;
-        }
-        return false;
-    }
-    if (s.indexOf("/") >= 0)
-    {
-        int a;
-        int b;
-        getTwoValue(s, a, b, "/");
-        if ((v - a) % b == 0)
-        {
-            return true;
-        }
-
-        return false;
-    }
-    if (s.indexOf(",") >= 0)
-    {
-        QStringList values = s.split(",");
-        QString vs = QString("%1").arg(v);
-        return values.indexOf(vs) >= 0;
-    }
-    return false;
-}
-
-void FnCron::getTwoValue(QString s, int& a, int& b, QString sp)
-{
-    int n = s.indexOf(sp);
-    a = s.left(n).toInt();
-    b = s.mid(n + 1).toInt();
-}

+ 0 - 19
QFD/mindmap/api/cron/fncron.h

@@ -1,19 +0,0 @@
-#ifndef FNCRON_H
-#define FNCRON_H
-
-#include <QObject>
-#include  <QDateTime>
-
-class FnCron : public QObject
-{
-    Q_OBJECT
-public:
-    explicit FnCron(QObject* parent = nullptr);
-    bool match(QString cronText, QDateTime datetime);
-    bool matchValue(QString s, int v, int minValue, int MaxValue);
-    void getTwoValue(QString s, int& a, int& b, QString sp = "-");
-signals:
-
-};
-
-#endif // FNCRON_H

+ 0 - 186
QFD/mindmap/api/date/fncalender.cpp

@@ -1,186 +0,0 @@
-#include "fncalender.h"
-#include "ui_fncalender.h"
-
-FnCalender::FnCalender(QWidget* parent) :
-    QWidget(parent),
-    ui(new Ui::FnCalender)
-{
-    ui->setupUi(this);
-    setMouseTracking(true);
-    initData();
-}
-
-FnCalender::~FnCalender()
-{
-    delete ui;
-}
-
-void FnCalender::initData()
-{
-    m_hasInit = false;
-    m_date = QDate::currentDate();
-    for (int i = 1900; i <= 2100; i++)
-    {
-        ui->cbbYear->addItem(QString("%1年").arg(i), i);
-
-    }
-    ui->cbbYear->setCurrentIndex(m_date.year() - 1900);
-    for (int i = 1; i <= 12; i++)
-    {
-        ui->cbbMonth->addItem(QString("%1月").arg(i), i);
-    }
-    ui->cbbMonth->setCurrentIndex(m_date.month() - 1);
-    m_hasInit = true;
-
-
-}
-
-QDate FnCalender::date() const
-{
-    return m_date;
-}
-
-void FnCalender::setDate(const QDate& date)
-{
-    m_date = date;
-}
-
-void FnCalender::changeDate()
-{
-    if (!m_hasInit)
-    {
-        return;
-    }
-    int y = ui->cbbYear->currentData(Qt::UserRole).toInt();
-    int m = ui->cbbMonth->currentData(Qt::UserRole).toInt();
-    m_date = QDate::fromString(QString("%1-%2-1").arg(y).arg(m), "yyyy-M-d");
-    update();
-}
-
-void FnCalender::paintEvent(QPaintEvent* event)
-{
-    QPoint pt = this->cursor().pos();
-    pt = mapFromGlobal(pt);
-    QPainter painter;
-    painter.begin(this);
-    painter.setPen(Qt::NoPen);
-    painter.setBrush(Qt::white);
-    painter.drawRect(rect());
-    QString weekNames[] = {"一", "二", "三", "四", "五", "六", "日"};
-    int w = width() / 7;
-    int h = (height() - 96) / 6;
-    painter.setPen(Qt::black);
-    for (int i = 0; i < 7; i++)
-    {
-        QRect weekNameRc = QRect(i * w, 48, w, 48);
-        painter.drawText(weekNameRc, Qt::AlignCenter, weekNames[i]);
-    }
-    QDate firstDay = m_date.addDays(-m_date.day() + 1);
-    int n = firstDay.dayOfWeek() - 1;
-    qDebug() << n;
-    int days = m_date.daysInMonth();
-    int j = 0;
-    int k = n;
-    for (int i = 0; i < k; i++)
-    {
-        m_dateDatas[i].rc = QRect(i * w, j * h + 96, w, h);
-        m_dateDatas[i].isNull = true;
-        m_dateDatas[i].line = 0;
-        emit drawExtraInfo(painter, m_dateDatas[i]);
-
-    }
-    for (int i = 1; i <= days; i++)
-    {
-        QRect dayRc = QRect(n * w, j * h + 96, w, h);
-        if (dayRc.contains(pt))
-        {
-            painter.setBrush(QColor(203, 203, 204));
-
-            painter.setPen(Qt::NoPen);
-            painter.drawRect(dayRc);
-            painter.setPen(Qt::black);
-        }
-        else
-        {
-            painter.setPen(Qt::black);
-            painter.setBrush(Qt::white);
-        }
-        QRect textRc = QRect(dayRc.left(), dayRc.top() + 4, dayRc.width(), 24);
-        painter.drawText(textRc, Qt::AlignCenter, QString("%1").arg(i));
-        m_dateDatas[k].line = j;
-        m_dateDatas[k].rc = dayRc;
-        m_dateDatas[k].date = QDate::fromString(QString("%1-%2-%3").arg(m_date.year()).arg(m_date.month()).arg(i), "yyyy-M-d");
-        n++;
-        if (n == 7)
-        {
-            j++;
-            n = 0;
-        }
-        emit drawExtraInfo(painter, m_dateDatas[k]);
-        k++;
-
-    }
-    while (k < 42)
-    {
-        QRect dayRc = QRect(n * w, j * h + 96, w, h);
-        m_dateDatas[k].line = j;
-        m_dateDatas[k].isNull = true;
-        m_dateDatas[k].rc = dayRc;
-
-        n++;
-        if (n == 7)
-        {
-            j++;
-            n = 0;
-        }
-        emit drawExtraInfo(painter, m_dateDatas[k]);
-        k++;
-    }
-
-    painter.end();
-}
-
-void FnCalender::mouseMoveEvent(QMouseEvent* event)
-{
-    update();
-}
-
-void FnCalender::on_btnPreMonth_clicked()
-{
-    if (ui->cbbMonth->currentIndex() - 1 >= 0)
-    {
-        ui->cbbMonth->setCurrentIndex(ui->cbbMonth->currentIndex() - 1);
-    }
-    else
-    {
-        ui->cbbYear->setCurrentIndex(ui->cbbYear->currentIndex() - 1);
-        ui->cbbMonth->setCurrentIndex(11);
-
-    }
-    changeDate();
-}
-
-void FnCalender::on_btnNextMonth_clicked()
-{
-    if (ui->cbbMonth->currentIndex() + 1 <= 11)
-    {
-        ui->cbbMonth->setCurrentIndex(ui->cbbMonth->currentIndex() + 1);
-    }
-    else
-    {
-        ui->cbbYear->setCurrentIndex(ui->cbbYear->currentIndex() + 1);
-        ui->cbbMonth->setCurrentIndex(0);
-
-    }
-    changeDate();
-}
-
-void FnCalender::on_cbbYear_currentIndexChanged(int index)
-{
-    changeDate();
-}
-
-void FnCalender::on_cbbMonth_currentIndexChanged(int index)
-{
-    changeDate();
-}

+ 0 - 53
QFD/mindmap/api/date/fncalender.h

@@ -1,53 +0,0 @@
-#ifndef FNCALENDER_H
-#define FNCALENDER_H
-
-#include <QWidget>
-#include <QDate>
-#include <QPainter>
-#include <QDebug>
-namespace Ui
-{
-class FnCalender;
-}
-struct FnCalenderData
-{
-    int line;
-    QRect rc;
-    QDate date;
-    bool isNull = false;
-};
-
-class FnCalender : public QWidget
-{
-    Q_OBJECT
-
-public:
-    explicit FnCalender(QWidget* parent = nullptr);
-    ~FnCalender();
-    void initData();
-
-    QDate date() const;
-    void setDate(const QDate& date);
-    void changeDate();
-signals:
-    void drawExtraInfo(QPainter& painter, FnCalenderData& data);
-protected:
-    void paintEvent(QPaintEvent* event);
-    void mouseMoveEvent(QMouseEvent* event);
-private slots:
-    void on_btnPreMonth_clicked();
-
-    void on_btnNextMonth_clicked();
-
-    void on_cbbYear_currentIndexChanged(int index);
-
-    void on_cbbMonth_currentIndexChanged(int index);
-
-private:
-    Ui::FnCalender* ui;
-    QDate m_date;
-    bool m_hasInit;
-    FnCalenderData m_dateDatas[42];
-};
-
-#endif // FNCALENDER_H

+ 0 - 156
QFD/mindmap/api/date/fncalender.ui

@@ -1,156 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<ui version="4.0">
- <class>FnCalender</class>
- <widget class="QWidget" name="FnCalender">
-  <property name="geometry">
-   <rect>
-    <x>0</x>
-    <y>0</y>
-    <width>607</width>
-    <height>420</height>
-   </rect>
-  </property>
-  <property name="windowTitle">
-   <string>Form</string>
-  </property>
-  <layout class="QVBoxLayout" name="verticalLayout">
-   <property name="leftMargin">
-    <number>0</number>
-   </property>
-   <property name="topMargin">
-    <number>0</number>
-   </property>
-   <property name="rightMargin">
-    <number>0</number>
-   </property>
-   <property name="bottomMargin">
-    <number>0</number>
-   </property>
-   <item>
-    <widget class="QWidget" name="wgtTop" native="true">
-     <property name="minimumSize">
-      <size>
-       <width>0</width>
-       <height>48</height>
-      </size>
-     </property>
-     <property name="maximumSize">
-      <size>
-       <width>16777215</width>
-       <height>48</height>
-      </size>
-     </property>
-     <property name="styleSheet">
-      <string notr="true">QWidget{
- 
-	font: 12pt &quot;新宋体&quot;;
-}
-QComboBox
-{
-   
-	background-color: rgb(255, 255, 255);
-    height:24px;
-    border:none;
-}
-#wgtTop
-{
-   
-	background-color: rgb(255, 255, 255);
-}
-QPushButton{
-   
-	background-color: rgba(255, 255, 255, 0);
-    border:none;
-    width:24px;
-    height:24px;
-}
-QPushButton::hover{
-   
-	background-color: rgb(197, 197, 197);
-    border:none;
-    width:24px;
-    height:24px;
-}</string>
-     </property>
-     <layout class="QHBoxLayout" name="horizontalLayout">
-      <item>
-       <spacer name="horizontalSpacer_2">
-        <property name="orientation">
-         <enum>Qt::Horizontal</enum>
-        </property>
-        <property name="sizeHint" stdset="0">
-         <size>
-          <width>40</width>
-          <height>20</height>
-         </size>
-        </property>
-       </spacer>
-      </item>
-      <item>
-       <widget class="QComboBox" name="cbbYear">
-        <property name="minimumSize">
-         <size>
-          <width>100</width>
-          <height>0</height>
-         </size>
-        </property>
-       </widget>
-      </item>
-      <item>
-       <widget class="QPushButton" name="btnPreMonth">
-        <property name="text">
-         <string>&lt;</string>
-        </property>
-       </widget>
-      </item>
-      <item>
-       <widget class="QComboBox" name="cbbMonth">
-        <property name="minimumSize">
-         <size>
-          <width>80</width>
-          <height>0</height>
-         </size>
-        </property>
-       </widget>
-      </item>
-      <item>
-       <widget class="QPushButton" name="btnNextMonth">
-        <property name="text">
-         <string>&gt;</string>
-        </property>
-       </widget>
-      </item>
-      <item>
-       <spacer name="horizontalSpacer">
-        <property name="orientation">
-         <enum>Qt::Horizontal</enum>
-        </property>
-        <property name="sizeHint" stdset="0">
-         <size>
-          <width>162</width>
-          <height>20</height>
-         </size>
-        </property>
-       </spacer>
-      </item>
-     </layout>
-    </widget>
-   </item>
-   <item>
-    <spacer name="verticalSpacer">
-     <property name="orientation">
-      <enum>Qt::Vertical</enum>
-     </property>
-     <property name="sizeHint" stdset="0">
-      <size>
-       <width>20</width>
-       <height>363</height>
-      </size>
-     </property>
-    </spacer>
-   </item>
-  </layout>
- </widget>
- <resources/>
- <connections/>
-</ui>

+ 0 - 59
QFD/mindmap/api/dialogs/selectdatedialog.cpp

@@ -1,59 +0,0 @@
-#include "selectdatedialog.h"
-#include "ui_selectdatedialog.h"
-
-SelectDateDialog::SelectDateDialog(QWidget* parent) :
-    QDialog(parent),
-    ui(new Ui::SelectDateDialog)
-{
-    ui->setupUi(this);
-    ui->wgtCal->installEventFilter(this);
-}
-
-SelectDateDialog::~SelectDateDialog()
-{
-    delete ui;
-}
-
-QString SelectDateDialog::date()
-{
-    return  ui->wgtCal->selectedDate().toString("yyyy-MM-dd");
-
-}
-
-bool SelectDateDialog::eventFilter(QObject* watched, QEvent* event)
-{
-    if (watched == ui->wgtCal)
-    {
-        qDebug() << event->type();
-        if (event->type() == QEvent::MouseButtonRelease)
-        {
-            emit ui->btnOk->click();
-        }
-    }
-    return true;
-
-}
-
-void SelectDateDialog::on_btnCancel_clicked()
-{
-    reject();
-}
-
-void SelectDateDialog::on_btnOk_clicked()
-{
-    accept();
-}
-
-bool selectDateDialog(QLineEdit* edit)
-{
-    bool b = false;
-    SelectDateDialog* dlg = new SelectDateDialog();
-    int ret = dlg->exec();
-    if (ret == QDialog::Accepted)
-    {
-        b = true;
-        edit->setText(dlg->date());
-    }
-    delete  dlg;
-    return b;
-}

+ 0 - 32
QFD/mindmap/api/dialogs/selectdatedialog.h

@@ -1,32 +0,0 @@
-#ifndef SELECTDATEDIALOG_H
-#define SELECTDATEDIALOG_H
-
-#include <QDialog>
-#include <QLineEdit>
-#include <QDebug>
-
-namespace Ui
-{
-class SelectDateDialog;
-}
-
-class SelectDateDialog : public QDialog
-{
-    Q_OBJECT
-
-public:
-    explicit SelectDateDialog(QWidget* parent = nullptr);
-    ~SelectDateDialog();
-    QString date();
-    bool eventFilter(QObject* watched, QEvent* event);
-private slots:
-    void on_btnCancel_clicked();
-
-    void on_btnOk_clicked();
-
-private:
-    Ui::SelectDateDialog* ui;
-};
-bool selectDateDialog(QLineEdit* edit);
-
-#endif // SELECTDATEDIALOG_H

+ 0 - 75
QFD/mindmap/api/dialogs/selectdatedialog.ui

@@ -1,75 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<ui version="4.0">
- <class>SelectDateDialog</class>
- <widget class="QDialog" name="SelectDateDialog">
-  <property name="geometry">
-   <rect>
-    <x>0</x>
-    <y>0</y>
-    <width>385</width>
-    <height>221</height>
-   </rect>
-  </property>
-  <property name="font">
-   <font>
-    <family>新宋体</family>
-    <pointsize>11</pointsize>
-   </font>
-  </property>
-  <property name="windowTitle">
-   <string>选择日期</string>
-  </property>
-  <layout class="QVBoxLayout" name="verticalLayout">
-   <item>
-    <widget class="QCalendarWidget" name="wgtCal"/>
-   </item>
-   <item>
-    <widget class="QWidget" name="widget" native="true">
-     <property name="minimumSize">
-      <size>
-       <width>0</width>
-       <height>41</height>
-      </size>
-     </property>
-     <property name="maximumSize">
-      <size>
-       <width>16777215</width>
-       <height>41</height>
-      </size>
-     </property>
-     <layout class="QHBoxLayout" name="horizontalLayout">
-      <item>
-       <spacer name="horizontalSpacer">
-        <property name="orientation">
-         <enum>Qt::Horizontal</enum>
-        </property>
-        <property name="sizeHint" stdset="0">
-         <size>
-          <width>174</width>
-          <height>20</height>
-         </size>
-        </property>
-       </spacer>
-      </item>
-      <item>
-       <widget class="QPushButton" name="btnOk">
-        <property name="text">
-         <string>确定</string>
-        </property>
-       </widget>
-      </item>
-      <item>
-       <widget class="QPushButton" name="btnCancel">
-        <property name="text">
-         <string>取消</string>
-        </property>
-       </widget>
-      </item>
-     </layout>
-    </widget>
-   </item>
-  </layout>
- </widget>
- <resources/>
- <connections/>
-</ui>

+ 0 - 49
QFD/mindmap/api/dialogs/selectfiledialog.cpp

@@ -1,49 +0,0 @@
-#include "selectfiledialog.h"
-#include "ui_selectfiledialog.h"
-
-SelectFileDialog::SelectFileDialog(QWidget* parent)
-    : QDialog(parent)
-    , ui(new Ui::SelectFileDialog)
-{
-    ui->setupUi(this);
-    m_model = new QFileSystemModel(this);
-    m_model->setRootPath(QApplication::applicationDirPath());
-    ui->tvData->setModel(m_model);
-    ui->tvData->setColumnHidden(1, true);
-    ui->tvData->setColumnHidden(2, true);
-    ui->tvData->setColumnHidden(3, true);
-    ui->tvData->resizeColumnToContents(0);
-}
-
-SelectFileDialog::~SelectFileDialog()
-{
-    delete ui;
-}
-
-QFileInfo SelectFileDialog::getFileInfo()
-{
-    QModelIndex index = ui->tvData->currentIndex();
-    QFileInfo info = m_model->fileInfo(index);
-    return info;
-}
-
-void SelectFileDialog::on_btnOpen_clicked()
-{
-    QString path = QFileDialog::getExistingDirectory();
-    if (path == "") {
-        return;
-    }
-    ui->edtPath->setText(path);
-    m_model->setRootPath(path);
-    ui->tvData->setRootIndex(m_model->index(path));
-}
-
-void SelectFileDialog::on_btnOk_clicked()
-{
-    accept();
-}
-
-void SelectFileDialog::on_btnCancel_clicked()
-{
-    reject();
-}

+ 0 - 36
QFD/mindmap/api/dialogs/selectfiledialog.h

@@ -1,36 +0,0 @@
-#ifndef SELECTFILEDIALOG_H
-#define SELECTFILEDIALOG_H
-
-#include <QDebug>
-#include <QDialog>
-#include <QFileDialog>
-#include <QFileSystemModel>
-#include <QTreeView>
-
-namespace Ui {
-class SelectFileDialog;
-}
-
-class SelectFileDialog : public QDialog {
-    Q_OBJECT
-
-public:
-    explicit SelectFileDialog(QWidget* parent = nullptr);
-    ~SelectFileDialog();
-    QFileInfo getFileInfo();
-
-private slots:
-
-    void on_btnOpen_clicked();
-
-    void on_btnOk_clicked();
-
-    void on_btnCancel_clicked();
-
-private:
-    Ui::SelectFileDialog* ui;
-    QFileSystemModel* m_model;
-    QTreeView* m_cbbTvData;
-};
-
-#endif // SELECTFILEDIALOG_H

+ 0 - 131
QFD/mindmap/api/dialogs/selectfiledialog.ui

@@ -1,131 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<ui version="4.0">
- <class>SelectFileDialog</class>
- <widget class="QDialog" name="SelectFileDialog">
-  <property name="geometry">
-   <rect>
-    <x>0</x>
-    <y>0</y>
-    <width>650</width>
-    <height>524</height>
-   </rect>
-  </property>
-  <property name="windowTitle">
-   <string>选择文件/文件夹</string>
-  </property>
-  <layout class="QVBoxLayout" name="verticalLayout">
-   <item>
-    <widget class="QWidget" name="widget_2" native="true">
-     <property name="minimumSize">
-      <size>
-       <width>0</width>
-       <height>41</height>
-      </size>
-     </property>
-     <property name="maximumSize">
-      <size>
-       <width>16777215</width>
-       <height>41</height>
-      </size>
-     </property>
-     <layout class="QHBoxLayout" name="horizontalLayout">
-      <item>
-       <widget class="QLabel" name="label">
-        <property name="minimumSize">
-         <size>
-          <width>100</width>
-          <height>0</height>
-         </size>
-        </property>
-        <property name="maximumSize">
-         <size>
-          <width>100</width>
-          <height>16777215</height>
-         </size>
-        </property>
-        <property name="text">
-         <string>查找范围:</string>
-        </property>
-        <property name="alignment">
-         <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
-        </property>
-       </widget>
-      </item>
-      <item>
-       <widget class="QLineEdit" name="edtPath"/>
-      </item>
-      <item>
-       <widget class="QToolButton" name="btnOpen">
-        <property name="text">
-         <string>...</string>
-        </property>
-        <property name="icon">
-         <iconset resource="../../ndsclient/app.qrc">
-          <normaloff>:/res/folder.ico</normaloff>:/res/folder.ico</iconset>
-        </property>
-       </widget>
-      </item>
-     </layout>
-    </widget>
-   </item>
-   <item>
-    <widget class="QWidget" name="widget_3" native="true">
-     <layout class="QHBoxLayout" name="horizontalLayout_2">
-      <item>
-       <widget class="QTreeView" name="tvData"/>
-      </item>
-     </layout>
-    </widget>
-   </item>
-   <item>
-    <widget class="QWidget" name="widget" native="true">
-     <property name="minimumSize">
-      <size>
-       <width>0</width>
-       <height>41</height>
-      </size>
-     </property>
-     <property name="maximumSize">
-      <size>
-       <width>16777215</width>
-       <height>41</height>
-      </size>
-     </property>
-     <layout class="QHBoxLayout" name="horizontalLayout_3">
-      <item>
-       <spacer name="horizontalSpacer">
-        <property name="orientation">
-         <enum>Qt::Horizontal</enum>
-        </property>
-        <property name="sizeHint" stdset="0">
-         <size>
-          <width>439</width>
-          <height>20</height>
-         </size>
-        </property>
-       </spacer>
-      </item>
-      <item>
-       <widget class="QPushButton" name="btnOk">
-        <property name="text">
-         <string>确定</string>
-        </property>
-       </widget>
-      </item>
-      <item>
-       <widget class="QPushButton" name="btnCancel">
-        <property name="text">
-         <string>取消</string>
-        </property>
-       </widget>
-      </item>
-     </layout>
-    </widget>
-   </item>
-  </layout>
- </widget>
- <resources>
-  <include location="../../ndsclient/app.qrc"/>
- </resources>
- <connections/>
-</ui>

+ 0 - 14
QFD/mindmap/api/dialogs/selectvaluedialog.cpp

@@ -1,14 +0,0 @@
-#include "selectvaluedialog.h"
-#include "ui_selectvaluedialog.h"
-
-SelectValueDialog::SelectValueDialog(QWidget *parent) :
-    QDialog(parent),
-    ui(new Ui::SelectValueDialog)
-{
-    ui->setupUi(this);
-}
-
-SelectValueDialog::~SelectValueDialog()
-{
-    delete ui;
-}

+ 0 - 22
QFD/mindmap/api/dialogs/selectvaluedialog.h

@@ -1,22 +0,0 @@
-#ifndef SELECTVALUEDIALOG_H
-#define SELECTVALUEDIALOG_H
-
-#include <QDialog>
-
-namespace Ui {
-class SelectValueDialog;
-}
-
-class SelectValueDialog : public QDialog
-{
-    Q_OBJECT
-
-public:
-    explicit SelectValueDialog(QWidget *parent = nullptr);
-    ~SelectValueDialog();
-
-private:
-    Ui::SelectValueDialog *ui;
-};
-
-#endif // SELECTVALUEDIALOG_H

+ 0 - 69
QFD/mindmap/api/dialogs/selectvaluedialog.ui

@@ -1,69 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<ui version="4.0">
- <class>SelectValueDialog</class>
- <widget class="QDialog" name="SelectValueDialog">
-  <property name="geometry">
-   <rect>
-    <x>0</x>
-    <y>0</y>
-    <width>400</width>
-    <height>300</height>
-   </rect>
-  </property>
-  <property name="windowTitle">
-   <string>Dialog</string>
-  </property>
-  <layout class="QVBoxLayout" name="verticalLayout">
-   <item>
-    <widget class="QListView" name="listView"/>
-   </item>
-   <item>
-    <widget class="QWidget" name="widget" native="true">
-     <property name="minimumSize">
-      <size>
-       <width>0</width>
-       <height>41</height>
-      </size>
-     </property>
-     <property name="maximumSize">
-      <size>
-       <width>16777215</width>
-       <height>41</height>
-      </size>
-     </property>
-     <layout class="QHBoxLayout" name="horizontalLayout">
-      <item>
-       <spacer name="horizontalSpacer">
-        <property name="orientation">
-         <enum>Qt::Horizontal</enum>
-        </property>
-        <property name="sizeHint" stdset="0">
-         <size>
-          <width>189</width>
-          <height>20</height>
-         </size>
-        </property>
-       </spacer>
-      </item>
-      <item>
-       <widget class="QPushButton" name="btnOk">
-        <property name="text">
-         <string>确定</string>
-        </property>
-       </widget>
-      </item>
-      <item>
-       <widget class="QPushButton" name="btnCancel">
-        <property name="text">
-         <string>取消</string>
-        </property>
-       </widget>
-      </item>
-     </layout>
-    </widget>
-   </item>
-  </layout>
- </widget>
- <resources/>
- <connections/>
-</ui>

+ 0 - 55
QFD/mindmap/api/dialogs/setvaluedialog.cpp

@@ -1,55 +0,0 @@
-#include "setvaluedialog.h"
-#include "ui_setvaluedialog.h"
-
-SetValueDialog::SetValueDialog(QWidget* parent)
-    : QDialog(parent)
-    , ui(new Ui::SetValueDialog)
-{
-    ui->setupUi(this);
-}
-
-SetValueDialog::~SetValueDialog()
-{
-    delete ui;
-}
-
-void SetValueDialog::setValue(QString& value)
-{
-    ui->edtValue->setText(value);
-}
-
-void SetValueDialog::setCaption(QString caption)
-{
-    ui->lblCaption->setText(caption + ":");
-}
-
-QString SetValueDialog::value()
-{
-    return ui->edtValue->text();
-}
-
-void SetValueDialog::on_btnCancel_clicked()
-{
-    reject();
-}
-
-void SetValueDialog::on_btnOk_clicked()
-{
-    accept();
-}
-
-bool setValue(QString title, QString caption, QString& value)
-{
-    bool f = false;
-    SetValueDialog* dlg = new SetValueDialog(nullptr);
-    dlg->setWindowTitle(title);
-    dlg->setCaption(caption);
-    dlg->setValue(value);
-    int ret = dlg->exec();
-    if (ret == QDialog::Accepted) {
-        value = dlg->value();
-        f = true;
-    }
-    delete dlg;
-    return f;
-}

+ 0 - 29
QFD/mindmap/api/dialogs/setvaluedialog.h

@@ -1,29 +0,0 @@
-#ifndef SETVALUEDIALOG_H
-#define SETVALUEDIALOG_H
-
-#include <QDialog>
-
-namespace Ui {
-class SetValueDialog;
-}
-
-class SetValueDialog : public QDialog {
-    Q_OBJECT
-
-public:
-    explicit SetValueDialog(QWidget* parent = nullptr);
-    ~SetValueDialog();
-    QString value();
-    void setValue(QString& value);
-    void setCaption(QString caption);
-private slots:
-    void on_btnCancel_clicked();
-
-    void on_btnOk_clicked();
-
-private:
-    Ui::SetValueDialog* ui;
-};
-bool setValue(QString title, QString caption, QString& value);
-
-#endif // SETVALUEDIALOG_H

Some files were not shown because too many files changed in this diff