git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32421
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
+ wxFileData() { Init(); }
// Full copy constructor
wxFileData( const wxFileData& fileData ) { Copy(fileData); }
// Create a filedata from this information
// Full copy constructor
wxFileData( const wxFileData& fileData ) { Copy(fileData); }
// Create a filedata from this information
// initialize a wxListItem attributes
void MakeItem( wxListItem &item );
// initialize a wxListItem attributes
void MakeItem( wxListItem &item );
wxFileData& operator = (const wxFileData& fd) { Copy(fd); return *this; }
wxFileData& operator = (const wxFileData& fd) { Copy(fd); return *this; }
wxString m_fileName;
wxString m_filePath;
long m_size;
wxString m_fileName;
wxString m_filePath;
long m_size;
wxString m_permissions;
int m_type;
int m_image;
wxString m_permissions;
int m_type;
int m_image;
+
+private:
+ void Init();
};
//-----------------------------------------------------------------------------
};
//-----------------------------------------------------------------------------
wxFileData::wxFileData( const wxString &filePath, const wxString &fileName, fileType type, int image_id )
{
wxFileData::wxFileData( const wxString &filePath, const wxString &fileName, fileType type, int image_id )
{
m_fileName = fileName;
m_filePath = filePath;
m_type = type;
m_fileName = fileName;
m_filePath = filePath;
m_type = type;
+void wxFileData::Init()
+{
+ m_size = 0;
+ m_type = wxFileData::is_file;
+ m_image = wxFileIconsTable::file;
+}
+
void wxFileData::Copy( const wxFileData& fileData )
{
m_fileName = fileData.GetFileName();
void wxFileData::Copy( const wxFileData& fileData )
{
m_fileName = fileData.GetFileName();
m_dateTime = fileData.GetDateTime();
m_permissions = fileData.GetPermissions();
m_type = fileData.GetType();
m_dateTime = fileData.GetDateTime();
m_permissions = fileData.GetPermissions();
m_type = fileData.GetType();
- m_image = GetImageId();
+ m_image = fileData.GetImageId();
}
void wxFileData::ReadData()
}
void wxFileData::ReadData()