Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
FileBrowserLocation Struct Reference

Locations to be used in the file browser. More...

#include <src/gui/backend/backend/file_manager.h>

Public Member Functions

 FileBrowserLocation (QString label, fs::path path, FileManagerSpecialLocation special_location)
const char * get_icon_name () const
void print () const

Data Fields

QString label_
 Human readable label.
fs::path path_
 Absolute path.
FileManagerSpecialLocation special_location_ = {}
 Whether this is a standard (undeletable) location.

Detailed Description

Locations to be used in the file browser.

These are to be saved/updated every time there are changes and reloaded when Zrythm starts.

Label is the visible part and path is the actual path. Eg. "Home" -> /home/user "Documents" -> /home/user/Documents "Samples" -> (some arbitrary path)

Definition at line 44 of file file_manager.h.

Constructor & Destructor Documentation

◆ FileBrowserLocation()

FileBrowserLocation::FileBrowserLocation ( QString label,
fs::path path,
FileManagerSpecialLocation special_location )
inline

Definition at line 46 of file file_manager.h.

Member Function Documentation

◆ get_icon_name()

const char * FileBrowserLocation::get_icon_name ( ) const
inline

Definition at line 56 of file file_manager.h.

Field Documentation

◆ label_

QString FileBrowserLocation::label_

Human readable label.

Definition at line 77 of file file_manager.h.

◆ path_

fs::path FileBrowserLocation::path_

Absolute path.

Definition at line 80 of file file_manager.h.

◆ special_location_

FileManagerSpecialLocation FileBrowserLocation::special_location_ = {}

Whether this is a standard (undeletable) location.

Definition at line 83 of file file_manager.h.


The documentation for this struct was generated from the following file: