2 changed files with 47 additions and 0 deletions
@ -0,0 +1,22 @@ |
|||||
|
#include "SelPrevTexCoordCmd.h" |
||||
|
|
||||
|
namespace ofx { |
||||
|
namespace piMapper { |
||||
|
|
||||
|
SelPrevTexCoordCmd::SelPrevTexCoordCmd(TextureEditor * te){ |
||||
|
_textureEditor = te; |
||||
|
} |
||||
|
|
||||
|
void SelPrevTexCoordCmd::exec(){ |
||||
|
ofLogNotice("SelPrevTexCoordCmd", "exec"); |
||||
|
_textureEditor->selectPrevTexCoord(); |
||||
|
} |
||||
|
|
||||
|
void SelPrevTexCoordCmd::undo(){ |
||||
|
ofLogNotice("SelPrevTexCoordCmd", "undo"); |
||||
|
_textureEditor->selectNextTexCoord(); |
||||
|
} |
||||
|
|
||||
|
} // namespace piMapper
|
||||
|
} // namespace ofx
|
||||
|
|
@ -0,0 +1,25 @@ |
|||||
|
#pragma once |
||||
|
|
||||
|
#include "BaseCmd.h" |
||||
|
#include "TextureEditor.h" |
||||
|
|
||||
|
class ofxPiMapper; |
||||
|
|
||||
|
namespace ofx { |
||||
|
namespace piMapper { |
||||
|
|
||||
|
class SelPrevTexCoordCmd : public BaseUndoCmd { |
||||
|
|
||||
|
public: |
||||
|
SelPrevTexCoordCmd(TextureEditor * te); |
||||
|
void exec(); |
||||
|
void undo(); |
||||
|
|
||||
|
private: |
||||
|
TextureEditor * _textureEditor; |
||||
|
|
||||
|
}; |
||||
|
|
||||
|
} // namespace piMapper
|
||||
|
} // namespace ofx
|
||||
|
|
Loading…
Reference in new issue