Webdar
1.0.0
Web user interface to libdar
Webdar
webdar
src
html_version.hpp
1
/*********************************************************************/
2
// webdar - a web server and interface program to libdar
3
// Copyright (C) 2013-2025 Denis Corbin
4
//
5
// This file is part of Webdar
6
//
7
// Webdar is free software: you can redistribute it and/or modify
8
// it under the terms of the GNU General Public License as published by
9
// the Free Software Foundation, either version 3 of the License, or
10
// (at your option) any later version.
11
//
12
// Webdar is distributed in the hope that it will be useful,
13
// but WITHOUT ANY WARRANTY; without even the implied warranty of
14
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
// GNU General Public License for more details.
16
//
17
// You should have received a copy of the GNU General Public License
18
// along with Webdar. If not, see <http://www.gnu.org/licenses/>
19
//
20
//----
21
// to contact the author: dar.linux@free.fr
22
/*********************************************************************/
23
24
#ifndef HTML_VERSION_HPP
25
#define HTML_VERSION_HPP
26
27
#include "my_config.h"
28
29
// C system header files
30
extern
"C"
31
{
32
33
}
34
35
// C++ system header files
36
37
38
// webdar headers
39
#include "html_popup.hpp"
40
#include "
actor.hpp
"
41
#include "html_button.hpp"
42
#include "html_table.hpp"
43
#include "html_div.hpp"
44
46
47
48
class
html_version
:
public
html_popup
,
public
actor
49
{
50
public
:
51
html_version
();
52
html_version
(
const
html_version
& ref) =
delete
;
53
html_version
(
html_version
&& ref)
noexcept
=
delete
;
54
html_version
& operator = (
const
html_version
& ref) =
delete
;
55
html_version
& operator = (
html_version
&& ref)
noexcept
=
delete
;
56
~html_version
() =
default
;
57
59
virtual
void
on_event
(
const
std::string & event_name)
override
;
60
61
protected
:
62
64
virtual
void
new_css_library_available
()
override
;
65
66
67
private
:
68
html_text
title;
69
html_div
title_box;
70
html_table
webdar_table;
71
html_table
libthreadar_table;
72
html_table
libdar_table;
73
html_button
close;
74
75
void
fill_libthreadar(
html_table
& table);
76
void
fill_libdar(
html_table
& table);
77
78
static
constexpr
const
char
* event_close =
"close"
;
79
80
static
constexpr
const
char
* css_close =
"html_version_close"
;
81
static
constexpr
const
char
* css_table =
"html_version_table"
;
82
static
constexpr
const
char
* css_table_top =
"html_version_top"
;
83
static
constexpr
const
char
* css_table_left =
"html_version_left"
;
84
static
constexpr
const
char
* css_table_cells =
"html_version_cells"
;
85
};
86
87
#endif
actor.hpp
actor
class of object that are pointed/triggered to by others
Definition:
actor.hpp:55
html_button
simple html component providing the usual button feature of GUIs, better using html_double_button ins...
Definition:
html_button.hpp:48
html_div
class html_div is the implementation of
Definition:
html_div.hpp:46
html_popup
class html_popup is the implementation of
Definition:
html_popup.hpp:50
html_table
html component implementing the html table structure
Definition:
html_table.hpp:52
html_text
class html_text manage text and header in html document
Definition:
html_text.hpp:52
html_version
class html_version is a popup displaying version information
Definition:
html_version.hpp:49
html_version::on_event
virtual void on_event(const std::string &event_name) override
inherited from actor
Definition:
html_version.cpp:111
html_version::new_css_library_available
virtual void new_css_library_available() override
inherited from body_builder
Definition:
html_version.cpp:119
Generated by
1.9.4