2024-08-10 17:57:15 +03:00
|
|
|
#include "header.hpp"
|
2024-08-20 14:38:13 +03:00
|
|
|
#include "header/main.hpp"
|
2024-08-10 17:57:15 +03:00
|
|
|
#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
|
2024-08-10 17:57:15 +03:00
|
|
|
set_show_title_buttons(
|
2024-08-12 21:30:30 +03:00
|
|
|
true
|
2024-08-10 17:57:15 +03:00
|
|
|
);
|
|
|
|
|
2024-08-12 09:45:22 +03:00
|
|
|
// Init menu
|
|
|
|
menu = new header::Menu();
|
|
|
|
|
2024-08-10 17:57:15 +03:00
|
|
|
pack_start(
|
2024-08-12 09:45:22 +03:00
|
|
|
* menu
|
2024-08-10 17:57:15 +03:00
|
|
|
);
|
|
|
|
|
2024-08-12 09:45:22 +03:00
|
|
|
// Init tab
|
|
|
|
tab = new header::Tab();
|
|
|
|
|
2024-08-10 17:57:15 +03:00
|
|
|
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;
|
2024-08-10 17:57:15 +03:00
|
|
|
}
|