123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- #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 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 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;
- int groupId;
- };
- #endif
|