Use async dialog in place of osdialog

This commit is contained in:
falkTX 2021-10-27 15:30:14 +01:00
parent 8cbd473102
commit 9d90823a32
5 changed files with 213 additions and 12 deletions

27
src/AsyncDialog.hpp Normal file
View file

@ -0,0 +1,27 @@
/*
* DISTRHO Cardinal Plugin
* Copyright (C) 2021 Filipe Coelho <falktx@falktx.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 3 of
* the License, or any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* For a full copy of the GNU General Public License see the LICENSE file.
*/
#include <functional>
#pragma once
namespace asyncDialog
{
void create(const char* message, std::function<void()> action);
}