2007-09-20 09:53:21 +00:00
|
|
|
#ifndef __UTILS_H
|
|
|
|
#define __UTILS_H
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//Classe per la gestione dei files di configurazione tipo campo.ini
|
|
|
|
class CampoIniFile : public wxFileConfig
|
|
|
|
{
|
|
|
|
protected:
|
|
|
|
public:
|
|
|
|
wxString Get(const wxString strVariable) const;
|
|
|
|
bool GetBool(const wxString strVariable) const;
|
2007-09-20 14:29:11 +00:00
|
|
|
int GetInt (const wxString strVariable) const;
|
2007-09-20 09:53:21 +00:00
|
|
|
bool Set(const wxString strVariable, const wxString strValue);//, const wxString strParagraph) const;
|
|
|
|
bool Set(const wxString strVariable, const int uValue);
|
|
|
|
|
|
|
|
CampoIniFile(const wxString strIniPath, wxString strValue);
|
|
|
|
};
|
|
|
|
|
2007-09-20 14:29:11 +00:00
|
|
|
|
|
|
|
bool ErrorBox(const wxString str);
|
|
|
|
bool WarningBox(const wxString str);
|
|
|
|
|
|
|
|
void CheckAndMakeDir(const wxString& strDir, const wxString& strMsg);
|
|
|
|
bool UnzipFile(const char* strZipFile, const char* strDestdir);
|
|
|
|
|
2007-09-20 09:53:21 +00:00
|
|
|
#endif
|