mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
update content container init by type
This commit is contained in:
parent
d5ce67fbec
commit
afa4261b0e
7 changed files with 131 additions and 75 deletions
|
|
@ -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();
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue