ofxPiMapper fixed for C++17 & oF 12.0
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.
 
 

39 lines
710 B

// SetSourceCmd
// Set selected surface source undoable command
// Created by Krisjanis Rijnieks 2015-05-20
#pragma once
#include "BaseCmd.h"
#include "BaseSurface.h"
#include "SourcesEditorWidget.h"
namespace ofx {
namespace piMapper {
class SourcesEditorWidget;
class SetSourceCmd : public BaseUndoCmd {
public:
SetSourceCmd(int sourceType,
std::string sourceId,
BaseSurface * surface,
SourcesEditorWidget * sourcesEditor);
void exec();
void undo();
private:
int _sourceType;
std::string _sourceId;
BaseSurface * _surface;
SourcesEditorWidget * _sourcesEditor;
int _oldSourceTypeHelper;
std::string _oldSourceId;
};
} // namespace piMapper
} // namespace ofx