midday-commander
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
FileView Class Reference

Represents a file view of the Application. More...

#include <FileView.h>

Public Member Functions

 FileView ()
 Constructs a FileView with wd set as the current directory.
 
 FileView (std::filesystem::path wd)
 Constructs a FileView with wd set as the provided directory.
 
std::vector< std::shared_ptr< Entry > > getCurrent (bool recursive=false)
 Get Entries representing all files/folders in wd.
 
void cd (std::filesystem::path)
 Change directory.
 

Public Attributes

std::filesystem::path wd
 Working directory.
 
size_t cursor = 0
 
size_t scroll_cursor = 0
 

Detailed Description

Represents a file view of the Application.

Constructor & Destructor Documentation

◆ FileView() [1/2]

FileView::FileView ( )

Constructs a FileView with wd set as the current directory.

◆ FileView() [2/2]

FileView::FileView ( std::filesystem::path  wd)
explicit

Constructs a FileView with wd set as the provided directory.

Member Function Documentation

◆ cd()

void FileView::cd ( std::filesystem::path  path)

Change directory.

Here is the caller graph for this function:

◆ getCurrent()

std::vector< std::shared_ptr< Entry > > FileView::getCurrent ( bool  recursive = false)

Get Entries representing all files/folders in wd.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ cursor

size_t FileView::cursor = 0

◆ scroll_cursor

size_t FileView::scroll_cursor = 0

◆ wd

std::filesystem::path FileView::wd

Working directory.


The documentation for this class was generated from the following files: