2024-08-12 21:35:52 +03:00
|
|
|
#ifndef APP_BROWSER_MAIN_HPP
|
|
|
|
#define APP_BROWSER_MAIN_HPP
|
2024-08-11 22:04:34 +03:00
|
|
|
|
2024-08-20 16:27:35 +03:00
|
|
|
#include <glibmm/ustring.h>
|
2024-08-11 22:04:34 +03:00
|
|
|
#include <gtkmm/box.h>
|
|
|
|
|
|
|
|
namespace app::browser
|
|
|
|
{
|
|
|
|
namespace main
|
|
|
|
{
|
|
|
|
class Tab;
|
|
|
|
}
|
|
|
|
|
|
|
|
class Main : public Gtk::Box
|
|
|
|
{
|
2024-08-17 00:50:24 +03:00
|
|
|
app::browser::main::Tab * tab;
|
2024-08-11 22:04:34 +03:00
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
Main();
|
2024-08-12 09:45:22 +03:00
|
|
|
~Main();
|
|
|
|
|
2024-08-20 16:27:35 +03:00
|
|
|
Glib::ustring get_current_tab_label_text();
|
|
|
|
|
2024-08-12 18:16:27 +03:00
|
|
|
void tab_append();
|
2024-08-20 16:27:35 +03:00
|
|
|
void tab_close_all();
|
2024-08-12 20:24:06 +03:00
|
|
|
void tab_close_left();
|
|
|
|
void tab_close_right();
|
2024-08-20 16:27:35 +03:00
|
|
|
void tab_close();
|
|
|
|
void tab_update();
|
2024-08-11 22:04:34 +03:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2024-08-12 21:35:52 +03:00
|
|
|
#endif // APP_BROWSER_MAIN_HPP
|