Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
bug_report_dialog.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: © 2020-2022, 2024 Alexandros Theodotou <alex@zrythm.org>
2// SPDX-License-Identifier: LicenseRef-ZrythmLicense
3
9
10#ifndef __GUI_WIDGETS_BUG_REPORT_DIALOG_H__
11#define __GUI_WIDGETS_BUG_REPORT_DIALOG_H__
12
13#include <string>
14#include <vector>
15
16#include "gui/backend/gtk_widgets/libadwaita_wrapper.h"
17
23
24#define BUG_REPORT_DIALOG_WIDGET_TYPE (bug_report_dialog_widget_get_type ())
25G_DECLARE_FINAL_TYPE (
26 BugReportDialogWidget,
27 bug_report_dialog_widget,
28 Z,
29 BUG_REPORT_DIALOG_WIDGET,
30 AdwAlertDialog)
31
32using BugReportDialogWidget = struct _BugReportDialogWidget
33{
34 AdwAlertDialog parent_instance;
35
36 GtkLabel * top_lbl;
37
38 GtkLabel * backtrace_lbl;
39 GtkLabel * log_lbl;
40 GtkLabel * system_info_lbl;
41
42 GtkTextView * user_input_text_view;
43
44 std::vector<std::string> log;
45 std::vector<std::string> log_long;
46 std::string undo_stack;
47 std::string undo_stack_long;
48 char * backtrace;
49 char * system_nfo;
50 bool fatal;
51
52 /* Used when sending automatically. */
53 char * log_file_path;
54 char * log_file_tmpdir;
55 char * screenshot_path;
56 char * screenshot_tmpdir;
57 char * json_str;
58};
59
63BugReportDialogWidget *
65 GtkWidget * parent,
66 const char * msg_prefix,
67 const char * backtrace,
68 bool fatal);
69
73
74#endif
BugReportDialogWidget * bug_report_dialog_new(GtkWidget *parent, const char *msg_prefix, const char *backtrace, bool fatal)
Creates and displays the about dialog.