Skip to content

UserData

This struct is reflected by RTTR. More...

#include "UserData.h"

Public Functions

Name
voidpushRecentFile(const std::filesystem::path & file)
voidtrimRecentCommands()
voidtrimRecentFiles()

Public Attributes

Name
std::stringcustomThemeName <br>If empty, LightMode or DarkMode is used based on system settings.
intmaxRecentCommands
intmaxRecentFiles
std::vector< std::string >recentCommands <br>Last command is the most recent.
std::vector< std::filesystem::path >recentFiles <br>Last file is the most recent.

Detailed Description

cpp
struct UserData;
struct UserData;

This struct is reflected by RTTR.

See: UserData.cpp file.

Public Functions Documentation

function pushRecentFile

cpp
void pushRecentFile(
    const std::filesystem::path & file
)
void pushRecentFile(
    const std::filesystem::path & file
)

function trimRecentCommands

cpp
void trimRecentCommands()
void trimRecentCommands()

function trimRecentFiles

cpp
void trimRecentFiles()
void trimRecentFiles()

Public Attributes Documentation

variable customThemeName

cpp
std::string customThemeName;
std::string customThemeName;

If empty, LightMode or DarkMode is used based on system settings.

variable maxRecentCommands

cpp
int maxRecentCommands = 25;
int maxRecentCommands = 25;

variable maxRecentFiles

cpp
int maxRecentFiles = 15;
int maxRecentFiles = 15;

variable recentCommands

cpp
std::vector< std::string > recentCommands;
std::vector< std::string > recentCommands;

Last command is the most recent.

variable recentFiles

cpp
std::vector< std::filesystem::path > recentFiles;
std::vector< std::filesystem::path > recentFiles;

Last file is the most recent.


Updated on 2025-01-07 at 13:40:43 +0000