Files
GUI/src/forms/recon/ReconFormWidget.h

45 lines
905 B
C
Raw Normal View History

2023-08-21 11:21:35 +08:00
#ifndef IMG1_V2_BIN_RECONFORMWIDGET_H
#define IMG1_V2_BIN_RECONFORMWIDGET_H
#include "forms/TabFormWidget.h"
2023-08-22 17:51:08 +08:00
2023-08-21 11:21:35 +08:00
class QToolButton;
class SlideTableView;
class QSqlTableModel;
2023-08-22 17:51:08 +08:00
class ScanSearchCriteriaForm;
class ReconFormWidget: public TabFormWidget
{
2023-08-21 11:21:35 +08:00
Q_OBJECT
public:
explicit ReconFormWidget(QWidget *parent = nullptr);
~ReconFormWidget() override = default;
protected:
void showEvent(QShowEvent *aEvent) override;
2023-08-22 17:51:08 +08:00
private slots:
void updateSearchFilter();
void deleteReconRecord();
private:
int getTableColumnIndex(const QString& aColumnName);
2023-08-22 17:51:08 +08:00
2023-08-21 11:21:35 +08:00
private:
QToolButton* mBtnDiscard;
QToolButton* mBtnDelete;
QToolButton* mBtnRefresh;
SlideTableView* mScanTable;
2023-08-22 17:51:08 +08:00
ScanSearchCriteriaForm* mSearchWidget;
2023-08-21 11:21:35 +08:00
QSqlTableModel *mModel;
void initTableView(QHBoxLayout *contentLayout);
void initDataModel();
};
#endif //IMG1_V2_BIN_RECONFORMWIDGET_H