-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated objects to compile with latest vt-managed-working-set branch
- Loading branch information
Showing
30 changed files
with
584 additions
and
184 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
//================================================================================================ | ||
/// @file InputStringComponent.hpp | ||
/// | ||
/// @brief Defines a GUI component to draw an input string. | ||
/// @author Adrian Del Grosso | ||
/// | ||
/// @copyright 2023 Adrian Del Grosso | ||
//================================================================================================ | ||
#ifndef INPUT_STRING_COMPONENT_HPP | ||
#define INPUT_STRING_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 InputStringComponent : public isobus::InputString | ||
, public Component | ||
{ | ||
public: | ||
InputStringComponent(std::shared_ptr<isobus::VirtualTerminalServerManagedWorkingSet> workingSet, isobus::InputString sourceObject); | ||
|
||
void paint(Graphics &g) override; | ||
|
||
static Justification convert_justification(HorizontalJustification horizontalJustification, VerticalJustification verticalJustification); | ||
|
||
private: | ||
std::shared_ptr<isobus::VirtualTerminalServerManagedWorkingSet> parentWorkingSet; | ||
|
||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(InputStringComponent) | ||
}; | ||
|
||
#endif // INPUT_STRING_COMPONENT_HPP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.