| 104 | } |
| 105 | |
| 106 | void MacroActionProjector::LogAction() const |
| 107 | { |
| 108 | if (_action == Action::CLOSE) { |
| 109 | ablog(LOG_INFO, "closing projector window \"%s\"", |
| 110 | _projectorWindowName.c_str()); |
| 111 | return; |
| 112 | } |
| 113 | |
| 114 | auto it = selectionTypes.find(_type); |
| 115 | if (it != selectionTypes.end()) { |
| 116 | ablog(LOG_INFO, |
| 117 | "open projector \"%s\" with" |
| 118 | "source \"%s\"," |
| 119 | "scene \"%s\"," |
| 120 | "monitor %d", |
| 121 | it->second.c_str(), _source.ToString(true).c_str(), |
| 122 | _scene.ToString(true).c_str(), _monitor); |
| 123 | } else { |
| 124 | blog(LOG_WARNING, "ignored unknown projector action %d", |
| 125 | static_cast<int>(_type)); |
| 126 | } |
| 127 | } |
| 128 | |
| 129 | bool MacroActionProjector::Save(obs_data_t *obj) const |
| 130 | { |