1
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
4
* cong-service-node-property-dialog.h
6
* Copyright (C) 2005 David Malcolm
8
* Conglomerate is free software; you can redistribute it and/or
9
* modify it under the terms of the GNU General Public License as
10
* published by the Free Software Foundation; either version 2 of the
11
* License, or (at your option) any later version.
13
* Conglomerate is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
* General Public License for more details.
18
* You should have received a copy of the GNU General Public License
19
* along with this program; if not, write to the Free Software
20
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22
* Authors: David Malcolm <david@davemalcolm.demon.co.uk>
25
#ifndef __CONG_SERVICE_NODE_PROPERTY_PAGE_H__
26
#define __CONG_SERVICE_NODE_PROPERTY_PAGE_H__
28
#include "cong-plugin.h"
29
#include <gtk/gtkwidget.h>
30
#include "cong-document.h"
34
#define CONG_SERVICE_NODE_PROPERTY_PAGE_TYPE (cong_service_node_property_page_get_type ())
35
#define CONG_SERVICE_NODE_PROPERTY_PAGE(obj) G_TYPE_CHECK_INSTANCE_CAST (obj, CONG_SERVICE_NODE_PROPERTY_PAGE_TYPE, CongServiceNodePropertyPage)
36
#define CONG_SERVICE_NODE_PROPERTY_PAGE_CLASS(klass) G_TYPE_CHECK_CLASS_CAST (klass, CONG_SERVICE_NODE_PROPERTY_PAGE_TYPE, CongServiceNodePropertyPageClass)
37
#define IS_CONG_SERVICE_NODE_PROPERTY_PAGE(obj) G_TYPE_CHECK_INSTANCE_TYPE (obj, CONG_SERVICE_NODE_PROPERTY_PAGE_TYPE)
38
CONG_DECLARE_CLASS (CongServiceNodePropertyPage, cong_service_node_property_page, CongService)
41
(*CongCustomPropertyPageFactoryMethod) (CongServiceNodePropertyPage *custom_property_page,
44
CongServiceNodePropertyPage*
45
cong_service_node_property_page_construct (CongServiceNodePropertyPage* node_property_page,
47
const gchar *description,
48
const gchar *service_id,
49
CongCustomPropertyPageFactoryMethod factory_method,
52
CongServiceNodePropertyPage*
53
cong_plugin_register_custom_property_page (CongPlugin *plugin,
55
const gchar *description,
56
const gchar *service_id,
57
CongCustomPropertyPageFactoryMethod factory_method,
61
Utility to reduce the number of strings needing translation (addressing bug #124780); this
62
is a wrapper around cong_plugin_register_custom_property_page
64
CongServiceNodePropertyPage*
65
cong_plugin_register_custom_property_page_for_element (CongPlugin *plugin,
66
const gchar *element_name,
67
const gchar *service_id,
68
CongCustomPropertyPageFactoryMethod factory_method,
72
cong_plugin_for_each_custom_property_page (CongPlugin *plugin,
74
(*callback) (CongServiceNodePropertyPage *custom_property_page,
79
cong_custom_property_page_make (CongServiceNodePropertyPage *custom_property_page,