License.h 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. /*
  2. ==============================================================================
  3. This is an automatically generated GUI class created by the Introjucer!
  4. Be careful when adding custom code to these files, as only the code within
  5. the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded
  6. and re-saved.
  7. Created with Introjucer version: 3.1.1
  8. ------------------------------------------------------------------------------
  9. The Introjucer is part of the JUCE library - "Jules' Utility Class Extensions"
  10. Copyright 2004-13 by Raw Material Software Ltd.
  11. ==============================================================================
  12. */
  13. #ifndef _LICENSE_H_
  14. #define _LICENSE_H_
  15. //[Headers] -- You can add your own extra header files here --
  16. #include "JuceHeader.h"
  17. //[/Headers]
  18. //==============================================================================
  19. /**
  20. //[Comments]
  21. License is the per-server license presentation and configuration "screen"
  22. //[/Comments]
  23. */
  24. class License : public Component,
  25. public Value::Listener,
  26. public Button::Listener
  27. {
  28. public:
  29. //==============================================================================
  30. License (Value is_agreed, Value always_agree);
  31. ~License();
  32. //==============================================================================
  33. //[UserMethods] -- You can add your own custom methods in this section.
  34. friend class LinJam ;
  35. //[/UserMethods]
  36. void paint (Graphics& g);
  37. void resized();
  38. void buttonClicked (Button* buttonThatWasClicked);
  39. private:
  40. //[UserVariables] -- You can add your own custom variables in this section.
  41. Value isAgreed ;
  42. Value alwaysAgree ;
  43. void valueChanged( Value& a_value) override ;
  44. void setLicenseText(String license_text) ;
  45. //[/UserVariables]
  46. //==============================================================================
  47. ScopedPointer<TextEditor> licenseTextEditor;
  48. ScopedPointer<TextButton> cancelButton;
  49. ScopedPointer<TextButton> agreeButton;
  50. ScopedPointer<ToggleButton> alwaysButton;
  51. //==============================================================================
  52. JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (License)
  53. };
  54. //[EndFile] You can add extra defines here...
  55. //[/EndFile]
  56. #endif // _LICENSE_H_