From f2dfd50a0b8833b64ec54ca62a814d8e0a022fcd Mon Sep 17 00:00:00 2001 From: guy Date: Mon, 6 May 2013 08:58:45 +0000 Subject: [PATCH] Aggiunta forzatura di finestre di dialogo in primo piano git-svn-id: svn://10.65.10.50/branches/R_10_00@22857 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- xvaga/xvaga.cpp | 7 ++++++- xvaga/xvt.h | 1 + xvaga/xvtdm.cpp | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/xvaga/xvaga.cpp b/xvaga/xvaga.cpp index 124081041..0127b4732 100755 --- a/xvaga/xvaga.cpp +++ b/xvaga/xvaga.cpp @@ -3788,6 +3788,11 @@ int xvt_fsys_access(const char *pathname, int mode) return wxAccess(pathname, mode) == -1 ? errno : 0; } +BOOLEAN xvt_fsys_dir_exists(const char *pathname) +{ + return wxDirExists(pathname); +} + BOOLEAN xvt_fsys_file_exists(const char *pathname) { return xvt_fsys_access(pathname, 0) == 0; @@ -3795,7 +3800,7 @@ BOOLEAN xvt_fsys_file_exists(const char *pathname) BOOLEAN xvt_fsys_mkdir(const char *pathname) { - // Crea l'intero albero di cartelle senza dare erroire se esistono gia' + // Crea l'intero albero di cartelle senza dare errori se esistono gia' return wxFileName::Mkdir(pathname, 0777, wxPATH_MKDIR_FULL); } diff --git a/xvaga/xvt.h b/xvaga/xvt.h index b8f591b6d..3f0e6f82d 100755 --- a/xvaga/xvt.h +++ b/xvaga/xvt.h @@ -205,6 +205,7 @@ XVTDLL BOOLEAN xvt_fsys_removefile(const char *pathname); // DEPRECATED! XVTDLL BOOLEAN xvt_fsys_remove_file(const char *pathname); XVTDLL BOOLEAN xvt_fsys_rename_file(const char *src_pathname, const char *dst_pathname); XVTDLL int xvt_fsys_access(const char *pathname, int mode); +XVTDLL BOOLEAN xvt_fsys_dir_exists(const char *pathname); XVTDLL BOOLEAN xvt_fsys_file_exists(const char *pathname); XVTDLL int xvt_fsys_get_campo_stp_value(const char* name, char* value, int valsize); XVTDLL const char* xvt_fsys_get_campo_ini(); diff --git a/xvaga/xvtdm.cpp b/xvaga/xvtdm.cpp index 1f9dba708..578efa0f2 100755 --- a/xvaga/xvtdm.cpp +++ b/xvaga/xvtdm.cpp @@ -125,7 +125,7 @@ void TMessageBox::AddButton(wxSizer* sz, wxWindowID id) TMessageBox::TMessageBox(wxWindow* pParent, const wxString& msg, int nStyle, int nTimeout) : wxDialog(pParent, wxID_ANY, _GetAppTitle(), wxDefaultPosition, wxDefaultSize, - wxCAPTION | wxRAISED_BORDER), m_timer(this) + wxCAPTION | wxRAISED_BORDER | wxSTAY_ON_TOP), m_timer(this) { TTaskWin* tw = wxDynamicCast(pParent ? pParent : _task_win, TTaskWin); if (tw != NULL)