projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improve the error messages slightly.
[wxWidgets.git]
/
src
/
msw
/
wince
/
filedlgwce.cpp
diff --git
a/src/msw/wince/filedlgwce.cpp
b/src/msw/wince/filedlgwce.cpp
index aa11f5f4542184a9e9da10b9fd1811c25f8f66be..20dbe03368cd40ac72cf8829a038c77bf3f4fd92 100644
(file)
--- a/
src/msw/wince/filedlgwce.cpp
+++ b/
src/msw/wince/filedlgwce.cpp
@@
-17,10
+17,6
@@
// headers
// ----------------------------------------------------------------------------
// headers
// ----------------------------------------------------------------------------
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
- #pragma implementation "filedlg.h"
-#endif
-
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
@@
-33,11
+29,12
@@
#if wxUSE_FILEDLG && defined(__SMARTPHONE__) && defined(__WXWINCE__)
#if wxUSE_FILEDLG && defined(__SMARTPHONE__) && defined(__WXWINCE__)
+#include "wx/filedlg.h"
+
#ifndef WX_PRECOMP
#include "wx/utils.h"
#include "wx/msgdlg.h"
#include "wx/dialog.h"
#ifndef WX_PRECOMP
#include "wx/utils.h"
#include "wx/msgdlg.h"
#include "wx/dialog.h"
- #include "wx/filedlg.h"
#include "wx/filefn.h"
#include "wx/intl.h"
#include "wx/log.h"
#include "wx/filefn.h"
#include "wx/intl.h"
#include "wx/log.h"
@@
-71,12
+68,14
@@
wxFileDialog::wxFileDialog(wxWindow *parent,
const wxString& defaultFileName,
const wxString& wildCard,
long style,
const wxString& defaultFileName,
const wxString& wildCard,
long style,
- const wxPoint& WXUNUSED(pos))
+ const wxPoint& WXUNUSED(pos),
+ const wxSize& WXUNUSED(sz),
+ const wxString& WXUNUSED(name))
{
m_message = message;
{
m_message = message;
- m_
dialog
Style = style;
- if ( ( m_
dialogStyle & wxMULTIPLE ) && ( m_dialogStyle & wx
SAVE ) )
- m_
dialogStyle &= ~wx
MULTIPLE;
+ m_
window
Style = style;
+ if ( ( m_
windowStyle & wxFD_MULTIPLE ) && ( m_windowStyle & wxFD_
SAVE ) )
+ m_
windowStyle &= ~wxFD_
MULTIPLE;
m_parent = parent;
m_path = wxEmptyString;
m_fileName = defaultFileName;
m_parent = parent;
m_path = wxEmptyString;
m_fileName = defaultFileName;
@@
-118,16
+117,12
@@
int wxFileDialog::ShowModal()
parentWindow = wxTheApp->GetTopWindow();
wxString str = wxGetTextFromUser(m_message, _("File"), m_fileName, parentWindow);
parentWindow = wxTheApp->GetTopWindow();
wxString str = wxGetTextFromUser(m_message, _("File"), m_fileName, parentWindow);
- if (str)
- {
- m_fileName = str;
- m_fileNames.Add(str);
- return wxID_OK;
- }
- else
- {
+ if (str.empty())
return wxID_CANCEL;
return wxID_CANCEL;
- }
+
+ m_fileName = str;
+ m_fileNames.Add(str);
+ return wxID_OK;
}
void wxFileDialog::GetFilenames(wxArrayString& files) const
}
void wxFileDialog::GetFilenames(wxArrayString& files) const