WebRadioApp  0.1
_ApplicationStations.h
Go to the documentation of this file.
1 /*******************************************************************************
2 *
3 * E M B E D D E D W I Z A R D P R O J E C T
4 *
5 * Copyright (c) TARA Systems GmbH
6 * written by Paul Banach and Manfred Schweyer
7 *
8 ********************************************************************************
9 *
10 * This file was generated automatically by Embedded Wizard Studio.
11 *
12 * Please do not make any modifications of this file! The modifications are lost
13 * when the file is generated again by Embedded Wizard Studio!
14 *
15 * The template of this heading text can be found in the file 'head.ewt' in the
16 * directory 'Platforms' of your Embedded Wizard installation directory. If you
17 * wish to adapt this text, please copy the template file 'head.ewt' into your
18 * project directory and edit the copy only. Please avoid any modifications of
19 * the original template file!
20 *
21 * Version : 10.00
22 * Profile : STM32H747
23 * Platform : STM.STM32.RGB565
24 *
25 *******************************************************************************/
26 
27 #ifndef _ApplicationStations_H
28 #define _ApplicationStations_H
29 
30 #ifdef __cplusplus
31  extern "C"
32  {
33 #endif
34 
35 #include "ewrte.h"
36 #if EW_RTE_VERSION != 0x000A0000
37  #error Wrong version of Embedded Wizard Runtime Environment.
38 #endif
39 
40 #include "ewgfx.h"
41 #if EW_GFX_VERSION != 0x000A0000
42  #error Wrong version of Embedded Wizard Graphics Engine.
43 #endif
44 
45 #include "_CoreGroup.h"
46 #include "_CorePropertyObserver.h"
47 #include "_WidgetSetToggleButton.h"
48 
49 /* Forward declaration of the class Application::Stations */
50 #ifndef _ApplicationStations_
51  EW_DECLARE_CLASS( ApplicationStations )
52 #define _ApplicationStations_
53 #endif
54 
55 /* Forward declaration of the class Core::DialogContext */
56 #ifndef _CoreDialogContext_
57  EW_DECLARE_CLASS( CoreDialogContext )
58 #define _CoreDialogContext_
59 #endif
60 
61 /* Forward declaration of the class Core::KeyPressHandler */
62 #ifndef _CoreKeyPressHandler_
63  EW_DECLARE_CLASS( CoreKeyPressHandler )
64 #define _CoreKeyPressHandler_
65 #endif
66 
67 /* Forward declaration of the class Core::LayoutContext */
68 #ifndef _CoreLayoutContext_
69  EW_DECLARE_CLASS( CoreLayoutContext )
70 #define _CoreLayoutContext_
71 #endif
72 
73 /* Forward declaration of the class Core::TaskQueue */
74 #ifndef _CoreTaskQueue_
75  EW_DECLARE_CLASS( CoreTaskQueue )
76 #define _CoreTaskQueue_
77 #endif
78 
79 /* Forward declaration of the class Core::View */
80 #ifndef _CoreView_
81  EW_DECLARE_CLASS( CoreView )
82 #define _CoreView_
83 #endif
84 
85 /* Forward declaration of the class Effects::Fader */
86 #ifndef _EffectsFader_
88 #define _EffectsFader_
89 #endif
90 
91 /* Forward declaration of the class Graphics::Canvas */
92 #ifndef _GraphicsCanvas_
93  EW_DECLARE_CLASS( GraphicsCanvas )
94 #define _GraphicsCanvas_
95 #endif
96 
97 
98 /* It is a component that allocates all the stations interface for the radio */
99 EW_DEFINE_FIELDS( ApplicationStations, CoreGroup )
100  EW_OBJECT ( a0, WidgetSetToggleButton )
101  EW_OBJECT ( a1, WidgetSetToggleButton )
102  EW_OBJECT ( a2, WidgetSetToggleButton )
103  EW_OBJECT ( a3, WidgetSetToggleButton )
104  EW_OBJECT ( a4, WidgetSetToggleButton )
105  EW_OBJECT ( a5, WidgetSetToggleButton )
106  EW_OBJECT ( a6, WidgetSetToggleButton )
107  EW_OBJECT ( a7, WidgetSetToggleButton )
108  EW_OBJECT ( a8, WidgetSetToggleButton )
109  EW_OBJECT ( b0, WidgetSetToggleButton )
110  EW_OBJECT ( b1, WidgetSetToggleButton )
111  EW_OBJECT ( b2, WidgetSetToggleButton )
112  EW_OBJECT ( b3, WidgetSetToggleButton )
113  EW_OBJECT ( b4, WidgetSetToggleButton )
114  EW_OBJECT ( b5, WidgetSetToggleButton )
115  EW_OBJECT ( b6, WidgetSetToggleButton )
116  EW_OBJECT ( b7, WidgetSetToggleButton )
117  EW_OBJECT ( b8, WidgetSetToggleButton )
118  EW_OBJECT ( c0, WidgetSetToggleButton )
119  EW_OBJECT ( c1, WidgetSetToggleButton )
120  EW_OBJECT ( c2, WidgetSetToggleButton )
121  EW_OBJECT ( c3, WidgetSetToggleButton )
122  EW_OBJECT ( c4, WidgetSetToggleButton )
123  EW_OBJECT ( c5, WidgetSetToggleButton )
124  EW_OBJECT ( c6, WidgetSetToggleButton )
125  EW_OBJECT ( c7, WidgetSetToggleButton )
126  EW_OBJECT ( c8, WidgetSetToggleButton )
127  EW_OBJECT ( d0, WidgetSetToggleButton )
128  EW_OBJECT ( d1, WidgetSetToggleButton )
129  EW_OBJECT ( d2, WidgetSetToggleButton )
130  EW_OBJECT ( d3, WidgetSetToggleButton )
131  EW_OBJECT ( d4, WidgetSetToggleButton )
132  EW_OBJECT ( d5, WidgetSetToggleButton )
133  EW_OBJECT ( d6, WidgetSetToggleButton )
134  EW_OBJECT ( d7, WidgetSetToggleButton )
135  EW_OBJECT ( d8, WidgetSetToggleButton )
136  EW_OBJECT ( e0, WidgetSetToggleButton )
137  EW_OBJECT ( e1, WidgetSetToggleButton )
138  EW_OBJECT ( e2, WidgetSetToggleButton )
139  EW_OBJECT ( e3, WidgetSetToggleButton )
140  EW_OBJECT ( e4, WidgetSetToggleButton )
141  EW_OBJECT ( e5, WidgetSetToggleButton )
142  EW_OBJECT ( e6, WidgetSetToggleButton )
143  EW_OBJECT ( e7, WidgetSetToggleButton )
144  EW_OBJECT ( e8, WidgetSetToggleButton )
145  EW_OBJECT ( f0, WidgetSetToggleButton )
146  EW_OBJECT ( f1, WidgetSetToggleButton )
147  EW_OBJECT ( f2, WidgetSetToggleButton )
148  EW_OBJECT ( f3, WidgetSetToggleButton )
149  EW_OBJECT ( f4, WidgetSetToggleButton )
150  EW_OBJECT ( f5, WidgetSetToggleButton )
151  EW_OBJECT ( f6, WidgetSetToggleButton )
152  EW_OBJECT ( f7, WidgetSetToggleButton )
153  EW_OBJECT ( f8, WidgetSetToggleButton )
154  EW_OBJECT ( StationsObserver, CorePropertyObserver )
155 EW_END_OF_FIELDS( ApplicationStations )
156 
157 /* Virtual Method Table (VMT) for the class : 'Application::Stations' */
158 EW_DEFINE_METHODS( ApplicationStations, CoreGroup )
159  EW_METHOD( initLayoutContext, void )( CoreRectView _this, XRect aBounds, CoreOutline
160  aOutline )
161  EW_METHOD( GetRoot, CoreRoot )( CoreView _this )
162  EW_METHOD( Draw, void )( CoreGroup _this, GraphicsCanvas aCanvas,
164  EW_METHOD( HandleEvent, XObject )( CoreView _this, CoreEvent aEvent )
165  EW_METHOD( CursorHitTest, CoreCursorHit )( CoreGroup _this, XRect aArea, XInt32
166  aFinger, XInt32 aStrikeCount, CoreView aDedicatedView, XSet aRetargetReason )
167  EW_METHOD( ArrangeView, XPoint )( CoreRectView _this, XRect aBounds, XEnum
168  aFormation )
169  EW_METHOD( MoveView, void )( CoreRectView _this, XPoint aOffset, XBool
170  aFastMove )
171  EW_METHOD( GetExtent, XRect )( CoreRectView _this )
172  EW_METHOD( ChangeViewState, void )( CoreGroup _this, XSet aSetState, XSet aClearState )
173  EW_METHOD( OnSetBounds, void )( CoreGroup _this, XRect value )
174  EW_METHOD( drawContent, void )( CoreGroup _this, GraphicsCanvas aCanvas,
176  EW_METHOD( OnSetFocus, void )( CoreGroup _this, CoreView value )
177  EW_METHOD( OnSetBuffered, void )( CoreGroup _this, XBool value )
178  EW_METHOD( OnSetOpacity, void )( CoreGroup _this, XInt32 value )
179  EW_METHOD( IsDialog, XBool )( CoreGroup _this, XBool aRecursive )
180  EW_METHOD( DispatchEvent, XObject )( CoreGroup _this, CoreEvent aEvent )
181  EW_METHOD( BroadcastEvent, XObject )( CoreGroup _this, CoreEvent aEvent, XSet
182  aFilter )
183  EW_METHOD( UpdateLayout, void )( CoreGroup _this, XPoint aSize )
184  EW_METHOD( UpdateViewState, void )( CoreGroup _this, XSet aState )
185  EW_METHOD( InvalidateArea, void )( CoreGroup _this, XRect aArea )
186 EW_END_OF_METHODS( ApplicationStations )
187 
188 /* This method update the IDs of the buttons */
189 void ApplicationStations_onStationsEvent( ApplicationStations _this, XObject sender );
190 
191 /* This is a method called by the toggle buttons of the station grid which performs
192  the playing. */
193 void ApplicationStations_StationPlay( ApplicationStations _this, XObject sender );
194 
195 /* This method update the state of the buttons */
196 void ApplicationStations_UpdateButtons( ApplicationStations _this, XObject sender );
197 
198 #ifdef __cplusplus
199  }
200 #endif
201 
202 #endif /* _ApplicationStations_H */
203 
204 /* Embedded Wizard */
EW_METHOD
EW_METHOD(initLayoutContext, void)(CoreRectView _this
ewrte.h
_CoreGroup.h
EW_END_OF_FIELDS
#define EW_END_OF_FIELDS(aClass)
Definition: ewrte.h:460
EW_DECLARE_CLASS
#define EW_DECLARE_CLASS(aClass)
Definition: ewrte.h:393
ApplicationStations_onStationsEvent
void ApplicationStations_onStationsEvent(ApplicationStations _this, XObject sender)
Definition: Application.c:2113
ewgfx.h
CoreCursorHit
XRect CoreOutline aOutline CoreCursorHit(CoreGroup _this, XRect aArea, XInt32 aFinger, XInt32 aStrikeCount, CoreView aDedicatedView, XSet aRetargetReason) EW_METHOD(ArrangeView
_obj_XObject
Definition: ewrte.h:281
ApplicationStations_StationPlay
void ApplicationStations_StationPlay(ApplicationStations _this, XObject sender)
Definition: Application.c:2338
_WidgetSetToggleButton.h
aOutline
XRect CoreOutline aOutline XRect CoreOutline aOutline
Definition: _CoreQuadView.h:109
XInt32
signed long XInt32
Definition: ewrte.h:1586
value
XRect CoreOutline aOutline XPoint value
Definition: _ViewsWarpView.h:137
aBounds
XRect aBounds
Definition: _ApplicationStations.h:159
_CorePropertyObserver.h
XBool
char XBool
Definition: ewrte.h:1592
XEnum
unsigned long XEnum
Definition: ewrte.h:1593
EW_DEFINE_METHODS
#define EW_DEFINE_METHODS(aClass, aSuperClass)
Definition: ewrte.h:524
XRect
Definition: ewrte.h:1639
ApplicationStations_UpdateButtons
void ApplicationStations_UpdateButtons(ApplicationStations _this, XObject sender)
Definition: Application.c:2410
sender
XRect CoreOutline aOutline XObject sender
Definition: _ApplicationStations.h:189
EffectsFader
EffectsFader(EffectsShowHideTransition _this) EW_METHOD(CreateRestoreFader
XSet
unsigned long XSet
Definition: ewrte.h:1594
aOpacity
XRect CoreOutline aOutline GraphicsCanvas XRect XPoint XInt32 aOpacity
Definition: _CoreOutline.h:172
aClip
XRect CoreOutline aOutline GraphicsCanvas XRect aClip
Definition: _CoreOutline.h:171
XPoint
Definition: ewrte.h:1616
aOffset
XRect CoreOutline aOutline GraphicsCanvas XRect XPoint aOffset
Definition: _CoreOutline.h:172
EW_OBJECT
#define EW_OBJECT(aName, aObjectClass)
Definition: ewrte.h:468
aCanvas
XRect CoreOutline aOutline GraphicsCanvas aCanvas
Definition: _CoreOutline.h:171
EW_END_OF_METHODS
#define EW_END_OF_METHODS(aClass)
Definition: ewrte.h:539
aBlend
XRect CoreOutline aOutline GraphicsCanvas XRect XPoint XInt32 XBool aBlend
Definition: _CoreOutline.h:172
EW_DEFINE_FIELDS
#define EW_DEFINE_FIELDS(aClass, aSuperClass)
Definition: ewrte.h:451