123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- #ifndef WAFER_PROGRAM_PAGE_H
- #define WAFER_PROGRAM_PAGE_H
- #include "Src/Sql/SqlOperation.h"
- #include "CViewInterface.h"
- #include <QWidget>
- #include <QGroupBox>
- #include <QLineEdit>
- #include "Src/RewriteControl/Controls/SpinBox.h"
- #include "Src/RewriteControl/Controls/DoubleSpinBox.h"
- #include "ui_WaferProgramPage.h"
- #include <QLabel>
- #include <QFileDialog>
- #include <QTextStream>
- #include <QHeaderView>
- #include <QTableWidget>
- #include <QPushButton>
- #include <QVBoxLayout>
- #include <QHBoxLayout>
- #include <QSqlQuery>
- #include <QJsonDocument>
- #include <QJsonObject>
- #include <QMessageBox>
- #include <unordered_map>
- #include <QtWidgets/qcombobox.h>
- #include <View/die-bonder-ui/Src/MatrixDialogs/NoBondPtEditDialog.h>
- #include "CModule.h"
- class WaferProgramPage : public QWidget {
- Q_OBJECT
- public:
- explicit WaferProgramPage(QWidget* parent = nullptr);
- void AddMatrixPage(int vectorIndex, _PROGRAM_WAFER_MATRIX_STRUCT matrixData);
- //QComboBox* createDieMatrixIdComboBox(int defaultId, int row);
- private slots:
- /*void addRow();
- void deleteRow();
- void updateData();*/
- //void onCellChanged(int row, int column);
- private:
- // 初始化合并后的数据(多表)
- //void initMergedData();
- void initPage();
- bool eventFilter(QObject* obj, QEvent* event);
- XY_DOUBLE_STRUCT WaferGetAxisPosition(std::string ModuleType, XY_DOUBLE_STRUCT& pos);
- private slots:
- void onNoBondPtsClickedWafer(QLineEdit* lineEdit, int index);
- private:
- Ui::WaferProgramPageClass ui;
- CManageDB* m_manageDB = nullptr;
- CProduct* m_pProduct = nullptr;
- std::vector<PROGRAM_WAFER_MATRIX_STRUCT> m_vecWaferMatrix;
- //std::vector<PROGRAM_DIE_MATRIX_STRUCT> m_vecDieMatrixt;
- static std::unordered_map<int, bool> m_IdIsUsedMap;
- bool m_isInitializing = false;
- QMap<QGroupBox*, int> m_mapWaferGroupBoxIndex;
- ns_module::CViewInterface* m_pProgramCViewInterface = nullptr;
- };
- #endif // WAFER_PROGRAM_PAGE_H
|