3 * A file-manager extension which offers configurable context menu actions.
5 * Copyright (C) 2005 The GNOME Foundation
6 * Copyright (C) 2006-2008 Frederic Ruaudel and others (see AUTHORS)
7 * Copyright (C) 2009-2015 Pierre Wieser and others (see AUTHORS)
9 * FileManager-Actions is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 2 of
12 * the License, or (at your option) any later version.
14 * FileManager-Actions is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with FileManager-Actions; see the file COPYING. If not, see
21 * <http://www.gnu.org/licenses/>.
24 * Frederic Ruaudel <grumz@grumz.net>
25 * Rodrigo Moya <rodrigo@gnome-db.org>
26 * Pierre Wieser <pwieser@trychlos.org>
27 * ... and many others (see AUTHORS)
30 #ifndef __UI_BASE_DIALOG_H__
31 #define __UI_BASE_DIALOG_H__
34 * SECTION: base-dialog
36 * @short_description: The BaseDialog dialog base class definition
37 * @include: ui/base-dialog.h
39 * This class is derived from BaseWindow class, and serves as a base
40 * class for all FileManager-Actions dialogs.
43 #include "base-window.h"
47 #define BASE_TYPE_DIALOG ( base_dialog_get_type())
48 #define BASE_DIALOG( object ) ( G_TYPE_CHECK_INSTANCE_CAST( object, BASE_TYPE_DIALOG, BaseDialog ))
49 #define BASE_DIALOG_CLASS( klass ) ( G_TYPE_CHECK_CLASS_CAST( klass, BASE_TYPE_DIALOG, BaseDialogClass ))
50 #define BASE_IS_DIALOG( object ) ( G_TYPE_CHECK_INSTANCE_TYPE( object, BASE_TYPE_DIALOG ))
51 #define BASE_IS_DIALOG_CLASS( klass ) ( G_TYPE_CHECK_CLASS_TYPE(( klass ), BASE_TYPE_DIALOG ))
52 #define BASE_DIALOG_GET_CLASS( object ) ( G_TYPE_INSTANCE_GET_CLASS(( object ), BASE_TYPE_DIALOG, BaseDialogClass ))
54 typedef struct _BaseDialogPrivate BaseDialogPrivate
;
59 BaseDialogPrivate
*private;
63 typedef struct _BaseDialogClassPrivate BaseDialogClassPrivate
;
67 * @cancel: the dialog box is not validated.
68 * @ok: the dialog box is validated.
70 * This defines the virtual method a derived class may, should or must implement.
74 BaseWindowClass parent
;
75 BaseDialogClassPrivate
*private;
80 * @dialog: this #BaseDialog instance.
82 * Invoked when the dialog box is closed without having been validated.
84 void ( *cancel
)( BaseDialog
*dialog
);
88 * @dialog: this #BaseDialog instance.
90 * Invoked when the dialog box is validated.
92 void ( *ok
) ( BaseDialog
*dialog
);
96 GType
base_dialog_get_type( void );
100 #endif /* __UI_BASE_DIALOG_H__ */