Skip to content

Commit

Permalink
Remove GUI menu items for global automation
Browse files Browse the repository at this point in the history
  • Loading branch information
Veratil committed Oct 7, 2019
1 parent 45cb7f2 commit 41bfc84
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 29 deletions.
2 changes: 0 additions & 2 deletions include/AutomatableModelView.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,7 @@ class AutomatableModelViewSlots : public QObject
public slots:
void execConnectionDialog();
void removeConnection();
void editSongGlobalAutomation();
void unlinkAllModels();
void removeSongGlobalAutomation();

private slots:
/// Copy the model's value to the clipboard.
Expand Down
27 changes: 0 additions & 27 deletions src/gui/AutomatableModelView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,18 +80,6 @@ void AutomatableModelView::addDefaultActions( QMenu* menu )

menu->addSeparator();

menu->addAction( embed::getIconPixmap( "automation" ),
AutomatableModel::tr( "Edit song-global automation" ),
amvSlots,
SLOT( editSongGlobalAutomation() ) );

menu->addAction( QPixmap(),
AutomatableModel::tr( "Remove song-global automation" ),
amvSlots,
SLOT( removeSongGlobalAutomation() ) );

menu->addSeparator();

if( model->hasLinkedModels() )
{
menu->addAction( embed::getIconPixmap( "edit-delete" ),
Expand Down Expand Up @@ -220,21 +208,6 @@ void AutomatableModelViewSlots::removeConnection()



void AutomatableModelViewSlots::editSongGlobalAutomation()
{
gui->automationEditor()->open(
AutomationPattern::globalAutomationPattern(m_amv->modelUntyped())
);
}



void AutomatableModelViewSlots::removeSongGlobalAutomation()
{
delete AutomationPattern::globalAutomationPattern( m_amv->modelUntyped() );
}


void AutomatableModelViewSlots::unlinkAllModels()
{
m_amv->modelUntyped()->unlinkAllModels();
Expand Down

0 comments on commit 41bfc84

Please sign in to comment.