diff --git a/setup/Setup.cpp b/setup/Setup.cpp index e1c065069..3c27f2f6a 100755 --- a/setup/Setup.cpp +++ b/setup/Setup.cpp @@ -223,7 +223,7 @@ class CampoWizard : public wxWizard CampoWizardPage* m_pPage[m_nPages]; wxString _strDestinationPath; //path di aggiornamento/installazione - unsigned int _strInstallationType; //tipo di installazione selezionata (standard,server,client...) + unsigned int _uInstallationType; //tipo di installazione selezionata (standard,server,client...) wxString _strPrgLocPath; //path programmi in locale wxString _strPrgNetPath; //path programmi in remoto (server prg dir per client) @@ -475,7 +475,7 @@ bool CampoWizardPage2::ForwardValidate() wxString strSrvAuth; wxString strSrvDict; - //analizza il campo.ini dell'installazione selezionata + //analizza il campo.ini dell'installazione selezionata (si usa < perche' l'ultima row e' la nuova installazione!) if (iSelectedRow < iLastRow) { strPrgPath = m_pRadioBox->GetStringSelection(); @@ -508,12 +508,17 @@ bool CampoWizardPage2::ForwardValidate() GetWizard().SetSrvAuth(strSrvAuth); if (!strSrvDict.IsEmpty()) GetWizard().SetSrvDict(strSrvDict); + + //setta alla pagina riassuntiva i valori della pagina attuale... + GetWizard().SetDestinationPath(strPrgPath); //va alla pagina riassuntiva + GetWizard().SetInstallationType(3); //e' un aggiornamento!! } - - //setta alla pagina riassuntiva i valori della pagina attuale... - GetWizard().SetDestinationPath(strPrgPath); - GetWizard().SetInstallationType(3); //e' un aggiornamento!! - + else //resetta il path in caso si scelga nuova installazione dopo aver scelto aggiornamento + { + GetWizard().SetDestinationPath(""); + } + + return true; } @@ -1184,7 +1189,9 @@ CampoWizardPage7::CampoWizardPage7(wxWizard* parent) : CampoWizardPage(parent) strBody += wxT("In mancanza di tale condivisione nessun client potra' accedere al server!
"); strBody += wxT("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);