Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial Qt5 sources for Gui #716

Merged
merged 1 commit into from
Dec 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,776 changes: 1,776 additions & 0 deletions Gui/Qt5/NatronGui/guiapp_wrapper.cpp

Large diffs are not rendered by default.

68 changes: 68 additions & 0 deletions Gui/Qt5/NatronGui/guiapp_wrapper.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
#ifndef SBK_GUIAPPWRAPPER_H
#define SBK_GUIAPPWRAPPER_H

#include <PyGuiApp.h>


// Extra includes
#include <PythonPanels.h>
#include <PyParameter.h>
#include <list>
#include <PyNode.h>
#include <PyNodeGroup.h>
#include <PyGuiApp.h>
#include <PyAppInstance.h>
#include <map>
NATRON_NAMESPACE_ENTER NATRON_PYTHON_NAMESPACE_ENTER
class GuiAppWrapper : public GuiApp
{
public:
~GuiAppWrapper();
static void pysideInitQtMetaTypes();
void resetPyMethodCache();
private:
mutable bool m_PyMethodCache[1];
};
NATRON_PYTHON_NAMESPACE_EXIT NATRON_NAMESPACE_EXIT

# ifndef SBK_APPWRAPPER_H
# define SBK_APPWRAPPER_H

// Inherited base class:
NATRON_NAMESPACE_ENTER NATRON_PYTHON_NAMESPACE_ENTER
class AppWrapper : public App
{
public:
inline void renderInternal_protected(bool forceBlocking, Effect * writeNode, int firstFrame, int lastFrame, int frameStep) { App::renderInternal(forceBlocking, writeNode, firstFrame, lastFrame, frameStep); }
inline void renderInternal_protected(bool forceBlocking, const std::list<Effect* > & effects, const std::list<int > & firstFrames, const std::list<int > & lastFrames, const std::list<int > & frameSteps) { App::renderInternal(forceBlocking, effects, firstFrames, lastFrames, frameSteps); }
~AppWrapper();
static void pysideInitQtMetaTypes();
void resetPyMethodCache();
private:
mutable bool m_PyMethodCache[1];
};
NATRON_PYTHON_NAMESPACE_EXIT NATRON_NAMESPACE_EXIT

# endif // SBK_APPWRAPPER_H

# ifndef SBK_GROUPWRAPPER_H
# define SBK_GROUPWRAPPER_H

// Inherited base class:
NATRON_NAMESPACE_ENTER NATRON_PYTHON_NAMESPACE_ENTER
class GroupWrapper : public Group
{
public:
GroupWrapper();
~GroupWrapper();
static void pysideInitQtMetaTypes();
void resetPyMethodCache();
private:
mutable bool m_PyMethodCache[1];
};
NATRON_PYTHON_NAMESPACE_EXIT NATRON_NAMESPACE_EXIT

# endif // SBK_GROUPWRAPPER_H

#endif // SBK_GUIAPPWRAPPER_H

Loading