Transmitter config widget

Frequency manager duplicate alert
Tone sets
This commit is contained in:
furrtek
2017-01-30 13:10:30 +00:00
parent 0642d633c3
commit 688a012443
29 changed files with 759 additions and 203 deletions
+19 -12
View File
@@ -23,6 +23,7 @@
#include "ui.hpp"
#include "ui_widget.hpp"
#include "ui_navigation.hpp"
#include "ui_transmitter.hpp"
#include "ui_font_fixed_8x16.hpp"
#include "bmp_bulb_on.hpp"
@@ -196,7 +197,7 @@ private:
"Tous"
};
Text text_freq {
/*Text text_freq {
{ 1 * 8, 8 * 16, 10 * 8, 16 },
"Frequence:"
};
@@ -220,14 +221,14 @@ private:
{ 0, 99 },
1,
' '
};
};*/
Text text_relais {
{ 8, 19 * 8, 13 * 8, 16 },
"Etats relais:"
{ 1 * 8, 8 * 16 + 8, 7 * 8, 16 },
"Relais:"
};
std::array<ImageOptionsField, 4> relay_states;
std::array<ImageOptionsField, 4> relay_states { };
ImageOptionsField::options_t relay_options = {
{ &bulb_ignore_bmp[0], 0 },
@@ -236,35 +237,41 @@ private:
};
ProgressBar progressbar {
{ 5 * 8, 27 * 8, 20 * 8, 16 },
{ 5 * 8, 13 * 16, 20 * 8, 16 },
};
Text text_message {
{ 5 * 8, 29 * 8, 20 * 8, 16 },
{ 5 * 8, 14 * 16, 20 * 8, 16 },
""
};
Button button_transmit {
/*Button button_transmit {
{ 2 * 8, 16 * 16, 12 * 8, 32 },
"START"
};
};*/
Checkbox checkbox_cligno {
{ 16 * 8, 16 * 16 + 4},
{ 18 * 8 + 4, 10 * 16},
3,
"J/N"
};
NumberField tempo_cligno {
{ 24 * 8, 16 * 16 + 8},
{ 25 * 8 + 4, 10 * 16 + 4},
2,
{ 1, 99 },
1,
' '
};
Text text_cligno {
{ 26 * 8, 16 * 16 + 8, 2 * 8, 16 },
{ 27 * 8 + 4, 10 * 16 + 4, 2 * 8, 16 },
"s."
};
TransmitterView tx_view {
16 * 16,
10000,
12
};
MessageHandlerRegistration message_handler_tx_done {
Message::ID::TXDone,
[this](const Message* const p) {