Implement file->export, show error message on failure
This commit is contained in:
parent
372f30b3e9
commit
fb9909e421
6 changed files with 190 additions and 110 deletions
|
|
@ -28,6 +28,10 @@
|
|||
#include "DistrhoPlugin.hpp"
|
||||
#include "extra/Mutex.hpp"
|
||||
|
||||
#ifndef HEADLESS
|
||||
# include "DistrhoUI.hpp"
|
||||
#endif
|
||||
|
||||
START_NAMESPACE_DISTRHO
|
||||
|
||||
// -----------------------------------------------------------------------------------------------------------
|
||||
|
|
@ -86,6 +90,8 @@ struct CardinalAudioDevice;
|
|||
struct CardinalMidiInputDevice;
|
||||
struct CardinalMidiOutputDevice;
|
||||
|
||||
CardinalPluginContext* getRackContextFromPlugin(void* ptr);
|
||||
|
||||
class CardinalBasePlugin : public Plugin {
|
||||
public:
|
||||
CardinalPluginContext* const context;
|
||||
|
|
@ -106,6 +112,18 @@ public:
|
|||
virtual bool clearMidiOutputDevice(CardinalMidiOutputDevice* dev) noexcept = 0;
|
||||
};
|
||||
|
||||
class CardinalBaseUI : public UI {
|
||||
public:
|
||||
CardinalPluginContext* const context;
|
||||
bool saving;
|
||||
|
||||
CardinalBaseUI(const uint width, const uint height)
|
||||
: UI(width, height),
|
||||
context(getRackContextFromPlugin(getPluginInstancePointer())),
|
||||
saving(false) {}
|
||||
~CardinalBaseUI() override {}
|
||||
};
|
||||
|
||||
// -----------------------------------------------------------------------------------------------------------
|
||||
|
||||
END_NAMESPACE_DISTRHO
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue