2022-01-04 18:11:48 +08:00
|
|
|
#ifndef TIPDIALOG_H
|
|
|
|
#define TIPDIALOG_H
|
2022-08-25 18:37:24 +08:00
|
|
|
#include <basedlg.h>
|
2022-01-04 18:11:48 +08:00
|
|
|
#include <QLineEdit>
|
|
|
|
#include <QTableWidget>
|
|
|
|
#include <QHBoxLayout>
|
|
|
|
namespace Ui {
|
|
|
|
class TipDialog;
|
|
|
|
}
|
|
|
|
|
2022-08-25 18:37:24 +08:00
|
|
|
class TipDialog : public BaseDlg
|
2022-01-04 18:11:48 +08:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit TipDialog(QWidget *parent = nullptr);
|
|
|
|
TipDialog(QWidget *parent,int iTipDlgType);
|
|
|
|
TipDialog(QWidget *parent,int iTipDlgType,QStringList *list,int iTipType);
|
|
|
|
~TipDialog();
|
|
|
|
|
|
|
|
public:
|
|
|
|
QLineEdit *pTextPath;
|
|
|
|
QString m_strLineEditText;
|
|
|
|
signals:
|
|
|
|
void sigAcceptData(QString string1, QString string2);
|
|
|
|
protected slots:
|
|
|
|
void onAccepted();
|
|
|
|
void OnSelectDir();
|
|
|
|
void OnExportButton();
|
|
|
|
void OnImportPro();
|
|
|
|
void OnNetworkListSelectChanged();
|
|
|
|
private:
|
|
|
|
Ui::TipDialog *ui;
|
|
|
|
int m_iTipDlgType;
|
|
|
|
QTableWidget *ctrlProgramList=nullptr;
|
|
|
|
QHBoxLayout *m_pLayoutSelectDirPath=nullptr;
|
|
|
|
bool iImportAtLeastOneSuccessFlag=false;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // TIPDIALOG_H
|