-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support to rotate the selection/moving pixels (fix #161)
- Loading branch information
Showing
11 changed files
with
123 additions
and
37 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// Aseprite | ||
// Copyright (C) 2001-2015 David Capello | ||
// | ||
// This program is free software; you can redistribute it and/or modify | ||
// it under the terms of the GNU General Public License version 2 as | ||
// published by the Free Software Foundation. | ||
|
||
#ifndef APP_COMMANDS_CMD_ROTATE_H_INCLUDED | ||
#define APP_COMMANDS_CMD_ROTATE_H_INCLUDED | ||
#pragma once | ||
|
||
#include "app/commands/command.h" | ||
|
||
namespace app { | ||
|
||
class RotateCommand : public Command { | ||
public: | ||
RotateCommand(); | ||
Command* clone() const override { return new RotateCommand(*this); } | ||
|
||
bool flipMask() const { return m_flipMask; } | ||
int angle() const { return m_angle; } | ||
|
||
protected: | ||
void onLoadParams(const Params& params) override; | ||
bool onEnabled(Context* context) override; | ||
void onExecute(Context* context) override; | ||
std::string onGetFriendlyName() const override; | ||
|
||
private: | ||
bool m_flipMask; | ||
int m_angle; | ||
}; | ||
|
||
} // namespace app | ||
|
||
#endif // APP_COMMANDS_CMD_ROTATE_H_INCLUDED |
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