1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
3 * gedit-output-window.h
4 * This file is part of gedit
6 * Copyright (C) 2002 Paolo Maggi
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program 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
16 * GNU 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., 59 Temple Place, Suite 330,
21 * Boston, MA 02111-1307, USA.
26 * Modified by the gedit Team, 2002. See the AUTHORS file for a
27 * list of people on the gedit Team.
28 * See the ChangeLog files for a list of changes.
31 #ifndef __GEDIT_OUTPUT_WINDOW_H__
32 #define __GEDIT_OUTPUT_WINDOW_H__
36 #define GEDIT_TYPE_OUTPUT_WINDOW (gedit_output_window_get_type ())
37 #define GEDIT_OUTPUT_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEDIT_TYPE_OUTPUT_WINDOW, GeditOutputWindow))
38 #define GEDIT_OUTPUT_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GEDIT_TYPE_OUTPUT_WINDOW, GeditOutputWindowClass))
39 #define GEDIT_IS_OUTPUT_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEDIT_TYPE_OUTPUT_WINDOW))
40 #define GEDIT_IS_OUTPUT_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GEDIT_TYPE_OUTPUT_WINDOW))
41 #define GEDIT_OUTPUT_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GEDIT_TYPE_OUTPUT_WINDOW, GeditOutputWindowClass))
44 typedef struct _GeditOutputWindow GeditOutputWindow;
45 typedef struct _GeditOutputWindowClass GeditOutputWindowClass;
47 typedef struct _GeditOutputWindowPrivate GeditOutputWindowPrivate;
49 struct _GeditOutputWindow
53 GeditOutputWindowPrivate *priv;
56 struct _GeditOutputWindowClass
58 GtkHBoxClass parent_class;
60 void (*close_requested) (GeditOutputWindow *ow);
61 void (*selection_changed) (GeditOutputWindow *ow, gchar *line);
65 GType gedit_output_window_get_type (void) G_GNUC_CONST;
67 GtkWidget *gedit_output_window_new (void);
69 void gedit_output_window_clear (GeditOutputWindow *ow);
71 void gedit_output_window_append_line (GeditOutputWindow *ow,
75 void gedit_output_window_prepend_line (GeditOutputWindow *ow,
79 void gedit_output_window_set_select_multiple (GeditOutputWindow *ow,
80 const GtkSelectionMode type);
82 #endif /* __GEDIT_OUTPUT_WINDOW_H__ */