You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
579 B
30 lines
579 B
// SelSurfaceCmd
|
|
// Provides with option to undo select surface operation.
|
|
// Created by Krisjanis Rijnieks 2015-05-14
|
|
|
|
#pragma once
|
|
|
|
#include "BaseCmd.h"
|
|
#include "BaseSurface.h"
|
|
#include "SurfaceManager.h"
|
|
|
|
namespace ofx {
|
|
namespace piMapper {
|
|
|
|
class SelSurfaceCmd : public BaseUndoCmd {
|
|
|
|
public:
|
|
SelSurfaceCmd(SurfaceManager * surfaceManager, BaseSurface * surfaceToSelect);
|
|
void exec();
|
|
void undo();
|
|
|
|
private:
|
|
BaseSurface * _surfaceToSelect;
|
|
SurfaceManager * _surfaceManager;
|
|
BaseSurface * _prevSelectedSurface;
|
|
|
|
};
|
|
|
|
} // namespace piMapper
|
|
} // namespace ofx
|
|
|
|
|