mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-29 20:44:25 +00:00
rename markup widget to reader
This commit is contained in:
parent
712d1801d8
commit
e26c4c906c
4
Makefile
4
Makefile
@ -19,9 +19,9 @@ SRCS = src/app.cpp\
|
||||
src/app/browser/main/tab/page/content.cpp\
|
||||
src/app/browser/main/tab/page/content/text.cpp\
|
||||
src/app/browser/main/tab/page/content/text/gemini.cpp\
|
||||
src/app/browser/main/tab/page/content/text/gemini/markup.cpp\
|
||||
src/app/browser/main/tab/page/content/text/gemini/reader.cpp\
|
||||
src/app/browser/main/tab/page/content/text/plain.cpp\
|
||||
src/app/browser/main/tab/page/content/text/plain/markup.cpp\
|
||||
src/app/browser/main/tab/page/content/text/plain/reader.cpp\
|
||||
src/app/browser/main/tab/page/navigation.cpp\
|
||||
src/app/browser/main/tab/page/navigation/base.cpp\
|
||||
src/app/browser/main/tab/page/navigation/bookmark.cpp\
|
||||
|
@ -14,9 +14,9 @@ src/app/browser/main/tab/page.cpp
|
||||
src/app/browser/main/tab/page/content.cpp
|
||||
src/app/browser/main/tab/page/content/text.cpp
|
||||
src/app/browser/main/tab/page/content/text/gemini.cpp
|
||||
src/app/browser/main/tab/page/content/text/gemini/markup.cpp
|
||||
src/app/browser/main/tab/page/content/text/gemini/reader.cpp
|
||||
src/app/browser/main/tab/page/content/text/plain.cpp
|
||||
src/app/browser/main/tab/page/content/text/plain/markup.cpp
|
||||
src/app/browser/main/tab/page/content/text/plain/reader.cpp
|
||||
src/app/browser/main/tab/page/navigation.cpp
|
||||
src/app/browser/main/tab/page/navigation/base.cpp
|
||||
src/app/browser/main/tab/page/navigation/bookmark.cpp
|
||||
|
@ -1,5 +1,5 @@
|
||||
#include "gemini.hpp"
|
||||
#include "gemini/markup.hpp"
|
||||
#include "gemini/reader.hpp"
|
||||
|
||||
using namespace app::browser::main::tab::page::content::text;
|
||||
|
||||
@ -15,7 +15,7 @@ Gemini::Gemini(
|
||||
);
|
||||
|
||||
set_child(
|
||||
* Gtk::make_managed<gemini::Markup>(
|
||||
* Gtk::make_managed<gemini::Reader>(
|
||||
GEMTEXT
|
||||
)
|
||||
);
|
||||
|
@ -1,8 +1,8 @@
|
||||
#include "markup.hpp"
|
||||
#include "reader.hpp"
|
||||
|
||||
using namespace app::browser::main::tab::page::content::text::gemini;
|
||||
|
||||
Markup::Markup(
|
||||
Reader::Reader(
|
||||
const Glib::ustring & GEMTEXT
|
||||
) {
|
||||
// Init widget
|
||||
@ -23,7 +23,7 @@ Markup::Markup(
|
||||
);
|
||||
|
||||
set_markup(
|
||||
Markup::make(
|
||||
Reader::make(
|
||||
GEMTEXT
|
||||
)
|
||||
);
|
||||
@ -41,7 +41,7 @@ Markup::Markup(
|
||||
}
|
||||
|
||||
// Match tools
|
||||
bool Markup::Line::Match::link(
|
||||
bool Reader::Line::Match::link(
|
||||
const Glib::ustring & GEMTEXT,
|
||||
Glib::ustring & address,
|
||||
Glib::ustring & date,
|
||||
@ -68,7 +68,7 @@ bool Markup::Line::Match::link(
|
||||
}
|
||||
|
||||
// Markup tools
|
||||
Glib::ustring Markup::make(
|
||||
Glib::ustring Reader::make(
|
||||
const Glib::ustring & GEMTEXT
|
||||
) {
|
||||
Glib::ustring pango;
|
||||
@ -89,7 +89,7 @@ Glib::ustring Markup::make(
|
||||
if (Line::Match::link(line, address, date, alt))
|
||||
{
|
||||
pango.append(
|
||||
Markup::Make::link(
|
||||
Reader::Make::link(
|
||||
address,
|
||||
date,
|
||||
alt
|
||||
@ -114,7 +114,7 @@ Glib::ustring Markup::make(
|
||||
return pango;
|
||||
}
|
||||
|
||||
Glib::ustring Markup::Make::link(
|
||||
Glib::ustring Reader::Make::link(
|
||||
const Glib::ustring & ADDRESS,
|
||||
const Glib::ustring & DATE,
|
||||
const Glib::ustring & ALT
|
@ -1,5 +1,5 @@
|
||||
#ifndef APP_BROWSER_MAIN_TAB_PAGE_CONTENT_TEXT_GEMINI_MARKUP_HPP
|
||||
#define APP_BROWSER_MAIN_TAB_PAGE_CONTENT_TEXT_GEMINI_MARKUP_HPP
|
||||
#ifndef APP_BROWSER_MAIN_TAB_PAGE_CONTENT_TEXT_GEMINI_READER_HPP
|
||||
#define APP_BROWSER_MAIN_TAB_PAGE_CONTENT_TEXT_GEMINI_READER_HPP
|
||||
|
||||
#include <glibmm/markup.h>
|
||||
#include <glibmm/regex.h>
|
||||
@ -8,7 +8,7 @@
|
||||
|
||||
namespace app::browser::main::tab::page::content::text::gemini
|
||||
{
|
||||
class Markup : public Gtk::Label
|
||||
class Reader : public Gtk::Label
|
||||
{
|
||||
/*
|
||||
* Tools (currently is private)
|
||||
@ -44,10 +44,10 @@ namespace app::browser::main::tab::page::content::text::gemini
|
||||
*/
|
||||
public:
|
||||
|
||||
Markup(
|
||||
Reader(
|
||||
const Glib::ustring & GEMTEXT
|
||||
);
|
||||
};
|
||||
}
|
||||
|
||||
#endif // APP_BROWSER_MAIN_TAB_PAGE_CONTENT_TEXT_GEMINI_MARKUP_HPP
|
||||
#endif // APP_BROWSER_MAIN_TAB_PAGE_CONTENT_TEXT_GEMINI_READER_HPP
|
@ -1,5 +1,5 @@
|
||||
#include "plain.hpp"
|
||||
#include "plain/markup.hpp"
|
||||
#include "plain/reader.hpp"
|
||||
|
||||
using namespace app::browser::main::tab::page::content::text;
|
||||
|
||||
@ -14,7 +14,7 @@ Plain::Plain(
|
||||
);
|
||||
|
||||
set_child(
|
||||
* Gtk::make_managed<plain::Markup>(
|
||||
* Gtk::make_managed<plain::Reader>(
|
||||
TEXT
|
||||
)
|
||||
);
|
||||
|
@ -1,8 +1,8 @@
|
||||
#include "markup.hpp"
|
||||
#include "reader.hpp"
|
||||
|
||||
using namespace app::browser::main::tab::page::content::text::plain;
|
||||
|
||||
Markup::Markup(
|
||||
Reader::Reader(
|
||||
const Glib::ustring & TEXT
|
||||
) {
|
||||
// Init widget
|
@ -1,5 +1,5 @@
|
||||
#ifndef APP_BROWSER_MAIN_TAB_PAGE_CONTENT_TEXT_PLAIN_MARKUP_HPP
|
||||
#define APP_BROWSER_MAIN_TAB_PAGE_CONTENT_TEXT_PLAIN_MARKUP_HPP
|
||||
#ifndef APP_BROWSER_MAIN_TAB_PAGE_CONTENT_TEXT_PLAIN_READER_HPP
|
||||
#define APP_BROWSER_MAIN_TAB_PAGE_CONTENT_TEXT_PLAIN_READER_HPP
|
||||
|
||||
#include <glibmm/markup.h>
|
||||
#include <glibmm/ustring.h>
|
||||
@ -7,17 +7,17 @@
|
||||
|
||||
namespace app::browser::main::tab::page::content::text::plain
|
||||
{
|
||||
class Markup : public Gtk::Label
|
||||
class Reader : public Gtk::Label
|
||||
{
|
||||
/*
|
||||
* Gemini class API
|
||||
*/
|
||||
public:
|
||||
|
||||
Markup(
|
||||
Reader(
|
||||
const Glib::ustring & TEXT
|
||||
);
|
||||
};
|
||||
}
|
||||
|
||||
#endif // APP_BROWSER_MAIN_TAB_PAGE_CONTENT_TEXT_PLAIN_MARKUP_HPP
|
||||
#endif // APP_BROWSER_MAIN_TAB_PAGE_CONTENT_TEXT_PLAIN_READER_HPP
|
Loading…
x
Reference in New Issue
Block a user