2024-08-10 17:57:15 +03:00
|
|
|
#include "header.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
|
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
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
Header::~Header()
|
|
|
|
{
|
|
|
|
delete menu;
|
|
|
|
delete tab;
|
2024-08-10 17:57:15 +03:00
|
|
|
}
|