annotate Source/GUI/MappingListItem.h @ 56:b4a2d2ae43cf tip

merge
author Andrew McPherson <andrewm@eecs.qmul.ac.uk>
date Fri, 23 Nov 2018 15:48:14 +0000
parents 85577160a0d4
children
rev   line source
andrewm@0 1 /*
andrewm@0 2 ==============================================================================
andrewm@0 3
andrewm@0 4 This is an automatically generated GUI class created by the Introjucer!
andrewm@0 5
andrewm@0 6 Be careful when adding custom code to these files, as only the code within
andrewm@0 7 the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded
andrewm@0 8 and re-saved.
andrewm@0 9
andrewm@0 10 Created with Introjucer version: 3.1.0
andrewm@0 11
andrewm@0 12 ------------------------------------------------------------------------------
andrewm@0 13
andrewm@0 14 The Introjucer is part of the JUCE library - "Jules' Utility Class Extensions"
andrewm@0 15 Copyright 2004-13 by Raw Material Software Ltd.
andrewm@0 16
andrewm@0 17 ==============================================================================
andrewm@0 18 */
andrewm@0 19
andrewm@0 20 #ifndef __JUCE_HEADER_8369B097DBF9195A__
andrewm@0 21 #define __JUCE_HEADER_8369B097DBF9195A__
andrewm@0 22
andrewm@0 23 //[Headers] -- You can add your own extra header files here --
andrewm@0 24 #ifndef TOUCHKEYS_NO_GUI
andrewm@0 25
andrewm@0 26 #include "JuceHeader.h"
andrewm@0 27 #include "../Mappings/MappingFactory.h"
andrewm@0 28
andrewm@0 29 class MappingListComponent;
andrewm@0 30 //[/Headers]
andrewm@0 31
andrewm@0 32
andrewm@0 33
andrewm@0 34 //==============================================================================
andrewm@0 35 /**
andrewm@0 36 //[Comments]
andrewm@0 37 An auto-generated component, created by the Introjucer.
andrewm@0 38
andrewm@0 39 Describe your class and how it works here!
andrewm@0 40 //[/Comments]
andrewm@0 41 */
andrewm@0 42 class MappingListItem : public Component,
andrewm@0 43 public ButtonListener
andrewm@0 44 {
andrewm@0 45 public:
andrewm@0 46 //==============================================================================
andrewm@0 47 MappingListItem (MappingListComponent& listComponent);
andrewm@0 48 ~MappingListItem();
andrewm@0 49
andrewm@0 50 //==============================================================================
andrewm@0 51 //[UserMethods] -- You can add your own custom methods in this section.
andrewm@0 52 static void alertBoxResultChosen(int result, MappingListItem *item);
andrewm@0 53 void deleteMapping();
andrewm@0 54
andrewm@0 55 MappingFactory* mappingFactory() { return factory_; }
andrewm@0 56 void setMappingFactory(MappingFactory *factory);
andrewm@0 57 void synchronize();
andrewm@0 58 //[/UserMethods]
andrewm@0 59
andrewm@0 60 void paint (Graphics& g);
andrewm@0 61 void resized();
andrewm@0 62 void buttonClicked (Button* buttonThatWasClicked);
andrewm@0 63
andrewm@0 64
andrewm@0 65
andrewm@0 66 private:
andrewm@0 67 //[UserVariables] -- You can add your own custom variables in this section.
andrewm@0 68 MappingFactory *factory_;
andrewm@0 69 MappingListComponent& listComponent_;
andrewm@0 70 //[/UserVariables]
andrewm@0 71
andrewm@0 72 //==============================================================================
andrewm@0 73 ScopedPointer<ToggleButton> bypassToggleButton;
andrewm@0 74 ScopedPointer<TextButton> showDetailsButton;
andrewm@0 75 ScopedPointer<Label> mappingTypeLabel;
andrewm@0 76 ScopedPointer<MappingEditorComponent> mappingShortEditorComponent;
andrewm@0 77 ScopedPointer<Label> noSettingsLabel;
andrewm@0 78 ScopedPointer<TextButton> deleteButton;
andrewm@0 79 Path internalPath1;
andrewm@0 80 Path internalPath2;
andrewm@0 81
andrewm@0 82
andrewm@0 83 //==============================================================================
andrewm@0 84 JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (MappingListItem)
andrewm@0 85 };
andrewm@0 86
andrewm@0 87 //[EndFile] You can add extra defines here...
andrewm@0 88 #endif // TOUCHKEYS_NO_GUI
andrewm@0 89 //[/EndFile]
andrewm@0 90
andrewm@0 91 #endif // __JUCE_HEADER_8369B097DBF9195A__