Loading...
Searching...
No Matches
Library::PresetTreeView Class Referencefinal

The library's presets of one kind of process, in folders by category. More...

Inheritance diagram for Library::PresetTreeView:

Detailed Description

The library's presets of one kind of process, in folders by category.

Public Member Functions

 PresetTreeView (QWidget *parent=nullptr)
 
void setPresetModel (PresetItemModel *model)
 
PresetItemModel * presetModel () const noexcept
 
void selected (std::optional< Process::Preset > p)
 The current item became this preset, or a folder / nothing.
 
void doubleClicked (Process::Preset p)
 Without a target process: create a process from it.
 
void loadRequested (Process::Preset p)
 With one: load it into it (double-click, Enter)
 
void cancelRequested ()
 Escape: back to the preset before the ones auditioned.
 
void showCurrentPreset ()
 Makes the target's current preset the current item, opening its folder.
 
void newCategory (const QStringList &in)
 Asks for the name of a new category, in the folder in
 
std::unique_ptr< QMenu > contextMenu (const QModelIndex &index)
 What a right-click on it shows; none where there is nothing to do.
 

Protected Member Functions

void mouseDoubleClickEvent (QMouseEvent *event) override
 
void paintEvent (QPaintEvent *e) override
 
void contextMenuEvent (QContextMenuEvent *event) override
 
void keyPressEvent (QKeyEvent *event) override
 
void currentChanged (const QModelIndex &current, const QModelIndex &previous) override
 
void focusInEvent (QFocusEvent *event) override
 

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