mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-02 17:09:26 +02:00
Make EXPERIMENTAL_EFFECTS_RACK compilable
This commit is contained in:
parent
b4113aae35
commit
30c4ca70ee
@ -37,6 +37,7 @@
|
|||||||
#include "EffectManager.h"
|
#include "EffectManager.h"
|
||||||
#include "EffectRack.h"
|
#include "EffectRack.h"
|
||||||
#include "../commands/CommandContext.h"
|
#include "../commands/CommandContext.h"
|
||||||
|
#include "../Menus.h"
|
||||||
#include "../Prefs.h"
|
#include "../Prefs.h"
|
||||||
#include "../Project.h"
|
#include "../Project.h"
|
||||||
|
|
||||||
@ -394,7 +395,7 @@ void EffectRack::OnDown(wxCommandEvent & evt)
|
|||||||
|
|
||||||
evt.Skip();
|
evt.Skip();
|
||||||
|
|
||||||
size_t index = GetEffectIndex(btn);
|
int index = GetEffectIndex(btn);
|
||||||
if (index < 0 || index == (mMainSizer->GetChildren().GetCount() / NUMCOLS) - 1)
|
if (index < 0 || index == (mMainSizer->GetChildren().GetCount() / NUMCOLS) - 1)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
@ -459,7 +460,7 @@ void EffectRack::OnRemove(wxCommandEvent & evt)
|
|||||||
UpdateActive();
|
UpdateActive();
|
||||||
}
|
}
|
||||||
|
|
||||||
wxBitmap EffectRack::CreateBitmap(const char *xpm[], bool up, bool pusher)
|
wxBitmap EffectRack::CreateBitmap(const char *const xpm[], bool up, bool pusher)
|
||||||
{
|
{
|
||||||
wxMemoryDC dc;
|
wxMemoryDC dc;
|
||||||
wxBitmap pic(xpm);
|
wxBitmap pic(xpm);
|
||||||
|
@ -40,7 +40,7 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
wxBitmap CreateBitmap(const char *xpm[], bool up, bool pusher);
|
wxBitmap CreateBitmap(const char *const xpm[], bool up, bool pusher);
|
||||||
int GetEffectIndex(wxWindow *win);
|
int GetEffectIndex(wxWindow *win);
|
||||||
void MoveRowUp(int row);
|
void MoveRowUp(int row);
|
||||||
void UpdateActive();
|
void UpdateActive();
|
||||||
|
@ -364,7 +364,7 @@ void OnShowClipping(const CommandContext &context)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if defined(EXPERIMENTAL_EFFECTS_RACK)
|
#if defined(EXPERIMENTAL_EFFECTS_RACK)
|
||||||
void OnShowEffectsRack(const &WXUNUSED(context) )
|
void OnShowEffectsRack(const CommandContext &WXUNUSED(context) )
|
||||||
{
|
{
|
||||||
EffectManager::Get().ShowRack();
|
EffectManager::Get().ShowRack();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user