mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-16 01:29:57 +00:00
50 lines
672 B
C++
50 lines
672 B
C++
#include "header.hpp"
|
|
#include "header/main.hpp"
|
|
#include "header/menu.hpp"
|
|
#include "header/tab.hpp"
|
|
|
|
using namespace app::browser;
|
|
|
|
Header::Header()
|
|
{
|
|
// Init header bar
|
|
set_show_title_buttons(
|
|
true
|
|
);
|
|
|
|
// Init menu
|
|
menu = new header::Menu();
|
|
|
|
pack_start(
|
|
* menu
|
|
);
|
|
|
|
// Init tab
|
|
tab = new header::Tab();
|
|
|
|
pack_start(
|
|
* tab
|
|
);
|
|
|
|
// Init main widget
|
|
main = new header::Main();
|
|
|
|
set_title_widget(
|
|
* main
|
|
);
|
|
}
|
|
|
|
Header::~Header()
|
|
{
|
|
delete main;
|
|
delete menu;
|
|
delete tab;
|
|
}
|
|
|
|
void Header::set_title(
|
|
const Glib::ustring text
|
|
) {
|
|
main->set_title(
|
|
text
|
|
);
|
|
} |