// COPYRIGHT Dassault Systemes 2010
//===================================================================
//
// MBDNoteModifyDlg.cpp
// The dialog : MBDNoteModifyDlg
//
//===================================================================
//
// Usage notes:
//
//===================================================================
//
//  Mar 2010  Creation: Code generated by the CAA wizard  ev5adm
//===================================================================
#include "MBDNoteModifyDlg.h"
#include "CATApplicationFrame.h"
#include "CATDlgGridConstraints.h"
#include "CATMsgCatalog.h"
#ifdef MBDNoteModifyDlg_ParameterEditorInclude
#include "CATIParameterEditorFactory.h"
#include "CATIParameterEditor.h"
#include "CATICkeParm.h"
#endif



//-------------------------------------------------------------------------
// Constructor
//-------------------------------------------------------------------------
MBDNoteModifyDlg::MBDNoteModifyDlg() :
  CATDlgDialog ((CATApplicationFrame::GetApplicationFrame())->GetMainWindow(),
//CAA2 WIZARD CONSTRUCTOR DECLARATION SECTION
"MBDNoteModifyDlg",CATDlgWndModal|CATDlgWndPointerLocation|CATDlgWndBtnOKCancel|CATDlgGridLayout
//END CAA2 WIZARD CONSTRUCTOR DECLARATION SECTION
                               )
{
//CAA2 WIZARD CONSTRUCTOR INITIALIZATION SECTION
 _MBDModifyNameEditor = NULL;
 _MBDModifyValueEditor = NULL;
//END CAA2 WIZARD CONSTRUCTOR INITIALIZATION SECTION
}

//-------------------------------------------------------------------------
// Destructor
//-------------------------------------------------------------------------
MBDNoteModifyDlg::~MBDNoteModifyDlg()
{
//  Do not delete the control elements of your dialog: 
//     this is done automatically
//  --------------------------------------------------
//CAA2 WIZARD DESTRUCTOR DECLARATION SECTION
 _MBDModifyNameEditor = NULL;
 _MBDModifyValueEditor = NULL;
//END CAA2 WIZARD DESTRUCTOR DECLARATION SECTION
}

void MBDNoteModifyDlg::Build()
{
//  TODO: This call builds your dialog from the layout declaration file
//  -------------------------------------------------------------------

//CAA2 WIZARD WIDGET CONSTRUCTION SECTION
 _MBDModifyNameEditor = new CATDlgEditor(this, "MBDModifyNameEditor", CATDlgEdtReadOnly);
 _MBDModifyNameEditor -> SetVisibleTextWidth(5);
_MBDModifyNameEditor -> SetGridConstraints(0, 0, 1, 1, CATGRID_4SIDES);
 _MBDModifyValueEditor = new CATDlgEditor(this, "MBDModifyValueEditor");
_MBDModifyValueEditor -> SetGridConstraints(0, 1, 1, 1, CATGRID_4SIDES);
//END CAA2 WIZARD WIDGET CONSTRUCTION SECTION


int  oHeight = 0,oWidth = 0; 
PrtService::GetWindowMaxSize(&oHeight,&oWidth );
_MBDModifyValueEditor -> SetVisibleTextWidth(int (0.065*oWidth));

//CAA2 WIZARD CALLBACK DECLARATION SECTION
//END CAA2 WIZARD CALLBACK DECLARATION SECTION

}

CATDlgEditor* MBDNoteModifyDlg::GetMBDNoteModifyNameEditor()
{
	return _MBDModifyNameEditor;
}

CATDlgEditor* MBDNoteModifyDlg::GetMBDNoteModifyValueEditor()
{
	return _MBDModifyValueEditor;
}

