This commit is contained in:
thomas committed 2026-10-18 14:06:40 +02:00
commit 2c2202e60d
2491 files changed
+1295990

No files matched your search

@@ -0,0 +1,83 @@
/*********************************************************************************/
/********** THIS FILE IS GENERATED BY TOUCHGFX DESIGNER, DO NOT MODIFY ***********/
/*********************************************************************************/
#ifndef FRONTENDAPPLICATIONBASE_HPP
#define FRONTENDAPPLICATIONBASE_HPP
#include <mvp/MVPApplication.hpp>
#include <gui/model/Model.hpp>
class FrontendHeap;
class FrontendApplicationBase : public touchgfx::MVPApplication
{
public:
FrontendApplicationBase(Model& m, FrontendHeap& heap);
virtual ~FrontendApplicationBase() { }
virtual void changeToStartScreen()
{
gotoInitScreenScreenNoTransition();
}
// InitScreen
void gotoInitScreenScreenNoTransition();
// Overview
void gotoOverviewScreenNoTransition();
// Overdrive
void gotoOverdriveScreenNoTransition();
// Octaver
void gotoOctaverScreenNoTransition();
// Saturation
void gotoSaturationScreenNoTransition();
// Echo
void gotoEchoScreenNoTransition();
// Reverb
void gotoReverbScreenNoTransition();
// Equalizer
void gotoEqualizerScreenNoTransition();
// Oscillo
void gotoOscilloScreenNoTransition();
protected:
touchgfx::Callback<FrontendApplicationBase> transitionCallback;
FrontendHeap& frontendHeap;
Model& model;
// InitScreen
void gotoInitScreenScreenNoTransitionImpl();
// Overview
void gotoOverviewScreenNoTransitionImpl();
// Overdrive
void gotoOverdriveScreenNoTransitionImpl();
// Octaver
void gotoOctaverScreenNoTransitionImpl();
// Saturation
void gotoSaturationScreenNoTransitionImpl();
// Echo
void gotoEchoScreenNoTransitionImpl();
// Reverb
void gotoReverbScreenNoTransitionImpl();
// Equalizer
void gotoEqualizerScreenNoTransitionImpl();
// Oscillo
void gotoOscilloScreenNoTransitionImpl();
};
#endif // FRONTENDAPPLICATIONBASE_HPP
@@ -0,0 +1,119 @@
/*********************************************************************************/
/********** THIS FILE IS GENERATED BY TOUCHGFX DESIGNER, DO NOT MODIFY ***********/
/*********************************************************************************/
#ifndef FRONTENDHEAPBASE_HPP
#define FRONTENDHEAPBASE_HPP
#include <common/Meta.hpp>
#include <common/Partition.hpp>
#include <mvp/MVPHeap.hpp>
#include <touchgfx/transitions/NoTransition.hpp>
#include <gui/common/FrontendApplication.hpp>
#include <gui/model/Model.hpp>
#include <gui/initscreen_screen/InitScreenView.hpp>
#include <gui/initscreen_screen/InitScreenPresenter.hpp>
#include <gui/overview_screen/OverviewView.hpp>
#include <gui/overview_screen/OverviewPresenter.hpp>
#include <gui/overdrive_screen/OverdriveView.hpp>
#include <gui/overdrive_screen/OverdrivePresenter.hpp>
#include <gui/octaver_screen/OctaverView.hpp>
#include <gui/octaver_screen/OctaverPresenter.hpp>
#include <gui/saturation_screen/SaturationView.hpp>
#include <gui/saturation_screen/SaturationPresenter.hpp>
#include <gui/echo_screen/EchoView.hpp>
#include <gui/echo_screen/EchoPresenter.hpp>
#include <gui/reverb_screen/ReverbView.hpp>
#include <gui/reverb_screen/ReverbPresenter.hpp>
#include <gui/equalizer_screen/EqualizerView.hpp>
#include <gui/equalizer_screen/EqualizerPresenter.hpp>
#include <gui/oscillo_screen/OscilloView.hpp>
#include <gui/oscillo_screen/OscilloPresenter.hpp>
/**
* This class provides the memory that shall be used for memory allocations
* in the frontend. A single instance of the FrontendHeap is allocated once (in heap
* memory), and all other frontend objects such as views, presenters and data model are
* allocated within the scope of this FrontendHeap. As such, the RAM usage of the entire
* user interface is sizeof(FrontendHeap).
*
* @note The FrontendHeap reserves memory for the most memory-consuming presenter and
* view only. The largest of these classes are determined at compile-time using template
* magic. As such, it is important to add all presenters, views and transitions to the
* type lists in this class.
*
*/
class FrontendHeapBase : public touchgfx::MVPHeap
{
public:
/**
* A list of all view types. Must end with meta::Nil.
* @note All view types used in the application MUST be added to this list!
*/
typedef touchgfx::meta::TypeList< InitScreenView,
touchgfx::meta::TypeList< OverviewView,
touchgfx::meta::TypeList< OverdriveView,
touchgfx::meta::TypeList< OctaverView,
touchgfx::meta::TypeList< SaturationView,
touchgfx::meta::TypeList< EchoView,
touchgfx::meta::TypeList< ReverbView,
touchgfx::meta::TypeList< EqualizerView,
touchgfx::meta::TypeList< OscilloView,
touchgfx::meta::Nil > > > > > > > >
> GeneratedViewTypes;
/**
* Determine (compile time) the View type of largest size.
*/
typedef touchgfx::meta::select_type_maxsize< GeneratedViewTypes >::type MaxGeneratedViewType;
/**
* A list of all presenter types. Must end with meta::Nil.
* @note All presenter types used in the application MUST be added to this list!
*/
typedef touchgfx::meta::TypeList< InitScreenPresenter,
touchgfx::meta::TypeList< OverviewPresenter,
touchgfx::meta::TypeList< OverdrivePresenter,
touchgfx::meta::TypeList< OctaverPresenter,
touchgfx::meta::TypeList< SaturationPresenter,
touchgfx::meta::TypeList< EchoPresenter,
touchgfx::meta::TypeList< ReverbPresenter,
touchgfx::meta::TypeList< EqualizerPresenter,
touchgfx::meta::TypeList< OscilloPresenter,
touchgfx::meta::Nil > > > > > > > >
> GeneratedPresenterTypes;
/**
* Determine (compile time) the Presenter type of largest size.
*/
typedef touchgfx::meta::select_type_maxsize< GeneratedPresenterTypes >::type MaxGeneratedPresenterType;
/**
* A list of all transition types. Must end with meta::Nil.
* @note All transition types used in the application MUST be added to this list!
*/
typedef touchgfx::meta::TypeList< touchgfx::NoTransition,
touchgfx::meta::Nil
> GeneratedTransitionTypes;
/**
* Determine (compile time) the Transition type of largest size.
*/
typedef touchgfx::meta::select_type_maxsize< GeneratedTransitionTypes >::type MaxGeneratedTransitionType;
virtual void gotoStartScreen(FrontendApplication& app)
{
app.gotoInitScreenScreenNoTransition();
}
protected:
FrontendHeapBase(touchgfx::AbstractPartition& presenters, touchgfx::AbstractPartition& views, touchgfx::AbstractPartition& transitions, FrontendApplication& app)
: MVPHeap(presenters, views, transitions, app)
{
}
};
#endif // FRONTENDHEAPBASE_HPP
@@ -0,0 +1,11 @@
/*********************************************************************************/
/********** THIS FILE IS GENERATED BY TOUCHGFX DESIGNER, DO NOT MODIFY ***********/
/*********************************************************************************/
#ifndef SIMCONSTANTS_HPP
#define SIMCONSTANTS_HPP
static unsigned short SIM_WIDTH = 800;
static unsigned short SIM_HEIGHT = 480;
#define SIM_TITLE "CelloEffects"
#endif // SIMCONSTANTS_HPP
@@ -0,0 +1,82 @@
/*********************************************************************************/
/********** THIS FILE IS GENERATED BY TOUCHGFX DESIGNER, DO NOT MODIFY ***********/
/*********************************************************************************/
#ifndef ECHOVIEWBASE_HPP
#define ECHOVIEWBASE_HPP
#include <gui/common/FrontendApplication.hpp>
#include <mvp/View.hpp>
#include <gui/echo_screen/EchoPresenter.hpp>
#include <touchgfx/widgets/Box.hpp>
#include <touchgfx/widgets/Image.hpp>
#include <touchgfx/mixins/Draggable.hpp>
#include <touchgfx/widgets/TextArea.hpp>
#include <touchgfx/containers/Slider.hpp>
#include <touchgfx/widgets/ButtonWithLabel.hpp>
#include <touchgfx/widgets/ToggleButton.hpp>
class EchoViewBase : public touchgfx::View<EchoPresenter>
{
public:
EchoViewBase();
virtual ~EchoViewBase();
virtual void setupScreen();
/*
* Virtual Action Handlers
*/
virtual void toggleClicked()
{
// Override and implement this function in Echo
}
virtual void sliderDelaiChanged(int value)
{
// Override and implement this function in Echo
}
virtual void sliderFeedbackChanged(int value)
{
// Override and implement this function in Echo
}
virtual void sliderMixChanged(int value)
{
// Override and implement this function in Echo
}
protected:
FrontendApplication& application() {
return *static_cast<FrontendApplication*>(touchgfx::Application::getInstance());
}
/*
* Member Declarations
*/
touchgfx::Box __background;
touchgfx::Image image1;
touchgfx::Draggable< touchgfx::Box > box1;
touchgfx::TextArea textArea2;
touchgfx::TextArea textArea2_1;
touchgfx::TextArea textArea2_2;
touchgfx::Slider slider1;
touchgfx::Slider slider2;
touchgfx::ButtonWithLabel buttonWithLabel1;
touchgfx::Slider slider3;
touchgfx::ToggleButton toggleButton1;
touchgfx::TextArea textArea1;
private:
/*
* Callback Declarations
*/
touchgfx::Callback<EchoViewBase, const touchgfx::AbstractButton&> buttonCallback;
touchgfx::Callback<EchoViewBase, const touchgfx::Slider&, int> sliderValueChangedCallback;
/*
* Callback Handler Declarations
*/
void buttonCallbackHandler(const touchgfx::AbstractButton& src);
void sliderValueChangedCallbackHandler(const touchgfx::Slider& src, int value);
};
#endif // ECHOVIEWBASE_HPP
@@ -0,0 +1,123 @@
/*********************************************************************************/
/********** THIS FILE IS GENERATED BY TOUCHGFX DESIGNER, DO NOT MODIFY ***********/
/*********************************************************************************/
#ifndef EQUALIZERVIEWBASE_HPP
#define EQUALIZERVIEWBASE_HPP
#include <gui/common/FrontendApplication.hpp>
#include <mvp/View.hpp>
#include <gui/equalizer_screen/EqualizerPresenter.hpp>
#include <touchgfx/widgets/Box.hpp>
#include <touchgfx/widgets/Image.hpp>
#include <touchgfx/containers/Slider.hpp>
#include <touchgfx/widgets/ButtonWithLabel.hpp>
#include <touchgfx/widgets/TextArea.hpp>
#include <touchgfx/widgets/ToggleButton.hpp>
class EqualizerViewBase : public touchgfx::View<EqualizerPresenter>
{
public:
EqualizerViewBase();
virtual ~EqualizerViewBase();
virtual void setupScreen();
/*
* Virtual Action Handlers
*/
virtual void toggleClicked()
{
// Override and implement this function in Equalizer
}
virtual void sliderBand1Changed(int value)
{
// Override and implement this function in Equalizer
}
virtual void sliderBand2Changed(int value)
{
// Override and implement this function in Equalizer
}
virtual void sliderBand3Changed(int value)
{
// Override and implement this function in Equalizer
}
virtual void sliderBand4Changed(int value)
{
// Override and implement this function in Equalizer
}
virtual void sliderBand5Changed(int value)
{
// Override and implement this function in Equalizer
}
virtual void sliderBand6Changed(int value)
{
// Override and implement this function in Equalizer
}
virtual void sliderBand7Changed(int value)
{
// Override and implement this function in Equalizer
}
virtual void sliderBand8Changed(int value)
{
// Override and implement this function in Equalizer
}
virtual void sliderBand9Changed(int value)
{
// Override and implement this function in Equalizer
}
virtual void sliderBand10Changed(int value)
{
// Override and implement this function in Equalizer
}
protected:
FrontendApplication& application() {
return *static_cast<FrontendApplication*>(touchgfx::Application::getInstance());
}
/*
* Member Declarations
*/
touchgfx::Box __background;
touchgfx::Image image1;
touchgfx::Box box1;
touchgfx::Slider bandSlider1;
touchgfx::Slider bandSlider2;
touchgfx::Slider bandSlider3;
touchgfx::ButtonWithLabel buttonWithLabel1;
touchgfx::Slider bandSlider4;
touchgfx::Slider bandSlider5;
touchgfx::Slider bandSlider6;
touchgfx::Slider bandSlider7;
touchgfx::Slider bandSlider8;
touchgfx::Slider bandSlider9;
touchgfx::Slider bandSlider10;
touchgfx::TextArea textArea1;
touchgfx::TextArea textArea2;
touchgfx::TextArea textArea2_1;
touchgfx::TextArea textArea2_2;
touchgfx::TextArea textArea2_3;
touchgfx::TextArea textArea2_4;
touchgfx::TextArea textArea2_5;
touchgfx::TextArea textArea2_6;
touchgfx::TextArea textArea2_7;
touchgfx::TextArea textArea2_8;
touchgfx::TextArea textArea2_9;
touchgfx::ToggleButton toggleButton1;
private:
/*
* Callback Declarations
*/
touchgfx::Callback<EqualizerViewBase, const touchgfx::AbstractButton&> buttonCallback;
touchgfx::Callback<EqualizerViewBase, const touchgfx::Slider&, int> sliderValueChangedCallback;
/*
* Callback Handler Declarations
*/
void buttonCallbackHandler(const touchgfx::AbstractButton& src);
void sliderValueChangedCallbackHandler(const touchgfx::Slider& src, int value);
};
#endif // EQUALIZERVIEWBASE_HPP
@@ -0,0 +1,47 @@
/*********************************************************************************/
/********** THIS FILE IS GENERATED BY TOUCHGFX DESIGNER, DO NOT MODIFY ***********/
/*********************************************************************************/
#ifndef INITSCREENVIEWBASE_HPP
#define INITSCREENVIEWBASE_HPP
#include <gui/common/FrontendApplication.hpp>
#include <mvp/View.hpp>
#include <gui/initscreen_screen/InitScreenPresenter.hpp>
#include <touchgfx/widgets/Box.hpp>
#include <touchgfx/widgets/Image.hpp>
#include <touchgfx/widgets/ButtonWithIcon.hpp>
class InitScreenViewBase : public touchgfx::View<InitScreenPresenter>
{
public:
InitScreenViewBase();
virtual ~InitScreenViewBase();
virtual void setupScreen();
protected:
FrontendApplication& application() {
return *static_cast<FrontendApplication*>(touchgfx::Application::getInstance());
}
/*
* Member Declarations
*/
touchgfx::Box __background;
touchgfx::Image image1;
touchgfx::ButtonWithIcon buttonWithIcon1;
private:
/*
* Callback Declarations
*/
touchgfx::Callback<InitScreenViewBase, const touchgfx::AbstractButton&> buttonCallback;
/*
* Callback Handler Declarations
*/
void buttonCallbackHandler(const touchgfx::AbstractButton& src);
};
#endif // INITSCREENVIEWBASE_HPP
@@ -0,0 +1,93 @@
/*********************************************************************************/
/********** THIS FILE IS GENERATED BY TOUCHGFX DESIGNER, DO NOT MODIFY ***********/
/*********************************************************************************/
#ifndef OCTAVERVIEWBASE_HPP
#define OCTAVERVIEWBASE_HPP
#include <gui/common/FrontendApplication.hpp>
#include <mvp/View.hpp>
#include <gui/octaver_screen/OctaverPresenter.hpp>
#include <touchgfx/widgets/Box.hpp>
#include <touchgfx/widgets/Image.hpp>
#include <touchgfx/widgets/TextArea.hpp>
#include <touchgfx/containers/Slider.hpp>
#include <touchgfx/widgets/ToggleButton.hpp>
#include <touchgfx/widgets/ButtonWithLabel.hpp>
class OctaverViewBase : public touchgfx::View<OctaverPresenter>
{
public:
OctaverViewBase();
virtual ~OctaverViewBase();
virtual void setupScreen();
/*
* Virtual Action Handlers
*/
virtual void toggleClicked()
{
// Override and implement this function in Octaver
}
virtual void slider1Clicked(int value)
{
// Override and implement this function in Octaver
}
virtual void slider2Clicked(int value)
{
// Override and implement this function in Octaver
}
virtual void slider3Clicked(int value)
{
// Override and implement this function in Octaver
}
virtual void slider4Clicked(int value)
{
// Override and implement this function in Octaver
}
virtual void slider5Clicked(int value)
{
// Override and implement this function in Octaver
}
protected:
FrontendApplication& application() {
return *static_cast<FrontendApplication*>(touchgfx::Application::getInstance());
}
/*
* Member Declarations
*/
touchgfx::Box __background;
touchgfx::Image image1;
touchgfx::Box box1;
touchgfx::TextArea textArea2;
touchgfx::TextArea textArea3;
touchgfx::TextArea textArea4;
touchgfx::TextArea textArea5;
touchgfx::TextArea textArea6;
touchgfx::Slider slider1;
touchgfx::Slider slider2;
touchgfx::Slider slider3;
touchgfx::Slider slider4;
touchgfx::Slider slider5;
touchgfx::TextArea textArea1;
touchgfx::ToggleButton toggleButton1;
touchgfx::ButtonWithLabel buttonWithLabel1;
private:
/*
* Callback Declarations
*/
touchgfx::Callback<OctaverViewBase, const touchgfx::AbstractButton&> buttonCallback;
touchgfx::Callback<OctaverViewBase, const touchgfx::Slider&, int> sliderValueChangedCallback;
/*
* Callback Handler Declarations
*/
void buttonCallbackHandler(const touchgfx::AbstractButton& src);
void sliderValueChangedCallbackHandler(const touchgfx::Slider& src, int value);
};
#endif // OCTAVERVIEWBASE_HPP
@@ -0,0 +1,85 @@
/*********************************************************************************/
/********** THIS FILE IS GENERATED BY TOUCHGFX DESIGNER, DO NOT MODIFY ***********/
/*********************************************************************************/
#ifndef OSCILLOVIEWBASE_HPP
#define OSCILLOVIEWBASE_HPP
#include <gui/common/FrontendApplication.hpp>
#include <mvp/View.hpp>
#include <gui/oscillo_screen/OscilloPresenter.hpp>
#include <touchgfx/widgets/Box.hpp>
#include <touchgfx/widgets/Image.hpp>
#include <touchgfx/widgets/TextArea.hpp>
#include <touchgfx/widgets/ToggleButton.hpp>
#include <touchgfx/widgets/ButtonWithLabel.hpp>
#include <touchgfx/widgets/graph/Graph.hpp>
#include <touchgfx/widgets/graph/GraphElements.hpp>
#include <touchgfx/widgets/graph/GraphLabels.hpp>
#include <touchgfx/widgets/canvas/PainterRGB565.hpp>
#include <touchgfx/widgets/TextAreaWithWildcard.hpp>
class OscilloViewBase : public touchgfx::View<OscilloPresenter>
{
public:
OscilloViewBase();
virtual ~OscilloViewBase();
virtual void setupScreen();
/*
* Virtual Action Handlers
*/
virtual void toggleClicked()
{
// Override and implement this function in Oscillo
}
protected:
FrontendApplication& application() {
return *static_cast<FrontendApplication*>(touchgfx::Application::getInstance());
}
/*
* Member Declarations
*/
touchgfx::Box __background;
touchgfx::Image image1;
touchgfx::Box box1;
touchgfx::TextArea textArea1;
touchgfx::ToggleButton toggleButton1;
touchgfx::ButtonWithLabel buttonWithLabel1;
touchgfx::Graph<1024> graph1;
touchgfx::GraphElementGridX graph1MajorXAxisGrid;
touchgfx::GraphElementGridY graph1MajorYAxisGrid;
touchgfx::GraphLabelsX graph1MajorXAxisLabel;
touchgfx::GraphElementLine graph1Line1;
touchgfx::PainterRGB565 graph1Line1Painter;
touchgfx::Image image2;
touchgfx::TextAreaWithOneWildcard textArea2;
/*
* Wildcard Buffers
*/
static const uint16_t TEXTAREA2_SIZE = 10;
touchgfx::Unicode::UnicodeChar textArea2Buffer[TEXTAREA2_SIZE];
private:
/*
* Canvas Buffer Size
*/
static const uint32_t CANVAS_BUFFER_SIZE = 12000;
uint8_t canvasBuffer[CANVAS_BUFFER_SIZE];
/*
* Callback Declarations
*/
touchgfx::Callback<OscilloViewBase, const touchgfx::AbstractButton&> buttonCallback;
/*
* Callback Handler Declarations
*/
void buttonCallbackHandler(const touchgfx::AbstractButton& src);
};
#endif // OSCILLOVIEWBASE_HPP
@@ -0,0 +1,81 @@
/*********************************************************************************/
/********** THIS FILE IS GENERATED BY TOUCHGFX DESIGNER, DO NOT MODIFY ***********/
/*********************************************************************************/
#ifndef OVERDRIVEVIEWBASE_HPP
#define OVERDRIVEVIEWBASE_HPP
#include <gui/common/FrontendApplication.hpp>
#include <mvp/View.hpp>
#include <gui/overdrive_screen/OverdrivePresenter.hpp>
#include <touchgfx/widgets/Box.hpp>
#include <touchgfx/widgets/Image.hpp>
#include <touchgfx/widgets/ToggleButton.hpp>
#include <touchgfx/containers/Slider.hpp>
#include <touchgfx/widgets/ButtonWithLabel.hpp>
#include <touchgfx/widgets/TextArea.hpp>
class OverdriveViewBase : public touchgfx::View<OverdrivePresenter>
{
public:
OverdriveViewBase();
virtual ~OverdriveViewBase();
virtual void setupScreen();
/*
* Virtual Action Handlers
*/
virtual void toggleClicked()
{
// Override and implement this function in Overdrive
}
virtual void sliderDriveChanged(int value)
{
// Override and implement this function in Overdrive
}
virtual void sliderToneChanged(int value)
{
// Override and implement this function in Overdrive
}
virtual void sliderLevelChanged(int value)
{
// Override and implement this function in Overdrive
}
protected:
FrontendApplication& application() {
return *static_cast<FrontendApplication*>(touchgfx::Application::getInstance());
}
/*
* Member Declarations
*/
touchgfx::Box __background;
touchgfx::Image image1;
touchgfx::Box box1;
touchgfx::ToggleButton toggleButton1;
touchgfx::Slider slider1;
touchgfx::Slider slider2;
touchgfx::Slider slider3;
touchgfx::ButtonWithLabel buttonWithLabel1;
touchgfx::TextArea textArea1;
touchgfx::TextArea textArea2;
touchgfx::TextArea textArea2_1;
touchgfx::TextArea textArea2_2;
private:
/*
* Callback Declarations
*/
touchgfx::Callback<OverdriveViewBase, const touchgfx::AbstractButton&> buttonCallback;
touchgfx::Callback<OverdriveViewBase, const touchgfx::Slider&, int> sliderValueChangedCallback;
/*
* Callback Handler Declarations
*/
void buttonCallbackHandler(const touchgfx::AbstractButton& src);
void sliderValueChangedCallbackHandler(const touchgfx::Slider& src, int value);
};
#endif // OVERDRIVEVIEWBASE_HPP
@@ -0,0 +1,80 @@
/*********************************************************************************/
/********** THIS FILE IS GENERATED BY TOUCHGFX DESIGNER, DO NOT MODIFY ***********/
/*********************************************************************************/
#ifndef OVERVIEWVIEWBASE_HPP
#define OVERVIEWVIEWBASE_HPP
#include <gui/common/FrontendApplication.hpp>
#include <mvp/View.hpp>
#include <gui/overview_screen/OverviewPresenter.hpp>
#include <touchgfx/widgets/Box.hpp>
#include <touchgfx/widgets/Image.hpp>
#include <touchgfx/widgets/ButtonWithLabel.hpp>
#include <touchgfx/widgets/ToggleButton.hpp>
#include <touchgfx/containers/Slider.hpp>
#include <touchgfx/widgets/ScalableImage.hpp>
#include <touchgfx/widgets/RepeatButton.hpp>
class OverviewViewBase : public touchgfx::View<OverviewPresenter>
{
public:
OverviewViewBase();
virtual ~OverviewViewBase();
virtual void setupScreen();
/*
* Virtual Action Handlers
*/
virtual void toggleAudioOnOFF()
{
// Override and implement this function in Overview
}
virtual void slider1Changed(int value)
{
// Override and implement this function in Overview
}
virtual void repeatButtonClicked()
{
// Override and implement this function in Overview
}
protected:
FrontendApplication& application() {
return *static_cast<FrontendApplication*>(touchgfx::Application::getInstance());
}
/*
* Member Declarations
*/
touchgfx::Box __background;
touchgfx::Image image1;
touchgfx::Box box1;
touchgfx::ButtonWithLabel buttonWithLabel1;
touchgfx::ButtonWithLabel buttonWithLabel2;
touchgfx::ButtonWithLabel buttonWithLabel3;
touchgfx::ButtonWithLabel buttonWithLabel4;
touchgfx::ButtonWithLabel buttonWithLabel5;
touchgfx::ButtonWithLabel buttonWithLabel6;
touchgfx::ButtonWithLabel buttonWithLabel7;
touchgfx::ToggleButton toggleButton1;
touchgfx::Slider slider1;
touchgfx::ScalableImage scalableImage1;
touchgfx::RepeatButton repeatButton1;
private:
/*
* Callback Declarations
*/
touchgfx::Callback<OverviewViewBase, const touchgfx::AbstractButton&> buttonCallback;
touchgfx::Callback<OverviewViewBase, const touchgfx::Slider&, int> sliderValueChangedCallback;
/*
* Callback Handler Declarations
*/
void buttonCallbackHandler(const touchgfx::AbstractButton& src);
void sliderValueChangedCallbackHandler(const touchgfx::Slider& src, int value);
};
#endif // OVERVIEWVIEWBASE_HPP
@@ -0,0 +1,81 @@
/*********************************************************************************/
/********** THIS FILE IS GENERATED BY TOUCHGFX DESIGNER, DO NOT MODIFY ***********/
/*********************************************************************************/
#ifndef REVERBVIEWBASE_HPP
#define REVERBVIEWBASE_HPP
#include <gui/common/FrontendApplication.hpp>
#include <mvp/View.hpp>
#include <gui/reverb_screen/ReverbPresenter.hpp>
#include <touchgfx/widgets/Box.hpp>
#include <touchgfx/widgets/Image.hpp>
#include <touchgfx/widgets/TextArea.hpp>
#include <touchgfx/containers/Slider.hpp>
#include <touchgfx/widgets/ButtonWithLabel.hpp>
#include <touchgfx/widgets/ToggleButton.hpp>
class ReverbViewBase : public touchgfx::View<ReverbPresenter>
{
public:
ReverbViewBase();
virtual ~ReverbViewBase();
virtual void setupScreen();
/*
* Virtual Action Handlers
*/
virtual void toggleClicked()
{
// Override and implement this function in Reverb
}
virtual void sliderTailleChanged(int value)
{
// Override and implement this function in Reverb
}
virtual void sliderAmortiChanged(int value)
{
// Override and implement this function in Reverb
}
virtual void sliderMixChanged(int value)
{
// Override and implement this function in Reverb
}
protected:
FrontendApplication& application() {
return *static_cast<FrontendApplication*>(touchgfx::Application::getInstance());
}
/*
* Member Declarations
*/
touchgfx::Box __background;
touchgfx::Image image1;
touchgfx::Box box1;
touchgfx::TextArea textArea2;
touchgfx::TextArea textArea2_1;
touchgfx::TextArea textArea2_2;
touchgfx::Slider slider1;
touchgfx::Slider slider2;
touchgfx::Slider slider3;
touchgfx::TextArea textArea1;
touchgfx::ButtonWithLabel buttonWithLabel1;
touchgfx::ToggleButton toggleButton1;
private:
/*
* Callback Declarations
*/
touchgfx::Callback<ReverbViewBase, const touchgfx::AbstractButton&> buttonCallback;
touchgfx::Callback<ReverbViewBase, const touchgfx::Slider&, int> sliderValueChangedCallback;
/*
* Callback Handler Declarations
*/
void buttonCallbackHandler(const touchgfx::AbstractButton& src);
void sliderValueChangedCallbackHandler(const touchgfx::Slider& src, int value);
};
#endif // REVERBVIEWBASE_HPP
@@ -0,0 +1,75 @@
/*********************************************************************************/
/********** THIS FILE IS GENERATED BY TOUCHGFX DESIGNER, DO NOT MODIFY ***********/
/*********************************************************************************/
#ifndef SATURATIONVIEWBASE_HPP
#define SATURATIONVIEWBASE_HPP
#include <gui/common/FrontendApplication.hpp>
#include <mvp/View.hpp>
#include <gui/saturation_screen/SaturationPresenter.hpp>
#include <touchgfx/widgets/Box.hpp>
#include <touchgfx/widgets/Image.hpp>
#include <touchgfx/widgets/TextArea.hpp>
#include <touchgfx/containers/Slider.hpp>
#include <touchgfx/widgets/ToggleButton.hpp>
#include <touchgfx/widgets/ButtonWithLabel.hpp>
class SaturationViewBase : public touchgfx::View<SaturationPresenter>
{
public:
SaturationViewBase();
virtual ~SaturationViewBase();
virtual void setupScreen();
/*
* Virtual Action Handlers
*/
virtual void toggleClicked()
{
// Override and implement this function in Saturation
}
virtual void sliderDriveClicked(int value)
{
// Override and implement this function in Saturation
}
virtual void sliderLevelClicked(int value)
{
// Override and implement this function in Saturation
}
protected:
FrontendApplication& application() {
return *static_cast<FrontendApplication*>(touchgfx::Application::getInstance());
}
/*
* Member Declarations
*/
touchgfx::Box __background;
touchgfx::Image image1;
touchgfx::Box box1;
touchgfx::TextArea textArea2;
touchgfx::TextArea textArea2_1;
touchgfx::Slider slider1;
touchgfx::Slider slider2;
touchgfx::TextArea textArea1;
touchgfx::ToggleButton toggleButton1;
touchgfx::ButtonWithLabel buttonWithLabel1;
private:
/*
* Callback Declarations
*/
touchgfx::Callback<SaturationViewBase, const touchgfx::AbstractButton&> buttonCallback;
touchgfx::Callback<SaturationViewBase, const touchgfx::Slider&, int> sliderValueChangedCallback;
/*
* Callback Handler Declarations
*/
void buttonCallbackHandler(const touchgfx::AbstractButton& src);
void sliderValueChangedCallbackHandler(const touchgfx::Slider& src, int value);
};
#endif // SATURATIONVIEWBASE_HPP
@@ -0,0 +1,169 @@
/*********************************************************************************/
/********** THIS FILE IS GENERATED BY TOUCHGFX DESIGNER, DO NOT MODIFY ***********/
/*********************************************************************************/
#include <new>
#include <gui_generated/common/FrontendApplicationBase.hpp>
#include <gui/common/FrontendHeap.hpp>
#include <touchgfx/transitions/NoTransition.hpp>
#include <texts/TextKeysAndLanguages.hpp>
#include <touchgfx/Texts.hpp>
#include <touchgfx/hal/HAL.hpp>
#ifdef SIMULATOR
#include <platform/driver/lcd/LCD16bpp.hpp>
#endif
#include <gui/initscreen_screen/InitScreenView.hpp>
#include <gui/initscreen_screen/InitScreenPresenter.hpp>
#include <gui/overview_screen/OverviewView.hpp>
#include <gui/overview_screen/OverviewPresenter.hpp>
#include <gui/overdrive_screen/OverdriveView.hpp>
#include <gui/overdrive_screen/OverdrivePresenter.hpp>
#include <gui/octaver_screen/OctaverView.hpp>
#include <gui/octaver_screen/OctaverPresenter.hpp>
#include <gui/saturation_screen/SaturationView.hpp>
#include <gui/saturation_screen/SaturationPresenter.hpp>
#include <gui/echo_screen/EchoView.hpp>
#include <gui/echo_screen/EchoPresenter.hpp>
#include <gui/reverb_screen/ReverbView.hpp>
#include <gui/reverb_screen/ReverbPresenter.hpp>
#include <gui/equalizer_screen/EqualizerView.hpp>
#include <gui/equalizer_screen/EqualizerPresenter.hpp>
#include <gui/oscillo_screen/OscilloView.hpp>
#include <gui/oscillo_screen/OscilloPresenter.hpp>
using namespace touchgfx;
FrontendApplicationBase::FrontendApplicationBase(Model& m, FrontendHeap& heap)
: touchgfx::MVPApplication(),
transitionCallback(),
frontendHeap(heap),
model(m)
{
touchgfx::HAL::getInstance()->setDisplayOrientation(touchgfx::ORIENTATION_LANDSCAPE);
touchgfx::Texts::setLanguage(GB);
#ifdef SIMULATOR
reinterpret_cast<touchgfx::LCD16bpp&>(touchgfx::HAL::lcd()).enableTextureMapperAll();
reinterpret_cast<touchgfx::LCD16bpp&>(touchgfx::HAL::lcd()).enableDecompressorL8_All();
reinterpret_cast<touchgfx::LCD16bpp&>(touchgfx::HAL::lcd()).enableDecompressorRGB();
#endif
}
/*
* Screen Transition Declarations
*/
// InitScreen
void FrontendApplicationBase::gotoInitScreenScreenNoTransition()
{
transitionCallback = touchgfx::Callback<FrontendApplicationBase>(this, &FrontendApplicationBase::gotoInitScreenScreenNoTransitionImpl);
pendingScreenTransitionCallback = &transitionCallback;
}
void FrontendApplicationBase::gotoInitScreenScreenNoTransitionImpl()
{
touchgfx::makeTransition<InitScreenView, InitScreenPresenter, touchgfx::NoTransition, Model >(&currentScreen, &currentPresenter, frontendHeap, &currentTransition, &model);
}
// Overview
void FrontendApplicationBase::gotoOverviewScreenNoTransition()
{
transitionCallback = touchgfx::Callback<FrontendApplicationBase>(this, &FrontendApplicationBase::gotoOverviewScreenNoTransitionImpl);
pendingScreenTransitionCallback = &transitionCallback;
}
void FrontendApplicationBase::gotoOverviewScreenNoTransitionImpl()
{
touchgfx::makeTransition<OverviewView, OverviewPresenter, touchgfx::NoTransition, Model >(&currentScreen, &currentPresenter, frontendHeap, &currentTransition, &model);
}
// Overdrive
void FrontendApplicationBase::gotoOverdriveScreenNoTransition()
{
transitionCallback = touchgfx::Callback<FrontendApplicationBase>(this, &FrontendApplicationBase::gotoOverdriveScreenNoTransitionImpl);
pendingScreenTransitionCallback = &transitionCallback;
}
void FrontendApplicationBase::gotoOverdriveScreenNoTransitionImpl()
{
touchgfx::makeTransition<OverdriveView, OverdrivePresenter, touchgfx::NoTransition, Model >(&currentScreen, &currentPresenter, frontendHeap, &currentTransition, &model);
}
// Octaver
void FrontendApplicationBase::gotoOctaverScreenNoTransition()
{
transitionCallback = touchgfx::Callback<FrontendApplicationBase>(this, &FrontendApplicationBase::gotoOctaverScreenNoTransitionImpl);
pendingScreenTransitionCallback = &transitionCallback;
}
void FrontendApplicationBase::gotoOctaverScreenNoTransitionImpl()
{
touchgfx::makeTransition<OctaverView, OctaverPresenter, touchgfx::NoTransition, Model >(&currentScreen, &currentPresenter, frontendHeap, &currentTransition, &model);
}
// Saturation
void FrontendApplicationBase::gotoSaturationScreenNoTransition()
{
transitionCallback = touchgfx::Callback<FrontendApplicationBase>(this, &FrontendApplicationBase::gotoSaturationScreenNoTransitionImpl);
pendingScreenTransitionCallback = &transitionCallback;
}
void FrontendApplicationBase::gotoSaturationScreenNoTransitionImpl()
{
touchgfx::makeTransition<SaturationView, SaturationPresenter, touchgfx::NoTransition, Model >(&currentScreen, &currentPresenter, frontendHeap, &currentTransition, &model);
}
// Echo
void FrontendApplicationBase::gotoEchoScreenNoTransition()
{
transitionCallback = touchgfx::Callback<FrontendApplicationBase>(this, &FrontendApplicationBase::gotoEchoScreenNoTransitionImpl);
pendingScreenTransitionCallback = &transitionCallback;
}
void FrontendApplicationBase::gotoEchoScreenNoTransitionImpl()
{
touchgfx::makeTransition<EchoView, EchoPresenter, touchgfx::NoTransition, Model >(&currentScreen, &currentPresenter, frontendHeap, &currentTransition, &model);
}
// Reverb
void FrontendApplicationBase::gotoReverbScreenNoTransition()
{
transitionCallback = touchgfx::Callback<FrontendApplicationBase>(this, &FrontendApplicationBase::gotoReverbScreenNoTransitionImpl);
pendingScreenTransitionCallback = &transitionCallback;
}
void FrontendApplicationBase::gotoReverbScreenNoTransitionImpl()
{
touchgfx::makeTransition<ReverbView, ReverbPresenter, touchgfx::NoTransition, Model >(&currentScreen, &currentPresenter, frontendHeap, &currentTransition, &model);
}
// Equalizer
void FrontendApplicationBase::gotoEqualizerScreenNoTransition()
{
transitionCallback = touchgfx::Callback<FrontendApplicationBase>(this, &FrontendApplicationBase::gotoEqualizerScreenNoTransitionImpl);
pendingScreenTransitionCallback = &transitionCallback;
}
void FrontendApplicationBase::gotoEqualizerScreenNoTransitionImpl()
{
touchgfx::makeTransition<EqualizerView, EqualizerPresenter, touchgfx::NoTransition, Model >(&currentScreen, &currentPresenter, frontendHeap, &currentTransition, &model);
}
// Oscillo
void FrontendApplicationBase::gotoOscilloScreenNoTransition()
{
transitionCallback = touchgfx::Callback<FrontendApplicationBase>(this, &FrontendApplicationBase::gotoOscilloScreenNoTransitionImpl);
pendingScreenTransitionCallback = &transitionCallback;
}
void FrontendApplicationBase::gotoOscilloScreenNoTransitionImpl()
{
touchgfx::makeTransition<OscilloView, OscilloPresenter, touchgfx::NoTransition, Model >(&currentScreen, &currentPresenter, frontendHeap, &currentTransition, &model);
}
@@ -0,0 +1,139 @@
/*********************************************************************************/
/********** THIS FILE IS GENERATED BY TOUCHGFX DESIGNER, DO NOT MODIFY ***********/
/*********************************************************************************/
#include <gui_generated/echo_screen/EchoViewBase.hpp>
#include <touchgfx/Color.hpp>
#include <images/BitmapDatabase.hpp>
#include <texts/TextKeysAndLanguages.hpp>
EchoViewBase::EchoViewBase() :
buttonCallback(this, &EchoViewBase::buttonCallbackHandler),
sliderValueChangedCallback(this, &EchoViewBase::sliderValueChangedCallbackHandler)
{
__background.setPosition(0, 0, 800, 480);
__background.setColor(touchgfx::Color::getColorFromRGB(0, 0, 0));
add(__background);
image1.setXY(0, -1);
image1.setBitmap(touchgfx::Bitmap(BITMAP_FONDHORLOGERIE1_ID));
add(image1);
box1.setPosition(0, 0, 800, 480);
box1.setColor(touchgfx::Color::getColorFromRGB(35, 24, 15));
box1.setAlpha(240);
add(box1);
textArea2.setXY(130, 161);
textArea2.setColor(touchgfx::Color::getColorFromRGB(230, 214, 170));
textArea2.setLinespacing(0);
textArea2.setTypedText(touchgfx::TypedText(T_DELAY));
add(textArea2);
textArea2_1.setXY(112, 271);
textArea2_1.setColor(touchgfx::Color::getColorFromRGB(230, 214, 170));
textArea2_1.setLinespacing(0);
textArea2_1.setTypedText(touchgfx::TypedText(T_FEEDBACK));
add(textArea2_1);
textArea2_2.setXY(142, 371);
textArea2_2.setColor(touchgfx::Color::getColorFromRGB(230, 214, 170));
textArea2_2.setLinespacing(0);
textArea2_2.setTypedText(touchgfx::TypedText(T_MIX));
add(textArea2_2);
slider1.setXY(280, 145);
slider1.setBitmaps(touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_HORIZONTAL_THICK_TRACK_LARGE_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_HORIZONTAL_THICK_FILLER_LARGE_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_HORIZONTAL_THICK_ROUNDED_DARK_ID));
slider1.setupHorizontalSlider(28, 21, 0, 0, 400);
slider1.setValueRange(0, 100);
slider1.setValue(0);
slider1.setNewValueCallback(sliderValueChangedCallback);
add(slider1);
slider2.setXY(280, 255);
slider2.setBitmaps(touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_HORIZONTAL_THICK_TRACK_LARGE_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_HORIZONTAL_THICK_FILLER_LARGE_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_HORIZONTAL_THICK_ROUNDED_DARK_ID));
slider2.setupHorizontalSlider(28, 21, 0, 0, 400);
slider2.setValueRange(0, 100);
slider2.setValue(0);
slider2.setNewValueCallback(sliderValueChangedCallback);
add(slider2);
buttonWithLabel1.setXY(0, 0);
buttonWithLabel1.setBitmaps(touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_BUTTON_REGULAR_HEIGHT_50_SMALL_ROUNDED_NORMAL_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_BUTTON_REGULAR_HEIGHT_50_SMALL_ROUNDED_PRESSED_ID));
buttonWithLabel1.setLabelText(touchgfx::TypedText(T_BACK));
buttonWithLabel1.setLabelColor(touchgfx::Color::getColorFromRGB(230, 214, 170));
buttonWithLabel1.setLabelColorPressed(touchgfx::Color::getColorFromRGB(230, 214, 170));
buttonWithLabel1.setAction(buttonCallback);
add(buttonWithLabel1);
slider3.setXY(280, 365);
slider3.setBitmaps(touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_HORIZONTAL_THICK_TRACK_LARGE_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_HORIZONTAL_THICK_FILLER_LARGE_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_HORIZONTAL_THICK_ROUNDED_DARK_ID));
slider3.setupHorizontalSlider(28, 21, 0, 0, 400);
slider3.setValueRange(0, 100);
slider3.setValue(0);
slider3.setNewValueCallback(sliderValueChangedCallback);
add(slider3);
toggleButton1.setXY(576, 20);
toggleButton1.setBitmaps(touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_TOGGLEBUTTON_LARGE_ROUND_TEXT_OFF_NORMAL_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_TOGGLEBUTTON_LARGE_ROUND_TEXT_ON_ACTIVE_ID));
toggleButton1.setAction(buttonCallback);
add(toggleButton1);
textArea1.setXY(342, 27);
textArea1.setColor(touchgfx::Color::getColorFromRGB(230, 214, 170));
textArea1.setLinespacing(0);
textArea1.setTypedText(touchgfx::TypedText(T_ECHO));
add(textArea1);
}
EchoViewBase::~EchoViewBase()
{
}
void EchoViewBase::setupScreen()
{
}
void EchoViewBase::buttonCallbackHandler(const touchgfx::AbstractButton& src)
{
if (&src == &buttonWithLabel1)
{
//Interaction1
//When buttonWithLabel1 clicked change screen to Overview
//Go to Overview with no screen transition
application().gotoOverviewScreenNoTransition();
}
if (&src == &toggleButton1)
{
//Interaction2
//When toggleButton1 clicked call virtual function
//Call toggleClicked
toggleClicked();
}
}
void EchoViewBase::sliderValueChangedCallbackHandler(const touchgfx::Slider& src, int value)
{
if (&src == &slider1)
{
//Interaction3
//When slider1 value changed call virtual function
//Call sliderDelaiChanged
sliderDelaiChanged(value);
}
if (&src == &slider2)
{
//Interaction4
//When slider2 value changed call virtual function
//Call sliderFeedbackChanged
sliderFeedbackChanged(value);
}
if (&src == &slider3)
{
//Interaction5
//When slider3 value changed call virtual function
//Call sliderMixChanged
sliderMixChanged(value);
}
}
@@ -0,0 +1,286 @@
/*********************************************************************************/
/********** THIS FILE IS GENERATED BY TOUCHGFX DESIGNER, DO NOT MODIFY ***********/
/*********************************************************************************/
#include <gui_generated/equalizer_screen/EqualizerViewBase.hpp>
#include <touchgfx/Color.hpp>
#include <images/BitmapDatabase.hpp>
#include <texts/TextKeysAndLanguages.hpp>
EqualizerViewBase::EqualizerViewBase() :
buttonCallback(this, &EqualizerViewBase::buttonCallbackHandler),
sliderValueChangedCallback(this, &EqualizerViewBase::sliderValueChangedCallbackHandler)
{
__background.setPosition(0, 0, 800, 480);
__background.setColor(touchgfx::Color::getColorFromRGB(0, 0, 0));
add(__background);
image1.setXY(0, -1);
image1.setBitmap(touchgfx::Bitmap(BITMAP_FONDHORLOGERIE1_ID));
add(image1);
box1.setPosition(0, 0, 800, 480);
box1.setColor(touchgfx::Color::getColorFromRGB(35, 24, 15));
box1.setAlpha(240);
add(box1);
bandSlider1.setXY(30, 80);
bandSlider1.setBitmaps(touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_VERTICAL_THICK_TRACK_MEDIUM_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_VERTICAL_THICK_FILLER_MEDIUM_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_VERTICAL_THICK_ROUNDED_DARK_ID));
bandSlider1.setupVerticalSlider(23, 26, 0, 0, 300);
bandSlider1.setValueRange(0, 100);
bandSlider1.setValue(0);
bandSlider1.setNewValueCallback(sliderValueChangedCallback);
add(bandSlider1);
bandSlider2.setXY(105, 80);
bandSlider2.setBitmaps(touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_VERTICAL_THICK_TRACK_MEDIUM_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_VERTICAL_THICK_FILLER_MEDIUM_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_VERTICAL_THICK_ROUNDED_DARK_ID));
bandSlider2.setupVerticalSlider(23, 26, 0, 0, 300);
bandSlider2.setValueRange(0, 100);
bandSlider2.setValue(0);
bandSlider2.setNewValueCallback(sliderValueChangedCallback);
add(bandSlider2);
bandSlider3.setXY(180, 80);
bandSlider3.setBitmaps(touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_VERTICAL_THICK_TRACK_MEDIUM_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_VERTICAL_THICK_FILLER_MEDIUM_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_VERTICAL_THICK_ROUNDED_DARK_ID));
bandSlider3.setupVerticalSlider(23, 26, 0, 0, 300);
bandSlider3.setValueRange(0, 100);
bandSlider3.setValue(0);
bandSlider3.setNewValueCallback(sliderValueChangedCallback);
add(bandSlider3);
buttonWithLabel1.setXY(0, 0);
buttonWithLabel1.setBitmaps(touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_BUTTON_REGULAR_HEIGHT_50_SMALL_ROUNDED_NORMAL_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_BUTTON_REGULAR_HEIGHT_50_SMALL_ROUNDED_PRESSED_ID));
buttonWithLabel1.setLabelText(touchgfx::TypedText(T_BACK));
buttonWithLabel1.setLabelColor(touchgfx::Color::getColorFromRGB(230, 214, 170));
buttonWithLabel1.setLabelColorPressed(touchgfx::Color::getColorFromRGB(230, 214, 170));
buttonWithLabel1.setAction(buttonCallback);
add(buttonWithLabel1);
bandSlider4.setXY(255, 80);
bandSlider4.setBitmaps(touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_VERTICAL_THICK_TRACK_MEDIUM_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_VERTICAL_THICK_FILLER_MEDIUM_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_VERTICAL_THICK_ROUNDED_DARK_ID));
bandSlider4.setupVerticalSlider(23, 26, 0, 0, 300);
bandSlider4.setValueRange(0, 100);
bandSlider4.setValue(0);
bandSlider4.setNewValueCallback(sliderValueChangedCallback);
add(bandSlider4);
bandSlider5.setXY(330, 80);
bandSlider5.setBitmaps(touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_VERTICAL_THICK_TRACK_MEDIUM_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_VERTICAL_THICK_FILLER_MEDIUM_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_VERTICAL_THICK_ROUNDED_DARK_ID));
bandSlider5.setupVerticalSlider(23, 26, 0, 0, 300);
bandSlider5.setValueRange(0, 100);
bandSlider5.setValue(0);
bandSlider5.setNewValueCallback(sliderValueChangedCallback);
add(bandSlider5);
bandSlider6.setXY(420, 80);
bandSlider6.setBitmaps(touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_VERTICAL_THICK_TRACK_MEDIUM_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_VERTICAL_THICK_FILLER_MEDIUM_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_VERTICAL_THICK_ROUNDED_DARK_ID));
bandSlider6.setupVerticalSlider(23, 26, 0, 0, 300);
bandSlider6.setValueRange(0, 100);
bandSlider6.setValue(0);
bandSlider6.setNewValueCallback(sliderValueChangedCallback);
add(bandSlider6);
bandSlider7.setXY(495, 80);
bandSlider7.setBitmaps(touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_VERTICAL_THICK_TRACK_MEDIUM_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_VERTICAL_THICK_FILLER_MEDIUM_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_VERTICAL_THICK_ROUNDED_DARK_ID));
bandSlider7.setupVerticalSlider(23, 26, 0, 0, 300);
bandSlider7.setValueRange(0, 100);
bandSlider7.setValue(0);
bandSlider7.setNewValueCallback(sliderValueChangedCallback);
add(bandSlider7);
bandSlider8.setXY(570, 80);
bandSlider8.setBitmaps(touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_VERTICAL_THICK_TRACK_MEDIUM_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_VERTICAL_THICK_FILLER_MEDIUM_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_VERTICAL_THICK_ROUNDED_DARK_ID));
bandSlider8.setupVerticalSlider(23, 26, 0, 0, 300);
bandSlider8.setValueRange(0, 100);
bandSlider8.setValue(0);
bandSlider8.setNewValueCallback(sliderValueChangedCallback);
add(bandSlider8);
bandSlider9.setXY(645, 80);
bandSlider9.setBitmaps(touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_VERTICAL_THICK_TRACK_MEDIUM_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_VERTICAL_THICK_FILLER_MEDIUM_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_VERTICAL_THICK_ROUNDED_DARK_ID));
bandSlider9.setupVerticalSlider(23, 26, 0, 0, 300);
bandSlider9.setValueRange(0, 100);
bandSlider9.setValue(0);
bandSlider9.setNewValueCallback(sliderValueChangedCallback);
add(bandSlider9);
bandSlider10.setXY(720, 80);
bandSlider10.setBitmaps(touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_VERTICAL_THICK_TRACK_MEDIUM_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_VERTICAL_THICK_FILLER_MEDIUM_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_VERTICAL_THICK_ROUNDED_DARK_ID));
bandSlider10.setupVerticalSlider(23, 26, 0, 0, 300);
bandSlider10.setValueRange(0, 100);
bandSlider10.setValue(0);
bandSlider10.setNewValueCallback(sliderValueChangedCallback);
add(bandSlider10);
textArea1.setXY(287, 24);
textArea1.setColor(touchgfx::Color::getColorFromRGB(230, 214, 170));
textArea1.setLinespacing(0);
textArea1.setTypedText(touchgfx::TypedText(T_EQUALIZER));
add(textArea1);
textArea2.setXY(47, 440);
textArea2.setColor(touchgfx::Color::getColorFromRGB(230, 214, 170));
textArea2.setLinespacing(0);
textArea2.setTypedText(touchgfx::TypedText(T_EQ_31));
add(textArea2);
textArea2_1.setXY(122, 440);
textArea2_1.setColor(touchgfx::Color::getColorFromRGB(230, 214, 170));
textArea2_1.setLinespacing(0);
textArea2_1.setTypedText(touchgfx::TypedText(T_EQ_62));
add(textArea2_1);
textArea2_2.setXY(192, 440);
textArea2_2.setColor(touchgfx::Color::getColorFromRGB(230, 214, 170));
textArea2_2.setLinespacing(0);
textArea2_2.setTypedText(touchgfx::TypedText(T_EQ_125));
add(textArea2_2);
textArea2_3.setXY(267, 440);
textArea2_3.setColor(touchgfx::Color::getColorFromRGB(230, 214, 170));
textArea2_3.setLinespacing(0);
textArea2_3.setTypedText(touchgfx::TypedText(T_EQ_250));
add(textArea2_3);
textArea2_4.setXY(342, 440);
textArea2_4.setColor(touchgfx::Color::getColorFromRGB(230, 214, 170));
textArea2_4.setLinespacing(0);
textArea2_4.setTypedText(touchgfx::TypedText(T_EQ_500));
add(textArea2_4);
textArea2_5.setXY(436, 440);
textArea2_5.setColor(touchgfx::Color::getColorFromRGB(230, 214, 170));
textArea2_5.setLinespacing(0);
textArea2_5.setTypedText(touchgfx::TypedText(T_EQ_1K));
add(textArea2_5);
textArea2_6.setXY(511, 440);
textArea2_6.setColor(touchgfx::Color::getColorFromRGB(230, 214, 170));
textArea2_6.setLinespacing(0);
textArea2_6.setTypedText(touchgfx::TypedText(T_EQ_2K));
add(textArea2_6);
textArea2_7.setXY(586, 440);
textArea2_7.setColor(touchgfx::Color::getColorFromRGB(230, 214, 170));
textArea2_7.setLinespacing(0);
textArea2_7.setTypedText(touchgfx::TypedText(T_EQ_4K));
add(textArea2_7);
textArea2_8.setXY(661, 440);
textArea2_8.setColor(touchgfx::Color::getColorFromRGB(230, 214, 170));
textArea2_8.setLinespacing(0);
textArea2_8.setTypedText(touchgfx::TypedText(T_EQ_8K));
add(textArea2_8);
textArea2_9.setXY(731, 440);
textArea2_9.setColor(touchgfx::Color::getColorFromRGB(230, 214, 170));
textArea2_9.setLinespacing(0);
textArea2_9.setTypedText(touchgfx::TypedText(T_EQ_16K));
add(textArea2_9);
toggleButton1.setXY(576, 20);
toggleButton1.setBitmaps(touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_TOGGLEBUTTON_LARGE_ROUND_TEXT_OFF_NORMAL_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_TOGGLEBUTTON_LARGE_ROUND_TEXT_ON_ACTIVE_ID));
toggleButton1.setAction(buttonCallback);
add(toggleButton1);
}
EqualizerViewBase::~EqualizerViewBase()
{
}
void EqualizerViewBase::setupScreen()
{
}
void EqualizerViewBase::buttonCallbackHandler(const touchgfx::AbstractButton& src)
{
if (&src == &buttonWithLabel1)
{
//Interaction1
//When buttonWithLabel1 clicked change screen to Overview
//Go to Overview with no screen transition
application().gotoOverviewScreenNoTransition();
}
if (&src == &toggleButton1)
{
//Interaction2
//When toggleButton1 clicked call virtual function
//Call toggleClicked
toggleClicked();
}
}
void EqualizerViewBase::sliderValueChangedCallbackHandler(const touchgfx::Slider& src, int value)
{
if (&src == &bandSlider1)
{
//Interaction3
//When bandSlider1 value changed call virtual function
//Call sliderBand1Changed
sliderBand1Changed(value);
}
if (&src == &bandSlider2)
{
//Interaction4
//When bandSlider2 value changed call virtual function
//Call sliderBand2Changed
sliderBand2Changed(value);
}
if (&src == &bandSlider3)
{
//Interaction5
//When bandSlider3 value changed call virtual function
//Call sliderBand3Changed
sliderBand3Changed(value);
}
if (&src == &bandSlider4)
{
//Interaction6
//When bandSlider4 value changed call virtual function
//Call sliderBand4Changed
sliderBand4Changed(value);
}
if (&src == &bandSlider5)
{
//Interaction7
//When bandSlider5 value changed call virtual function
//Call sliderBand5Changed
sliderBand5Changed(value);
}
if (&src == &bandSlider6)
{
//Interaction8
//When bandSlider6 value changed call virtual function
//Call sliderBand6Changed
sliderBand6Changed(value);
}
if (&src == &bandSlider7)
{
//Interaction9
//When bandSlider7 value changed call virtual function
//Call sliderBand7Changed
sliderBand7Changed(value);
}
if (&src == &bandSlider8)
{
//Interaction10
//When bandSlider8 value changed call virtual function
//Call sliderBand8Changed
sliderBand8Changed(value);
}
if (&src == &bandSlider9)
{
//Interaction11
//When bandSlider9 value changed call virtual function
//Call sliderBand9Changed
sliderBand9Changed(value);
}
if (&src == &bandSlider10)
{
//Interaction12
//When bandSlider10 value changed call virtual function
//Call sliderBand10Changed
sliderBand10Changed(value);
}
}
@@ -0,0 +1,45 @@
/*********************************************************************************/
/********** THIS FILE IS GENERATED BY TOUCHGFX DESIGNER, DO NOT MODIFY ***********/
/*********************************************************************************/
#include <gui_generated/initscreen_screen/InitScreenViewBase.hpp>
#include <touchgfx/Color.hpp>
#include <images/BitmapDatabase.hpp>
InitScreenViewBase::InitScreenViewBase() :
buttonCallback(this, &InitScreenViewBase::buttonCallbackHandler)
{
__background.setPosition(0, 0, 800, 480);
__background.setColor(touchgfx::Color::getColorFromRGB(0, 0, 0));
add(__background);
image1.setXY(0, -1);
image1.setBitmap(touchgfx::Bitmap(BITMAP_FONDHORLOGERIE1_ID));
add(image1);
buttonWithIcon1.setXY(329, 91);
buttonWithIcon1.setBitmaps(touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_BUTTON_ICON_ROUND_HUGE_FILL_NORMAL_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_BUTTON_ICON_ROUND_HUGE_FILL_PRESSED_ID), touchgfx::Bitmap(BITMAP_ICON_THEME_IMAGES_AV_FIBER_MANUAL_RECORD_50_50_5E3E10_SVG_ID), touchgfx::Bitmap(BITMAP_ICON_THEME_IMAGES_ACTION_DONE_50_50_B5241F_SVG_ID));
buttonWithIcon1.setIconXY(142, 136);
buttonWithIcon1.setAction(buttonCallback);
add(buttonWithIcon1);
}
InitScreenViewBase::~InitScreenViewBase()
{
}
void InitScreenViewBase::setupScreen()
{
}
void InitScreenViewBase::buttonCallbackHandler(const touchgfx::AbstractButton& src)
{
if (&src == &buttonWithIcon1)
{
//Interaction1
//When buttonWithIcon1 clicked change screen to Overview
//Go to Overview with no screen transition
application().gotoOverviewScreenNoTransition();
}
}
@@ -0,0 +1,181 @@
/*********************************************************************************/
/********** THIS FILE IS GENERATED BY TOUCHGFX DESIGNER, DO NOT MODIFY ***********/
/*********************************************************************************/
#include <gui_generated/octaver_screen/OctaverViewBase.hpp>
#include <touchgfx/Color.hpp>
#include <images/BitmapDatabase.hpp>
#include <texts/TextKeysAndLanguages.hpp>
OctaverViewBase::OctaverViewBase() :
buttonCallback(this, &OctaverViewBase::buttonCallbackHandler),
sliderValueChangedCallback(this, &OctaverViewBase::sliderValueChangedCallbackHandler)
{
__background.setPosition(0, 0, 800, 480);
__background.setColor(touchgfx::Color::getColorFromRGB(0, 0, 0));
add(__background);
image1.setXY(0, -1);
image1.setBitmap(touchgfx::Bitmap(BITMAP_FONDHORLOGERIE1_ID));
add(image1);
box1.setPosition(0, 0, 800, 480);
box1.setColor(touchgfx::Color::getColorFromRGB(35, 24, 15));
box1.setAlpha(240);
add(box1);
textArea2.setXY(102, 427);
textArea2.setColor(touchgfx::Color::getColorFromRGB(230, 214, 170));
textArea2.setLinespacing(0);
textArea2.setTypedText(touchgfx::TypedText(T_OCT_M2));
add(textArea2);
textArea3.setXY(244, 427);
textArea3.setColor(touchgfx::Color::getColorFromRGB(230, 214, 170));
textArea3.setLinespacing(0);
textArea3.setTypedText(touchgfx::TypedText(T_OCT_M1));
add(textArea3);
textArea4.setXY(389, 427);
textArea4.setColor(touchgfx::Color::getColorFromRGB(230, 214, 170));
textArea4.setLinespacing(0);
textArea4.setTypedText(touchgfx::TypedText(T_OCT_0));
add(textArea4);
textArea5.setXY(526, 427);
textArea5.setColor(touchgfx::Color::getColorFromRGB(230, 214, 170));
textArea5.setLinespacing(0);
textArea5.setTypedText(touchgfx::TypedText(T_OCT_P1));
add(textArea5);
textArea6.setXY(665, 427);
textArea6.setColor(touchgfx::Color::getColorFromRGB(230, 214, 170));
textArea6.setLinespacing(0);
textArea6.setTypedText(touchgfx::TypedText(T_OCT_P2));
add(textArea6);
slider1.setXY(91, 82);
slider1.setBitmaps(touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_VERTICAL_THICK_TRACK_MEDIUM_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_VERTICAL_THICK_FILLER_MEDIUM_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_VERTICAL_THICK_ROUNDED_DARK_ID));
slider1.setupVerticalSlider(23, 26, 0, 0, 300);
slider1.setValueRange(0, 100);
slider1.setValue(0);
slider1.setNewValueCallback(sliderValueChangedCallback);
add(slider1);
slider2.setXY(233, 82);
slider2.setBitmaps(touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_VERTICAL_THICK_TRACK_MEDIUM_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_VERTICAL_THICK_FILLER_MEDIUM_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_VERTICAL_THICK_ROUNDED_DARK_ID));
slider2.setupVerticalSlider(23, 26, 0, 0, 300);
slider2.setValueRange(0, 100);
slider2.setValue(0);
slider2.setNewValueCallback(sliderValueChangedCallback);
add(slider2);
slider3.setXY(372, 82);
slider3.setBitmaps(touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_VERTICAL_THICK_TRACK_MEDIUM_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_VERTICAL_THICK_FILLER_MEDIUM_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_VERTICAL_THICK_ROUNDED_DARK_ID));
slider3.setupVerticalSlider(23, 26, 0, 0, 300);
slider3.setValueRange(0, 100);
slider3.setValue(0);
slider3.setNewValueCallback(sliderValueChangedCallback);
add(slider3);
slider4.setXY(520, 82);
slider4.setBitmaps(touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_VERTICAL_THICK_TRACK_MEDIUM_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_VERTICAL_THICK_FILLER_MEDIUM_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_VERTICAL_THICK_ROUNDED_DARK_ID));
slider4.setupVerticalSlider(23, 26, 0, 0, 300);
slider4.setValueRange(0, 100);
slider4.setValue(0);
slider4.setNewValueCallback(sliderValueChangedCallback);
add(slider4);
slider5.setXY(661, 82);
slider5.setBitmaps(touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_VERTICAL_THICK_TRACK_MEDIUM_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_VERTICAL_THICK_FILLER_MEDIUM_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_VERTICAL_THICK_ROUNDED_DARK_ID));
slider5.setupVerticalSlider(23, 26, 0, 0, 300);
slider5.setValueRange(0, 100);
slider5.setValue(0);
slider5.setNewValueCallback(sliderValueChangedCallback);
add(slider5);
textArea1.setXY(295, 26);
textArea1.setColor(touchgfx::Color::getColorFromRGB(230, 214, 170));
textArea1.setLinespacing(0);
textArea1.setTypedText(touchgfx::TypedText(T_OCTAVER));
add(textArea1);
toggleButton1.setXY(576, 20);
toggleButton1.setBitmaps(touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_TOGGLEBUTTON_LARGE_ROUND_TEXT_OFF_NORMAL_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_TOGGLEBUTTON_LARGE_ROUND_TEXT_ON_ACTIVE_ID));
toggleButton1.setAction(buttonCallback);
add(toggleButton1);
buttonWithLabel1.setXY(0, 0);
buttonWithLabel1.setBitmaps(touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_BUTTON_REGULAR_HEIGHT_50_SMALL_ROUNDED_NORMAL_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_BUTTON_REGULAR_HEIGHT_50_SMALL_ROUNDED_PRESSED_ID));
buttonWithLabel1.setLabelText(touchgfx::TypedText(T_BACK));
buttonWithLabel1.setLabelColor(touchgfx::Color::getColorFromRGB(230, 214, 170));
buttonWithLabel1.setLabelColorPressed(touchgfx::Color::getColorFromRGB(230, 214, 170));
buttonWithLabel1.setAction(buttonCallback);
add(buttonWithLabel1);
}
OctaverViewBase::~OctaverViewBase()
{
}
void OctaverViewBase::setupScreen()
{
}
void OctaverViewBase::buttonCallbackHandler(const touchgfx::AbstractButton& src)
{
if (&src == &buttonWithLabel1)
{
//Interaction1
//When buttonWithLabel1 clicked change screen to Overview
//Go to Overview with no screen transition
application().gotoOverviewScreenNoTransition();
}
if (&src == &toggleButton1)
{
//Interaction2
//When toggleButton1 clicked call virtual function
//Call toggleClicked
toggleClicked();
}
}
void OctaverViewBase::sliderValueChangedCallbackHandler(const touchgfx::Slider& src, int value)
{
if (&src == &slider1)
{
//Interaction3
//When slider1 value changed call virtual function
//Call slider1Clicked
slider1Clicked(value);
}
if (&src == &slider2)
{
//Interaction4
//When slider2 value changed call virtual function
//Call slider2Clicked
slider2Clicked(value);
}
if (&src == &slider3)
{
//Interaction5
//When slider3 value changed call virtual function
//Call slider3Clicked
slider3Clicked(value);
}
if (&src == &slider4)
{
//Interaction6
//When slider4 value changed call virtual function
//Call slider4Clicked
slider4Clicked(value);
}
if (&src == &slider5)
{
//Interaction7
//When slider5 value changed call virtual function
//Call slider5Clicked
slider5Clicked(value);
}
}
@@ -0,0 +1,831 @@
/*********************************************************************************/
/********** THIS FILE IS GENERATED BY TOUCHGFX DESIGNER, DO NOT MODIFY ***********/
/*********************************************************************************/
#include <gui_generated/oscillo_screen/OscilloViewBase.hpp>
#include <touchgfx/canvas_widget_renderer/CanvasWidgetRenderer.hpp>
#include <touchgfx/Color.hpp>
#include <images/BitmapDatabase.hpp>
#include <texts/TextKeysAndLanguages.hpp>
OscilloViewBase::OscilloViewBase() :
buttonCallback(this, &OscilloViewBase::buttonCallbackHandler)
{
touchgfx::CanvasWidgetRenderer::setupBuffer(canvasBuffer, CANVAS_BUFFER_SIZE);
__background.setPosition(0, 0, 800, 480);
__background.setColor(touchgfx::Color::getColorFromRGB(0, 0, 0));
add(__background);
image1.setXY(0, -1);
image1.setBitmap(touchgfx::Bitmap(BITMAP_FONDHORLOGERIE1_ID));
add(image1);
box1.setPosition(0, 0, 800, 480);
box1.setColor(touchgfx::Color::getColorFromRGB(35, 24, 15));
box1.setAlpha(240);
add(box1);
textArea1.setXY(314, 26);
textArea1.setColor(touchgfx::Color::getColorFromRGB(230, 214, 170));
textArea1.setLinespacing(0);
textArea1.setTypedText(touchgfx::TypedText(T_OSCILLO));
add(textArea1);
toggleButton1.setXY(576, 20);
toggleButton1.setBitmaps(touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_TOGGLEBUTTON_LARGE_ROUND_TEXT_OFF_NORMAL_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_TOGGLEBUTTON_LARGE_ROUND_TEXT_ON_ACTIVE_ID));
toggleButton1.setAction(buttonCallback);
add(toggleButton1);
buttonWithLabel1.setXY(0, 0);
buttonWithLabel1.setBitmaps(touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_BUTTON_REGULAR_HEIGHT_50_SMALL_ROUNDED_NORMAL_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_BUTTON_REGULAR_HEIGHT_50_SMALL_ROUNDED_PRESSED_ID));
buttonWithLabel1.setLabelText(touchgfx::TypedText(T_BACK));
buttonWithLabel1.setLabelColor(touchgfx::Color::getColorFromRGB(230, 214, 170));
buttonWithLabel1.setLabelColorPressed(touchgfx::Color::getColorFromRGB(230, 214, 170));
buttonWithLabel1.setAction(buttonCallback);
add(buttonWithLabel1);
graph1.setPosition(0, 94, 800, 386);
graph1.setScaleX(1);
graph1.setScaleY(1);
graph1.setGraphAreaMargin(0, 16, 16, 63);
graph1.setGraphAreaPadding(0, 0, 0, 17);
graph1.setGraphRangeX(0, 24000);
graph1.setGraphRangeY(0, 100);
graph1MajorXAxisGrid.setColor(touchgfx::Color::getColorFromRGB(230, 214, 170));
graph1MajorXAxisGrid.setInterval(2400);
graph1MajorXAxisGrid.setLineWidth(1);
graph1MajorXAxisGrid.setScale(1);
graph1.addGraphElement(graph1MajorXAxisGrid);
graph1MajorYAxisGrid.setColor(touchgfx::Color::getColorFromRGB(230, 214, 170));
graph1MajorYAxisGrid.setInterval(25);
graph1MajorYAxisGrid.setLineWidth(1);
graph1MajorYAxisGrid.setScale(1);
graph1.addGraphElement(graph1MajorYAxisGrid);
graph1MajorXAxisLabel.setInterval(2400);
graph1MajorXAxisLabel.setLabelTypedText(touchgfx::TypedText(T___SINGLEUSE_2C9Q));
graph1MajorXAxisLabel.setLabelRotation(touchgfx::TEXT_ROTATE_270);
graph1MajorXAxisLabel.setColor(touchgfx::Color::getColorFromRGB(230, 214, 170));
graph1MajorXAxisLabel.setScale(1);
graph1.addBottomElement(graph1MajorXAxisLabel);
graph1Line1Painter.setColor(touchgfx::Color::getColorFromRGB(20, 151, 197));
graph1Line1.setPainter(graph1Line1Painter);
graph1Line1.setLineWidth(2);
graph1.addGraphElement(graph1Line1);
graph1.addDataPoint(0, 47);
graph1.addDataPoint(47, 48);
graph1.addDataPoint(94, 49);
graph1.addDataPoint(141, 50);
graph1.addDataPoint(211, 51);
graph1.addDataPoint(492, 50);
graph1.addDataPoint(563, 49);
graph1.addDataPoint(609, 48);
graph1.addDataPoint(656, 47);
graph1.addDataPoint(680, 46);
graph1.addDataPoint(727, 45);
graph1.addDataPoint(750, 44);
graph1.addDataPoint(773, 43);
graph1.addDataPoint(797, 42);
graph1.addDataPoint(844, 41);
graph1.addDataPoint(867, 40);
graph1.addDataPoint(891, 39);
graph1.addDataPoint(914, 38);
graph1.addDataPoint(938, 37);
graph1.addDataPoint(961, 36);
graph1.addDataPoint(984, 35);
graph1.addDataPoint(1008, 34);
graph1.addDataPoint(1031, 32);
graph1.addDataPoint(1055, 31);
graph1.addDataPoint(1078, 30);
graph1.addDataPoint(1102, 29);
graph1.addDataPoint(1125, 28);
graph1.addDataPoint(1148, 27);
graph1.addDataPoint(1172, 26);
graph1.addDataPoint(1195, 25);
graph1.addDataPoint(1219, 24);
graph1.addDataPoint(1242, 23);
graph1.addDataPoint(1266, 22);
graph1.addDataPoint(1289, 21);
graph1.addDataPoint(1313, 20);
graph1.addDataPoint(1336, 19);
graph1.addDataPoint(1359, 18);
graph1.addDataPoint(1383, 17);
graph1.addDataPoint(1406, 16);
graph1.addDataPoint(1430, 15);
graph1.addDataPoint(1477, 14);
graph1.addDataPoint(1500, 13);
graph1.addDataPoint(1547, 12);
graph1.addDataPoint(1570, 11);
graph1.addDataPoint(1641, 10);
graph1.addDataPoint(1711, 9);
graph1.addDataPoint(1875, 10);
graph1.addDataPoint(1945, 11);
graph1.addDataPoint(1992, 12);
graph1.addDataPoint(2039, 13);
graph1.addDataPoint(2063, 14);
graph1.addDataPoint(2086, 15);
graph1.addDataPoint(2109, 16);
graph1.addDataPoint(2156, 17);
graph1.addDataPoint(2180, 19);
graph1.addDataPoint(2203, 20);
graph1.addDataPoint(2227, 21);
graph1.addDataPoint(2250, 22);
graph1.addDataPoint(2273, 23);
graph1.addDataPoint(2297, 25);
graph1.addDataPoint(2320, 26);
graph1.addDataPoint(2344, 27);
graph1.addDataPoint(2367, 29);
graph1.addDataPoint(2391, 30);
graph1.addDataPoint(2414, 32);
graph1.addDataPoint(2438, 33);
graph1.addDataPoint(2461, 35);
graph1.addDataPoint(2484, 36);
graph1.addDataPoint(2508, 38);
graph1.addDataPoint(2531, 40);
graph1.addDataPoint(2555, 41);
graph1.addDataPoint(2578, 43);
graph1.addDataPoint(2602, 45);
graph1.addDataPoint(2625, 46);
graph1.addDataPoint(2648, 48);
graph1.addDataPoint(2672, 50);
graph1.addDataPoint(2695, 52);
graph1.addDataPoint(2719, 53);
graph1.addDataPoint(2742, 55);
graph1.addDataPoint(2766, 57);
graph1.addDataPoint(2789, 58);
graph1.addDataPoint(2813, 60);
graph1.addDataPoint(2836, 62);
graph1.addDataPoint(2859, 63);
graph1.addDataPoint(2883, 65);
graph1.addDataPoint(2906, 66);
graph1.addDataPoint(2930, 68);
graph1.addDataPoint(2953, 69);
graph1.addDataPoint(2977, 71);
graph1.addDataPoint(3000, 72);
graph1.addDataPoint(3023, 74);
graph1.addDataPoint(3047, 75);
graph1.addDataPoint(3070, 76);
graph1.addDataPoint(3094, 78);
graph1.addDataPoint(3117, 79);
graph1.addDataPoint(3141, 80);
graph1.addDataPoint(3164, 81);
graph1.addDataPoint(3188, 82);
graph1.addDataPoint(3211, 83);
graph1.addDataPoint(3234, 84);
graph1.addDataPoint(3258, 85);
graph1.addDataPoint(3281, 86);
graph1.addDataPoint(3305, 87);
graph1.addDataPoint(3352, 88);
graph1.addDataPoint(3375, 89);
graph1.addDataPoint(3422, 90);
graph1.addDataPoint(3492, 91);
graph1.addDataPoint(3656, 90);
graph1.addDataPoint(3750, 89);
graph1.addDataPoint(3797, 88);
graph1.addDataPoint(3844, 87);
graph1.addDataPoint(3867, 86);
graph1.addDataPoint(3914, 85);
graph1.addDataPoint(3938, 84);
graph1.addDataPoint(3961, 83);
graph1.addDataPoint(3984, 82);
graph1.addDataPoint(4008, 81);
graph1.addDataPoint(4031, 80);
graph1.addDataPoint(4055, 79);
graph1.addDataPoint(4078, 78);
graph1.addDataPoint(4102, 77);
graph1.addDataPoint(4125, 76);
graph1.addDataPoint(4148, 75);
graph1.addDataPoint(4172, 74);
graph1.addDataPoint(4195, 73);
graph1.addDataPoint(4219, 72);
graph1.addDataPoint(4242, 71);
graph1.addDataPoint(4266, 70);
graph1.addDataPoint(4289, 69);
graph1.addDataPoint(4313, 68);
graph1.addDataPoint(4336, 67);
graph1.addDataPoint(4359, 66);
graph1.addDataPoint(4383, 65);
graph1.addDataPoint(4406, 64);
graph1.addDataPoint(4430, 63);
graph1.addDataPoint(4453, 62);
graph1.addDataPoint(4477, 61);
graph1.addDataPoint(4500, 60);
graph1.addDataPoint(4523, 59);
graph1.addDataPoint(4547, 58);
graph1.addDataPoint(4570, 57);
graph1.addDataPoint(4594, 56);
graph1.addDataPoint(4617, 55);
graph1.addDataPoint(4664, 54);
graph1.addDataPoint(4688, 53);
graph1.addDataPoint(4734, 52);
graph1.addDataPoint(4758, 51);
graph1.addDataPoint(4805, 50);
graph1.addDataPoint(4875, 49);
graph1.addDataPoint(5156, 50);
graph1.addDataPoint(5227, 51);
graph1.addDataPoint(5273, 52);
graph1.addDataPoint(5320, 53);
graph1.addDataPoint(5367, 54);
graph1.addDataPoint(5391, 55);
graph1.addDataPoint(5438, 56);
graph1.addDataPoint(5461, 57);
graph1.addDataPoint(5484, 58);
graph1.addDataPoint(5531, 59);
graph1.addDataPoint(5555, 60);
graph1.addDataPoint(5578, 61);
graph1.addDataPoint(5602, 62);
graph1.addDataPoint(5648, 63);
graph1.addDataPoint(5672, 64);
graph1.addDataPoint(5695, 65);
graph1.addDataPoint(5719, 66);
graph1.addDataPoint(5766, 67);
graph1.addDataPoint(5789, 68);
graph1.addDataPoint(5813, 69);
graph1.addDataPoint(5836, 70);
graph1.addDataPoint(5883, 71);
graph1.addDataPoint(5906, 72);
graph1.addDataPoint(5953, 73);
graph1.addDataPoint(5977, 74);
graph1.addDataPoint(6023, 75);
graph1.addDataPoint(6094, 76);
graph1.addDataPoint(6164, 77);
graph1.addDataPoint(6352, 76);
graph1.addDataPoint(6422, 75);
graph1.addDataPoint(6469, 74);
graph1.addDataPoint(6516, 73);
graph1.addDataPoint(6563, 72);
graph1.addDataPoint(6586, 71);
graph1.addDataPoint(6609, 70);
graph1.addDataPoint(6633, 69);
graph1.addDataPoint(6656, 68);
graph1.addDataPoint(6680, 67);
graph1.addDataPoint(6703, 66);
graph1.addDataPoint(6727, 65);
graph1.addDataPoint(6750, 64);
graph1.addDataPoint(6773, 63);
graph1.addDataPoint(6797, 61);
graph1.addDataPoint(6820, 60);
graph1.addDataPoint(6844, 59);
graph1.addDataPoint(6867, 57);
graph1.addDataPoint(6891, 56);
graph1.addDataPoint(6914, 54);
graph1.addDataPoint(6938, 53);
graph1.addDataPoint(6961, 51);
graph1.addDataPoint(6984, 50);
graph1.addDataPoint(7008, 48);
graph1.addDataPoint(7031, 47);
graph1.addDataPoint(7055, 45);
graph1.addDataPoint(7078, 44);
graph1.addDataPoint(7102, 42);
graph1.addDataPoint(7125, 40);
graph1.addDataPoint(7148, 39);
graph1.addDataPoint(7172, 37);
graph1.addDataPoint(7195, 36);
graph1.addDataPoint(7219, 34);
graph1.addDataPoint(7242, 32);
graph1.addDataPoint(7266, 31);
graph1.addDataPoint(7289, 29);
graph1.addDataPoint(7313, 28);
graph1.addDataPoint(7336, 26);
graph1.addDataPoint(7359, 25);
graph1.addDataPoint(7383, 23);
graph1.addDataPoint(7406, 22);
graph1.addDataPoint(7430, 20);
graph1.addDataPoint(7453, 19);
graph1.addDataPoint(7477, 17);
graph1.addDataPoint(7500, 16);
graph1.addDataPoint(7523, 15);
graph1.addDataPoint(7547, 14);
graph1.addDataPoint(7570, 12);
graph1.addDataPoint(7594, 11);
graph1.addDataPoint(7617, 10);
graph1.addDataPoint(7641, 9);
graph1.addDataPoint(7664, 8);
graph1.addDataPoint(7688, 7);
graph1.addDataPoint(7711, 6);
graph1.addDataPoint(7758, 5);
graph1.addDataPoint(7781, 4);
graph1.addDataPoint(7828, 3);
graph1.addDataPoint(7875, 2);
graph1.addDataPoint(7922, 1);
graph1.addDataPoint(8109, 2);
graph1.addDataPoint(8180, 3);
graph1.addDataPoint(8227, 4);
graph1.addDataPoint(8250, 5);
graph1.addDataPoint(8297, 6);
graph1.addDataPoint(8320, 7);
graph1.addDataPoint(8344, 8);
graph1.addDataPoint(8367, 9);
graph1.addDataPoint(8391, 10);
graph1.addDataPoint(8414, 11);
graph1.addDataPoint(8438, 12);
graph1.addDataPoint(8461, 13);
graph1.addDataPoint(8484, 14);
graph1.addDataPoint(8508, 15);
graph1.addDataPoint(8531, 16);
graph1.addDataPoint(8555, 18);
graph1.addDataPoint(8578, 19);
graph1.addDataPoint(8602, 20);
graph1.addDataPoint(8625, 22);
graph1.addDataPoint(8648, 23);
graph1.addDataPoint(8672, 24);
graph1.addDataPoint(8695, 26);
graph1.addDataPoint(8719, 27);
graph1.addDataPoint(8742, 28);
graph1.addDataPoint(8766, 30);
graph1.addDataPoint(8789, 31);
graph1.addDataPoint(8813, 32);
graph1.addDataPoint(8836, 34);
graph1.addDataPoint(8859, 35);
graph1.addDataPoint(8883, 37);
graph1.addDataPoint(8906, 38);
graph1.addDataPoint(8930, 39);
graph1.addDataPoint(8953, 41);
graph1.addDataPoint(8977, 42);
graph1.addDataPoint(9000, 43);
graph1.addDataPoint(9023, 44);
graph1.addDataPoint(9047, 46);
graph1.addDataPoint(9070, 47);
graph1.addDataPoint(9094, 48);
graph1.addDataPoint(9117, 49);
graph1.addDataPoint(9141, 50);
graph1.addDataPoint(9164, 51);
graph1.addDataPoint(9188, 52);
graph1.addDataPoint(9211, 53);
graph1.addDataPoint(9234, 54);
graph1.addDataPoint(9258, 55);
graph1.addDataPoint(9281, 56);
graph1.addDataPoint(9305, 57);
graph1.addDataPoint(9352, 58);
graph1.addDataPoint(9375, 59);
graph1.addDataPoint(9422, 60);
graph1.addDataPoint(9492, 61);
graph1.addDataPoint(9563, 62);
graph1.addDataPoint(9727, 61);
graph1.addDataPoint(9820, 60);
graph1.addDataPoint(9867, 59);
graph1.addDataPoint(9914, 58);
graph1.addDataPoint(9961, 57);
graph1.addDataPoint(10008, 56);
graph1.addDataPoint(10055, 55);
graph1.addDataPoint(10078, 54);
graph1.addDataPoint(10102, 53);
graph1.addDataPoint(10148, 52);
graph1.addDataPoint(10172, 51);
graph1.addDataPoint(10219, 50);
graph1.addDataPoint(10242, 49);
graph1.addDataPoint(10266, 48);
graph1.addDataPoint(10313, 47);
graph1.addDataPoint(10336, 46);
graph1.addDataPoint(10383, 45);
graph1.addDataPoint(10406, 44);
graph1.addDataPoint(10453, 43);
graph1.addDataPoint(10477, 42);
graph1.addDataPoint(10523, 41);
graph1.addDataPoint(10570, 40);
graph1.addDataPoint(10641, 39);
graph1.addDataPoint(10734, 38);
graph1.addDataPoint(10875, 39);
graph1.addDataPoint(10969, 40);
graph1.addDataPoint(11016, 41);
graph1.addDataPoint(11063, 42);
graph1.addDataPoint(11109, 43);
graph1.addDataPoint(11133, 44);
graph1.addDataPoint(11156, 45);
graph1.addDataPoint(11203, 46);
graph1.addDataPoint(11227, 47);
graph1.addDataPoint(11250, 48);
graph1.addDataPoint(11273, 49);
graph1.addDataPoint(11297, 50);
graph1.addDataPoint(11320, 51);
graph1.addDataPoint(11344, 52);
graph1.addDataPoint(11367, 54);
graph1.addDataPoint(11391, 55);
graph1.addDataPoint(11414, 56);
graph1.addDataPoint(11438, 57);
graph1.addDataPoint(11461, 59);
graph1.addDataPoint(11484, 60);
graph1.addDataPoint(11508, 61);
graph1.addDataPoint(11531, 63);
graph1.addDataPoint(11555, 64);
graph1.addDataPoint(11578, 65);
graph1.addDataPoint(11602, 67);
graph1.addDataPoint(11625, 68);
graph1.addDataPoint(11648, 69);
graph1.addDataPoint(11672, 71);
graph1.addDataPoint(11695, 72);
graph1.addDataPoint(11719, 74);
graph1.addDataPoint(11742, 75);
graph1.addDataPoint(11766, 76);
graph1.addDataPoint(11789, 78);
graph1.addDataPoint(11813, 79);
graph1.addDataPoint(11836, 80);
graph1.addDataPoint(11859, 82);
graph1.addDataPoint(11883, 83);
graph1.addDataPoint(11906, 84);
graph1.addDataPoint(11930, 85);
graph1.addDataPoint(11953, 86);
graph1.addDataPoint(11977, 87);
graph1.addDataPoint(12000, 89);
graph1.addDataPoint(12023, 90);
graph1.addDataPoint(12047, 91);
graph1.addDataPoint(12070, 92);
graph1.addDataPoint(12117, 93);
graph1.addDataPoint(12141, 94);
graph1.addDataPoint(12164, 95);
graph1.addDataPoint(12188, 96);
graph1.addDataPoint(12234, 97);
graph1.addDataPoint(12281, 98);
graph1.addDataPoint(12352, 99);
graph1.addDataPoint(12516, 98);
graph1.addDataPoint(12586, 97);
graph1.addDataPoint(12633, 96);
graph1.addDataPoint(12680, 95);
graph1.addDataPoint(12703, 94);
graph1.addDataPoint(12727, 93);
graph1.addDataPoint(12750, 92);
graph1.addDataPoint(12797, 91);
graph1.addDataPoint(12820, 89);
graph1.addDataPoint(12844, 88);
graph1.addDataPoint(12867, 87);
graph1.addDataPoint(12891, 86);
graph1.addDataPoint(12914, 85);
graph1.addDataPoint(12938, 83);
graph1.addDataPoint(12961, 82);
graph1.addDataPoint(12984, 81);
graph1.addDataPoint(13008, 79);
graph1.addDataPoint(13031, 78);
graph1.addDataPoint(13055, 76);
graph1.addDataPoint(13078, 75);
graph1.addDataPoint(13102, 73);
graph1.addDataPoint(13125, 72);
graph1.addDataPoint(13148, 70);
graph1.addDataPoint(13172, 69);
graph1.addDataPoint(13195, 67);
graph1.addDataPoint(13219, 65);
graph1.addDataPoint(13242, 64);
graph1.addDataPoint(13266, 62);
graph1.addDataPoint(13289, 61);
graph1.addDataPoint(13313, 59);
graph1.addDataPoint(13336, 57);
graph1.addDataPoint(13359, 56);
graph1.addDataPoint(13383, 54);
graph1.addDataPoint(13406, 53);
graph1.addDataPoint(13430, 51);
graph1.addDataPoint(13453, 50);
graph1.addDataPoint(13477, 48);
graph1.addDataPoint(13500, 47);
graph1.addDataPoint(13523, 45);
graph1.addDataPoint(13547, 44);
graph1.addDataPoint(13570, 42);
graph1.addDataPoint(13594, 41);
graph1.addDataPoint(13617, 39);
graph1.addDataPoint(13641, 38);
graph1.addDataPoint(13664, 37);
graph1.addDataPoint(13688, 36);
graph1.addDataPoint(13711, 35);
graph1.addDataPoint(13734, 33);
graph1.addDataPoint(13758, 32);
graph1.addDataPoint(13781, 31);
graph1.addDataPoint(13805, 30);
graph1.addDataPoint(13852, 29);
graph1.addDataPoint(13875, 28);
graph1.addDataPoint(13898, 27);
graph1.addDataPoint(13945, 26);
graph1.addDataPoint(13969, 25);
graph1.addDataPoint(14016, 24);
graph1.addDataPoint(14086, 23);
graph1.addDataPoint(14297, 24);
graph1.addDataPoint(14367, 25);
graph1.addDataPoint(14414, 26);
graph1.addDataPoint(14461, 27);
graph1.addDataPoint(14508, 28);
graph1.addDataPoint(14531, 29);
graph1.addDataPoint(14578, 30);
graph1.addDataPoint(14602, 31);
graph1.addDataPoint(14648, 32);
graph1.addDataPoint(14672, 33);
graph1.addDataPoint(14695, 34);
graph1.addDataPoint(14719, 35);
graph1.addDataPoint(14766, 36);
graph1.addDataPoint(14789, 37);
graph1.addDataPoint(14813, 38);
graph1.addDataPoint(14836, 39);
graph1.addDataPoint(14859, 40);
graph1.addDataPoint(14906, 41);
graph1.addDataPoint(14930, 42);
graph1.addDataPoint(14953, 43);
graph1.addDataPoint(14977, 44);
graph1.addDataPoint(15023, 45);
graph1.addDataPoint(15047, 46);
graph1.addDataPoint(15094, 47);
graph1.addDataPoint(15141, 48);
graph1.addDataPoint(15164, 49);
graph1.addDataPoint(15234, 50);
graph1.addDataPoint(15281, 51);
graph1.addDataPoint(15586, 50);
graph1.addDataPoint(15633, 49);
graph1.addDataPoint(15680, 48);
graph1.addDataPoint(15727, 47);
graph1.addDataPoint(15773, 46);
graph1.addDataPoint(15797, 45);
graph1.addDataPoint(15820, 44);
graph1.addDataPoint(15867, 43);
graph1.addDataPoint(15891, 42);
graph1.addDataPoint(15914, 41);
graph1.addDataPoint(15938, 40);
graph1.addDataPoint(15961, 39);
graph1.addDataPoint(15984, 38);
graph1.addDataPoint(16008, 37);
graph1.addDataPoint(16031, 36);
graph1.addDataPoint(16055, 35);
graph1.addDataPoint(16078, 34);
graph1.addDataPoint(16102, 33);
graph1.addDataPoint(16125, 32);
graph1.addDataPoint(16148, 31);
graph1.addDataPoint(16172, 30);
graph1.addDataPoint(16195, 29);
graph1.addDataPoint(16219, 27);
graph1.addDataPoint(16242, 26);
graph1.addDataPoint(16266, 25);
graph1.addDataPoint(16289, 24);
graph1.addDataPoint(16313, 23);
graph1.addDataPoint(16336, 22);
graph1.addDataPoint(16359, 21);
graph1.addDataPoint(16383, 20);
graph1.addDataPoint(16406, 19);
graph1.addDataPoint(16430, 18);
graph1.addDataPoint(16453, 17);
graph1.addDataPoint(16500, 16);
graph1.addDataPoint(16523, 15);
graph1.addDataPoint(16547, 14);
graph1.addDataPoint(16594, 13);
graph1.addDataPoint(16617, 12);
graph1.addDataPoint(16664, 11);
graph1.addDataPoint(16711, 10);
graph1.addDataPoint(16781, 9);
graph1.addDataPoint(16945, 10);
graph1.addDataPoint(17016, 11);
graph1.addDataPoint(17063, 12);
graph1.addDataPoint(17109, 13);
graph1.addDataPoint(17133, 14);
graph1.addDataPoint(17180, 15);
graph1.addDataPoint(17203, 16);
graph1.addDataPoint(17227, 17);
graph1.addDataPoint(17250, 18);
graph1.addDataPoint(17273, 19);
graph1.addDataPoint(17297, 20);
graph1.addDataPoint(17320, 22);
graph1.addDataPoint(17344, 23);
graph1.addDataPoint(17367, 24);
graph1.addDataPoint(17391, 25);
graph1.addDataPoint(17414, 27);
graph1.addDataPoint(17438, 28);
graph1.addDataPoint(17461, 30);
graph1.addDataPoint(17484, 31);
graph1.addDataPoint(17508, 33);
graph1.addDataPoint(17531, 34);
graph1.addDataPoint(17555, 36);
graph1.addDataPoint(17578, 37);
graph1.addDataPoint(17602, 39);
graph1.addDataPoint(17625, 41);
graph1.addDataPoint(17648, 42);
graph1.addDataPoint(17672, 44);
graph1.addDataPoint(17695, 46);
graph1.addDataPoint(17719, 47);
graph1.addDataPoint(17742, 49);
graph1.addDataPoint(17766, 51);
graph1.addDataPoint(17789, 53);
graph1.addDataPoint(17813, 54);
graph1.addDataPoint(17836, 56);
graph1.addDataPoint(17859, 58);
graph1.addDataPoint(17883, 59);
graph1.addDataPoint(17906, 61);
graph1.addDataPoint(17930, 63);
graph1.addDataPoint(17953, 64);
graph1.addDataPoint(17977, 66);
graph1.addDataPoint(18000, 67);
graph1.addDataPoint(18023, 69);
graph1.addDataPoint(18047, 70);
graph1.addDataPoint(18070, 72);
graph1.addDataPoint(18094, 73);
graph1.addDataPoint(18117, 75);
graph1.addDataPoint(18141, 76);
graph1.addDataPoint(18164, 77);
graph1.addDataPoint(18188, 78);
graph1.addDataPoint(18211, 80);
graph1.addDataPoint(18234, 81);
graph1.addDataPoint(18258, 82);
graph1.addDataPoint(18281, 83);
graph1.addDataPoint(18305, 84);
graph1.addDataPoint(18328, 85);
graph1.addDataPoint(18352, 86);
graph1.addDataPoint(18398, 87);
graph1.addDataPoint(18422, 88);
graph1.addDataPoint(18469, 89);
graph1.addDataPoint(18516, 90);
graph1.addDataPoint(18586, 91);
graph1.addDataPoint(18750, 90);
graph1.addDataPoint(18820, 89);
graph1.addDataPoint(18867, 88);
graph1.addDataPoint(18914, 87);
graph1.addDataPoint(18938, 86);
graph1.addDataPoint(18984, 85);
graph1.addDataPoint(19008, 84);
graph1.addDataPoint(19031, 83);
graph1.addDataPoint(19078, 82);
graph1.addDataPoint(19102, 81);
graph1.addDataPoint(19125, 80);
graph1.addDataPoint(19148, 79);
graph1.addDataPoint(19172, 78);
graph1.addDataPoint(19195, 77);
graph1.addDataPoint(19219, 76);
graph1.addDataPoint(19242, 75);
graph1.addDataPoint(19266, 74);
graph1.addDataPoint(19289, 73);
graph1.addDataPoint(19313, 71);
graph1.addDataPoint(19336, 70);
graph1.addDataPoint(19359, 69);
graph1.addDataPoint(19383, 68);
graph1.addDataPoint(19406, 67);
graph1.addDataPoint(19430, 66);
graph1.addDataPoint(19453, 65);
graph1.addDataPoint(19477, 64);
graph1.addDataPoint(19500, 63);
graph1.addDataPoint(19523, 62);
graph1.addDataPoint(19547, 61);
graph1.addDataPoint(19570, 60);
graph1.addDataPoint(19594, 59);
graph1.addDataPoint(19617, 58);
graph1.addDataPoint(19641, 57);
graph1.addDataPoint(19664, 56);
graph1.addDataPoint(19711, 55);
graph1.addDataPoint(19734, 54);
graph1.addDataPoint(19758, 53);
graph1.addDataPoint(19805, 52);
graph1.addDataPoint(19852, 51);
graph1.addDataPoint(19898, 50);
graph1.addDataPoint(19945, 49);
graph1.addDataPoint(20250, 50);
graph1.addDataPoint(20320, 51);
graph1.addDataPoint(20367, 52);
graph1.addDataPoint(20414, 53);
graph1.addDataPoint(20438, 54);
graph1.addDataPoint(20484, 55);
graph1.addDataPoint(20508, 56);
graph1.addDataPoint(20555, 57);
graph1.addDataPoint(20578, 58);
graph1.addDataPoint(20602, 59);
graph1.addDataPoint(20625, 60);
graph1.addDataPoint(20672, 61);
graph1.addDataPoint(20695, 62);
graph1.addDataPoint(20719, 63);
graph1.addDataPoint(20742, 64);
graph1.addDataPoint(20766, 65);
graph1.addDataPoint(20813, 66);
graph1.addDataPoint(20836, 67);
graph1.addDataPoint(20859, 68);
graph1.addDataPoint(20883, 69);
graph1.addDataPoint(20930, 70);
graph1.addDataPoint(20953, 71);
graph1.addDataPoint(21000, 72);
graph1.addDataPoint(21023, 73);
graph1.addDataPoint(21070, 74);
graph1.addDataPoint(21117, 75);
graph1.addDataPoint(21164, 76);
graph1.addDataPoint(21234, 77);
graph1.addDataPoint(21445, 76);
graph1.addDataPoint(21516, 75);
graph1.addDataPoint(21563, 74);
graph1.addDataPoint(21609, 73);
graph1.addDataPoint(21633, 72);
graph1.addDataPoint(21656, 71);
graph1.addDataPoint(21680, 70);
graph1.addDataPoint(21727, 69);
graph1.addDataPoint(21750, 68);
graph1.addDataPoint(21773, 67);
graph1.addDataPoint(21797, 65);
graph1.addDataPoint(21820, 64);
graph1.addDataPoint(21844, 63);
graph1.addDataPoint(21867, 62);
graph1.addDataPoint(21891, 61);
graph1.addDataPoint(21914, 59);
graph1.addDataPoint(21938, 58);
graph1.addDataPoint(21961, 56);
graph1.addDataPoint(21984, 55);
graph1.addDataPoint(22008, 54);
graph1.addDataPoint(22031, 52);
graph1.addDataPoint(22055, 51);
graph1.addDataPoint(22078, 49);
graph1.addDataPoint(22102, 47);
graph1.addDataPoint(22125, 46);
graph1.addDataPoint(22148, 44);
graph1.addDataPoint(22172, 43);
graph1.addDataPoint(22195, 41);
graph1.addDataPoint(22219, 39);
graph1.addDataPoint(22242, 38);
graph1.addDataPoint(22266, 36);
graph1.addDataPoint(22289, 35);
graph1.addDataPoint(22313, 33);
graph1.addDataPoint(22336, 31);
graph1.addDataPoint(22359, 30);
graph1.addDataPoint(22383, 28);
graph1.addDataPoint(22406, 27);
graph1.addDataPoint(22430, 25);
graph1.addDataPoint(22453, 24);
graph1.addDataPoint(22477, 22);
graph1.addDataPoint(22500, 21);
graph1.addDataPoint(22523, 19);
graph1.addDataPoint(22547, 18);
graph1.addDataPoint(22570, 17);
graph1.addDataPoint(22594, 15);
graph1.addDataPoint(22617, 14);
graph1.addDataPoint(22641, 13);
graph1.addDataPoint(22664, 12);
graph1.addDataPoint(22688, 11);
graph1.addDataPoint(22711, 10);
graph1.addDataPoint(22734, 9);
graph1.addDataPoint(22758, 8);
graph1.addDataPoint(22781, 7);
graph1.addDataPoint(22805, 6);
graph1.addDataPoint(22828, 5);
graph1.addDataPoint(22852, 4);
graph1.addDataPoint(22898, 3);
graph1.addDataPoint(22945, 2);
graph1.addDataPoint(23016, 1);
graph1.addDataPoint(23180, 2);
graph1.addDataPoint(23250, 3);
graph1.addDataPoint(23297, 4);
graph1.addDataPoint(23344, 5);
graph1.addDataPoint(23367, 6);
graph1.addDataPoint(23391, 7);
graph1.addDataPoint(23414, 8);
graph1.addDataPoint(23461, 9);
graph1.addDataPoint(23484, 10);
graph1.addDataPoint(23508, 11);
graph1.addDataPoint(23531, 12);
graph1.addDataPoint(23555, 14);
graph1.addDataPoint(23578, 15);
graph1.addDataPoint(23602, 16);
graph1.addDataPoint(23625, 17);
graph1.addDataPoint(23648, 18);
graph1.addDataPoint(23672, 20);
graph1.addDataPoint(23695, 21);
graph1.addDataPoint(23719, 22);
graph1.addDataPoint(23742, 24);
graph1.addDataPoint(23766, 25);
graph1.addDataPoint(23789, 26);
graph1.addDataPoint(23813, 28);
graph1.addDataPoint(23836, 29);
graph1.addDataPoint(23859, 31);
graph1.addDataPoint(23883, 32);
graph1.addDataPoint(23906, 33);
graph1.addDataPoint(23930, 35);
graph1.addDataPoint(23953, 36);
graph1.addDataPoint(23977, 37);
add(graph1);
image2.setXY(535, 74);
image2.setBitmap(touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_BUTTON_REGULAR_HEIGHT_36_MEDIUM_ROUND_ACTION_ID));
add(image2);
textArea2.setPosition(582, 104, 181, 23);
textArea2.setColor(touchgfx::Color::getColorFromRGB(230, 214, 170));
textArea2.setLinespacing(0);
Unicode::snprintf(textArea2Buffer, TEXTAREA2_SIZE, "%s", touchgfx::TypedText(T___SINGLEUSE_U5V0).getText());
textArea2.setWildcard(textArea2Buffer);
textArea2.setTypedText(touchgfx::TypedText(T_TEXTAREAMAX));
add(textArea2);
}
OscilloViewBase::~OscilloViewBase()
{
touchgfx::CanvasWidgetRenderer::resetBuffer();
}
void OscilloViewBase::setupScreen()
{
}
void OscilloViewBase::buttonCallbackHandler(const touchgfx::AbstractButton& src)
{
if (&src == &buttonWithLabel1)
{
//Interaction1
//When buttonWithLabel1 clicked change screen to Overview
//Go to Overview with no screen transition
application().gotoOverviewScreenNoTransition();
}
if (&src == &toggleButton1)
{
//Interaction2
//When toggleButton1 clicked call virtual function
//Call toggleClicked
toggleClicked();
}
}
@@ -0,0 +1,139 @@
/*********************************************************************************/
/********** THIS FILE IS GENERATED BY TOUCHGFX DESIGNER, DO NOT MODIFY ***********/
/*********************************************************************************/
#include <gui_generated/overdrive_screen/OverdriveViewBase.hpp>
#include <touchgfx/Color.hpp>
#include <images/BitmapDatabase.hpp>
#include <texts/TextKeysAndLanguages.hpp>
OverdriveViewBase::OverdriveViewBase() :
buttonCallback(this, &OverdriveViewBase::buttonCallbackHandler),
sliderValueChangedCallback(this, &OverdriveViewBase::sliderValueChangedCallbackHandler)
{
__background.setPosition(0, 0, 800, 480);
__background.setColor(touchgfx::Color::getColorFromRGB(0, 0, 0));
add(__background);
image1.setXY(0, -1);
image1.setBitmap(touchgfx::Bitmap(BITMAP_FONDHORLOGERIE1_ID));
add(image1);
box1.setPosition(0, 0, 800, 480);
box1.setColor(touchgfx::Color::getColorFromRGB(35, 24, 15));
box1.setAlpha(241);
add(box1);
toggleButton1.setXY(576, 20);
toggleButton1.setBitmaps(touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_TOGGLEBUTTON_LARGE_ROUND_TEXT_OFF_NORMAL_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_TOGGLEBUTTON_LARGE_ROUND_TEXT_ON_ACTIVE_ID));
toggleButton1.setAction(buttonCallback);
add(toggleButton1);
slider1.setXY(290, 134);
slider1.setBitmaps(touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_HORIZONTAL_THICK_TRACK_LARGE_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_HORIZONTAL_THICK_FILLER_LARGE_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_HORIZONTAL_THICK_ROUNDED_DARK_ID));
slider1.setupHorizontalSlider(28, 21, 0, 0, 400);
slider1.setValueRange(0, 100);
slider1.setValue(0);
slider1.setNewValueCallback(sliderValueChangedCallback);
add(slider1);
slider2.setXY(290, 244);
slider2.setBitmaps(touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_HORIZONTAL_THICK_TRACK_LARGE_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_HORIZONTAL_THICK_FILLER_LARGE_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_HORIZONTAL_THICK_ROUNDED_DARK_ID));
slider2.setupHorizontalSlider(28, 21, 0, 0, 400);
slider2.setValueRange(0, 100);
slider2.setValue(0);
slider2.setNewValueCallback(sliderValueChangedCallback);
add(slider2);
slider3.setXY(290, 354);
slider3.setBitmaps(touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_HORIZONTAL_THICK_TRACK_LARGE_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_HORIZONTAL_THICK_FILLER_LARGE_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_HORIZONTAL_THICK_ROUNDED_DARK_ID));
slider3.setupHorizontalSlider(28, 21, 0, 0, 400);
slider3.setValueRange(0, 100);
slider3.setValue(0);
slider3.setNewValueCallback(sliderValueChangedCallback);
add(slider3);
buttonWithLabel1.setXY(0, 0);
buttonWithLabel1.setBitmaps(touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_BUTTON_REGULAR_HEIGHT_50_SMALL_ROUNDED_NORMAL_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_BUTTON_REGULAR_HEIGHT_50_SMALL_ROUNDED_PRESSED_ID));
buttonWithLabel1.setLabelText(touchgfx::TypedText(T_BACK));
buttonWithLabel1.setLabelColor(touchgfx::Color::getColorFromRGB(230, 214, 170));
buttonWithLabel1.setLabelColorPressed(touchgfx::Color::getColorFromRGB(230, 214, 170));
buttonWithLabel1.setAction(buttonCallback);
add(buttonWithLabel1);
textArea1.setXY(282, 24);
textArea1.setColor(touchgfx::Color::getColorFromRGB(230, 214, 170));
textArea1.setLinespacing(0);
textArea1.setTypedText(touchgfx::TypedText(T_OVERDRIVE));
add(textArea1);
textArea2.setXY(130, 150);
textArea2.setColor(touchgfx::Color::getColorFromRGB(230, 214, 170));
textArea2.setLinespacing(0);
textArea2.setTypedText(touchgfx::TypedText(T_DRIVE));
add(textArea2);
textArea2_1.setXY(130, 260);
textArea2_1.setColor(touchgfx::Color::getColorFromRGB(230, 214, 170));
textArea2_1.setLinespacing(0);
textArea2_1.setTypedText(touchgfx::TypedText(T_TONE));
add(textArea2_1);
textArea2_2.setXY(130, 370);
textArea2_2.setColor(touchgfx::Color::getColorFromRGB(230, 214, 170));
textArea2_2.setLinespacing(0);
textArea2_2.setTypedText(touchgfx::TypedText(T_LEVEL));
add(textArea2_2);
}
OverdriveViewBase::~OverdriveViewBase()
{
}
void OverdriveViewBase::setupScreen()
{
}
void OverdriveViewBase::buttonCallbackHandler(const touchgfx::AbstractButton& src)
{
if (&src == &buttonWithLabel1)
{
//Interaction1
//When buttonWithLabel1 clicked change screen to Overview
//Go to Overview with no screen transition
application().gotoOverviewScreenNoTransition();
}
if (&src == &toggleButton1)
{
//Interaction2
//When toggleButton1 clicked call virtual function
//Call toggleClicked
toggleClicked();
}
}
void OverdriveViewBase::sliderValueChangedCallbackHandler(const touchgfx::Slider& src, int value)
{
if (&src == &slider1)
{
//Interaction3
//When slider1 value changed call virtual function
//Call sliderDriveChanged
sliderDriveChanged(value);
}
if (&src == &slider2)
{
//Interaction4
//When slider2 value changed call virtual function
//Call sliderToneChanged
sliderToneChanged(value);
}
if (&src == &slider3)
{
//Interaction5
//When slider3 value changed call virtual function
//Call sliderLevelChanged
sliderLevelChanged(value);
}
}
@@ -0,0 +1,195 @@
/*********************************************************************************/
/********** THIS FILE IS GENERATED BY TOUCHGFX DESIGNER, DO NOT MODIFY ***********/
/*********************************************************************************/
#include <gui_generated/overview_screen/OverviewViewBase.hpp>
#include <touchgfx/Color.hpp>
#include <images/BitmapDatabase.hpp>
#include <texts/TextKeysAndLanguages.hpp>
OverviewViewBase::OverviewViewBase() :
buttonCallback(this, &OverviewViewBase::buttonCallbackHandler),
sliderValueChangedCallback(this, &OverviewViewBase::sliderValueChangedCallbackHandler)
{
__background.setPosition(0, 0, 800, 480);
__background.setColor(touchgfx::Color::getColorFromRGB(0, 0, 0));
add(__background);
image1.setXY(0, -1);
image1.setBitmap(touchgfx::Bitmap(BITMAP_FONDHORLOGERIE1_ID));
add(image1);
box1.setPosition(0, 0, 800, 480);
box1.setColor(touchgfx::Color::getColorFromRGB(35, 24, 15));
box1.setAlpha(182);
add(box1);
buttonWithLabel1.setXY(0, 134);
buttonWithLabel1.setBitmaps(touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_BUTTON_REGULAR_HEIGHT_50_LARGE_ROUNDED_NORMAL_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_BUTTON_REGULAR_HEIGHT_50_LARGE_ROUNDED_PRESSED_ID));
buttonWithLabel1.setLabelText(touchgfx::TypedText(T_EQUALIZER));
buttonWithLabel1.setLabelColor(touchgfx::Color::getColorFromRGB(230, 214, 170));
buttonWithLabel1.setLabelColorPressed(touchgfx::Color::getColorFromRGB(255, 255, 255));
buttonWithLabel1.setAction(buttonCallback);
add(buttonWithLabel1);
buttonWithLabel2.setXY(0, 322);
buttonWithLabel2.setBitmaps(touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_BUTTON_REGULAR_HEIGHT_50_LARGE_ROUNDED_NORMAL_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_BUTTON_REGULAR_HEIGHT_50_LARGE_ROUNDED_PRESSED_ID));
buttonWithLabel2.setLabelText(touchgfx::TypedText(T_OVERDRIVE));
buttonWithLabel2.setLabelColor(touchgfx::Color::getColorFromRGB(230, 214, 170));
buttonWithLabel2.setLabelColorPressed(touchgfx::Color::getColorFromRGB(230, 214, 170));
buttonWithLabel2.setAction(buttonCallback);
add(buttonWithLabel2);
buttonWithLabel3.setXY(380, 322);
buttonWithLabel3.setBitmaps(touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_BUTTON_REGULAR_HEIGHT_50_LARGE_ROUNDED_NORMAL_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_BUTTON_REGULAR_HEIGHT_50_LARGE_ROUNDED_PRESSED_ID));
buttonWithLabel3.setLabelText(touchgfx::TypedText(T_SATURATION));
buttonWithLabel3.setLabelColor(touchgfx::Color::getColorFromRGB(230, 214, 170));
buttonWithLabel3.setLabelColorPressed(touchgfx::Color::getColorFromRGB(230, 214, 170));
buttonWithLabel3.setAction(buttonCallback);
add(buttonWithLabel3);
buttonWithLabel4.setXY(0, 228);
buttonWithLabel4.setBitmaps(touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_BUTTON_REGULAR_HEIGHT_50_LARGE_ROUNDED_NORMAL_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_BUTTON_REGULAR_HEIGHT_50_LARGE_ROUNDED_PRESSED_ID));
buttonWithLabel4.setLabelText(touchgfx::TypedText(T_ECHO));
buttonWithLabel4.setLabelColor(touchgfx::Color::getColorFromRGB(230, 214, 170));
buttonWithLabel4.setLabelColorPressed(touchgfx::Color::getColorFromRGB(230, 214, 170));
buttonWithLabel4.setAction(buttonCallback);
add(buttonWithLabel4);
buttonWithLabel5.setXY(380, 228);
buttonWithLabel5.setBitmaps(touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_BUTTON_REGULAR_HEIGHT_50_LARGE_ROUNDED_NORMAL_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_BUTTON_REGULAR_HEIGHT_50_LARGE_ROUNDED_PRESSED_ID));
buttonWithLabel5.setLabelText(touchgfx::TypedText(T_REVERB));
buttonWithLabel5.setLabelColor(touchgfx::Color::getColorFromRGB(230, 214, 170));
buttonWithLabel5.setLabelColorPressed(touchgfx::Color::getColorFromRGB(230, 214, 170));
buttonWithLabel5.setAction(buttonCallback);
add(buttonWithLabel5);
buttonWithLabel6.setXY(380, 134);
buttonWithLabel6.setBitmaps(touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_BUTTON_REGULAR_HEIGHT_50_LARGE_ROUNDED_NORMAL_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_BUTTON_REGULAR_HEIGHT_50_LARGE_ROUNDED_PRESSED_ID));
buttonWithLabel6.setLabelText(touchgfx::TypedText(T_OCTAVER));
buttonWithLabel6.setLabelColor(touchgfx::Color::getColorFromRGB(230, 214, 170));
buttonWithLabel6.setLabelColorPressed(touchgfx::Color::getColorFromRGB(230, 214, 170));
buttonWithLabel6.setAction(buttonCallback);
add(buttonWithLabel6);
buttonWithLabel7.setXY(190, 396);
buttonWithLabel7.setBitmaps(touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_BUTTON_REGULAR_HEIGHT_50_LARGE_ROUNDED_NORMAL_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_BUTTON_REGULAR_HEIGHT_50_LARGE_ROUNDED_PRESSED_ID));
buttonWithLabel7.setLabelText(touchgfx::TypedText(T_OSCILLO));
buttonWithLabel7.setLabelColor(touchgfx::Color::getColorFromRGB(230, 214, 170));
buttonWithLabel7.setLabelColorPressed(touchgfx::Color::getColorFromRGB(230, 214, 170));
buttonWithLabel7.setAction(buttonCallback);
add(buttonWithLabel7);
toggleButton1.setXY(135, 18);
toggleButton1.setBitmaps(touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_TOGGLEBUTTON_LARGE_ROUNDED_TEXT_OFF_NORMAL_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_TOGGLEBUTTON_LARGE_ROUNDED_TEXT_ON_ACTIVE_ID));
toggleButton1.setAction(buttonCallback);
add(toggleButton1);
slider1.setXY(329, 22);
slider1.setBitmaps(touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_HORIZONTAL_THICK_TRACK_LARGE_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_HORIZONTAL_THICK_FILLER_LARGE_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_HORIZONTAL_THICK_ROUNDED_DARK_ID));
slider1.setupHorizontalSlider(28, 21, 0, 0, 400);
slider1.setValueRange(0, 100);
slider1.setValue(0);
slider1.setNewValueCallback(sliderValueChangedCallback);
add(slider1);
scalableImage1.setBitmap(touchgfx::Bitmap(BITMAP_ICON_THEME_IMAGES_HARDWARE_HEADSET_50_50_FFFFFF_SVG_ID));
scalableImage1.setPosition(15, 4, 105, 95);
scalableImage1.setScalingAlgorithm(touchgfx::ScalableImage::BILINEAR_INTERPOLATION);
scalableImage1.setAlpha(149);
add(scalableImage1);
repeatButton1.setXY(45, 382);
repeatButton1.setBitmaps(touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_BUTTON_ICON_ROUND_TINY_FILL_NORMAL_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_BUTTON_ICON_ROUND_TINY_FILL_PRESSED_ID));
repeatButton1.setDelay(12);
repeatButton1.setInterval(60);
repeatButton1.setAction(buttonCallback);
add(repeatButton1);
}
OverviewViewBase::~OverviewViewBase()
{
}
void OverviewViewBase::setupScreen()
{
}
void OverviewViewBase::buttonCallbackHandler(const touchgfx::AbstractButton& src)
{
if (&src == &buttonWithLabel1)
{
//Interaction1
//When buttonWithLabel1 clicked change screen to Equalizer
//Go to Equalizer with no screen transition
application().gotoEqualizerScreenNoTransition();
}
if (&src == &buttonWithLabel2)
{
//Interaction2
//When buttonWithLabel2 clicked change screen to Overdrive
//Go to Overdrive with no screen transition
application().gotoOverdriveScreenNoTransition();
}
if (&src == &buttonWithLabel3)
{
//Interaction3
//When buttonWithLabel3 clicked change screen to Saturation
//Go to Saturation with no screen transition
application().gotoSaturationScreenNoTransition();
}
if (&src == &buttonWithLabel4)
{
//Interaction4
//When buttonWithLabel4 clicked change screen to Echo
//Go to Echo with no screen transition
application().gotoEchoScreenNoTransition();
}
if (&src == &buttonWithLabel5)
{
//Interaction5
//When buttonWithLabel5 clicked change screen to Reverb
//Go to Reverb with no screen transition
application().gotoReverbScreenNoTransition();
}
if (&src == &toggleButton1)
{
//Interaction6
//When toggleButton1 clicked call virtual function
//Call toggleAudioOnOFF
toggleAudioOnOFF();
}
if (&src == &buttonWithLabel6)
{
//Interaction7
//When buttonWithLabel6 clicked change screen to Octaver
//Go to Octaver with no screen transition
application().gotoOctaverScreenNoTransition();
}
if (&src == &buttonWithLabel7)
{
//Interaction10
//When buttonWithLabel7 clicked change screen to Oscillo
//Go to Oscillo with no screen transition
application().gotoOscilloScreenNoTransition();
}
if (&src == &repeatButton1)
{
//Interaction11
//When repeatButton1 clicked call virtual function
//Call repeatButtonClicked
repeatButtonClicked();
}
}
void OverviewViewBase::sliderValueChangedCallbackHandler(const touchgfx::Slider& src, int value)
{
if (&src == &slider1)
{
//Interaction8
//When slider1 value changed call virtual function
//Call slider1Changed
slider1Changed(value);
}
}
@@ -0,0 +1,139 @@
/*********************************************************************************/
/********** THIS FILE IS GENERATED BY TOUCHGFX DESIGNER, DO NOT MODIFY ***********/
/*********************************************************************************/
#include <gui_generated/reverb_screen/ReverbViewBase.hpp>
#include <touchgfx/Color.hpp>
#include <images/BitmapDatabase.hpp>
#include <texts/TextKeysAndLanguages.hpp>
ReverbViewBase::ReverbViewBase() :
buttonCallback(this, &ReverbViewBase::buttonCallbackHandler),
sliderValueChangedCallback(this, &ReverbViewBase::sliderValueChangedCallbackHandler)
{
__background.setPosition(0, 0, 800, 480);
__background.setColor(touchgfx::Color::getColorFromRGB(0, 0, 0));
add(__background);
image1.setXY(0, -1);
image1.setBitmap(touchgfx::Bitmap(BITMAP_FONDHORLOGERIE1_ID));
add(image1);
box1.setPosition(0, 0, 800, 480);
box1.setColor(touchgfx::Color::getColorFromRGB(35, 24, 15));
box1.setAlpha(240);
add(box1);
textArea2.setXY(142, 380);
textArea2.setColor(touchgfx::Color::getColorFromRGB(230, 214, 170));
textArea2.setLinespacing(0);
textArea2.setTypedText(touchgfx::TypedText(T_MIX));
add(textArea2);
textArea2_1.setXY(130, 271);
textArea2_1.setColor(touchgfx::Color::getColorFromRGB(230, 214, 170));
textArea2_1.setLinespacing(0);
textArea2_1.setTypedText(touchgfx::TypedText(T_DAMPING));
add(textArea2_1);
textArea2_2.setXY(130, 161);
textArea2_2.setColor(touchgfx::Color::getColorFromRGB(230, 214, 170));
textArea2_2.setLinespacing(0);
textArea2_2.setTypedText(touchgfx::TypedText(T_DRIVE));
add(textArea2_2);
slider1.setXY(280, 145);
slider1.setBitmaps(touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_HORIZONTAL_THICK_TRACK_LARGE_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_HORIZONTAL_THICK_FILLER_LARGE_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_HORIZONTAL_THICK_ROUNDED_DARK_ID));
slider1.setupHorizontalSlider(28, 21, 0, 0, 400);
slider1.setValueRange(0, 100);
slider1.setValue(0);
slider1.setNewValueCallback(sliderValueChangedCallback);
add(slider1);
slider2.setXY(280, 255);
slider2.setBitmaps(touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_HORIZONTAL_THICK_TRACK_LARGE_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_HORIZONTAL_THICK_FILLER_LARGE_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_HORIZONTAL_THICK_ROUNDED_DARK_ID));
slider2.setupHorizontalSlider(28, 21, 0, 0, 400);
slider2.setValueRange(0, 100);
slider2.setValue(0);
slider2.setNewValueCallback(sliderValueChangedCallback);
add(slider2);
slider3.setXY(280, 365);
slider3.setBitmaps(touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_HORIZONTAL_THICK_TRACK_LARGE_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_HORIZONTAL_THICK_FILLER_LARGE_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_HORIZONTAL_THICK_ROUNDED_DARK_ID));
slider3.setupHorizontalSlider(28, 21, 0, 0, 400);
slider3.setValueRange(0, 100);
slider3.setValue(0);
slider3.setNewValueCallback(sliderValueChangedCallback);
add(slider3);
textArea1.setXY(317, 27);
textArea1.setColor(touchgfx::Color::getColorFromRGB(230, 214, 170));
textArea1.setLinespacing(0);
textArea1.setTypedText(touchgfx::TypedText(T_REVERB));
add(textArea1);
buttonWithLabel1.setXY(0, 0);
buttonWithLabel1.setBitmaps(touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_BUTTON_REGULAR_HEIGHT_50_SMALL_ROUNDED_NORMAL_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_BUTTON_REGULAR_HEIGHT_50_SMALL_ROUNDED_PRESSED_ID));
buttonWithLabel1.setLabelText(touchgfx::TypedText(T_BACK));
buttonWithLabel1.setLabelColor(touchgfx::Color::getColorFromRGB(230, 214, 170));
buttonWithLabel1.setLabelColorPressed(touchgfx::Color::getColorFromRGB(230, 214, 170));
buttonWithLabel1.setAction(buttonCallback);
add(buttonWithLabel1);
toggleButton1.setXY(576, 20);
toggleButton1.setBitmaps(touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_TOGGLEBUTTON_LARGE_ROUND_TEXT_OFF_NORMAL_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_TOGGLEBUTTON_LARGE_ROUND_TEXT_ON_ACTIVE_ID));
toggleButton1.setAction(buttonCallback);
add(toggleButton1);
}
ReverbViewBase::~ReverbViewBase()
{
}
void ReverbViewBase::setupScreen()
{
}
void ReverbViewBase::buttonCallbackHandler(const touchgfx::AbstractButton& src)
{
if (&src == &buttonWithLabel1)
{
//Interaction1
//When buttonWithLabel1 clicked change screen to Overview
//Go to Overview with no screen transition
application().gotoOverviewScreenNoTransition();
}
if (&src == &toggleButton1)
{
//Interaction2
//When toggleButton1 clicked call virtual function
//Call toggleClicked
toggleClicked();
}
}
void ReverbViewBase::sliderValueChangedCallbackHandler(const touchgfx::Slider& src, int value)
{
if (&src == &slider1)
{
//Interaction3
//When slider1 value changed call virtual function
//Call sliderTailleChanged
sliderTailleChanged(value);
}
if (&src == &slider2)
{
//Interaction4
//When slider2 value changed call virtual function
//Call sliderAmortiChanged
sliderAmortiChanged(value);
}
if (&src == &slider3)
{
//Interaction5
//When slider3 value changed call virtual function
//Call sliderMixChanged
sliderMixChanged(value);
}
}
@@ -0,0 +1,118 @@
/*********************************************************************************/
/********** THIS FILE IS GENERATED BY TOUCHGFX DESIGNER, DO NOT MODIFY ***********/
/*********************************************************************************/
#include <gui_generated/saturation_screen/SaturationViewBase.hpp>
#include <touchgfx/Color.hpp>
#include <images/BitmapDatabase.hpp>
#include <texts/TextKeysAndLanguages.hpp>
SaturationViewBase::SaturationViewBase() :
buttonCallback(this, &SaturationViewBase::buttonCallbackHandler),
sliderValueChangedCallback(this, &SaturationViewBase::sliderValueChangedCallbackHandler)
{
__background.setPosition(0, 0, 800, 480);
__background.setColor(touchgfx::Color::getColorFromRGB(0, 0, 0));
add(__background);
image1.setXY(0, -1);
image1.setBitmap(touchgfx::Bitmap(BITMAP_FONDHORLOGERIE1_ID));
add(image1);
box1.setPosition(0, 0, 800, 480);
box1.setColor(touchgfx::Color::getColorFromRGB(35, 24, 15));
box1.setAlpha(240);
add(box1);
textArea2.setXY(130, 161);
textArea2.setColor(touchgfx::Color::getColorFromRGB(230, 214, 170));
textArea2.setLinespacing(0);
textArea2.setTypedText(touchgfx::TypedText(T_DRIVE));
add(textArea2);
textArea2_1.setXY(130, 270);
textArea2_1.setColor(touchgfx::Color::getColorFromRGB(230, 214, 170));
textArea2_1.setLinespacing(0);
textArea2_1.setTypedText(touchgfx::TypedText(T_LEVEL));
add(textArea2_1);
slider1.setXY(280, 145);
slider1.setBitmaps(touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_HORIZONTAL_THICK_TRACK_LARGE_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_HORIZONTAL_THICK_FILLER_LARGE_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_HORIZONTAL_THICK_ROUNDED_DARK_ID));
slider1.setupHorizontalSlider(28, 21, 0, 0, 400);
slider1.setValueRange(0, 100);
slider1.setValue(0);
slider1.setNewValueCallback(sliderValueChangedCallback);
add(slider1);
slider2.setXY(280, 255);
slider2.setBitmaps(touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_HORIZONTAL_THICK_TRACK_LARGE_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_HORIZONTAL_THICK_FILLER_LARGE_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_SLIDER_HORIZONTAL_THICK_ROUNDED_DARK_ID));
slider2.setupHorizontalSlider(28, 21, 0, 0, 400);
slider2.setValueRange(0, 100);
slider2.setValue(0);
slider2.setNewValueCallback(sliderValueChangedCallback);
add(slider2);
textArea1.setXY(274, 24);
textArea1.setColor(touchgfx::Color::getColorFromRGB(230, 214, 170));
textArea1.setLinespacing(0);
textArea1.setTypedText(touchgfx::TypedText(T_SATURATION));
add(textArea1);
toggleButton1.setXY(576, 20);
toggleButton1.setBitmaps(touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_TOGGLEBUTTON_LARGE_ROUND_TEXT_OFF_NORMAL_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_TOGGLEBUTTON_LARGE_ROUND_TEXT_ON_ACTIVE_ID));
toggleButton1.setAction(buttonCallback);
add(toggleButton1);
buttonWithLabel1.setXY(0, 0);
buttonWithLabel1.setBitmaps(touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_BUTTON_REGULAR_HEIGHT_50_SMALL_ROUNDED_NORMAL_ID), touchgfx::Bitmap(BITMAP_GLASS_THEME_IMAGES_WIDGETS_BUTTON_REGULAR_HEIGHT_50_SMALL_ROUNDED_PRESSED_ID));
buttonWithLabel1.setLabelText(touchgfx::TypedText(T_BACK));
buttonWithLabel1.setLabelColor(touchgfx::Color::getColorFromRGB(230, 214, 170));
buttonWithLabel1.setLabelColorPressed(touchgfx::Color::getColorFromRGB(230, 214, 170));
buttonWithLabel1.setAction(buttonCallback);
add(buttonWithLabel1);
}
SaturationViewBase::~SaturationViewBase()
{
}
void SaturationViewBase::setupScreen()
{
}
void SaturationViewBase::buttonCallbackHandler(const touchgfx::AbstractButton& src)
{
if (&src == &buttonWithLabel1)
{
//Interaction1
//When buttonWithLabel1 clicked change screen to Overview
//Go to Overview with no screen transition
application().gotoOverviewScreenNoTransition();
}
if (&src == &toggleButton1)
{
//Interaction2
//When toggleButton1 clicked call virtual function
//Call toggleClicked
toggleClicked();
}
}
void SaturationViewBase::sliderValueChangedCallbackHandler(const touchgfx::Slider& src, int value)
{
if (&src == &slider1)
{
//Interaction3
//When slider1 value changed call virtual function
//Call sliderDriveClicked
sliderDriveClicked(value);
}
if (&src == &slider2)
{
//Interaction4
//When slider2 value changed call virtual function
//Call sliderLevelClicked
sliderLevelClicked(value);
}
}