2025-04-11 17:14:17 +08:00
|
|
|
#ifndef ATTRIBUTESELECTOR_H
|
|
|
|
|
#define ATTRIBUTESELECTOR_H
|
|
|
|
|
|
|
|
|
|
#include "global.h"
|
2025-04-28 14:25:45 +08:00
|
|
|
#include "messageDialog.h"
|
2025-04-29 17:54:44 +08:00
|
|
|
#include <QDialog>
|
2025-04-11 17:14:17 +08:00
|
|
|
|
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
|
namespace Ui {
|
|
|
|
|
class AttributeSelector;
|
|
|
|
|
}
|
|
|
|
|
QT_END_NAMESPACE
|
|
|
|
|
|
|
|
|
|
class MainWindow;
|
|
|
|
|
class AttributeView;
|
2025-04-29 17:54:44 +08:00
|
|
|
class CustomBorderContainer;
|
2025-04-27 10:28:47 +08:00
|
|
|
|
2025-04-29 17:54:44 +08:00
|
|
|
class AttributeSelector : public QDialog
|
2025-04-11 17:14:17 +08:00
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
AttributeSelector(const QString& connection = "", QWidget *parent = nullptr);
|
|
|
|
|
~AttributeSelector();
|
|
|
|
|
|
|
|
|
|
void setMainWindow(MainWindow*);
|
|
|
|
|
|
2025-04-28 14:25:45 +08:00
|
|
|
protected:
|
2025-04-29 17:54:44 +08:00
|
|
|
void showEvent(QShowEvent*) override;
|
|
|
|
|
bool eventFilter(QObject*, QEvent*) override;
|
2025-04-28 14:25:45 +08:00
|
|
|
|
2025-04-11 17:14:17 +08:00
|
|
|
private slots:
|
2025-04-29 17:54:44 +08:00
|
|
|
void onBtnClicked_search();
|
2025-04-11 17:14:17 +08:00
|
|
|
void onBtnClicked_refreshData();
|
2025-04-29 17:54:44 +08:00
|
|
|
void onBtnClicked_submitSelect();
|
|
|
|
|
void onBtnClicked_cancleSelect();
|
2025-05-19 11:04:46 +08:00
|
|
|
void onBtnClicked_firstPage();
|
|
|
|
|
void onBtnClicked_previousPage();
|
|
|
|
|
void onBtnClicked_nextPage();
|
|
|
|
|
void onBtnClicked_lastPage();
|
|
|
|
|
void onEditingFinished_page();
|
2025-04-29 17:54:44 +08:00
|
|
|
void onEditingFinished_attributeType();
|
|
|
|
|
void onComboBoxTextChanged_model(const QString&);
|
|
|
|
|
void onComboBoxTextChanged_group(const QString&);
|
2025-04-11 17:14:17 +08:00
|
|
|
void onSyncDataStatus(bool, const PaginationInfo&);
|
2025-04-28 14:25:45 +08:00
|
|
|
void onShowMessage(MessageDialogType,const QString&,const QString&);
|
2025-04-11 17:14:17 +08:00
|
|
|
|
|
|
|
|
private:
|
2025-04-28 14:25:45 +08:00
|
|
|
void iniData();
|
2025-04-29 17:54:44 +08:00
|
|
|
void refresh();
|
2025-04-28 14:25:45 +08:00
|
|
|
|
2025-04-11 17:14:17 +08:00
|
|
|
Ui::AttributeSelector *ui;
|
|
|
|
|
MainWindow* m_pMainWindow;
|
|
|
|
|
AttributeView* m_attributeView;
|
2025-04-29 17:54:44 +08:00
|
|
|
CustomBorderContainer* m_customBorderContainer;
|
|
|
|
|
|
|
|
|
|
bool m_isFirstShow;
|
2025-04-11 17:14:17 +08:00
|
|
|
QString m_connection;
|
2025-04-29 17:54:44 +08:00
|
|
|
QString m_fliterChars_type;
|
|
|
|
|
QString m_curModelName;
|
|
|
|
|
QString m_curGroupName;
|
2025-05-08 09:30:47 +08:00
|
|
|
|
|
|
|
|
signals:
|
|
|
|
|
void completeSelection(QVector<QVector<QVariant>>);
|
2025-04-11 17:14:17 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif //ATTRIBUTESELECTOR_H
|