32 lines
1.0 KiB
C++
32 lines
1.0 KiB
C++
//================================================================================================
|
|
/// @file ColourMapComponent.hpp
|
|
///
|
|
/// @brief Defines a GUI component to draw a button.
|
|
/// @author Adrian Del Grosso
|
|
///
|
|
/// @copyright 2023 Adrian Del Grosso
|
|
//================================================================================================
|
|
#ifndef COLOR_MAP_COMPONENT_HPP
|
|
#define COLOR_MAP_COMPONENT_HPP
|
|
|
|
#include "isobus/isobus/isobus_virtual_terminal_objects.hpp"
|
|
#include "isobus/isobus/isobus_virtual_terminal_server_managed_working_set.hpp"
|
|
|
|
#include "JuceHeader.h"
|
|
|
|
class ColourMapComponent : public isobus::ColourMap
|
|
, public Component
|
|
{
|
|
public:
|
|
ColourMapComponent(std::shared_ptr<isobus::VirtualTerminalServerManagedWorkingSet> workingSet, isobus::ColourMap sourceObject);
|
|
|
|
void paint(Graphics &g) override;
|
|
|
|
private:
|
|
std::shared_ptr<isobus::VirtualTerminalServerManagedWorkingSet> parentWorkingSet;
|
|
|
|
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(ColourMapComponent)
|
|
};
|
|
|
|
#endif // COLOR_MAP_COMPONENT_HPP
|