mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-15 18:00:28 -04:00
Formatted code (#1007)
* Updated style * Updated files * fixed new line * Updated spacing * File fix WIP * Updated to clang 13 * updated comment style * Removed old comment code
This commit is contained in:
parent
7aca7ce74d
commit
033c4e9a5b
599 changed files with 70746 additions and 66896 deletions
|
@ -35,90 +35,78 @@
|
|||
namespace ui {
|
||||
|
||||
class SpectrumInputTextView : public View {
|
||||
public:
|
||||
SpectrumInputTextView(NavigationView& nav);
|
||||
~SpectrumInputTextView();
|
||||
public:
|
||||
SpectrumInputTextView(NavigationView& nav);
|
||||
~SpectrumInputTextView();
|
||||
|
||||
void focus() override;
|
||||
void paint(Painter&) override;
|
||||
|
||||
uint16_t get_width();
|
||||
uint16_t get_height();
|
||||
std::vector<uint8_t> get_line(uint16_t);
|
||||
void focus() override;
|
||||
void paint(Painter&) override;
|
||||
|
||||
private:
|
||||
std::string buffer { "PORTAPACK" };
|
||||
std::string message { };
|
||||
void on_set_text(NavigationView& nav);
|
||||
uint16_t get_width();
|
||||
uint16_t get_height();
|
||||
std::vector<uint8_t> get_line(uint16_t);
|
||||
|
||||
Text text_message_0 {
|
||||
{ 0 * 8, 0 * 16, 30 * 8, 16 },
|
||||
""
|
||||
};
|
||||
|
||||
Text text_message_1 {
|
||||
{ 0 * 8, 1 * 16, 30 * 8, 16 },
|
||||
""
|
||||
};
|
||||
|
||||
Text text_message_2 {
|
||||
{ 0 * 8, 2 * 16, 30 * 8, 16 },
|
||||
""
|
||||
};
|
||||
|
||||
Text text_message_3 {
|
||||
{ 0 * 8, 3 * 16, 30 * 8, 16 },
|
||||
""
|
||||
};
|
||||
|
||||
Text text_message_4 {
|
||||
{ 0 * 8, 4 * 16, 30 * 8, 16 },
|
||||
""
|
||||
};
|
||||
|
||||
Text text_message_5 {
|
||||
{ 0 * 8, 5 * 16, 30 * 8, 16 },
|
||||
""
|
||||
};
|
||||
|
||||
Text text_message_6 {
|
||||
{ 0 * 8, 6 * 16, 30 * 8, 16 },
|
||||
""
|
||||
};
|
||||
|
||||
Text text_message_7 {
|
||||
{ 0 * 8, 7 * 16, 30 * 8, 16 },
|
||||
""
|
||||
};
|
||||
|
||||
Text text_message_8 {
|
||||
{ 0 * 8, 8 * 16, 30 * 8, 16 },
|
||||
""
|
||||
};
|
||||
|
||||
Text text_message_9 {
|
||||
{ 0 * 8, 9 * 16, 30 * 8, 16 },
|
||||
""
|
||||
};
|
||||
private:
|
||||
std::string buffer{"PORTAPACK"};
|
||||
std::string message{};
|
||||
void on_set_text(NavigationView& nav);
|
||||
|
||||
std::array<Text*, 10> text_message { {
|
||||
&text_message_0,
|
||||
&text_message_1,
|
||||
&text_message_2,
|
||||
&text_message_3,
|
||||
&text_message_4,
|
||||
&text_message_5,
|
||||
&text_message_6,
|
||||
&text_message_7,
|
||||
&text_message_8,
|
||||
&text_message_9,
|
||||
} };
|
||||
Text text_message_0{
|
||||
{0 * 8, 0 * 16, 30 * 8, 16},
|
||||
""};
|
||||
|
||||
Button button_message {
|
||||
{ 0 * 8, 11 * 16 - 4, 30 * 8, 28 },
|
||||
"Set message"
|
||||
};
|
||||
Text text_message_1{
|
||||
{0 * 8, 1 * 16, 30 * 8, 16},
|
||||
""};
|
||||
|
||||
Text text_message_2{
|
||||
{0 * 8, 2 * 16, 30 * 8, 16},
|
||||
""};
|
||||
|
||||
Text text_message_3{
|
||||
{0 * 8, 3 * 16, 30 * 8, 16},
|
||||
""};
|
||||
|
||||
Text text_message_4{
|
||||
{0 * 8, 4 * 16, 30 * 8, 16},
|
||||
""};
|
||||
|
||||
Text text_message_5{
|
||||
{0 * 8, 5 * 16, 30 * 8, 16},
|
||||
""};
|
||||
|
||||
Text text_message_6{
|
||||
{0 * 8, 6 * 16, 30 * 8, 16},
|
||||
""};
|
||||
|
||||
Text text_message_7{
|
||||
{0 * 8, 7 * 16, 30 * 8, 16},
|
||||
""};
|
||||
|
||||
Text text_message_8{
|
||||
{0 * 8, 8 * 16, 30 * 8, 16},
|
||||
""};
|
||||
|
||||
Text text_message_9{
|
||||
{0 * 8, 9 * 16, 30 * 8, 16},
|
||||
""};
|
||||
|
||||
std::array<Text*, 10> text_message{{
|
||||
&text_message_0,
|
||||
&text_message_1,
|
||||
&text_message_2,
|
||||
&text_message_3,
|
||||
&text_message_4,
|
||||
&text_message_5,
|
||||
&text_message_6,
|
||||
&text_message_7,
|
||||
&text_message_8,
|
||||
&text_message_9,
|
||||
}};
|
||||
|
||||
Button button_message{
|
||||
{0 * 8, 11 * 16 - 4, 30 * 8, 28},
|
||||
"Set message"};
|
||||
};
|
||||
|
||||
}
|
||||
} // namespace ui
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue