Patch level :4.0 setup
Files correlati : Ricompilazione Demo : [ ] Commento :pagina riassuntiva funzionante compresi i back!!! git-svn-id: svn://10.65.10.50/trunk@15544 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
0e5046c339
commit
ff8442f5ce
@ -223,7 +223,7 @@ class CampoWizard : public wxWizard
|
|||||||
CampoWizardPage* m_pPage[m_nPages];
|
CampoWizardPage* m_pPage[m_nPages];
|
||||||
|
|
||||||
wxString _strDestinationPath; //path di aggiornamento/installazione
|
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 _strPrgLocPath; //path programmi in locale
|
||||||
wxString _strPrgNetPath; //path programmi in remoto (server prg dir per client)
|
wxString _strPrgNetPath; //path programmi in remoto (server prg dir per client)
|
||||||
@ -475,7 +475,7 @@ bool CampoWizardPage2::ForwardValidate()
|
|||||||
wxString strSrvAuth;
|
wxString strSrvAuth;
|
||||||
wxString strSrvDict;
|
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)
|
if (iSelectedRow < iLastRow)
|
||||||
{
|
{
|
||||||
strPrgPath = m_pRadioBox->GetStringSelection();
|
strPrgPath = m_pRadioBox->GetStringSelection();
|
||||||
@ -508,12 +508,17 @@ bool CampoWizardPage2::ForwardValidate()
|
|||||||
GetWizard().SetSrvAuth(strSrvAuth);
|
GetWizard().SetSrvAuth(strSrvAuth);
|
||||||
if (!strSrvDict.IsEmpty())
|
if (!strSrvDict.IsEmpty())
|
||||||
GetWizard().SetSrvDict(strSrvDict);
|
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!!
|
||||||
}
|
}
|
||||||
|
else //resetta il path in caso si scelga nuova installazione dopo aver scelto aggiornamento
|
||||||
//setta alla pagina riassuntiva i valori della pagina attuale...
|
{
|
||||||
GetWizard().SetDestinationPath(strPrgPath);
|
GetWizard().SetDestinationPath("");
|
||||||
GetWizard().SetInstallationType(3); //e' un aggiornamento!!
|
}
|
||||||
|
|
||||||
|
|
||||||
return true;
|
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!</p>");
|
strBody += wxT("In mancanza di tale condivisione nessun client potra' accedere al server!</p>");
|
||||||
strBody += wxT("<p><b>Gestore autorizzazioni:</b> e' il software che permette di gestire una chiave di protezione hardware multiutenza condivisa in rete. ");
|
strBody += wxT("<p><b>Gestore autorizzazioni:</b> 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("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).</p>");
|
strBody += wxT("Viene di default proposto il computer su cui si sta eseguendo l'installazione di APPNAME (localhost).</p>");
|
||||||
|
strBody += wxT("<p><b>Gestore dizionari:</b> 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).</p>");
|
||||||
SetHTMLText(strTitle, strBody);
|
SetHTMLText(strTitle, strBody);
|
||||||
|
|
||||||
//griglia per sistemare i campi
|
//griglia per sistemare i campi
|
||||||
@ -1436,6 +1443,7 @@ CampoWizardPage8::CampoWizardPage8(wxWizard* parent) : CampoWizardPage(parent)
|
|||||||
class CampoWizardPage9 : public CampoWizardPage
|
class CampoWizardPage9 : public CampoWizardPage
|
||||||
{
|
{
|
||||||
unsigned int _uInstallType;
|
unsigned int _uInstallType;
|
||||||
|
wxString _strInstallType;
|
||||||
wxString _strPrgLocPath;
|
wxString _strPrgLocPath;
|
||||||
wxString _strPrgNetPath;
|
wxString _strPrgNetPath;
|
||||||
wxString _strDataPath;
|
wxString _strDataPath;
|
||||||
@ -1458,12 +1466,14 @@ bool CampoWizardPage9::TransferDataToWindow()
|
|||||||
switch (_uInstallType)
|
switch (_uInstallType)
|
||||||
{
|
{
|
||||||
case 1: //server
|
case 1: //server
|
||||||
|
_strInstallType = "Server";
|
||||||
_strPrgLocPath = cw.GetPrgLocPath();
|
_strPrgLocPath = cw.GetPrgLocPath();
|
||||||
_strDataPath = cw.GetDataPath();
|
_strDataPath = cw.GetDataPath();
|
||||||
_strSrvAuth = cw.GetSrvAuth();
|
_strSrvAuth = cw.GetSrvAuth();
|
||||||
_strSrvDict = cw.GetSrvDict();
|
_strSrvDict = cw.GetSrvDict();
|
||||||
break;
|
break;
|
||||||
case 2: //client
|
case 2: //client
|
||||||
|
_strInstallType = "Client";
|
||||||
_strPrgLocPath = cw.GetPrgLocPath();
|
_strPrgLocPath = cw.GetPrgLocPath();
|
||||||
_strPrgNetPath = cw.GetPrgNetPath();
|
_strPrgNetPath = cw.GetPrgNetPath();
|
||||||
_strDataPath = cw.GetDataPath();
|
_strDataPath = cw.GetDataPath();
|
||||||
@ -1471,12 +1481,14 @@ bool CampoWizardPage9::TransferDataToWindow()
|
|||||||
_strSrvDict = cw.GetSrvDict();
|
_strSrvDict = cw.GetSrvDict();
|
||||||
break;
|
break;
|
||||||
case 3: //aggiornamento
|
case 3: //aggiornamento
|
||||||
|
_strInstallType = "";
|
||||||
_strPrgLocPath = cw.GetDestinationPath();
|
_strPrgLocPath = cw.GetDestinationPath();
|
||||||
_strDataPath = cw.GetDataPath();
|
_strDataPath = cw.GetDataPath();
|
||||||
_strSrvAuth = cw.GetSrvAuth();
|
_strSrvAuth = cw.GetSrvAuth();
|
||||||
_strSrvDict = cw.GetSrvDict();
|
_strSrvDict = cw.GetSrvDict();
|
||||||
break;
|
break;
|
||||||
default: //standard
|
default: //standard
|
||||||
|
_strInstallType = "Standard";
|
||||||
_strPrgLocPath = cw.GetPrgLocPath();
|
_strPrgLocPath = cw.GetPrgLocPath();
|
||||||
_strDataPath = cw.GetDataPath();
|
_strDataPath = cw.GetDataPath();
|
||||||
_bInstDemoData = cw.GetInstDemoData();
|
_bInstDemoData = cw.GetInstDemoData();
|
||||||
@ -1490,8 +1502,8 @@ bool CampoWizardPage9::TransferDataToWindow()
|
|||||||
//Aggiornamento
|
//Aggiornamento
|
||||||
if (_uInstallType == 3)
|
if (_uInstallType == 3)
|
||||||
{
|
{
|
||||||
strTitle += wxT("Riepilogo configurazione aggiornamento");
|
strTitle += wxT("AGGIORNAMENTO: riepilogo configurazione");
|
||||||
|
|
||||||
strBody = wxT("<p>Cartella programma da aggiornare: ");
|
strBody = wxT("<p>Cartella programma da aggiornare: ");
|
||||||
strBody += wxT(Bold(_strPrgLocPath) + "</p>");
|
strBody += wxT(Bold(_strPrgLocPath) + "</p>");
|
||||||
strBody += wxT("<p>Cartella dati in uso: ");
|
strBody += wxT("<p>Cartella dati in uso: ");
|
||||||
@ -1499,13 +1511,15 @@ bool CampoWizardPage9::TransferDataToWindow()
|
|||||||
}
|
}
|
||||||
else //Installazione
|
else //Installazione
|
||||||
{
|
{
|
||||||
strTitle += wxT("Riepilogo configurazione installazione");
|
strTitle += wxT("INSTALLAZIONE: riepilogo configurazione");
|
||||||
|
|
||||||
strBody = wxT("<p>Cartella programma da installare: ");
|
strBody = wxT("<p>Tipo installazione selezionata: ");
|
||||||
|
strBody += wxT(Bold(_strInstallType) + "</p>");
|
||||||
|
strBody += wxT("<p>Cartella dove installare il programma: ");
|
||||||
strBody += wxT(Bold(_strPrgLocPath) + "</p>");
|
strBody += wxT(Bold(_strPrgLocPath) + "</p>");
|
||||||
if (_uInstallType == 2)
|
if (_uInstallType == 2)
|
||||||
{
|
{
|
||||||
strBody += wxT("<p>Cartella di origine del programma: ");
|
strBody += wxT("<p>Cartella di origine dei files del programma: ");
|
||||||
strBody += wxT(Bold(_strPrgNetPath) + "</p>");
|
strBody += wxT(Bold(_strPrgNetPath) + "</p>");
|
||||||
}
|
}
|
||||||
strBody += wxT("<p>Cartella dati da creare: ");
|
strBody += wxT("<p>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
|
class CampoWizardPage10 : public CampoWizardPage
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@ -1613,11 +1631,11 @@ void CampoWizard::SetDestinationPath(const wxString& path)
|
|||||||
//..che sta in _strDestinationPath
|
//..che sta in _strDestinationPath
|
||||||
if (_strDestinationPath.IsEmpty())
|
if (_strDestinationPath.IsEmpty())
|
||||||
{
|
{
|
||||||
wxWizardPageSimple::Chain(m_pPage[1], m_pPage[2]);
|
wxWizardPageSimple::Chain(m_pPage[3], m_pPage[4]); //installazione nuova
|
||||||
}
|
}
|
||||||
else
|
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)
|
void CampoWizard::SetInstallationType(const unsigned int type)
|
||||||
{
|
{
|
||||||
_strInstallationType = type;
|
_uInstallationType = type;
|
||||||
//in base al tipo di installazione spara l'utente alla pagina corretta
|
//in base al tipo di installazione spara l'utente alla pagina corretta
|
||||||
switch (_strInstallationType)
|
switch (_uInstallationType)
|
||||||
{
|
{
|
||||||
case 1: //server
|
case 1: //server
|
||||||
wxWizardPageSimple::Chain(m_pPage[4], m_pPage[6]); //manda l'utente alla pagina 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;
|
break;
|
||||||
case 2: //client
|
case 2: //client
|
||||||
wxWizardPageSimple::Chain(m_pPage[4], m_pPage[7]);
|
wxWizardPageSimple::Chain(m_pPage[4], m_pPage[7]); //manda l'utente alla pagina client
|
||||||
wxWizardPageSimple::Chain(m_pPage[7], m_pPage[8]);
|
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;
|
break;
|
||||||
/* case 3: //aggiornamento installazione precedente
|
|
||||||
break;*/
|
|
||||||
default: //standard
|
default: //standard
|
||||||
wxWizardPageSimple::Chain(m_pPage[4], m_pPage[5]);
|
wxWizardPageSimple::Chain(m_pPage[4], m_pPage[5]); //manda l'utente alla pagina standard
|
||||||
wxWizardPageSimple::Chain(m_pPage[5], m_pPage[8]);
|
wxWizardPageSimple::Chain(m_pPage[5], m_pPage[8]); //dalla standard alla pagina riassuntiva
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const unsigned int CampoWizard::GetInstallationType() const
|
const unsigned int CampoWizard::GetInstallationType() const
|
||||||
{
|
{
|
||||||
return _strInstallationType;
|
return _uInstallationType;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CampoWizard::SetPrgLocPath(const wxString& strPrgLocPath)
|
void CampoWizard::SetPrgLocPath(const wxString& strPrgLocPath)
|
||||||
@ -1861,7 +1880,7 @@ void RSSetup::OnTimer(wxTimerEvent& WXUNUSED(e))
|
|||||||
strPath.SetCwd();
|
strPath.SetCwd();
|
||||||
|
|
||||||
const wxString strSrc = strPath.GetPath();
|
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;
|
const bool bOpenGL = pWizard->GetSelection(301)==0;
|
||||||
RSDirCopier dc;
|
RSDirCopier dc;
|
||||||
dc.Copy(strSrc, strDest, bOpenGL);
|
dc.Copy(strSrc, strDest, bOpenGL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user