summaryrefslogtreecommitdiffstats
path: root/src/palimpsest/gdu-shell.h
blob: 5c85568f2647a3562171f8b44683bc54338a85d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
/* gdu-shell.h
 *
 * Copyright (C) 2007 David Zeuthen
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public License
 * as published by the Free Software Foundation; either version 2 of
 * the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 * 02111-1307, USA.
 */

#ifndef GDU_SHELL_H
#define GDU_SHELL_H

#include <glib-object.h>
#include <gtk/gtk.h>

#include <gdu/gdu.h>

#define GDU_TYPE_SHELL             (gdu_shell_get_type ())
#define GDU_SHELL(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj), GDU_TYPE_SHELL, GduShell))
#define GDU_SHELL_CLASS(obj)       (G_TYPE_CHECK_CLASS_CAST ((obj), GDU_SHELL,  GduShellClass))
#define GDU_IS_SHELL(obj)          (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GDU_TYPE_SHELL))
#define GDU_IS_SHELL_CLASS(obj)    (G_TYPE_CHECK_CLASS_TYPE ((obj), GDU_TYPE_SHELL))
#define GDU_SHELL_GET_CLASS        (G_TYPE_INSTANCE_GET_CLASS ((obj), GDU_TYPE_SHELL, GduShellClass))

typedef struct _GduShellClass       GduShellClass;
typedef struct _GduShell            GduShell;

struct _GduShellPrivate;
typedef struct _GduShellPrivate     GduShellPrivate;

struct _GduShell
{
        GObject parent;

        /* private */
        GduShellPrivate *priv;
};

struct _GduShellClass
{
        GObjectClass parent_class;
};

GType           gdu_shell_get_type                 (void);
GduShell       *gdu_shell_new                      (void);
GtkWidget      *gdu_shell_get_toplevel             (GduShell       *shell);
GduPool        *gdu_shell_get_pool                 (GduShell       *shell);
void            gdu_shell_update                   (GduShell       *shell);
GduPresentable *gdu_shell_get_selected_presentable (GduShell       *shell);
void            gdu_shell_select_presentable       (GduShell       *shell,
                                                    GduPresentable *presentable);
void            gdu_shell_raise_error              (GduShell       *shell,
                                                    GduPresentable *presentable,
                                                    GError         *error,
                                                    const char     *primary_markup_format,
                                                    ...);

#endif /* GDU_SHELL_H */