#define IsTopMostDir(dir) (dir.IsEmpty())
#endif
-#if defined(__DOS__) || defined(__WINDOWS__)
+#if defined(__DOS__) || defined(__WINDOWS__) || defined(__OS2__)
// defined in src/generic/dirctrlg.cpp
extern bool wxIsDriveAvailable(const wxString& dirName);
#endif
{
wxString s = m_filePath;
s += wxT(" ");
+
if (IsDir())
- s += wxT("<DIR> ");
+ s += _("<DIR>");
else if (IsLink())
- s += wxT("<LINK> ");
+ s += _("<LINK>");
else if (IsDrive())
+ s += _("<DRIVE>");
+ else // plain file
+ s += wxString::Format( _("%ld bytes"), m_size );
+
+ s += wxT(' ');
+
+ if ( !IsDrive() )
{
- s += wxT("<DRIVE> ");
- return s;
- }
- else
- {
- s += LongToString( m_size );
- s += wxT(" bytes ");
+ s << GetModificationTime()
+ << wxT(" ")
+ << m_permissions;
}
- s += GetModificationTime();
- s += wxT(" ");
- s += m_permissions;
return s;
};
m_filterExtension = wxEmptyString;
// layout
-
+
bool is_pda = (wxSystemSettings::GetScreenType() <= wxSYS_SCREEN_PDA);
wxBoxSizer *mainsizer = new wxBoxSizer( wxVERTICAL );
mainsizer->Add( choicesizer, 0, wxEXPAND );
}
- // FIXME - memory leaks!!
-
m_choice->Append( firstWildText, (void*) new wxString( firstWild ) );
while (tokens.HasMoreTokens())
{