Skip to content

Commit

Permalink
Create html browser class and basic websocket server
Browse files Browse the repository at this point in the history
  • Loading branch information
Bob-IT committed Jan 11, 2024
1 parent 1d94ec3 commit d62bd35
Show file tree
Hide file tree
Showing 9 changed files with 2,000 additions and 3 deletions.
7 changes: 7 additions & 0 deletions gnucash/html/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ set (html_HEADERS
gnc-html-p.h
gnc-html-factory.h
gnc-html-extras.h
gnc-html-browser-p.h
gnc-html-browser.h
gnc-ws-server.h
gnc-ws-protocol.h
)

# Command to generate the swig-gnc-html.c wrapper file
Expand All @@ -17,6 +21,9 @@ set (html_SOURCES
gnc-html.c
gnc-html-history.c
gnc-html-factory.c
gnc-html-browser.c
gnc-ws-server.c
gnc-ws-protocol.c
)

set (gnc_html_SCHEME html.scm)
Expand Down
40 changes: 40 additions & 0 deletions gnucash/html/gnc-html-browser-p.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/********************************************************************
* gnc-html-browser-p.h -- display html with gnc special tags *
* Copyright (C) 2024 Bob Fewell *
* *
* This program is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public License as *
* published by the Free Software Foundation; either version 2 of *
* the License, or (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License*
* along with this program; if not, contact: *
* *
* Free Software Foundation Voice: +1-617-542-5942 *
* 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
* Boston, MA 02110-1301, USA [email protected] *
\********************************************************************/

#ifndef GNC_HTML_BROWSER_P_H
#define GNC_HTML_BROWSER_P_H

#include "gnc-html-p.h"

struct _GncHtmlBrowserPrivate
{
struct _GncHtmlPrivate base;

GtkWidget *web_view;
gchar* html_string; /* html string being displayed */

GncWsServer *gws;

const gchar *file_name;
};

#endif
Loading

0 comments on commit d62bd35

Please sign in to comment.