Patch level : 10.0
Files correlati : xvaga,dll Ricompilazione Demo : [ ] Commento : Supporto per lingua italiana nei bottoni standard git-svn-id: svn://10.65.10.50/trunk@17917 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
7e8d83d47b
commit
06b41b506b
@ -407,10 +407,13 @@ void xvt_app_allow_quit(void)
|
||||
|
||||
XVTDLL void xvt_app_pre_create(void)
|
||||
{
|
||||
xvt_fsys_get_default_dir(NULL); // Init Startup Directory
|
||||
DIRECTORY dir;
|
||||
xvt_fsys_get_default_dir(&dir); // Init Startup Directory
|
||||
wxString strResPath = dir.path; strResPath += "/res";
|
||||
|
||||
wxLocale locale;
|
||||
locale.Init(wxLocale::GetSystemLanguage()); // wxLANGUAGE_ITALIAN
|
||||
wxLocale* pLoc = new wxLocale(wxLANGUAGE_DEFAULT); // wxLANGUAGE_ITALIAN
|
||||
pLoc->AddCatalogLookupPathPrefix(strResPath);
|
||||
pLoc->AddCatalog("wxstd", wxLanguage(pLoc->GetLanguage()), NULL);
|
||||
|
||||
::wxInitAllImageHandlers();
|
||||
|
||||
@ -2373,15 +2376,18 @@ static wxString _strSavedir;
|
||||
|
||||
void xvt_fsys_restore_dir()
|
||||
{
|
||||
wxASSERT(!_strSavedir.IsEmpty());
|
||||
::wxSetWorkingDirectory(_strSavedir);
|
||||
_strSavedir = wxEmptyString;
|
||||
}
|
||||
|
||||
void xvt_fsys_save_dir()
|
||||
{
|
||||
wxASSERT(_strSavedir.IsEmpty());
|
||||
_strSavedir = ::wxGetCwd();
|
||||
}
|
||||
|
||||
BOOLEAN xvt_fsys_set_dir(DIRECTORY *dirp)
|
||||
BOOLEAN xvt_fsys_set_dir(const DIRECTORY *dirp)
|
||||
{
|
||||
return ::wxSetWorkingDirectory(dirp->path);
|
||||
}
|
||||
|
@ -171,7 +171,7 @@ XVTDLL SLIST xvt_fsys_list_files(const char *type, const char *pat, BOOLEAN d
|
||||
XVTDLL BOOLEAN xvt_fsys_parse_pathname (const char *mbs, char *volname, char *dirname, char *leafroot, char *leafext, char *leafvers);
|
||||
XVTDLL void xvt_fsys_restore_dir();
|
||||
XVTDLL void xvt_fsys_save_dir();
|
||||
XVTDLL BOOLEAN xvt_fsys_set_dir(DIRECTORY *dirp);
|
||||
XVTDLL BOOLEAN xvt_fsys_set_dir(const DIRECTORY* dirp);
|
||||
XVTDLL long xvt_fsys_get_file_attr(const FILE_SPEC *fs, long attr); // Place older
|
||||
// Added by Guy
|
||||
XVTDLL unsigned long xvt_fsys_get_disk_size(const char* path, char unit);
|
||||
|
@ -117,11 +117,13 @@ void TwxCaret::Toggle()
|
||||
|
||||
void xvt_win_set_caret_size(WINDOW win, int width, int height)
|
||||
{
|
||||
if (win != NULL_WIN)
|
||||
_TheCaret.SetSize(width, height);
|
||||
}
|
||||
|
||||
void xvt_win_set_caret_pos(WINDOW win, PNT p)
|
||||
{
|
||||
if (win != NULL_WIN)
|
||||
_TheCaret.SetPos(p.h, p.v-1);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user