AnalogTapeModel

Physical modelling signal processing for analog tape recording
Log | Files | Refs | Submodules | README | LICENSE

ScreenshotHelper.h (1052B)


      1 #ifndef SCREENSHOTHELPER_H_INCLUDED
      2 #define SCREENSHOTHELPER_H_INCLUDED
      3 
      4 #if ! (defined(LINUX) || defined(__linux__))
      5 
      6 // weird hack, but I need acces to some private
      7 // member variables from foleys::Container
      8 // @TODO: figure out a better way!
      9 #define _XKEYCHECK_H
     10 #define private public
     11 #include <JuceHeader.h>
     12 #undef private
     13 
     14 class ScreenshotHelper : public ConsoleApplication::Command
     15 {
     16 public:
     17     ScreenshotHelper();
     18 
     19 private:
     20     /** Take a series of screenshots used for the plugin documentation */
     21     void takeScreenshots (const ArgumentList& args);
     22 
     23     /** Take a single screenshot for a given rectangle */
     24     void screenshotForBounds (Component* editor, Rectangle<int> bounds, const File& dir, const String& filename);
     25 
     26     /** Takes a screenshot from an individual tab of a TabbedComponent */
     27     void screenshotTab (foleys::Container* container, int tabIdx, const File& dir);
     28 
     29     JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ScreenshotHelper)
     30 };
     31 
     32 #endif // defined (LINUX) || defined (__linux__)
     33 #endif // SCREENSHOTHELPER_H_INCLUDED