Skip to content
This repository was archived by the owner on Dec 9, 2022. It is now read-only.

Commit 7674c46

Browse files
committed
add support for dialog suite v1
1 parent 7449b14 commit 7674c46

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

Engine/OfxHost.cpp

+20
Original file line numberDiff line numberDiff line change
@@ -1285,6 +1285,26 @@ Natron::OfxHost::mutexTryLock(const OfxMutexHandle mutex)
12851285

12861286
#endif // ifdef OFX_SUPPORTS_MULTITHREAD
12871287

1288+
#ifdef OFX_SUPPORTS_DIALOG
1289+
// dialog
1290+
/// @see OfxDialogSuiteV1.RequestDialog()
1291+
OfxStatus
1292+
Natron::OfxHost::requestDialog(void* user_data)
1293+
{
1294+
#pragma message WARN("OfxDialogSuiteV1: TODO")
1295+
// TODO: call Natron::OfxHost::dialog(user_data) in the main thread
1296+
return kOfxStatFailed;
1297+
}
1298+
1299+
/// @see OfxDialogSuiteV1.NotifyRedrawPending()
1300+
OfxStatus
1301+
Natron::OfxHost::notifyRedrawPending()
1302+
{
1303+
return kOfxStatReplyDefault;
1304+
}
1305+
1306+
#endif
1307+
12881308
#ifdef OFX_SUPPORTS_OPENGLRENDER
12891309
/// @see OfxImageEffectOpenGLRenderSuiteV1.flushResources()
12901310
OfxStatus Natron::OfxHost::flushOpenGLResources() const

global.pri

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# ***** END LICENSE BLOCK *****
1818

1919
CONFIG += warn_on no_keywords
20-
DEFINES += OFX_EXTENSIONS_NUKE OFX_EXTENSIONS_TUTTLE OFX_EXTENSIONS_VEGAS OFX_SUPPORTS_PARAMETRIC OFX_EXTENSIONS_TUTTLE OFX_EXTENSIONS_NATRON OFX_SUPPORTS_OPENGLRENDER
20+
DEFINES += OFX_EXTENSIONS_NUKE OFX_EXTENSIONS_TUTTLE OFX_EXTENSIONS_VEGAS OFX_SUPPORTS_PARAMETRIC OFX_EXTENSIONS_TUTTLE OFX_EXTENSIONS_NATRON OFX_SUPPORTS_OPENGLRENDER OFX_SUPPORTS_DIALOG
2121
DEFINES += OFX_SUPPORTS_MULTITHREAD
2222

2323
trace_ofx_actions{

0 commit comments

Comments
 (0)