2006-05-21 18:11:05 -05:00
|
|
|
/*
|
2005-10-13 14:08:18 +00:00
|
|
|
* moobigpaned.h
|
|
|
|
*
|
2010-12-21 20:15:45 -08:00
|
|
|
* Copyright (C) 2004-2010 by Yevgen Muntyan <emuntyan@users.sourceforge.net>
|
2005-10-13 14:08:18 +00:00
|
|
|
*
|
2008-09-05 17:20:50 -05:00
|
|
|
* This file is part of medit. medit 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.1 of the License,
|
|
|
|
* or (at your option) any later version.
|
2005-10-13 14:08:18 +00:00
|
|
|
*
|
2008-09-05 17:20:50 -05:00
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with medit. If not, see <http://www.gnu.org/licenses/>.
|
2005-10-13 14:08:18 +00:00
|
|
|
*/
|
|
|
|
|
2007-04-12 10:24:21 -05:00
|
|
|
#ifndef MOO_BIG_PANED_H
|
|
|
|
#define MOO_BIG_PANED_H
|
2005-10-13 14:08:18 +00:00
|
|
|
|
2007-04-12 10:24:21 -05:00
|
|
|
#include "moopaned.h"
|
2005-10-13 14:08:18 +00:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
|
|
|
|
#define MOO_TYPE_BIG_PANED (moo_big_paned_get_type ())
|
|
|
|
#define MOO_BIG_PANED(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), MOO_TYPE_BIG_PANED, MooBigPaned))
|
|
|
|
#define MOO_BIG_PANED_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MOO_TYPE_BIG_PANED, MooBigPanedClass))
|
|
|
|
#define MOO_IS_BIG_PANED(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), MOO_TYPE_BIG_PANED))
|
|
|
|
#define MOO_IS_BIG_PANED_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MOO_TYPE_BIG_PANED))
|
|
|
|
#define MOO_BIG_PANED_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MOO_TYPE_BIG_PANED, MooBigPanedClass))
|
|
|
|
|
|
|
|
|
2010-12-08 01:25:34 -08:00
|
|
|
typedef struct _MooBigPaned MooBigPaned;
|
|
|
|
typedef struct _MooBigPanedPrivate MooBigPanedPrivate;
|
|
|
|
typedef struct _MooBigPanedClass MooBigPanedClass;
|
2005-10-13 14:08:18 +00:00
|
|
|
|
2010-12-08 01:25:34 -08:00
|
|
|
struct _MooBigPaned
|
2005-10-13 14:08:18 +00:00
|
|
|
{
|
2008-01-04 14:33:05 -06:00
|
|
|
GtkFrame base;
|
|
|
|
MooBigPanedPrivate *priv;
|
|
|
|
GtkWidget *paned[4]; /* indexed by PanePos */
|
2005-10-13 14:08:18 +00:00
|
|
|
};
|
|
|
|
|
2010-12-08 01:25:34 -08:00
|
|
|
struct _MooBigPanedClass
|
2005-10-13 14:08:18 +00:00
|
|
|
{
|
2008-01-04 14:33:05 -06:00
|
|
|
GtkFrameClass base_class;
|
2005-10-13 14:08:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
GType moo_big_paned_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
GtkWidget *moo_big_paned_new (void);
|
|
|
|
|
|
|
|
void moo_big_paned_set_pane_order (MooBigPaned *paned,
|
|
|
|
int *order);
|
2008-01-04 21:08:39 -06:00
|
|
|
void moo_big_paned_set_config (MooBigPaned *paned,
|
|
|
|
const char *config_string);
|
|
|
|
char *moo_big_paned_get_config (MooBigPaned *paned);
|
2005-10-13 14:08:18 +00:00
|
|
|
|
2007-05-07 00:26:18 -05:00
|
|
|
MooPane *moo_big_paned_find_pane (MooBigPaned *paned,
|
2005-11-25 20:48:01 +00:00
|
|
|
GtkWidget *pane_widget,
|
2007-05-07 00:26:18 -05:00
|
|
|
MooPaned **child_paned);
|
2005-11-25 20:48:01 +00:00
|
|
|
|
2005-10-13 14:08:18 +00:00
|
|
|
void moo_big_paned_add_child (MooBigPaned *paned,
|
|
|
|
GtkWidget *widget);
|
|
|
|
void moo_big_paned_remove_child (MooBigPaned *paned);
|
|
|
|
GtkWidget *moo_big_paned_get_child (MooBigPaned *paned);
|
|
|
|
|
2007-05-07 00:26:18 -05:00
|
|
|
MooPane *moo_big_paned_insert_pane (MooBigPaned *paned,
|
2005-10-13 14:08:18 +00:00
|
|
|
GtkWidget *pane_widget,
|
2008-01-04 21:08:39 -06:00
|
|
|
const char *pane_id,
|
2005-10-13 14:08:18 +00:00
|
|
|
MooPaneLabel *pane_label,
|
|
|
|
MooPanePosition position,
|
|
|
|
int index_);
|
|
|
|
gboolean moo_big_paned_remove_pane (MooBigPaned *paned,
|
|
|
|
GtkWidget *pane_widget);
|
2008-01-04 21:08:39 -06:00
|
|
|
MooPane *moo_big_paned_lookup_pane (MooBigPaned *paned,
|
|
|
|
const char *pane_id);
|
2005-10-13 14:08:18 +00:00
|
|
|
|
|
|
|
GtkWidget *moo_big_paned_get_pane (MooBigPaned *paned,
|
|
|
|
MooPanePosition position,
|
|
|
|
int index_);
|
2008-01-04 21:08:39 -06:00
|
|
|
void moo_big_paned_reorder_pane (MooBigPaned *paned,
|
|
|
|
GtkWidget *pane_widget,
|
|
|
|
MooPanePosition new_position,
|
|
|
|
int new_index);
|
2005-10-13 14:08:18 +00:00
|
|
|
|
2007-04-10 08:41:02 -05:00
|
|
|
MooPaned *moo_big_paned_get_paned (MooBigPaned *paned,
|
|
|
|
MooPanePosition position);
|
|
|
|
|
2005-10-13 14:08:18 +00:00
|
|
|
void moo_big_paned_open_pane (MooBigPaned *paned,
|
|
|
|
GtkWidget *pane_widget);
|
|
|
|
void moo_big_paned_hide_pane (MooBigPaned *paned,
|
|
|
|
GtkWidget *pane_widget);
|
|
|
|
void moo_big_paned_present_pane (MooBigPaned *paned,
|
|
|
|
GtkWidget *pane_widget);
|
2007-04-17 12:50:01 -05:00
|
|
|
void moo_big_paned_attach_pane (MooBigPaned *paned,
|
|
|
|
GtkWidget *pane_widget);
|
|
|
|
void moo_big_paned_detach_pane (MooBigPaned *paned,
|
|
|
|
GtkWidget *pane_widget);
|
2005-10-13 14:08:18 +00:00
|
|
|
|
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
2007-04-12 10:24:21 -05:00
|
|
|
#endif /* MOO_BIG_PANED_H */
|