/* ============================================================================== This file was auto-generated! ============================================================================== */ #ifndef MAINCOMPONENT_H_INCLUDED #define MAINCOMPONENT_H_INCLUDED #include "../JuceLibraryCode/JuceHeader.h" //============================================================================== /* This component lives inside our window, and this is where you should put all your controls and content. */ class MainContentComponent : public Component { public: //============================================================================== MainContentComponent (String params) { addAndMakeVisible (console); console.setMultiLine (true); console.insertTextAtCaret (params); setSize (600, 400); } ~MainContentComponent() {} void paint (Graphics& g) override { g.fillAll (Colours::lightgrey); } void resized() override { console.setBounds (getLocalBounds().reduced (20)); } TextEditor console; private: //============================================================================== JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (MainContentComponent) }; #endif // MAINCOMPONENT_H_INCLUDED