fix warning about int->bool conversion; wrap long lines to 80 columns

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48786 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-09-19 11:39:26 +00:00
parent fc694caa0a
commit 8522a5458b

View File

@@ -201,7 +201,8 @@ public:
const wxString& name = wxFileCtrlNameStr ) const wxString& name = wxFileCtrlNameStr )
{ {
m_ignoreChanges = false; m_ignoreChanges = false;
Create( parent, id, defaultDirectory, defaultFilename, wildCard, style, pos, size, name ); Create(parent, id, defaultDirectory, defaultFilename, wildCard,
style, pos, size, name );
} }
virtual ~wxGenericFileCtrl() {} virtual ~wxGenericFileCtrl() {}
@@ -221,11 +222,14 @@ public:
virtual bool SetDirectory( const wxString& dir ); virtual bool SetDirectory( const wxString& dir );
// Selects a certain file. // Selects a certain file.
// In case the filename specified isn't found/couldn't be shown with currently selected filter, false is returned and nothing happens // In case the filename specified isn't found/couldn't be shown with
// currently selected filter, false is returned and nothing happens
virtual bool SetFilename( const wxString& name ); virtual bool SetFilename( const wxString& name );
// chdirs to a certain directory and selects a certain file. // Changes to a certain directory and selects a certain file.
// In case the filename specified isn't found/couldn't be shown with currently selected filter, false is returned and if directory exists it's chdir'ed to // In case the filename specified isn't found/couldn't be shown with
// currently selected filter, false is returned and if directory exists
// it's chdir'ed to
virtual bool SetPath( const wxString& path ); virtual bool SetPath( const wxString& path );
virtual wxString GetFilename() const; virtual wxString GetFilename() const;
@@ -236,7 +240,8 @@ public:
virtual void GetFilenames( wxArrayString& files ) const; virtual void GetFilenames( wxArrayString& files ) const;
virtual int GetFilterIndex() const { return m_filterIndex; } virtual int GetFilterIndex() const { return m_filterIndex; }
virtual bool HasMultipleFileSelection() const { return m_style & wxFC_MULTIPLE; } virtual bool HasMultipleFileSelection() const
{ return HasFlag(wxFC_MULTIPLE); }
virtual void ShowHidden(bool show) { m_list->ShowHidden( show ); } virtual void ShowHidden(bool show) { m_list->ShowHidden( show ); }
void GoToParentDir(); void GoToParentDir();