Patch level :4.0 nopatch
Files correlati : Ricompilazione Demo : [ ] Commento :passaggio parametri alla pagina riassuntiva git-svn-id: svn://10.65.10.50/trunk@15535 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
14a68e6c42
commit
845da1e0f4
129
setup/Setup.cpp
129
setup/Setup.cpp
@ -222,7 +222,7 @@ class CampoWizard : public wxWizard
|
||||
enum { m_nPages = 10 };
|
||||
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...)
|
||||
|
||||
wxString _strPrgLocPath; //path programmi in locale
|
||||
@ -231,8 +231,11 @@ class CampoWizard : public wxWizard
|
||||
wxString _strAuthSrv; //nome server authoriz
|
||||
wxString _strDictSrv; //nome server diction
|
||||
|
||||
bool _bInstDemoData; //installa dati dimostrativi
|
||||
bool _bInstUseAuth; //installa/usa server authoriz
|
||||
wxString _strSrvAuth; //server authoriz
|
||||
bool _bInstUseDict; //installa/usa server diction
|
||||
wxString _strSrvDict; //server diction
|
||||
|
||||
protected:
|
||||
DECLARE_EVENT_TABLE();
|
||||
@ -245,6 +248,8 @@ public:
|
||||
wxString Get(wxWindowID id) const;
|
||||
int GetSelection(wxWindowID id) const;
|
||||
bool GetBool(wxWindowID id) const;
|
||||
|
||||
//metodi per il passaggio tra le finestre dei parametri di installazione!
|
||||
void SetDestinationPath(const wxString& path);
|
||||
const wxString& GetDestinationPath() const;
|
||||
void SetInstallationType(const unsigned int type);
|
||||
@ -257,6 +262,19 @@ public:
|
||||
void SetDataPath(const wxString& strDataPath);
|
||||
const wxString& GetDataPath() const;
|
||||
|
||||
void SetInstDemoData(const bool bInstDemoData);
|
||||
const bool GetInstDemoData() const;
|
||||
|
||||
void SetInstUseAuth(const bool bInstUseAuth);
|
||||
const bool GetInstUseAuth() const;
|
||||
void SetSrvAuth(const wxString& strSrvAuth);
|
||||
const wxString& GetSrvAuth() const;
|
||||
|
||||
void SetInstUseDict(const bool bInstUseDict);
|
||||
const bool GetInstUseDict() const;
|
||||
void SetSrvDict(const wxString& strSrvDict);
|
||||
const wxString& GetSrvDict() const;
|
||||
|
||||
CampoWizard(wxWindow* pParent);
|
||||
};
|
||||
|
||||
@ -278,6 +296,7 @@ protected:
|
||||
public:
|
||||
virtual bool ForwardValidate() { return true; }
|
||||
wxString Get(wxWindowID id) const;
|
||||
bool GetBool(wxWindowID id) const;
|
||||
bool Set(wxWindowID id, const wxString& str);
|
||||
int GetSelection(wxWindowID id) const;
|
||||
|
||||
@ -290,6 +309,12 @@ wxString CampoWizardPage::Get(wxWindowID id) const
|
||||
return pWnd ? pWnd->GetLabel() : wxEmptyString;
|
||||
}
|
||||
|
||||
bool CampoWizardPage::GetBool(wxWindowID id) const
|
||||
{
|
||||
wxCheckBox* pWnd = (wxCheckBox*)FindWindowById(id);
|
||||
return pWnd != NULL && pWnd->IsChecked();
|
||||
}
|
||||
|
||||
bool CampoWizardPage::Set(wxWindowID id, const wxString& str)
|
||||
{
|
||||
wxWindow* pWnd = FindWindowById(id);
|
||||
@ -918,10 +943,14 @@ bool CampoWizardPage6::ForwardValidate()
|
||||
if (dirDataPath.Exists(strDataPath) && (dirDataPath.HasFiles() || dirDataPath.HasSubDirs()))
|
||||
return ErrorBox("La cartella indicata per la creazione dell'area dati non e' vuota! Selezionarne un'altra!");
|
||||
|
||||
//setta alla pagina riassuntiva i valori della pagina attuale
|
||||
//setta alla pagina riassuntiva i valori della pagina attuale...
|
||||
GetWizard().SetPrgLocPath(strPrgLocPath);
|
||||
GetWizard().SetDataPath(strDataPath);
|
||||
|
||||
//...e pure quegli stupidi datidemo che nessuno ha mai installato!!
|
||||
const bool bInstDemoData = GetBool(605);
|
||||
GetWizard().SetInstDemoData(bInstDemoData);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -1026,9 +1055,28 @@ bool CampoWizardPage7::ForwardValidate()
|
||||
if (dirDataPath.Exists(strDataPath) && (dirDataPath.HasFiles() || dirDataPath.HasSubDirs()))
|
||||
return ErrorBox("La cartella indicata per la creazione dell'area dati non e' vuota! Selezionarne un'altra!");
|
||||
|
||||
//setta alla pagina riassuntiva i valori della pagina attuale
|
||||
//setta alla pagina riassuntiva i valori della pagina attuale...
|
||||
GetWizard().SetPrgLocPath(strPrgLocPath);
|
||||
GetWizard().SetDataPath(strDataPath);
|
||||
//...compresi eventuali stupidi servers!
|
||||
const bool bInstAuth = GetBool(705);
|
||||
if (bInstAuth)
|
||||
{
|
||||
GetWizard().SetInstUseAuth(bInstAuth);
|
||||
const wxString strSrvAuth = Get(706);
|
||||
if (strSrvAuth.IsEmpty())
|
||||
return ErrorBox("Specificare il server gestore delle autorizzazioni!");
|
||||
GetWizard().SetSrvAuth(strSrvAuth);
|
||||
}
|
||||
const bool bInstDict = GetBool(707);
|
||||
if (bInstDict)
|
||||
{
|
||||
GetWizard().SetInstUseDict(bInstDict);
|
||||
const wxString strSrvDict = Get(708);
|
||||
if (strSrvDict.IsEmpty())
|
||||
return ErrorBox("Specificare il server gestore dei dizionari!");
|
||||
GetWizard().SetSrvDict(strSrvDict);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
@ -1201,6 +1249,26 @@ bool CampoWizardPage8::ForwardValidate()
|
||||
GetWizard().SetPrgNetPath(strPrgNetPath);
|
||||
GetWizard().SetDataPath(strDataPath);
|
||||
|
||||
//...compresi eventuali stupidi servers!
|
||||
const bool bUseAuth = GetBool(807);
|
||||
if (bUseAuth)
|
||||
{
|
||||
GetWizard().SetInstUseAuth(bUseAuth);
|
||||
const wxString strSrvAuth = Get(808);
|
||||
if (strSrvAuth.IsEmpty())
|
||||
return ErrorBox("Specificare il server gestore delle autorizzazioni!");
|
||||
GetWizard().SetSrvAuth(strSrvAuth);
|
||||
}
|
||||
const bool bUseDict = GetBool(809);
|
||||
if (bUseDict)
|
||||
{
|
||||
GetWizard().SetInstUseDict(bUseDict);
|
||||
const wxString strSrvDict = Get(810);
|
||||
if (strSrvDict.IsEmpty())
|
||||
return ErrorBox("Specificare il server gestore dei dizionari!");
|
||||
GetWizard().SetSrvDict(strSrvDict);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -1308,6 +1376,7 @@ bool CampoWizardPage9::TransferDataToWindow()
|
||||
default: //standard
|
||||
cw.GetPrgLocPath();
|
||||
cw.GetDataPath();
|
||||
cw.GetInstDemoData();
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
@ -1390,6 +1459,7 @@ bool CampoWizard::GetBool(wxWindowID id) const
|
||||
return pWnd != NULL && pWnd->IsChecked();
|
||||
}
|
||||
|
||||
//lunga litania di metodi per gettare e settare i valori tra le pagine
|
||||
void CampoWizard::SetDestinationPath(const wxString& path)
|
||||
{
|
||||
_strDestinationPath = path;
|
||||
@ -1468,6 +1538,59 @@ const wxString& CampoWizard::GetDataPath() const
|
||||
return _strDataPath;
|
||||
}
|
||||
|
||||
void CampoWizard::SetInstUseAuth(const bool bInstUseAuth)
|
||||
{
|
||||
_bInstUseAuth = bInstUseAuth;
|
||||
}
|
||||
|
||||
const bool CampoWizard::GetInstUseAuth() const
|
||||
{
|
||||
return _bInstUseAuth;
|
||||
}
|
||||
|
||||
void CampoWizard::SetSrvAuth(const wxString& strSrvAuth)
|
||||
{
|
||||
_strSrvAuth = strSrvAuth;
|
||||
}
|
||||
|
||||
const wxString& CampoWizard::GetSrvAuth() const
|
||||
{
|
||||
return _strSrvAuth;
|
||||
}
|
||||
|
||||
void CampoWizard::SetInstUseDict(const bool bInstUseDict)
|
||||
{
|
||||
_bInstUseDict = bInstUseDict;
|
||||
}
|
||||
|
||||
const bool CampoWizard::GetInstUseDict() const
|
||||
{
|
||||
return _bInstUseDict;
|
||||
}
|
||||
|
||||
void CampoWizard::SetSrvDict(const wxString& strSrvDict)
|
||||
{
|
||||
_strSrvDict = strSrvDict;
|
||||
}
|
||||
|
||||
const wxString& CampoWizard::GetSrvDict() const
|
||||
{
|
||||
return _strSrvDict;
|
||||
}
|
||||
|
||||
void CampoWizard::SetInstDemoData(const bool bInstDemoData)
|
||||
{
|
||||
_bInstDemoData = bInstDemoData;
|
||||
}
|
||||
|
||||
const bool CampoWizard::GetInstDemoData() const
|
||||
{
|
||||
return _bInstDemoData;
|
||||
}
|
||||
//...fine litania metodi di passaggio valori tra le finestre
|
||||
|
||||
|
||||
|
||||
CampoWizard::CampoWizard(wxWindow* pParent)
|
||||
{
|
||||
wxBitmap bitmap;
|
||||
|
Loading…
x
Reference in New Issue
Block a user