mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-10-18 06:11:46 +00:00
Added new toolbar in main menu
This commit is contained in:
@@ -111,6 +111,7 @@ public:
|
||||
AudioLevelReport = 51,
|
||||
CodedSquelch = 52,
|
||||
AudioSpectrum = 53,
|
||||
InfoRefresh = 54,
|
||||
MAX
|
||||
};
|
||||
|
||||
@@ -234,6 +235,14 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
class InfoRefreshMessage : public Message {
|
||||
public:
|
||||
constexpr InfoRefreshMessage(
|
||||
) : Message { ID::InfoRefresh }
|
||||
{
|
||||
}
|
||||
};
|
||||
|
||||
class AudioStatisticsMessage : public Message {
|
||||
public:
|
||||
constexpr AudioStatisticsMessage(
|
||||
|
@@ -1046,6 +1046,16 @@ bool NewButton::on_touch(const TouchEvent event) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
/* DateTimeButton ********************************************************/
|
||||
|
||||
DateTimeButton::DateTimeButton(
|
||||
Rect parent_rect,
|
||||
std::string text
|
||||
) : Button { parent_rect , text_}
|
||||
{
|
||||
set_focusable(true);
|
||||
}
|
||||
|
||||
|
||||
/* Image *****************************************************************/
|
||||
|
||||
|
@@ -428,6 +428,16 @@ private:
|
||||
const Bitmap* bitmap_;
|
||||
};
|
||||
|
||||
class DateTimeButton : public Button {
|
||||
public:
|
||||
DateTimeButton(Rect parent_rect, std::string text);
|
||||
void paint(Painter& painter) override;
|
||||
private:
|
||||
std::string text_;
|
||||
void on_tick_second();
|
||||
|
||||
};
|
||||
|
||||
class Image : public Widget {
|
||||
public:
|
||||
Image();
|
||||
|
Reference in New Issue
Block a user