From ff8442f5ce5fa2c27281a5670bca7231670e527f Mon Sep 17 00:00:00 2001
From: luca
Gestore autorizzazioni: e' il software che permette di gestire una chiave di protezione hardware multiutenza condivisa in rete. "); strBody += wxT("Installando tale software e' necessario specificare il computer su cui e' montata la chiave di protezione multiutenza."); - strBody += wxT("Viene di default proposto il computer su cui si sta eseguendo l'installazione (localhost).
"); + strBody += wxT("Viene di default proposto il computer su cui si sta eseguendo l'installazione di APPNAME (localhost)."); + strBody += wxT("Gestore dizionari: e' il software che permette di utilizzare APPNAME in lingue diverse dall'italiano. "); + strBody += wxT("Per l'installazione di questo software viene di default proposto il computer su cui si sta eseguendo l'installazione di APPNAME (localhost).
"); SetHTMLText(strTitle, strBody); //griglia per sistemare i campi @@ -1436,6 +1443,7 @@ CampoWizardPage8::CampoWizardPage8(wxWizard* parent) : CampoWizardPage(parent) class CampoWizardPage9 : public CampoWizardPage { unsigned int _uInstallType; + wxString _strInstallType; wxString _strPrgLocPath; wxString _strPrgNetPath; wxString _strDataPath; @@ -1458,12 +1466,14 @@ bool CampoWizardPage9::TransferDataToWindow() switch (_uInstallType) { case 1: //server + _strInstallType = "Server"; _strPrgLocPath = cw.GetPrgLocPath(); _strDataPath = cw.GetDataPath(); _strSrvAuth = cw.GetSrvAuth(); _strSrvDict = cw.GetSrvDict(); break; case 2: //client + _strInstallType = "Client"; _strPrgLocPath = cw.GetPrgLocPath(); _strPrgNetPath = cw.GetPrgNetPath(); _strDataPath = cw.GetDataPath(); @@ -1471,12 +1481,14 @@ bool CampoWizardPage9::TransferDataToWindow() _strSrvDict = cw.GetSrvDict(); break; case 3: //aggiornamento + _strInstallType = ""; _strPrgLocPath = cw.GetDestinationPath(); _strDataPath = cw.GetDataPath(); _strSrvAuth = cw.GetSrvAuth(); _strSrvDict = cw.GetSrvDict(); break; default: //standard + _strInstallType = "Standard"; _strPrgLocPath = cw.GetPrgLocPath(); _strDataPath = cw.GetDataPath(); _bInstDemoData = cw.GetInstDemoData(); @@ -1490,8 +1502,8 @@ bool CampoWizardPage9::TransferDataToWindow() //Aggiornamento if (_uInstallType == 3) { - strTitle += wxT("Riepilogo configurazione aggiornamento"); - + strTitle += wxT("AGGIORNAMENTO: riepilogo configurazione"); + strBody = wxT("Cartella programma da aggiornare: "); strBody += wxT(Bold(_strPrgLocPath) + "
"); strBody += wxT("Cartella dati in uso: "); @@ -1499,13 +1511,15 @@ bool CampoWizardPage9::TransferDataToWindow() } else //Installazione { - strTitle += wxT("Riepilogo configurazione installazione"); + strTitle += wxT("INSTALLAZIONE: riepilogo configurazione"); - strBody = wxT("
Cartella programma da installare: "); + strBody = wxT("
Tipo installazione selezionata: "); + strBody += wxT(Bold(_strInstallType) + "
"); + strBody += wxT("Cartella dove installare il programma: "); strBody += wxT(Bold(_strPrgLocPath) + "
"); if (_uInstallType == 2) { - strBody += wxT("Cartella di origine del programma: "); + strBody += wxT("
Cartella di origine dei files del programma: "); strBody += wxT(Bold(_strPrgNetPath) + "
"); } strBody += wxT("Cartella dati da creare: "); @@ -1537,6 +1551,10 @@ CampoWizardPage9::CampoWizardPage9(wxWizard* parent) : CampoWizardPage(parent) } + +/**********************************************************************************************************/ +// 10 pagina con la creazione icona sul desktop +/**********************************************************************************************************/ class CampoWizardPage10 : public CampoWizardPage { public: @@ -1613,11 +1631,11 @@ void CampoWizard::SetDestinationPath(const wxString& path) //..che sta in _strDestinationPath if (_strDestinationPath.IsEmpty()) { - wxWizardPageSimple::Chain(m_pPage[1], m_pPage[2]); + wxWizardPageSimple::Chain(m_pPage[3], m_pPage[4]); //installazione nuova } else { - wxWizardPageSimple::Chain(m_pPage[3], m_pPage[8]); + wxWizardPageSimple::Chain(m_pPage[3], m_pPage[8]); //aggiornamento } } @@ -1628,30 +1646,31 @@ const wxString& CampoWizard::GetDestinationPath() const void CampoWizard::SetInstallationType(const unsigned int type) { - _strInstallationType = type; + _uInstallationType = type; //in base al tipo di installazione spara l'utente alla pagina corretta - switch (_strInstallationType) + switch (_uInstallationType) { case 1: //server wxWizardPageSimple::Chain(m_pPage[4], m_pPage[6]); //manda l'utente alla pagina server - wxWizardPageSimple::Chain(m_pPage[6], m_pPage[8]); //manda l'utente alla pagina riassuntiva + wxWizardPageSimple::Chain(m_pPage[6], m_pPage[8]); //dal server alla pagina riassuntiva break; case 2: //client - wxWizardPageSimple::Chain(m_pPage[4], m_pPage[7]); - wxWizardPageSimple::Chain(m_pPage[7], m_pPage[8]); + wxWizardPageSimple::Chain(m_pPage[4], m_pPage[7]); //manda l'utente alla pagina client + wxWizardPageSimple::Chain(m_pPage[7], m_pPage[8]); //dal client alla pagina riassuntiva + break; + case 3: //aggiornamento installazione precedente + wxWizardPageSimple::Chain(m_pPage[3], m_pPage[8]); //manda l'utente alla pagina riassuntiva break; -/* case 3: //aggiornamento installazione precedente - break;*/ default: //standard - wxWizardPageSimple::Chain(m_pPage[4], m_pPage[5]); - wxWizardPageSimple::Chain(m_pPage[5], m_pPage[8]); + wxWizardPageSimple::Chain(m_pPage[4], m_pPage[5]); //manda l'utente alla pagina standard + wxWizardPageSimple::Chain(m_pPage[5], m_pPage[8]); //dalla standard alla pagina riassuntiva break; } } const unsigned int CampoWizard::GetInstallationType() const { - return _strInstallationType; + return _uInstallationType; } void CampoWizard::SetPrgLocPath(const wxString& strPrgLocPath) @@ -1861,7 +1880,7 @@ void RSSetup::OnTimer(wxTimerEvent& WXUNUSED(e)) strPath.SetCwd(); const wxString strSrc = strPath.GetPath(); - const wxString strDest = pWizard->Get(201); + const wxString strDest = pWizard->Get(201); //*****SONO QUA!***// dare il percorso valido di installazione const bool bOpenGL = pWizard->GetSelection(301)==0; RSDirCopier dc; dc.Copy(strSrc, strDest, bOpenGL);