You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
738 B

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /*
  2. * Turbo Vision - Version 2.0
  3. *
  4. * Copyright (c) 1994 by Borland International
  5. * All Rights Reserved.
  6. *
  7. Modified by Robert H�hne to be used for RHIDE.
  8. *
  9. *
  10. */
  11. #if defined( Uses_TDirEntry ) && !defined( __TDirEntry )
  12. #define __TDirEntry
  13. class TDirEntry
  14. {
  15. public:
  16. TDirEntry( const char *, const char * );
  17. ~TDirEntry();
  18. char *dir() { return directory; }
  19. char *text() { return displayText; }
  20. private:
  21. char *displayText;
  22. char *directory;
  23. };
  24. inline TDirEntry::TDirEntry( const char *txt, const char *dir ) :
  25. displayText( newStr( txt ) ), directory( newStr( dir ) )
  26. {
  27. }
  28. inline TDirEntry::~TDirEntry()
  29. {
  30. delete[] displayText;
  31. delete[] directory;
  32. }
  33. #endif // Uses_TDirEntry