mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-04-21 07:28:21 -04:00
Refactored LockWindow TitleBar handling. Added Sim pin request block on lockedPhone. Added Sim info popup added when pin changed. Updated assets. Removed old PinLock structures. Cleared LockBox structures. Removed old settings sim setters. New CellularMessage adaptation. Cleared Lock structure.
26 lines
660 B
C++
26 lines
660 B
C++
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
|
|
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
|
|
|
|
#include "ImageBox.hpp"
|
|
|
|
using namespace gui;
|
|
|
|
ImageBox::ImageBox(
|
|
Item *parent, const uint32_t &x, const uint32_t &y, const uint32_t &w, const uint32_t &h, Image *image)
|
|
: HBox(parent, x, y, w, h), image(image)
|
|
{
|
|
setEdges(RectangleEdge::None);
|
|
setAlignment(gui::Alignment(gui::Alignment::Horizontal::Center, gui::Alignment::Vertical::Center));
|
|
addWidget(image);
|
|
}
|
|
|
|
void ImageBox::showImage(bool show)
|
|
{
|
|
image->setVisible(show);
|
|
}
|
|
|
|
void ImageBox::setImage(const UTF8 &name)
|
|
{
|
|
image->set(name);
|
|
}
|