2025-04-11 17:14:17 +08:00
|
|
|
#ifndef ATTRIBUTESELECTOR_H
|
|
|
|
|
#define ATTRIBUTESELECTOR_H
|
|
|
|
|
|
|
|
|
|
#include "global.h"
|
|
|
|
|
#include <QWidget>
|
|
|
|
|
|
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
|
namespace Ui {
|
|
|
|
|
class AttributeSelector;
|
|
|
|
|
}
|
|
|
|
|
QT_END_NAMESPACE
|
|
|
|
|
|
|
|
|
|
class MainWindow;
|
|
|
|
|
class AttributeView;
|
2025-04-27 10:28:47 +08:00
|
|
|
class AttributeTableModel;
|
|
|
|
|
class AttributeTableDelegate;
|
|
|
|
|
|
2025-04-11 17:14:17 +08:00
|
|
|
class AttributeSelector : public QWidget
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
AttributeSelector(const QString& connection = "", QWidget *parent = nullptr);
|
|
|
|
|
~AttributeSelector();
|
|
|
|
|
|
|
|
|
|
void setMainWindow(MainWindow*);
|
|
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
|
void onBtnClicked_refreshData();
|
|
|
|
|
void onSyncDataStatus(bool, const PaginationInfo&);
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
Ui::AttributeSelector *ui;
|
|
|
|
|
MainWindow* m_pMainWindow;
|
|
|
|
|
AttributeView* m_attributeView;
|
2025-04-27 10:28:47 +08:00
|
|
|
AttributeTableModel* m_attributeTableModel;
|
|
|
|
|
AttributeTableDelegate* m_attributeTableDelegate;
|
2025-04-11 17:14:17 +08:00
|
|
|
QString m_connection;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif //ATTRIBUTESELECTOR_H
|