1
0
mirror of https://github.com/YGGverse/Yoda.git synced 2025-01-26 19:14:13 +00:00
Yoda/src/app/browser.cpp

59 lines
674 B
C++
Raw Normal View History

2024-08-05 03:15:41 +03:00
#include "browser.h"
2024-08-08 12:44:27 +03:00
using namespace app;
2024-08-05 03:15:41 +03:00
2024-08-08 12:44:27 +03:00
Browser::Browser()
{
set_title(
TITLE
);
set_default_size(
WIDTH,
HEIGHT
);
2024-08-08 15:19:04 +03:00
set_titlebar(
* new Header()
);
}
Browser::Header::Header()
{
set_show_title_buttons(
SHOW_TITLE_BUTTONS
);
2024-08-08 15:19:04 +03:00
pack_start(
* new Menu()
);
pack_start(
* new Tab()
);
2024-08-08 13:33:23 +03:00
}
2024-08-08 14:39:43 +03:00
Browser::Header::Menu::Menu()
{
set_tooltip_text(
TOOLTIP
);
}
Browser::Header::Tab::Tab()
{
set_tooltip_text(
TOOLTIP
);
2024-08-08 15:32:28 +03:00
set_icon_name(
ICON
);
2024-08-08 14:39:43 +03:00
}
2024-08-08 13:33:23 +03:00
Browser::Container::Container()
{
set_scrollable(
SCROLLABLE
);
2024-08-08 12:44:27 +03:00
}