mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 17:45:28 +00:00
enable plain text driver
This commit is contained in:
parent
b71eec6944
commit
df7fe0273b
2 changed files with 9 additions and 6 deletions
|
|
@ -1,12 +1,12 @@
|
||||||
#include "text.hpp"
|
#include "text.hpp"
|
||||||
#include "text/gemini.hpp"
|
#include "text/gemini.hpp"
|
||||||
// #include "text/plain.hpp" @TODO
|
#include "text/plain.hpp"
|
||||||
|
|
||||||
using namespace app::browser::main::tab::page::content;
|
using namespace app::browser::main::tab::page::content;
|
||||||
|
|
||||||
Text::Text(
|
Text::Text(
|
||||||
const Type & TYPE,
|
const Type & TYPE,
|
||||||
const Glib::ustring & VALUE
|
const Glib::ustring & TEXT
|
||||||
) {
|
) {
|
||||||
switch (TYPE)
|
switch (TYPE)
|
||||||
{
|
{
|
||||||
|
|
@ -14,7 +14,7 @@ Text::Text(
|
||||||
|
|
||||||
set_child(
|
set_child(
|
||||||
* Gtk::make_managed<text::Gemini>(
|
* Gtk::make_managed<text::Gemini>(
|
||||||
VALUE
|
TEXT
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
@ -22,7 +22,11 @@ Text::Text(
|
||||||
|
|
||||||
case PLAIN:
|
case PLAIN:
|
||||||
|
|
||||||
// @TODO
|
set_child(
|
||||||
|
* Gtk::make_managed<text::Plain>(
|
||||||
|
TEXT
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
#ifndef APP_BROWSER_MAIN_TAB_PAGE_CONTENT_TEXT_HPP
|
#ifndef APP_BROWSER_MAIN_TAB_PAGE_CONTENT_TEXT_HPP
|
||||||
#define APP_BROWSER_MAIN_TAB_PAGE_CONTENT_TEXT_HPP
|
#define APP_BROWSER_MAIN_TAB_PAGE_CONTENT_TEXT_HPP
|
||||||
|
|
||||||
//#include <gtkmm/adjustment.h> @TODO
|
|
||||||
#include <glibmm/i18n.h>
|
#include <glibmm/i18n.h>
|
||||||
#include <glibmm/ustring.h>
|
#include <glibmm/ustring.h>
|
||||||
#include <gtkmm/scrolledwindow.h>
|
#include <gtkmm/scrolledwindow.h>
|
||||||
|
|
@ -20,7 +19,7 @@ namespace app::browser::main::tab::page::content
|
||||||
|
|
||||||
Text(
|
Text(
|
||||||
const Type & TYPE,
|
const Type & TYPE,
|
||||||
const Glib::ustring & VALUE
|
const Glib::ustring & TEXT
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue