61 lines
1.4 KiB
C++
61 lines
1.4 KiB
C++
/**
|
|
* @file WellLogProjectDialog.h
|
|
* @date Aug 28, 2014
|
|
* @auto zhangjie
|
|
*/
|
|
#ifndef CWELLLOGPROJECTDIALOG_H
|
|
#define CWELLLOGPROJECTDIALOG_H
|
|
|
|
|
|
#pragma warning( push ,0)
|
|
#include "WellLogUI.h"
|
|
#include "WellLogLabel.h"
|
|
#include "WellLogDialog.h"
|
|
#include "qvalidator.h"
|
|
#pragma warning( pop )
|
|
|
|
|
|
namespace Ui
|
|
{
|
|
class WellLogProjectDialog;
|
|
}
|
|
|
|
/**
|
|
* @class CWellLogProjectDialog
|
|
* @brief 测井Project对话框
|
|
*/
|
|
|
|
class OSGWELLLOGUI_EXPORT CWellLogProjectDialog : public WellLogDialog
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
CWellLogProjectDialog(QWidget *parent = 0, Qt::WindowFlags flags=0);
|
|
~CWellLogProjectDialog(void);
|
|
virtual void DataToView();
|
|
virtual void ViewToData();
|
|
virtual void GetOKAndCancel(QPushButton* &okBtn,QPushButton* &cancelBtn);
|
|
virtual int Validate();
|
|
bool ValidateProjectName();
|
|
void isEdit(bool flag);
|
|
void ShowValidatorLabel(CWellLogLabel * pLabel,const QString& strtext);
|
|
//编辑项目文件*.wwl路径
|
|
void SetEditFilePath(QString strOldName, QString strPath);
|
|
|
|
public slots:
|
|
void slotOnEditFinishedProjectName();
|
|
private:
|
|
Ui::WellLogProjectDialog* m_pUI;
|
|
bool m_Edit;
|
|
CWellLogLabel * m_pLabel;
|
|
CWellLogLabel * m_pLabel_basin;
|
|
QRegExpValidator * m_InputValidator;
|
|
bool m_bNameFlag;
|
|
|
|
public:
|
|
QString m_strOldPath;//保存项目文件*.wwl原来的路径
|
|
QString m_strOldName;//保存项目原来的名字
|
|
QString m_strNewName;//项目新的名字
|
|
};
|
|
|
|
#endif /* WELLLOGPROJECTDIALOG_H */
|