49 lines
976 B
C++
49 lines
976 B
C++
#ifndef CONNINFOEDITIALOG_H
|
|
#define CONNINFOEDITIALOG_H
|
|
|
|
#include "global.h"
|
|
#include <QDialog>
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
namespace Ui {
|
|
class ConnInfoEditDialog;
|
|
}
|
|
QT_END_NAMESPACE
|
|
|
|
class MainWindow;
|
|
class MaskLayer;
|
|
class CustomBorderContainer;
|
|
|
|
class ConnInfoEditDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
ConnInfoEditDialog(QWidget *parent = nullptr);
|
|
~ConnInfoEditDialog();
|
|
|
|
void setMainWindow(MainWindow* w){m_pMainWindow = w;}
|
|
void setErrorInfo(const QString&);
|
|
void clearErrorInfo();
|
|
void loadConnInfo(const QString&);
|
|
|
|
Q_INVOKABLE void showMask();
|
|
Q_INVOKABLE void hideMask();
|
|
|
|
private:
|
|
void initialize();
|
|
|
|
Ui::ConnInfoEditDialog *ui;
|
|
MaskLayer* m_pMaskLayer;
|
|
MainWindow* m_pMainWindow;
|
|
CustomBorderContainer* m_customBorderContainer;
|
|
QString m_connID;
|
|
|
|
public slots:
|
|
void onBtnClicked_save();
|
|
void onBtnClicked_cancle();
|
|
void onComboxChanged_dbType(const QString&);
|
|
};
|
|
|
|
#endif //CONNINFOEDITIALOG_H
|