Added utilities > Frequency manager + load/save

This commit is contained in:
furrtek 2016-12-26 01:31:38 +01:00
parent ad2a4b6743
commit 7df5987b3b
21 changed files with 526 additions and 219 deletions

View file

@ -316,7 +316,7 @@ Text::Text(
Rect parent_rect,
std::string text
) : Widget { parent_rect },
text { text }
text_ { text }
{
}
@ -327,10 +327,14 @@ Text::Text(
}
void Text::set(const std::string value) {
text = value;
text_ = value;
set_dirty();
}
std::string Text::text() const {
return text_;
}
void Text::paint(Painter& painter) {
const auto rect = screen_rect();
const auto s = style();
@ -340,7 +344,7 @@ void Text::paint(Painter& painter) {
painter.draw_string(
rect.pos,
s,
text
text_
);
}