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.
37 lines
651 B
37 lines
651 B
#pragma once
|
|
|
|
#include "BaseCmd.h"
|
|
#include "BaseSurface.h"
|
|
#include "SourcesEditorWidget.h"
|
|
#include "MediaServer.h"
|
|
#include "Gui.h"
|
|
|
|
namespace ofx {
|
|
namespace piMapper {
|
|
|
|
struct SourceData {
|
|
int type;
|
|
std::string id;
|
|
};
|
|
|
|
class SourcesEditorWidget;
|
|
|
|
class SetNextSourceCmd : public BaseUndoCmd {
|
|
|
|
public:
|
|
SetNextSourceCmd(BaseSurface * surface, SourcesEditorWidget * sourcesEditor);
|
|
void exec();
|
|
void undo();
|
|
|
|
private:
|
|
BaseSurface * _surface;
|
|
SourcesEditorWidget * _sourcesEditor;
|
|
std::vector<SourceData> _sources;
|
|
int _sourceIndex; // Previous source index
|
|
int _nextSourceIndex;
|
|
|
|
};
|
|
|
|
} // namespace piMapper
|
|
} // namespace ofx
|
|
|
|
|