FileTreeTable.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. // This may look like C code, but it's really -*- C++ -*-
  2. /*
  3. * Copyright (C) 2008 Emweb bvba, Kessel-Lo, Belgium.
  4. *
  5. * See the LICENSE file for terms of use.
  6. */
  7. #ifndef FILETREETABLE_H_
  8. #define FILETREETABLE_H_
  9. #include <Wt/WTreeTable>
  10. #include <boost/filesystem/path.hpp>
  11. /**
  12. * \defgroup fileexplorer File Explorer example
  13. */
  14. /*@{*/
  15. /*! \brief A tree table that displays a file tree.
  16. *
  17. * The table allows one to browse a path, and all its subdirectories,
  18. * using a tree table. In addition to the file name, it shows file size
  19. * and modification date.
  20. *
  21. * The table use FileTreeTableNode objects to display the actual content
  22. * of the table.
  23. *
  24. * The tree table uses the LazyLoading strategy of WTreeNode to dynamically
  25. * load contents for the tree.
  26. *
  27. * This widget is part of the %Wt File Explorer example.
  28. */
  29. class FileTreeTable : public Wt::WTreeTable
  30. {
  31. public:
  32. /*! \brief Construct a new FileTreeTable.
  33. *
  34. * Create a new FileTreeTable to browse the given path.
  35. */
  36. FileTreeTable(const boost::filesystem::path& path,
  37. Wt::WContainerWidget *parent = 0);
  38. };
  39. /*@}*/
  40. #endif // FILETREETABLE_H_