1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- #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();
- void setDatacomboBox(int index);
- signals:
- void send_button_Signal();
- void send_ComboBox_singal(int groupId,int index);
- void groupSelected(Group* group, int index);
- public slots:
- void onclickbutton();
- void on_DatacomboBox_currentIndexChanged(int index);
- void onGroupSelected(Group* group, int index);
- 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 currentGroupId;
- Wafer *wafer;
- Waffle *waffle;
- MaterialBox *materialbox;
- static Group* currentlySelectedGroup;
- static Group* previouslySelectedBlueGroup;
- static Group* lastClickedGroup;
- static int lastClickedIndex;
- static int lastSavedIndex;
- int groupId;
- };
- #endif
|