ManiVault 1.0.0
A Flexible and Extensible Visual Analytics Framework for High-Dimensional Data
Loading...
Searching...
No Matches
hdps::gui::RecentFilesAction::Model Class Referencefinal

#include <RecentFilesAction.h>

Inheritance diagram for hdps::gui::RecentFilesAction::Model:

Public Types

enum class  Column { FilePath , DateTime }
 

Static Public Attributes

static QMap< Column, QPair< QString, QString > > columnInfo
 

Protected Member Functions

 Model (RecentFilesAction *recentFilePathsAction)
 
void loadFromSettings ()
 
void addRecentFilePath (const QString &filePath)
 
void removeRecentFilePath (const QString &filePath)
 
QList< TriggerAction * > getActions ()
 
QStringList getRecentFilePaths () const
 

Friends

class RecentFilesAction
 

Detailed Description

Standard item model loading and manipulating the recent file paths

Member Enumeration Documentation

◆ Column

Model columns

Enumerator
FilePath 
DateTime 

Location of the recent file Date and time when the file was opened

Constructor & Destructor Documentation

◆ Model()

hdps::gui::RecentFilesAction::Model::Model ( RecentFilesAction recentFilePathsAction)
protected

Constructor

Parameters
recentFilePathsActionPointer to owning recent file paths action

Member Function Documentation

◆ addRecentFilePath()

void hdps::gui::RecentFilesAction::Model::addRecentFilePath ( const QString &  filePath)
protected

Add recent filePath

Parameters
filePathRecent file path to add

◆ getActions()

QList< TriggerAction * > hdps::gui::RecentFilesAction::Model::getActions ( )
protected

Get trigger actions for triggering the recent file path

Returns
List of trigger actions for triggering the recent file path

◆ getRecentFilePaths()

QStringList hdps::gui::RecentFilesAction::Model::getRecentFilePaths ( ) const
protected

Get recent file paths

Returns
File paths as string list

◆ loadFromSettings()

void hdps::gui::RecentFilesAction::Model::loadFromSettings ( )
protected

Load recent file paths from settings

◆ removeRecentFilePath()

void hdps::gui::RecentFilesAction::Model::removeRecentFilePath ( const QString &  filePath)
protected

Remove recent filePath

Parameters
filePathRecent file path to remove

Friends And Related Symbol Documentation

◆ RecentFilesAction

friend class RecentFilesAction
friend

Menu trigger actions

Member Data Documentation

◆ columnInfo

QMap< RecentFilesAction::Model::Column, QPair< QString, QString > > hdps::gui::RecentFilesAction::Model::columnInfo
static
Initial value:
= QMap<RecentFilesAction::Model::Column, QPair<QString, QString>>({
{ RecentFilesAction::Model::Column::FilePath, { "File path", "Location of the recent file" }},
{ RecentFilesAction::Model::Column::DateTime, { "Date and time", "Date and time when the file was opened" }}
})

Column name and tooltip


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