Skip to content
API Documentation
BastionGuard™
RestoreSummaryBox Class Reference
Inheritance diagram for RestoreSummaryBox:

Public Member Functions

 RestoreSummaryBox (Gtk.Window _parent_window)
void refresh ()

Public Attributes

Gtk.Label lbl_devices
Gtk.Label lbl_reboot
Gtk.Label lbl_disclaimer

Private Attributes

Gtk.Window parent_window

Detailed Description

Definition at line 35 of file RestoreSummaryBox.vala.

Constructor & Destructor Documentation

◆ RestoreSummaryBox()

RestoreSummaryBox.RestoreSummaryBox ( Gtk.Window _parent_window)
inline

Definition at line 42 of file RestoreSummaryBox.vala.

42 {
43
44 log_debug("RestoreSummaryBox: RestoreSummaryBox()");
45
46 //base(Gtk.Orientation.VERTICAL, 6); // issue with vala
47 GLib.Object(orientation: Gtk.Orientation.VERTICAL, spacing: 6); // work-around
48 parent_window = _parent_window;
49 margin_top = 12;
50 margin_bottom = 12;
51 margin_start = 12;
52 margin_end = 12;
53
54 // devices
55
56 add_label_header(this, _("Warning"), true);
57
58 lbl_devices = add_label(this, "", false, false, false);
59
60 // reboot warning
61
62 lbl_reboot = add_label(this, "", true, false, false);
63 lbl_reboot.margin_bottom = 6;
64
65 // disclaimer
66
67 add_label_header(this, _("Disclaimer"), true);
68
69 lbl_disclaimer = add_label(this, "", false, false, false);
70
71
72 log_debug("RestoreSummaryBox: RestoreSummaryBox(): exit");
73 }
#define _(s)
Gtk.Label add_label(Gtk.Box box, string text, bool bold=false, bool italic=false, bool large=false)
void log_debug(string message)

References _, TeeJee.GtkHelper.add_label(), lbl_devices, lbl_disclaimer, lbl_reboot, TeeJee.Logging.log_debug(), and parent_window.

Referenced by RestoreWindow.build_pages().

Member Function Documentation

◆ refresh()

void RestoreSummaryBox.refresh ( )
inline

Definition at line 75 of file RestoreSummaryBox.vala.

75 {
76
77 string msg_devices = "";
78 string msg_reboot = "";
79 string msg_disclaimer = "";
80
82 true, out msg_devices, out msg_reboot,
83 out msg_disclaimer);
84
85 lbl_devices.label = msg_devices;
86 lbl_reboot.label = msg_reboot;
87 lbl_disclaimer.label = msg_disclaimer;
88 }
Main App
void get_restore_messages(bool formatted, out string msg_devices, out string msg_reboot, out string msg_disclaimer)
Definition Main.vala:2400

References App, and Main.get_restore_messages().

Referenced by RestoreWindow.initialize_tab().

Member Data Documentation

◆ lbl_devices

Gtk.Label RestoreSummaryBox.lbl_devices

Definition at line 37 of file RestoreSummaryBox.vala.

Referenced by RestoreSummaryBox().

◆ lbl_disclaimer

Gtk.Label RestoreSummaryBox.lbl_disclaimer

Definition at line 39 of file RestoreSummaryBox.vala.

Referenced by RestoreSummaryBox().

◆ lbl_reboot

Gtk.Label RestoreSummaryBox.lbl_reboot

Definition at line 38 of file RestoreSummaryBox.vala.

Referenced by RestoreSummaryBox().

◆ parent_window

Gtk.Window RestoreSummaryBox.parent_window
private

Definition at line 40 of file RestoreSummaryBox.vala.

Referenced by RestoreSummaryBox().


The documentation for this class was generated from the following file: