aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-view.h
blob: 520f9842a337e452664aa19e04f587754eeb6df5 (plain) (blame)
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/* e-shell-view.h
 *
 * Copyright (C) 2000  Helix Code, Inc.
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation; either version 2 of the
 * License, or (at your option) any later version.
 *
 * This program 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
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public
 * License along with this program; if not, write to the
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA 02111-1307, USA.
 *
 * Author: Ettore Perazzoli
 */

#ifndef _E_SHELL_VIEW_H_
#define _E_SHELL_VIEW_H_

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <bonobo/bonobo-win.h>

#include "e-shell.h"

#ifdef __cplusplus
extern "C" {
#pragma }
#endif /* __cplusplus */


#define E_TYPE_SHELL_VIEW           (e_shell_view_get_type ())
#define E_SHELL_VIEW(obj)           (GTK_CHECK_CAST ((obj), E_TYPE_SHELL_VIEW, EShellView))
#define E_SHELL_VIEW_CLASS(klass)       (GTK_CHECK_CLASS_CAST ((klass), E_TYPE_SHELL_VIEW, EShellViewClass))
#define E_IS_SHELL_VIEW(obj)            (GTK_CHECK_TYPE ((obj), E_TYPE_SHELL_VIEW))
#define E_IS_SHELL_VIEW_CLASS(klass)        (GTK_CHECK_CLASS_TYPE ((obj), E_TYPE_SHELL_VIEW))

typedef struct _EShellView        EShellView;
typedef struct _EShellViewPrivate EShellViewPrivate;
typedef struct _EShellViewClass   EShellViewClass;

enum _EShellViewSubwindowMode {
    E_SHELL_VIEW_SUBWINDOW_HIDDEN,
    E_SHELL_VIEW_SUBWINDOW_TRANSIENT,
    E_SHELL_VIEW_SUBWINDOW_STICKY
};
typedef enum _EShellViewSubwindowMode EShellViewSubwindowMode;

struct _EShellView {
    BonoboWindow parent;

    EShellViewPrivate *priv;
};

struct _EShellViewClass {
    BonoboWindowClass parent_class;

    /* Signals.  */
    void (* shortcut_bar_mode_changed) (EShellView *shell_view, EShellViewSubwindowMode new_mode);
    void (* folder_bar_mode_changed) (EShellView *shell_view, EShellViewSubwindowMode mode);
};


GtkType     e_shell_view_get_type   (void);
EShellView *e_shell_view_construct  (EShellView *shell_view,
                     EShell     *shell);
EShellView *e_shell_view_new        (EShell     *shell);

const GNOME_Evolution_ShellView  e_shell_view_get_corba_interface  (EShellView *view);

gboolean  e_shell_view_display_uri  (EShellView *shell_view,
                     const char *uri);

void                     e_shell_view_set_shortcut_bar_mode  (EShellView              *shell_view,
                                  EShellViewSubwindowMode  mode);
EShellViewSubwindowMode  e_shell_view_get_shortcut_bar_mode  (EShellView              *shell_view);

void                     e_shell_view_set_folder_bar_mode  (EShellView              *shell_view,
                                EShellViewSubwindowMode  mode);
EShellViewSubwindowMode  e_shell_view_get_folder_bar_mode  (EShellView              *shell_view);

EShell            *e_shell_view_get_shell                (EShellView *shell_view);
BonoboUIComponent *e_shell_view_get_bonobo_ui_component  (EShellView *shell_view);
GtkWidget         *e_shell_view_get_appbar               (EShellView *shell_view);
const char        *e_shell_view_get_current_uri          (EShellView *shell_view);

gboolean  e_shell_view_save_settings  (EShellView *shell_view,
                       const char *prefix);
gboolean  e_shell_view_load_settings  (EShellView *shell_view,
                       const char *prefix);

#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif /* _E_SHELL_VIEW_H_ */
an>/+5 * Update to version 1.0.1naddy2003-05-022-2/+2 * Update to version 1.0.0naddy2003-05-024-45/+82 * Update to 4.2.83.marcus2003-04-303-6/+3 * New port mprime version 0.0.22.12: mersenne.org distributed Greatlioux2003-04-297-0/+125 * Merge in remaining changes fromnaddy2003-04-292-270/+273 * Chase gnumeric homepage.adamw2003-04-291-1/+1 * Update to version 1.0.7.naddy2003-04-2614-138/+168 * Fix WWW.kuriyama2003-04-252-2/+3 * Remove a trailing '\' left over from previous commit.adamw2003-04-241-1/+1 * Use new GNOME 2 infrastructure.adamw2003-04-241-5/+2 * Update WWW and add $MASTER_SITES.kuriyama2003-04-242-3/+4 * Update to version 3.38naddy2003-04-249-81/+2 * mark it broken on -stableijliao2003-04-231-1/+7 * Convert to new GNOME infrastructure.marcus2003-04-221-4/+1 * Remove USE_GNOMENG.marcus2003-04-2111-11/+0 * math/ruby-bigfloat has been integrated into ruby16-shim-ruby18.knu2003-04-205-63/+0 * Change MAINTAINER to new address.nork2003-04-191-1/+1 * * Fix a problem importing text files [1]marcus2003-04-152-8/+135 * print/pdflib -> print/pdflib4edwin2003-04-142-2/+2 * use __sparc__ and __alpha__, not sparc and alphaijliao2003-04-131-0/+2 * Update to 1.0.13.marcus2003-04-113-41/+2 * oops... forgot to add this file last commitijliao2003-04-111-0/+15 * 1. fix gmp supportijliao2003-04-113-445/+491 * upgrade to 1.1.0ijliao2003-04-113-3/+4 * upgrade to 1.0.54ijliao2003-04-105-39/+117 * Fix build on CURRENTarved2003-04-091-1/+9 * fix "The scipad editor does not work" problemleeym2003-04-061-0/+11 * Rejoice, for the long awaited upgrade to kde 3.1.1 is here!alane2003-04-064-52/+40 * Chase the gal2 shared lib version.marcus2003-04-051-1/+2 * Update to 4.2.77.marcus2003-04-043-7/+31 * After repo copy from graphics category to newly create multimedialioux2003-04-041-1/+1 * upgrate to scilab 2.7leeym2003-04-0430-8015/+8717 * add it++ 3.7.0ijliao2003-04-035-0/+110 * remove p5-Math-Trigijliao2003-04-035-35/+0 * drop depends on p5-math-Trig ; it's in base perl5 suiteijliao2003-04-031-1/+1 * Fix build on -CURRENT.marcus2003-04-021-0/+12 * upgrade to 2.6b5ijliao2003-04-014-305/+344 * upgrade to 2.0.20030221ijliao2003-03-312-2/+2 * - update to 0.21kevlo2003-03-312-6/+3 * [Maintainer Patch] Port: math/libgmp4 (install a single info file)edwin2003-03-314-20/+10 * Update to 1.01.tobez2003-03-293-11/+10 * This port requires perl > 5.6arved2003-03-281-2/+3 * o) Grrr forgotten to add the additional patchfileslkoeller2003-03-273-0/+55 * o) Update to 5.1.12 (from 5.1.10) (PR: 48957)lkoeller2003-03-273-2/+6 * o) Update to version 2.1.5lkoeller2003-03-254-6/+10 * Collect a patch during last commit, that got integratedarved2003-03-241-11/+0 * Update to 0.9.1.arved2003-03-2421-491/+14 * o) Fix libtool usage (see PR)lkoeller2003-03-245-4/+7 * Fix build: replace BUILD_DEPENDS with EXTRACT_DEPENDS where appropriatelioux2003-03-232-4/+4 * Use a size_t to hold the result of sizeof() instead of an unsigned int.jhb2003-03-191-12/+14 * Add missing files.demon2003-03-101-0/+3 * Clear moonlight beckons.ade2003-03-07