~aleteoryx/muditaos

ref: 3887c43ca51732e2c32b2ce35215e2bba11645d4 muditaos/module-apps/application-settings/windows/system/FactoryResetInProgressWindow.cpp -rw-r--r-- 1.3 KiB
3887c43c — Lefucjusz [CP-1734] Create factory reset reboot UI 3 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Copyright (c) 2017-2022, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#include "FactoryResetInProgressWindow.hpp"
#include <application-settings/windows/WindowNames.hpp>

#include <i18n/i18n.hpp>

namespace gui
{
    FactoryResetInProgressWindow::FactoryResetInProgressWindow(app::ApplicationCommon *app)
        : AppWindow(app, gui::window::name::factory_reset_in_progress)
    {
        buildInterface();
    }

    void FactoryResetInProgressWindow::buildInterface()
    {
        AppWindow::buildInterface();

        statusBar->setVisible(false);
        navBar->setVisible(false);

        infoIcon = new gui::Icon(this,
                                 style::window::default_left_margin,
                                 style::window::default_vertical_pos,
                                 style::window::default_body_width,
                                 style::window::default_body_height,
                                 "",
                                 utils::translate(""));
        infoIcon->setAlignment(Alignment::Horizontal::Center);
        infoIcon->image->set("progress_128px_W_G");
        infoIcon->text->setText(utils::translate("app_settings_factory_reset_in_progress"));
    }

} /* namespace gui */