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.
nmWATI/Include/mGui/mGuiSysManager/iWxWellNew.h

69 lines
1.1 KiB
C++

#pragma once
#include "mModuleDefines.h"
#include "iDlgBase.h"
#include "mGuiSysManager_global.h"
class QFile;
class ZxDataWell;
namespace Ui {
class iWxWellNew;
}
// 新建或编辑项目对话框
class M_GUI_SYSMANAGER_EXPORT iWxWellNew : public iDlgBase
{
Q_OBJECT
public:
enum ActionMode
{
AM_New = 0, //新建项目
AM_Edit, //编辑、查看
AM_SaveAs, //另存为
AM_Unknown
};
explicit iWxWellNew(QWidget *parent = 0);
~iWxWellNew();
// 初始化
virtual void initUI();
void initCbxs();
void setDataWell(ZxDataWell* p);
void setActionMode(ActionMode o);
// 返回
QString getUiWellName();
QString getUiCreator();
QString getUiCreatedTime();
QString getUiModifier();
QString getUiModifiedTime();
QString getUiDesc();
QString getNodeName();
private:
QStringList getFieldBlockNames(bool bBlock);
bool checkInputs();
signals:
private slots:
void on_tbxWellName_editingFinished();
void on_btnOK_clicked();
void on_btnCancel_clicked();
private:
Ui::iWxWellNew *ui;
ZxDataWell* m_pObj;
ActionMode m_oAM;
};