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:
jLynx 2023-05-19 08:16:05 +12:00 committed by GitHub
parent 7aca7ce74d
commit 033c4e9a5b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
599 changed files with 70746 additions and 66896 deletions

View file

@ -30,79 +30,69 @@
namespace ui {
class ModemSetupView : public View {
public:
ModemSetupView(NavigationView& nav);
void focus() override;
std::string title() const override { return "Modem setup"; };
public:
ModemSetupView(NavigationView& nav);
private:
void update_freq(rf::Frequency f);
Labels labels {
{ { 2 * 8, 11 * 8 }, "Baudrate:", Color::light_grey() },
{ { 2 * 8, 13 * 8 }, "Mark: Hz", Color::light_grey() },
{ { 2 * 8, 15 * 8 }, "Space: Hz", Color::light_grey() },
{ { 140, 15 * 8 }, "Repeat:", Color::light_grey() },
{ { 1 * 8, 6 * 8 }, "Modem preset:", Color::light_grey() },
{ { 2 * 8, 22 * 8 }, "Serial format:", Color::light_grey() }
};
void focus() override;
NumberField field_baudrate {
{ 11 * 8, 11 * 8 },
5,
{ 50, 9600 },
25,
' '
};
std::string title() const override { return "Modem setup"; };
NumberField field_mark {
{ 8 * 8, 13 * 8 },
5,
{ 100, 15000 },
25,
' '
};
NumberField field_space {
{ 8 * 8, 15 * 8 },
5,
{ 100, 15000 },
25,
' '
};
NumberField field_repeat {
{ 204, 15 * 8 },
2,
{ 1, 99 },
1,
' '
};
OptionsField options_modem {
{ 15 * 8, 6 * 8 },
7,
{
}
};
SymField sym_format {
{ 16 * 8, 22 * 8 },
4,
SymField::SYMFIELD_DEF
};
Button button_set_modem {
{ 23 * 8, 6 * 8 - 4, 6 * 8, 24 },
"SET"
};
Button button_save {
{ 9 * 8, 250, 96, 40 },
"Save"
};
private:
void update_freq(rf::Frequency f);
Labels labels{
{{2 * 8, 11 * 8}, "Baudrate:", Color::light_grey()},
{{2 * 8, 13 * 8}, "Mark: Hz", Color::light_grey()},
{{2 * 8, 15 * 8}, "Space: Hz", Color::light_grey()},
{{140, 15 * 8}, "Repeat:", Color::light_grey()},
{{1 * 8, 6 * 8}, "Modem preset:", Color::light_grey()},
{{2 * 8, 22 * 8}, "Serial format:", Color::light_grey()}};
NumberField field_baudrate{
{11 * 8, 11 * 8},
5,
{50, 9600},
25,
' '};
NumberField field_mark{
{8 * 8, 13 * 8},
5,
{100, 15000},
25,
' '};
NumberField field_space{
{8 * 8, 15 * 8},
5,
{100, 15000},
25,
' '};
NumberField field_repeat{
{204, 15 * 8},
2,
{1, 99},
1,
' '};
OptionsField options_modem{
{15 * 8, 6 * 8},
7,
{}};
SymField sym_format{
{16 * 8, 22 * 8},
4,
SymField::SYMFIELD_DEF};
Button button_set_modem{
{23 * 8, 6 * 8 - 4, 6 * 8, 24},
"SET"};
Button button_save{
{9 * 8, 250, 96, 40},
"Save"};
};
} /* namespace ui */