2016-02-04 03:20:42 -06:00
|
|
|
/*
|
|
|
|
* xed-statusbar.h
|
|
|
|
* This file is part of xed
|
|
|
|
*
|
|
|
|
* Copyright (C) 2005 - Paolo Borelli
|
|
|
|
*
|
|
|
|
* 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
|
2017-01-13 05:21:50 -06:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor,
|
2016-02-04 03:20:42 -06:00
|
|
|
* Boston, MA 02110-1301, USA.
|
|
|
|
*/
|
2017-01-13 05:21:50 -06:00
|
|
|
|
2016-02-04 03:20:42 -06:00
|
|
|
/*
|
2017-01-13 05:21:50 -06:00
|
|
|
* Modified by the xed Team, 2005. See the AUTHORS file for a
|
|
|
|
* list of people on the xed Team.
|
|
|
|
* See the ChangeLog files for a list of changes.
|
2016-02-04 03:20:42 -06:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef XED_STATUSBAR_H
|
|
|
|
#define XED_STATUSBAR_H
|
|
|
|
|
|
|
|
#include <gtk/gtk.h>
|
|
|
|
#include <xed/xed-window.h>
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
2017-01-13 05:21:50 -06:00
|
|
|
#define XED_TYPE_STATUSBAR (xed_statusbar_get_type ())
|
|
|
|
#define XED_STATUSBAR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), XED_TYPE_STATUSBAR, XedStatusbar))
|
|
|
|
#define XED_STATUSBAR_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), XED_TYPE_STATUSBAR, XedStatusbarClass))
|
|
|
|
#define XED_IS_STATUSBAR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), XED_TYPE_STATUSBAR))
|
|
|
|
#define XED_IS_STATUSBAR_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), XED_TYPE_STATUSBAR))
|
|
|
|
#define XED_STATUSBAR_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), XED_TYPE_STATUSBAR, XedStatusbarClass))
|
2016-02-04 03:20:42 -06:00
|
|
|
|
2017-01-13 05:21:50 -06:00
|
|
|
typedef struct _XedStatusbar XedStatusbar;
|
|
|
|
typedef struct _XedStatusbarPrivate XedStatusbarPrivate;
|
|
|
|
typedef struct _XedStatusbarClass XedStatusbarClass;
|
2016-02-04 03:20:42 -06:00
|
|
|
|
|
|
|
struct _XedStatusbar
|
|
|
|
{
|
|
|
|
GtkStatusbar parent;
|
|
|
|
|
2017-01-13 05:21:50 -06:00
|
|
|
/* <private/> */
|
2016-02-04 03:20:42 -06:00
|
|
|
XedStatusbarPrivate *priv;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct _XedStatusbarClass
|
|
|
|
{
|
|
|
|
GtkStatusbarClass parent_class;
|
|
|
|
};
|
|
|
|
|
2017-01-13 05:21:50 -06:00
|
|
|
GType xed_statusbar_get_type (void) G_GNUC_CONST;
|
2016-02-04 03:20:42 -06:00
|
|
|
|
2017-01-13 05:21:50 -06:00
|
|
|
GtkWidget *xed_statusbar_new (void);
|
2016-02-04 03:20:42 -06:00
|
|
|
|
2017-01-13 05:21:50 -06:00
|
|
|
void xed_statusbar_set_window_state (XedStatusbar *statusbar,
|
|
|
|
XedWindowState state,
|
|
|
|
gint num_of_errors);
|
2016-02-04 03:20:42 -06:00
|
|
|
|
2017-01-13 05:21:50 -06:00
|
|
|
void xed_statusbar_set_overwrite (XedStatusbar *statusbar,
|
|
|
|
gboolean overwrite);
|
2016-02-04 03:20:42 -06:00
|
|
|
|
2017-01-13 05:21:50 -06:00
|
|
|
void xed_statusbar_set_cursor_position (XedStatusbar *statusbar,
|
|
|
|
gint line,
|
|
|
|
gint col);
|
2016-02-04 03:20:42 -06:00
|
|
|
|
2017-01-13 05:21:50 -06:00
|
|
|
void xed_statusbar_clear_overwrite (XedStatusbar *statusbar);
|
2016-02-04 03:20:42 -06:00
|
|
|
|
2017-01-13 05:21:50 -06:00
|
|
|
void xed_statusbar_flash_message (XedStatusbar *statusbar,
|
|
|
|
guint context_id,
|
|
|
|
const gchar *format,
|
|
|
|
...) G_GNUC_PRINTF(3, 4);
|
2016-02-04 03:20:42 -06:00
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif
|