Patch level :10.0 setup
Files correlati : Ricompilazione Demo : [ ] Commento :aggiunte CampoProgind ed eliminato errore dovuto alla mancanza di una directory git-svn-id: svn://10.65.10.50/trunk@15842 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
		
							parent
							
								
									e0307f3437
								
							
						
					
					
						commit
						0c9102a75f
					
				@ -489,7 +489,7 @@ int CampoSetup::ClientUpdateModule(const wxString& strLocalPath, const wxString&
 | 
			
		||||
  {
 | 
			
		||||
    bool bOk = true;
 | 
			
		||||
 | 
			
		||||
    wxProgressDialog pi("Aggiornamento elenco files dal server...", "", 100, NULL, wxPD_AUTO_HIDE | wxPD_APP_MODAL | wxPD_CAN_ABORT); 
 | 
			
		||||
    CampoProgressDialog pi("Aggiornamento elenco files dal server...", 100, m_pWizard); 
 | 
			
		||||
    
 | 
			
		||||
    wxArrayString asGroups;
 | 
			
		||||
    {
 | 
			
		||||
@ -643,9 +643,7 @@ bool CampoSetup::InternetUpdateModule(const wxString& strLocalPath, const wxStri
 | 
			
		||||
    wxTextFile tfFilesList;
 | 
			
		||||
    if (tfFilesList.Open((strTempFile)))
 | 
			
		||||
    {
 | 
			
		||||
      wxProgressDialog pi("Aggiornamento elenco files dal server...", "", (int)tfFilesList.GetLineCount(), 
 | 
			
		||||
                          NULL, wxPD_AUTO_HIDE | wxPD_APP_MODAL | wxPD_CAN_ABORT); 
 | 
			
		||||
 | 
			
		||||
      CampoProgressDialog pi("Aggiornamento elenco files dal server...", (int)tfFilesList.GetLineCount(), m_pWizard); 
 | 
			
		||||
      for (wxString strWrk = tfFilesList.GetFirstLine(); !tfFilesList.Eof(); strWrk = tfFilesList.GetNextLine())
 | 
			
		||||
      {
 | 
			
		||||
        int nPos = strWrk.Find("href");
 | 
			
		||||
@ -774,7 +772,7 @@ void CampoSetup::NormalSetup()
 | 
			
		||||
      const size_t uFilesToCopy = wxDir::GetAllFiles(strSrc, &asDemoList);
 | 
			
		||||
      wxString strFileCurr;
 | 
			
		||||
      const size_t nPathLenght = strSrc.Len();
 | 
			
		||||
      wxProgressDialog pi("Installazione Versione Demo...", "", (int)uFilesToCopy, NULL, wxPD_AUTO_HIDE | wxPD_APP_MODAL | wxPD_CAN_ABORT);      
 | 
			
		||||
      CampoProgressDialog pi("Installazione Versione Demo...", (int)uFilesToCopy, m_pWizard);      
 | 
			
		||||
      for (size_t i = 0; i < uFilesToCopy; i++)
 | 
			
		||||
      {
 | 
			
		||||
        if (!pi.Update((int)i, asDemoList[i]))
 | 
			
		||||
@ -846,7 +844,7 @@ void CampoSetup::NormalSetup()
 | 
			
		||||
 | 
			
		||||
      const size_t nPathLenght = strSrc.Len();
 | 
			
		||||
      //progress bar
 | 
			
		||||
      wxProgressDialog pi("Installazione Dati e Programmi di base...", "", (int)uFilesToCopy, NULL, wxPD_AUTO_HIDE | wxPD_APP_MODAL | wxPD_CAN_ABORT);
 | 
			
		||||
      CampoProgressDialog pi("Installazione Dati e Programmi di base...", (int)uFilesToCopy, m_pWizard);
 | 
			
		||||
      
 | 
			
		||||
      for (size_t i = 0; i < uFilesToCopy; i++)
 | 
			
		||||
      { 
 | 
			
		||||
@ -927,7 +925,7 @@ void CampoSetup::NormalSetup()
 | 
			
		||||
        const size_t uFilesToCopy = wxDir::GetAllFiles(strSrc, &asDataList);
 | 
			
		||||
        wxString strFileCurr;
 | 
			
		||||
        const size_t nPathLenght = strSrc.Len();
 | 
			
		||||
        wxProgressDialog pi("Installazione Dati Demo...", "", (int)uFilesToCopy, NULL, wxPD_AUTO_HIDE | wxPD_APP_MODAL | wxPD_CAN_ABORT);      
 | 
			
		||||
        CampoProgressDialog pi("Installazione Dati Demo...", (int)uFilesToCopy, m_pWizard);      
 | 
			
		||||
        for (size_t i = 0; i < uFilesToCopy; i++)
 | 
			
		||||
        {
 | 
			
		||||
          if (!pi.Update((int)i, asDataList[i]))
 | 
			
		||||
@ -1013,6 +1011,7 @@ void CampoSetup::NormalSetup()
 | 
			
		||||
      //procede poi al caricamento delle patch eventuali di sistema all'interno della dir 'program' e al..
 | 
			
		||||
      //..conseguente riaggiornamento del livello versione/patch del SY in install.ini
 | 
			
		||||
      const wxString strPrgCDPath = GetSourceDir("program");
 | 
			
		||||
      if (wxFileName::DirExists(strPrgCDPath))
 | 
			
		||||
        UnzipModule(strPrgLocPath, strPrgCDPath, "sy");
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -240,6 +240,18 @@ InstallationType CampoIniFile::GetInstallationType() const
 | 
			
		||||
  return nType;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
//classe per le progind con dimensioni
 | 
			
		||||
//--------------------------------------------------------------------------------------
 | 
			
		||||
#define CPD_FLAGS wxPD_AUTO_HIDE | wxPD_APP_MODAL | wxPD_CAN_ABORT | wxPD_ELAPSED_TIME | wxPD_ESTIMATED_TIME | wxPD_REMAINING_TIME
 | 
			
		||||
 | 
			
		||||
CampoProgressDialog::CampoProgressDialog(const wxString& strTitle, int nMaximum, wxWindow* pParent)
 | 
			
		||||
                   : wxProgressDialog(strTitle, wxEmptyString, nMaximum, pParent, CPD_FLAGS)
 | 
			
		||||
{
 | 
			
		||||
  SetSize(wxSize(600, -1));
 | 
			
		||||
  Center();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
//gestione filesystem
 | 
			
		||||
//--------------------------------------------------------------------------------------
 | 
			
		||||
void CheckAndMakeDir(const wxString& strDir, const wxString& strMsg)
 | 
			
		||||
 | 
			
		||||
@ -44,6 +44,12 @@ public:
 | 
			
		||||
};
 | 
			
		||||
*/
 | 
			
		||||
 | 
			
		||||
class CampoProgressDialog : public wxProgressDialog
 | 
			
		||||
{
 | 
			
		||||
public:
 | 
			
		||||
  CampoProgressDialog(const wxString& strTitle, int nMaximum = 100, wxWindow* pParent = NULL);
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
bool ErrorBox(const wxString str);
 | 
			
		||||
bool WarningBox(const wxString str);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user