mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-04-27 10:28:13 -04:00
42 lines
1006 B
C++
42 lines
1006 B
C++
/*
|
|
* @file CallMainWindow.cpp
|
|
* @author Robert Borzecki (robert.borzecki@mudita.com)
|
|
* @date 1 lip 2019
|
|
* @brief
|
|
* @copyright Copyright (C) 2019 mudita.com
|
|
* @details
|
|
*/
|
|
|
|
#include "Label.hpp"
|
|
#include "CallMainWindow.hpp"
|
|
|
|
namespace gui {
|
|
|
|
CallMainWindow::CallMainWindow( app::Application* app ) : AppWindow(app,"MainWindow"){
|
|
setSize( 480, 600 );
|
|
|
|
buildInterface();
|
|
}
|
|
|
|
void CallMainWindow::rebuild() {
|
|
}
|
|
void CallMainWindow::buildInterface() {
|
|
AppWindow::buildInterface();
|
|
title = new gui::Label(this, 0, 100, 480, 116 );
|
|
title->setFilled( false );
|
|
title->setBorderColor( gui::ColorNoColor );
|
|
title->setFont("gt_pressura_light_24");
|
|
title->setText(getName());
|
|
title->setAlignement( gui::Alignment(gui::Alignment::ALIGN_HORIZONTAL_CENTER, gui::Alignment::ALIGN_VERTICAL_BOTTOM));
|
|
}
|
|
void CallMainWindow::destroyInterface() {
|
|
AppWindow::destroyInterface();
|
|
if( title ) { removeWidget(title); delete title; title = nullptr; }
|
|
}
|
|
|
|
|
|
CallMainWindow::~CallMainWindow() {
|
|
}
|
|
|
|
} /* namespace gui */
|