mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
init tab data container
This commit is contained in:
parent
d9b4983d4f
commit
3918ab9993
6 changed files with 41 additions and 3 deletions
|
|
@ -1,4 +1,5 @@
|
|||
#include "tab.hpp"
|
||||
#include "tab/data.hpp"
|
||||
#include "tab/label.hpp"
|
||||
|
||||
using namespace app::browser::main;
|
||||
|
|
@ -17,11 +18,9 @@ void Tab::append(
|
|||
bool open,
|
||||
bool focus
|
||||
) {
|
||||
// Init new tab label
|
||||
label = new tab::Label();
|
||||
|
||||
// Init tab data container @TODO
|
||||
Gtk::Label * data = new Gtk::Label("data");
|
||||
data = new tab::Data();
|
||||
|
||||
append_page(
|
||||
* data,
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ namespace app::browser::main
|
|||
{
|
||||
namespace tab
|
||||
{
|
||||
class Data;
|
||||
class Label;
|
||||
}
|
||||
|
||||
|
|
@ -15,6 +16,7 @@ namespace app::browser::main
|
|||
{
|
||||
public:
|
||||
|
||||
tab::Data * data;
|
||||
tab::Label * label;
|
||||
|
||||
Tab();
|
||||
|
|
|
|||
16
src/app/browser/main/tab/data.cpp
Normal file
16
src/app/browser/main/tab/data.cpp
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#include "data.hpp"
|
||||
|
||||
using namespace app::browser::main::tab;
|
||||
|
||||
Data::Data()
|
||||
{
|
||||
set_orientation(
|
||||
Gtk::Orientation::VERTICAL
|
||||
);
|
||||
|
||||
set_homogeneous(
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
Data::~Data() = default;
|
||||
19
src/app/browser/main/tab/data.hpp
Normal file
19
src/app/browser/main/tab/data.hpp
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#ifndef APP_BROWSER_MAIN_TAB_DATA_HPP
|
||||
#define APP_BROWSER_MAIN_TAB_DATA_HPP
|
||||
|
||||
#include <glibmm/i18n.h>
|
||||
#include <gtkmm/box.h>
|
||||
|
||||
namespace app::browser::main::tab
|
||||
{
|
||||
class Data : public Gtk::Box
|
||||
{
|
||||
public:
|
||||
|
||||
Data();
|
||||
|
||||
~Data();
|
||||
};
|
||||
}
|
||||
|
||||
#endif // APP_BROWSER_MAIN_TAB_DATA_HPP
|
||||
Loading…
Add table
Add a link
Reference in a new issue