Yoda/src/app/browser/header.cpp

42 lines
571 B
C++
Raw Normal View History

#include "header.hpp"
2024-08-20 14:38:13 +03:00
#include "header/main.hpp"
#include "header/menu.hpp"
#include "header/tab.hpp"
using namespace app::browser;
Header::Header()
{
2024-08-12 09:45:22 +03:00
// Init header bar
set_show_title_buttons(
2024-08-12 21:30:30 +03:00
true
);
2024-08-12 09:45:22 +03:00
// Init menu
menu = new header::Menu();
pack_start(
2024-08-12 09:45:22 +03:00
* menu
);
2024-08-12 09:45:22 +03:00
// Init tab
tab = new header::Tab();
pack_start(
2024-08-12 09:45:22 +03:00
* tab
);
2024-08-20 14:38:13 +03:00
// Init main widget
main = new header::Main();
set_title_widget(
* main
);
2024-08-12 09:45:22 +03:00
}
Header::~Header()
{
delete menu;
delete tab;
2024-08-20 14:38:13 +03:00
delete main;
}