source: trunk/third/evolution/shell/e-shell-folder-selection-dialog.h @ 18142

Revision 18142, 3.5 KB checked in by ghudson, 22 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r18141, which included commits to RCS files with non-trunk default branches.
Line 
1/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
2/* e-shell-folder-selection-dialog.h
3 *
4 * Copyright (C) 2000  Ximian, Inc.
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of version 2 of the GNU General Public
8 * License as published by the Free Software Foundation.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 * General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public
16 * License along with this program; if not, write to the
17 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 * Boston, MA 02111-1307, USA.
19 *
20 * Author: Ettore Perazzoli
21 */
22
23#ifndef E_SHELL_FOLDER_SELECTION_DIALOG_H
24#define E_SHELL_FOLDER_SELECTION_DIALOG_H
25
26#include <libgnomeui/gnome-dialog.h>
27
28#include "e-shell.h"
29
30#ifdef cplusplus
31extern "C" {
32#pragma }
33#endif /* cplusplus */
34
35#define E_TYPE_SHELL_FOLDER_SELECTION_DIALOG                    (e_shell_folder_selection_dialog_get_type ())
36#define E_SHELL_FOLDER_SELECTION_DIALOG(obj)                    (GTK_CHECK_CAST ((obj), E_TYPE_SHELL_FOLDER_SELECTION_DIALOG, EShellFolderSelectionDialog))
37#define E_SHELL_FOLDER_SELECTION_DIALOG_CLASS(klass)            (GTK_CHECK_CLASS_CAST ((klass), E_TYPE_SHELL_FOLDER_SELECTION_DIALOG, EShellFolderSelectionDialogClass))
38#define E_IS_SHELL_FOLDER_SELECTION_DIALOG(obj)                 (GTK_CHECK_TYPE ((obj), E_TYPE_SHELL_FOLDER_SELECTION_DIALOG))
39#define E_IS_SHELL_FOLDER_SELECTION_DIALOG_CLASS(klass)         (GTK_CHECK_CLASS_TYPE ((obj), E_TYPE_SHELL_FOLDER_SELECTION_DIALOG))
40
41
42typedef struct _EShellFolderSelectionDialog        EShellFolderSelectionDialog;
43typedef struct _EShellFolderSelectionDialogPrivate EShellFolderSelectionDialogPrivate;
44typedef struct _EShellFolderSelectionDialogClass   EShellFolderSelectionDialogClass;
45
46struct _EShellFolderSelectionDialog {
47        GnomeDialog parent;
48
49        EShellFolderSelectionDialogPrivate *priv;
50};
51
52struct _EShellFolderSelectionDialogClass {
53        GnomeDialogClass parent_class;
54
55        void (* folder_selected) (EShellFolderSelectionDialog *folder_selection_dialog,
56                                  const char *path);
57        void (* cancelled)       (EShellFolderSelectionDialog *folder_selection_dialog);
58};
59
60
61GtkType     e_shell_folder_selection_dialog_get_type           (void);
62void        e_shell_folder_selection_dialog_construct          (EShellFolderSelectionDialog *folder_selection_dialog,
63                                                                EShell                      *shell,
64                                                                const char                  *title,
65                                                                const char                  *caption,
66                                                                const char                  *default_uri,
67                                                                const char                  *allowed_types[]);
68GtkWidget  *e_shell_folder_selection_dialog_new                (EShell                      *shell,
69                                                                const char                  *title,
70                                                                const char                  *caption,
71                                                                const char                  *default_uri,
72                                                                const char                  *allowed_types[]);
73
74void      e_shell_folder_selection_dialog_set_allow_creation  (EShellFolderSelectionDialog *folder_selection_dialog,
75                                                               gboolean                     allow_creation);
76gboolean  e_shell_folder_selection_dialog_get_allow_creation  (EShellFolderSelectionDialog *folder_selection_dialog);
77
78const char *e_shell_folder_selection_dialog_get_selected_path  (EShellFolderSelectionDialog *folder_selection_dialog);
79
80#ifdef cplusplus
81}
82#endif /* cplusplus */
83
84#endif /* E_SHELL_FOLDER_SELECTION_DIALOG_H */
Note: See TracBrowser for help on using the repository browser.