mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-04-27 02:17:48 -04:00
* [EGD-2548] added AddContactIcon * [EGD-2548] added send message Icon - still need to use it in Call Window * [EGD-2548] SendSmsIcon used in callwindow * [EGD-2548] rewritten Icon class to be template based Created all missing Icons * [EGD-2548] integranio of new icons in callwindow and some fixes * [EGD-2548] code clean up and tune up constants * [EGD-2548] clang formatter and fix speaker icons * [EGD-2548] revert of USE_DAEFAULT_BAUDRATE * [EGD-2648] destruktor fix
54 lines
1.3 KiB
C++
54 lines
1.3 KiB
C++
/*
|
|
* @file EnterNumberWindow.hpp
|
|
* @author Robert Borzecki (robert.borzecki@mudita.com)
|
|
* @date 1 lip 2019
|
|
* @brief
|
|
* @copyright Copyright (C) 2019 mudita.com
|
|
* @details
|
|
*/
|
|
#pragma once
|
|
|
|
#include "../ApplicationCall.hpp"
|
|
#include "AppWindow.hpp"
|
|
#include "application-call/widgets/Icons.hpp"
|
|
#include "gui/widgets/BottomBar.hpp"
|
|
#include "gui/widgets/Image.hpp"
|
|
#include "gui/widgets/Label.hpp"
|
|
#include "gui/widgets/TopBar.hpp"
|
|
#include "gui/widgets/Window.hpp"
|
|
#include <ContactRecord.hpp>
|
|
|
|
namespace gui
|
|
{
|
|
|
|
/*
|
|
*
|
|
*/
|
|
class EnterNumberWindow : public AppWindow
|
|
{
|
|
protected:
|
|
gui::Label *numberLabel = nullptr;
|
|
gui::AddContactIcon *newContactIcon = nullptr;
|
|
|
|
void setNumberLabel(const std::string num);
|
|
|
|
public:
|
|
EnterNumberWindow() = delete;
|
|
EnterNumberWindow(app::Application *app, std::string windowName = app::window::name_enterNumber);
|
|
virtual ~EnterNumberWindow();
|
|
|
|
bool onInput(const InputEvent &inputEvent) override;
|
|
bool handleSwitchData(SwitchData *data) override;
|
|
|
|
void rebuild() override;
|
|
void buildInterface() override;
|
|
void destroyInterface() override;
|
|
|
|
private:
|
|
gui::KeyInputMappedTranslation translator;
|
|
|
|
bool addNewContact();
|
|
};
|
|
|
|
} /* namespace gui */
|