TestEgr :
- aggiunta gestione cursore di attesa su operazioni lunghe.
This commit is contained in:
+23
-2
@@ -685,6 +685,9 @@ CTestEGrDlg::OnFileOpen( void)
|
||||
if ( sFilePath.empty())
|
||||
return ;
|
||||
|
||||
// imposto cursore attesa
|
||||
CWaitCursor wait ;
|
||||
|
||||
// divido in nome e direttorio e salvo quest'ultimo
|
||||
string sFileDir ;
|
||||
string sFileName ;
|
||||
@@ -729,6 +732,9 @@ CTestEGrDlg::OnFileSave( void)
|
||||
if ( sFilePath.empty())
|
||||
return ;
|
||||
|
||||
// imposto cursore attesa
|
||||
CWaitCursor wait ;
|
||||
|
||||
// divido in nome e direttorio e salvo quest'ultimo
|
||||
string sFileDir ;
|
||||
string sFileName ;
|
||||
@@ -771,6 +777,9 @@ CTestEGrDlg::OnFileImport( void)
|
||||
if ( sFilePath.empty())
|
||||
return ;
|
||||
|
||||
// imposto cursore attesa
|
||||
CWaitCursor wait ;
|
||||
|
||||
// divido in nome e direttorio e salvo quest'ultimo
|
||||
string sFileDir ;
|
||||
string sFileName ;
|
||||
@@ -801,10 +810,15 @@ CTestEGrDlg::OnFileExec( void)
|
||||
if ( dlg.DoModal() != IDOK)
|
||||
return ;
|
||||
|
||||
// recupero la path del file e ne salvo il direttorio
|
||||
// recupero la path del file
|
||||
string sFilePath = WtoA( dlg.GetPathName()) ;
|
||||
if ( sFilePath.empty())
|
||||
return ;
|
||||
|
||||
// imposto cursore attesa
|
||||
CWaitCursor wait ;
|
||||
|
||||
// divido in nome e direttorio e salvo quest'ultimo
|
||||
string sFileDir ;
|
||||
string sFileName ;
|
||||
SplitLast( sFilePath, "\\", sFileDir, sFileName) ;
|
||||
@@ -1083,7 +1097,14 @@ CTestEGrDlg::FileSave( const string& sFilePath)
|
||||
if ( ! m_pGeomDB->Save( sFilePath, nSaveType))
|
||||
return false ;
|
||||
// log dei comandi
|
||||
LOG_INFO( m_pLogCmd, ( "SAVE( " + sFilePath + ")").c_str())
|
||||
string sSaveType ;
|
||||
switch ( nSaveType) {
|
||||
case 0 : sSaveType = "T" ; break ;
|
||||
case 1 : sSaveType = "B" ; break ;
|
||||
case 2 : default : sSaveType = "CT" ; break ;
|
||||
}
|
||||
string sSave = "SAVE( " + sFilePath + ", " + sSaveType + ")" ;
|
||||
LOG_INFO( m_pLogCmd, sSave.c_str())
|
||||
|
||||
return true ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user