update content container init by type

This commit is contained in:
yggverse 2024-09-13 11:26:41 +03:00
parent d5ce67fbec
commit afa4261b0e
7 changed files with 131 additions and 75 deletions

View file

@ -1,26 +1,39 @@
#ifndef APP_BROWSER_MAIN_TAB_PAGE_CONTENT_TEXT_HPP
#define APP_BROWSER_MAIN_TAB_PAGE_CONTENT_TEXT_HPP
#include <glibmm/ustring.h>
//#include <gtkmm/adjustment.h> @TODO
#include <glibmm/i18n.h>
#include <glibmm/ustring.h>
#include <gtkmm/scrolledwindow.h>
#include <gtkmm/viewport.h>
namespace app::browser::main::tab::page::content
{
namespace text
{
class Gemini;
class Plain;
}
class Text : public Gtk::ScrolledWindow
{
text::Gemini * textGemini;
text::Plain * textPlain;
public:
Text();
enum Type
{
GEMINI,
PLAIN
};
void set_gemini(
const Glib::ustring & GEMTEXT
Text(
const Type & TYPE,
const Glib::ustring & VALUE
);
void set_plain(
const Glib::ustring & TEXT
);
~Text();
};
}