You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nmWTAI-Platform/Include/mGui/mGuiSysManager/iWxProjectNew.h

74 lines
1.5 KiB
C++

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#pragma once
#include "mModuleDefines.h"
#include "iDlgBase.h"
#include "mGuiSysManager_global.h"
class QFile;
class ZxDataProject;
namespace Ui {
class iWxProjectNew;
}
// 新建或编辑项目对话框
class M_GUI_SYSMANAGER_EXPORT iWxProjectNew : public iDlgBase
{
Q_OBJECT
public:
explicit iWxProjectNew(MainWindowOption o, QString &sWorkDir, QWidget *parent = 0);
~iWxProjectNew();
// 初始化
virtual void initUI();
void setDataProject(ZxDataProject* p);
void setActionMode(DataActionMode o);
void setDataUrl(QString sTempDir, QString sTempProj);
// 返回
QString getProjName();
QString getProjDir();
QString getProjDesc();
QString getUiCreator();
QString getUiCreatedTime();
QString getUiModifier();
QString getUiModifiedTime();
// 获取sPath项目下的db文件全路径
static QString getDbFileOfProj(QString sPath,
QString &sProjName);
private:
bool dealwithNew();
bool dealwithEdit();
bool dealwithCopyAs();
bool dealwithSaveAs();
bool checkInputs();
void copySysConfigs(QString& sUrl);
bool saveNewProjInfo(QString& sUrl);
signals:
private slots:
void on_btnDir_clicked();
void on_btnDirEx_clicked();
void on_btnOK_clicked();
void on_btnCancel_clicked();
private:
Ui::iWxProjectNew *ui;
ZxDataProject* m_pDataProject;
MainWindowOption m_oMwo;
DataActionMode m_oDAM;
// 不打开工区情况下的CopyAs不涉及序列化
QString m_sTempDir;
QString m_sTempProj;
};