12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- #ifndef SETTINGNUM_H
- #define SETTINGNUM_H
- #include <QDialog>
- #include "spdlog/spdlog.h"
- #include "EyeMapInfo.h"
- class OneShadow;
- class OneSettingItem;
- namespace Ui {
- class SettingNum;
- }
- class SettingNum : public QDialog
- {
- Q_OBJECT
- public:
- explicit SettingNum(QDialog *parent = nullptr);
- ~SettingNum();
-
- void setRowAndColumn(int row, int column);
-
- void setEveryEyeMapInfo(const QList<OneEyeMapInfo> &listInfo);
-
- void setChannelList(const QList<OneChannelInfo> &listChannelInfo);
- protected:
- void paintEvent(QPaintEvent *event) override;
-
- bool eventFilter(QObject *watched, QEvent *event) override;
- private slots:
-
- void do_pBtn_close();
-
- void do_pBtn_ok();
-
- void do_pBtn_cancel();
-
- void do_selectRowAndColumn(int index);
-
- void do_selectChannel(const OscChnNum channel, const QString &channelName);
- private:
-
- void layoutItem(int num);
- public:
- int row = 0;
- int column = 0;
- bool isOk = false;
- private:
- Ui::SettingNum *ui;
- std::shared_ptr<spdlog::logger> m_logger = nullptr;
- OneShadow *m_shadow = nullptr;
- QList<OneSettingItem*> m_listItem;
- };
- #endif
|