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