Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#5231: Refactor a few of the patch algorithm functions to keep the UI…
… stuff separated
- Loading branch information
1 parent
7d06d68
commit 1974572
Showing
22 changed files
with
225 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#pragma once | ||
|
||
#include <stdexcept> | ||
#include "ExecutionFailure.h" | ||
|
||
namespace cmd | ||
{ | ||
|
||
/** | ||
* Exception type thrown when an operation cannot be executed. | ||
* Any function called by the CommandSystem can throw this type, | ||
* it will be caught by the CommandSystem and possibly end up | ||
* displayed in an error popup window. | ||
*/ | ||
class ExecutionNotPossible : | ||
public ExecutionFailure | ||
{ | ||
public: | ||
ExecutionNotPossible(const std::string& msg) : | ||
ExecutionFailure(msg) | ||
{} | ||
}; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#pragma once | ||
|
||
#include "imessagebus.h" | ||
#include "iradiant.h" | ||
|
||
namespace radiant | ||
{ | ||
|
||
/** | ||
* Message object sent when any of the texturable objects | ||
* in the scene have been changed. Any UI dealing with | ||
* textures might need to update their controls. | ||
*/ | ||
class TextureChangedMessage : | ||
public IMessage | ||
{ | ||
public: | ||
TextureChangedMessage() | ||
{} | ||
|
||
// Convenience method | ||
static void Send() | ||
{ | ||
TextureChangedMessage msg; | ||
GlobalRadiantCore().getMessageBus().sendMessage(msg); | ||
} | ||
}; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.