mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
draft main tab features
This commit is contained in:
parent
aa4b15076b
commit
ee890b9859
11 changed files with 142 additions and 27 deletions
22
src/app/browser/main/tab.cpp
Normal file
22
src/app/browser/main/tab.cpp
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
#include "tab.hpp"
|
||||
#include "gtkmm/label.h"
|
||||
|
||||
using namespace app::browser::main;
|
||||
|
||||
Tab::Tab()
|
||||
{
|
||||
set_scrollable(
|
||||
SCROLLABLE
|
||||
);
|
||||
}
|
||||
|
||||
void Tab::append(
|
||||
const char * request,
|
||||
bool open,
|
||||
bool focus
|
||||
) {
|
||||
append_page( // @TODO
|
||||
* new Gtk::Label("data"),
|
||||
* new Gtk::Label("tab")
|
||||
);
|
||||
};
|
||||
41
src/app/browser/main/tab.hpp
Normal file
41
src/app/browser/main/tab.hpp
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
#ifndef APP_BROWSER_MAIN_TAB_H
|
||||
#define APP_BROWSER_MAIN_TAB_H
|
||||
|
||||
#include <gtkmm/notebook.h>
|
||||
|
||||
namespace app::browser::main
|
||||
{
|
||||
class Tab : public Gtk::Notebook
|
||||
{
|
||||
public:
|
||||
|
||||
const bool SCROLLABLE = true;
|
||||
const bool REORDERABLE = true;
|
||||
|
||||
class Navbar
|
||||
{
|
||||
public:
|
||||
|
||||
Navbar();
|
||||
};
|
||||
|
||||
class Body
|
||||
{
|
||||
public:
|
||||
|
||||
Body();
|
||||
};
|
||||
|
||||
Tab();
|
||||
|
||||
void append(
|
||||
const char * request,
|
||||
bool open,
|
||||
bool focus
|
||||
);
|
||||
|
||||
void update();
|
||||
};
|
||||
}
|
||||
|
||||
#endif // APP_BROWSER_MAIN_TAB_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue