mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-04-20 15:07:17 -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.
40 lines
1.0 KiB
C++
40 lines
1.0 KiB
C++
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
|
|
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
|
|
|
|
#pragma once
|
|
|
|
#include "LockBox.hpp"
|
|
|
|
#include <locks/windows/LockInputWindow.hpp>
|
|
#include <Image.hpp>
|
|
|
|
namespace gui
|
|
{
|
|
class LockBoxConstantSize : public LockBox
|
|
{
|
|
public:
|
|
void buildLockBox(unsigned int pinSize) override;
|
|
void clear() final;
|
|
void popChar(unsigned int charNum) final;
|
|
void putChar(unsigned int charNum) final;
|
|
|
|
protected:
|
|
explicit LockBoxConstantSize(LockInputWindow *lockBaseWindow) : lockWindow(lockBaseWindow)
|
|
{}
|
|
|
|
void buildPinLabels(unsigned int pinSize);
|
|
|
|
private:
|
|
struct InputLabel : public HBox
|
|
{
|
|
InputLabel(Item *parent, uint32_t w, uint32_t h);
|
|
void setVisibleState(bool isImageVisible);
|
|
|
|
gui::Image *image = nullptr;
|
|
};
|
|
|
|
LockInputWindow *lockWindow;
|
|
std::vector<InputLabel *> inputLabels;
|
|
};
|
|
} // namespace gui
|