TraceControls.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*\
  2. |*| Copyright 2015-2016 bill-auger <https://github.com/bill-auger/av-caster/issues>
  3. |*|
  4. |*| This file is part of the AvCaster program.
  5. |*|
  6. |*| AvCaster is free software: you can redistribute it and/or modify
  7. |*| it under the terms of the GNU General Public License version 3
  8. |*| as published by the Free Software Foundation.
  9. |*|
  10. |*| AvCaster is distributed in the hope that it will be useful,
  11. |*| but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. |*| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. |*| GNU General Public License for more details.
  14. |*|
  15. |*| You should have received a copy of the GNU General Public License
  16. |*| along with AvCaster. If not, see <http://www.gnu.org/licenses/>.
  17. \*/
  18. #ifndef _TRACECONTROLS_H_
  19. #define _TRACECONTROLS_H_
  20. #ifdef DEBUG_TRACE
  21. # include "Trace.h"
  22. # define DEBUG_TRACE_CONTROLS_LOAD_CONFIG \
  23. Trace::TraceGui("loading preset '" + STRING(this->configStore[CONFIG::PRESET_NAME_ID]) + "'") ; \
  24. Trace::TraceGui(String("setting controls: ") + \
  25. ((is_screen_active ) ? "screen, " : "") + ((is_camera_active) ? "camera, " : "") + \
  26. ((is_text_active ) ? "text, " : "") + ((is_image_active ) ? "image, " : "") + \
  27. ((is_preview_active) ? "preview, " : "") + ((is_audio_active ) ? "audio, " : "") + \
  28. ((is_output_active ) ? "output, " : "") + "sink (" + String(sink_idx) + ")" ) ; \
  29. DEBUG_TRACE_DUMP_CONFIG(this->configStore , "volatile") ;
  30. #else // DEBUG_TRACE
  31. # define DEBUG_TRACE_CONTROLS_LOAD_CONFIG ;
  32. #endif // DEBUG_TRACE
  33. #endif // _TRACECONTROLS_H_