LMMS
Loading...
Searching...
No Matches
lmms::gui::LinkedModelGroupView Class Reference

#include <LinkedModelGroupViews.h>

Inheritance diagram for lmms::gui::LinkedModelGroupView:
lmms::gui::Lv2ViewProc

Public Member Functions

 LinkedModelGroupView (QWidget *parent, LinkedModelGroup *model, std::size_t colNum)
 ~LinkedModelGroupView () override=default
void modelChanged (LinkedModelGroup *linkedModelGroup)
 Reconnect models if model changed.

Protected Member Functions

void addControl (Control *ctrl, const std::string &id, const std::string &display, bool removable)
void removeControl (const QString &key)
void removeFocusFromSearchBar ()

Private Attributes

class LinkedModelGroupm_model
std::size_t m_colNum
 column number in surrounding grid in LinkedModelGroupsView
class ControlLayoutm_layout
std::map< std::string, std::unique_ptr< class Control > > m_widgets

Detailed Description

View for a representative processor

Features: Remove button for removable models Simple handling of adding, removing and model changing

Note
Neither this class, nor any inheriting classes, shall inherit ModelView. The "view" in the name is just for consistency with LinkedModelGroupsView.

Constructor & Destructor Documentation

◆ LinkedModelGroupView()

lmms::gui::LinkedModelGroupView::LinkedModelGroupView ( QWidget * parent,
LinkedModelGroup * model,
std::size_t colNum )
Parameters
colNumnumbers of columns for the controls (link LEDs not counted)

◆ ~LinkedModelGroupView()

lmms::gui::LinkedModelGroupView::~LinkedModelGroupView ( )
overridedefault

Member Function Documentation

◆ addControl()

void lmms::gui::LinkedModelGroupView::addControl ( Control * ctrl,
const std::string & id,
const std::string & display,
bool removable )
protected

Add a control to this widget

Warning
This widget will own this control, do not free it

◆ modelChanged()

void lmms::gui::LinkedModelGroupView::modelChanged ( LinkedModelGroup * linkedModelGroup)

Reconnect models if model changed.

◆ removeControl()

void lmms::gui::LinkedModelGroupView::removeControl ( const QString & key)
protected

◆ removeFocusFromSearchBar()

void lmms::gui::LinkedModelGroupView::removeFocusFromSearchBar ( )
protected

Member Data Documentation

◆ m_colNum

std::size_t lmms::gui::LinkedModelGroupView::m_colNum
private

column number in surrounding grid in LinkedModelGroupsView

◆ m_layout

class ControlLayout* lmms::gui::LinkedModelGroupView::m_layout
private

◆ m_model

class LinkedModelGroup* lmms::gui::LinkedModelGroupView::m_model
private

◆ m_widgets

std::map<std::string, std::unique_ptr<class Control> > lmms::gui::LinkedModelGroupView::m_widgets
private

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