Skip to content

Commit

Permalink
Remove NATRON_ENUM
Browse files Browse the repository at this point in the history
  • Loading branch information
acolwell committed Dec 17, 2024
1 parent 8326245 commit 630bf00
Show file tree
Hide file tree
Showing 19 changed files with 150 additions and 275 deletions.
16 changes: 8 additions & 8 deletions Engine/AppInstance.h
Original file line number Diff line number Diff line change
Expand Up @@ -193,22 +193,22 @@ GCC_DIAG_SUGGEST_OVERRIDE_ON
virtual void warningDialog(const std::string & title, const std::string & message, bool* stopAsking, bool useHtml) const;
virtual void informationDialog(const std::string & title, const std::string & message, bool useHtml) const;
virtual void informationDialog(const std::string & title, const std::string & message, bool* stopAsking, bool useHtml) const;
virtual NATRON_ENUM::StandardButtonEnum questionDialog(const std::string & title,
virtual StandardButtonEnum questionDialog(const std::string & title,
const std::string & message,
bool useHtml,
NATRON_ENUM::StandardButtons buttons =
NATRON_ENUM::StandardButtons(NATRON_ENUM::eStandardButtonYes | NATRON_ENUM::eStandardButtonNo),
NATRON_ENUM::StandardButtonEnum defaultButton = NATRON_ENUM::eStandardButtonNoButton) const WARN_UNUSED_RETURN;
StandardButtons buttons =
StandardButtons(eStandardButtonYes | eStandardButtonNo),
StandardButtonEnum defaultButton = eStandardButtonNoButton) const WARN_UNUSED_RETURN;

/**
* @brief Asks a question to the user and returns the reply.
* @param stopAsking Set to true if the user do not want Natron to ask the question again.
**/
virtual NATRON_ENUM::StandardButtonEnum questionDialog(const std::string & /*title*/,
virtual StandardButtonEnum questionDialog(const std::string & /*title*/,
const std::string & /*message*/,
bool /*useHtml*/,
NATRON_ENUM::StandardButtons /*buttons*/,
NATRON_ENUM::StandardButtonEnum /*defaultButton*/,
StandardButtons /*buttons*/,
StandardButtonEnum /*defaultButton*/,
bool* /*stopAsking*/)
{
return eStandardButtonYes;
Expand Down Expand Up @@ -281,7 +281,7 @@ GCC_DIAG_SUGGEST_OVERRIDE_ON
{
}

NATRON_ENUM::ViewerColorSpaceEnum getDefaultColorSpaceForBitDepth(NATRON_ENUM::ImageBitDepthEnum bitdepth) const;
ViewerColorSpaceEnum getDefaultColorSpaceForBitDepth(ImageBitDepthEnum bitdepth) const;

double getProjectFrameRate() const;

Expand Down
18 changes: 9 additions & 9 deletions Engine/AppManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ GCC_DIAG_SUGGEST_OVERRIDE_ON
void setOFXHostHandle(void* handle);

OFX::Host::ImageEffect::Descriptor* getPluginContextAndDescribe(OFX::Host::ImageEffect::ImageEffectPlugin* plugin,
NATRON_ENUM::ContextEnum* ctx);
ContextEnum* ctx);
AppTLS* getAppTLS() const;
const OfxHost* getOFXHost() const;
GPUContextPool* getGPUContextPool() const;
Expand Down Expand Up @@ -567,7 +567,7 @@ GCC_DIAG_SUGGEST_OVERRIDE_ON

bool isTextureFloatSupported() const;

bool hasOpenGLForRequirements(NATRON_ENUM::OpenGLRequirementsTypeEnum type, QString* missingOpenGLError = 0) const;
bool hasOpenGLForRequirements(OpenGLRequirementsTypeEnum type, QString* missingOpenGLError = 0) const;

virtual void updateAboutWindowLibrariesVersion() {}

Expand Down Expand Up @@ -736,14 +736,14 @@ void warningDialog(const std::string & title, const std::string & message, bool*
void informationDialog(const std::string & title, const std::string & message, bool useHtml = false);
void informationDialog(const std::string & title, const std::string & message, bool* stopAsking, bool useHtml = false);

NATRON_ENUM::StandardButtonEnum questionDialog(const std::string & title, const std::string & message, bool useHtml,
NATRON_ENUM::StandardButtons buttons =
NATRON_ENUM::StandardButtons(NATRON_ENUM::eStandardButtonYes | NATRON_ENUM::eStandardButtonNo),
NATRON_ENUM::StandardButtonEnum defaultButton = NATRON_ENUM::eStandardButtonNoButton);
StandardButtonEnum questionDialog(const std::string & title, const std::string & message, bool useHtml,
StandardButtons buttons =
StandardButtons(eStandardButtonYes | eStandardButtonNo),
StandardButtonEnum defaultButton = eStandardButtonNoButton);

NATRON_ENUM::StandardButtonEnum questionDialog(const std::string & title, const std::string & message, bool useHtml,
NATRON_ENUM::StandardButtons buttons,
NATRON_ENUM::StandardButtonEnum defaultButton,
StandardButtonEnum questionDialog(const std::string & title, const std::string & message, bool useHtml,
StandardButtons buttons,
StandardButtonEnum defaultButton,
bool* stopAsking);
} // namespace Dialogs

Expand Down
Loading

0 comments on commit 630bf00

Please sign in to comment.