123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- #ifndef GROUP_H
- #define GROUP_H
- #include <QWidget>
- #include <QtWidgets/QComboBox>
- #include "CameraMaterialGroupWnd/MaterialWindow/Wafer.h"
- #include "CameraMaterialGroupWnd/MaterialWindow/Waffle.h"
- #include "CameraMaterialGroupWnd/MaterialWindow/MaterialBox.h"
- namespace Ui {
- class Group;
- }
- class Group : public QWidget
- {
- Q_OBJECT
- public:
-
- explicit Group(int Id, const QString& imagePath1, int MaterialWindowType, const QStringList& textList, QWidget* parent);
- ~Group();
- void initForm();
- bool eventFilter(QObject *obj, QEvent *event);
- void saveGroupSettings(int Id, const QString& imagePath1, int materialWndType, const QStringList& textList);
- void saveBorderSettings();
- void loadBorderSettings();
- void recordBorderInfo(int groupId, const QString& side);
- QString getBlueBorderStyle();
- QString getRedBorderStyle();
- void setDatacomboBox(int index);
- void setEnableControls(bool enable);
- signals:
- void send_button_Signal();
- void send_ComboBox_singal(int groupId,int index);
- void SendGroupSelectedSignals(Group* group, int index);
- void sendUpdateGroupState();
-
- void SetCurrentSelectSig(int groupId,int nIndex);
-
- void SetUpDataImageShowSig(const QPixmap& imageData);
- public slots:
- void Changedstyle();
- void onclickbutton();
- void on_DatacomboBox_currentIndexChanged(int index);
- void GetGroupSelectedSlots(Group* group, int index);
- void UpDataImageShowSlots(const QPixmap& imageData);
- protected:
- void showEvent(QShowEvent *event) override;
- void hideEvent(QHideEvent *event) override;
- void check_selected(int index);
- void WaferWidget();
- void WaffleWidget();
- void MaterialBoxWidget();
- private:
- Ui::Group *ui;
- int m_nCurrentGroupId;
- Wafer * m_pWafer =nullptr;
- Waffle * m_pWaffle = nullptr;
- MaterialBox * m_pMaterialbox = nullptr;
- static Group* m_pCurrentlySelectedGroup;
- static Group* m_pPreviouslySelectedBlueGroup;
- static Group* m_pLastClickedGroup;
- static int m_stnLastClickedIndex;
- static int m_stnLastSavedIndex;
- public:
- int m_nGroupId;
- };
- #endif
|