2020-12-23 22:21:36 +01:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
2014-10-31 16:01:27 -04:00
|
|
|
/*
|
2019-10-01 09:20:35 +02:00
|
|
|
* Copyright (C) 2013 Red Hat, Inc.
|
2014-10-31 16:01:27 -04:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef NMT_EDITOR_SECTION_H
|
|
|
|
|
#define NMT_EDITOR_SECTION_H
|
|
|
|
|
|
2021-03-01 13:43:47 +01:00
|
|
|
#include "libnmt-newt/nmt-newt-section.h"
|
2014-10-31 16:01:27 -04:00
|
|
|
#include "nmt-editor-grid.h"
|
|
|
|
|
|
|
|
|
|
#define NMT_TYPE_EDITOR_SECTION (nmt_editor_section_get_type())
|
|
|
|
|
#define NMT_EDITOR_SECTION(obj) \
|
2022-12-14 16:21:48 +01:00
|
|
|
(_NM_G_TYPE_CHECK_INSTANCE_CAST((obj), NMT_TYPE_EDITOR_SECTION, NmtEditorSection))
|
2014-10-31 16:01:27 -04:00
|
|
|
#define NMT_EDITOR_SECTION_CLASS(klass) \
|
|
|
|
|
(G_TYPE_CHECK_CLASS_CAST((klass), NMT_TYPE_EDITOR_SECTION, NmtEditorSectionClass))
|
|
|
|
|
#define NMT_IS_EDITOR_SECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), NMT_TYPE_EDITOR_SECTION))
|
|
|
|
|
#define NMT_IS_EDITOR_SECTION_CLASS(klass) \
|
|
|
|
|
(G_TYPE_CHECK_CLASS_TYPE((klass), NMT_TYPE_EDITOR_SECTION))
|
|
|
|
|
#define NMT_EDITOR_SECTION_GET_CLASS(obj) \
|
|
|
|
|
(G_TYPE_INSTANCE_GET_CLASS((obj), NMT_TYPE_EDITOR_SECTION, NmtEditorSectionClass))
|
|
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
|
NmtNewtSection parent;
|
|
|
|
|
|
|
|
|
|
} NmtEditorSection;
|
|
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
|
NmtNewtSectionClass parent;
|
|
|
|
|
|
|
|
|
|
} NmtEditorSectionClass;
|
|
|
|
|
|
|
|
|
|
GType nmt_editor_section_get_type(void);
|
|
|
|
|
|
|
|
|
|
NmtEditorSection *
|
|
|
|
|
nmt_editor_section_new(const char *title, NmtNewtWidget *header_widget, gboolean show_by_default);
|
|
|
|
|
|
2021-11-09 13:28:54 +01:00
|
|
|
const char *nmt_editor_section_get_title(NmtEditorSection *section);
|
2014-10-31 16:01:27 -04:00
|
|
|
NmtNewtWidget *nmt_editor_section_get_header_widget(NmtEditorSection *section);
|
|
|
|
|
NmtEditorGrid *nmt_editor_section_get_body(NmtEditorSection *section);
|
|
|
|
|
|
|
|
|
|
#endif /* NMT_EDITOR_SECTION_H */
|