* do not show messages about missing plugins when previewing presets (closes #2110203)
* clear effect view before loading settings in effectChain git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1612 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -27,15 +27,16 @@
|
||||
#define _EFFECT_CHAIN_H
|
||||
|
||||
#include "mv_base.h"
|
||||
#include "journalling_object.h"
|
||||
#include "serializing_object.h"
|
||||
#include "mixer.h"
|
||||
#include "automatable_model.h"
|
||||
|
||||
class effect;
|
||||
|
||||
|
||||
class effectChain : public journallingObject, public model
|
||||
class effectChain : public model, public serializingObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
effectChain( model * _parent );
|
||||
virtual ~effectChain();
|
||||
@@ -68,6 +69,10 @@ private:
|
||||
|
||||
friend class effectRackView;
|
||||
|
||||
|
||||
signals:
|
||||
void aboutToClear( void );
|
||||
|
||||
} ;
|
||||
|
||||
#endif
|
||||
|
||||
@@ -45,10 +45,9 @@ public:
|
||||
effectRackView( effectChain * _model, QWidget * _parent = NULL );
|
||||
virtual ~effectRackView();
|
||||
|
||||
void clearViews( void );
|
||||
|
||||
|
||||
public slots:
|
||||
void clearViews( void );
|
||||
void moveUp( effectView * _view );
|
||||
void moveDown( effectView * _view );
|
||||
void deletePlugin( effectView * _view );
|
||||
|
||||
@@ -60,6 +60,16 @@ public:
|
||||
return( s_hasGUI );
|
||||
}
|
||||
|
||||
static void setSuppressMessages( bool _on )
|
||||
{
|
||||
s_suppressMessages = _on;
|
||||
}
|
||||
|
||||
static bool suppressMessages( void )
|
||||
{
|
||||
return !s_hasGUI || s_suppressMessages;
|
||||
}
|
||||
|
||||
// core
|
||||
static mixer * getMixer( void )
|
||||
{
|
||||
@@ -151,6 +161,7 @@ public:
|
||||
|
||||
private:
|
||||
static bool s_hasGUI;
|
||||
static bool s_suppressMessages;
|
||||
static float s_framesPerTick;
|
||||
|
||||
// core
|
||||
|
||||
Reference in New Issue
Block a user