summaryrefslogtreecommitdiff
path: root/tools/glade/glade/glade_clipboard.h
blob: 7d1b626cd2381915151621dd6e365b01df92abc6 (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
71
72
73
74
75
76
77
/*  Gtk+ User Interface Builder
 *  Copyright (C) 1998-1999  Damon Chaplin
 *
 *  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.
*/
#ifndef GLADE_CLIPBOARD_H
#define GLADE_CLIPBOARD_H

#include <gtk/gtkwindow.h>

#include "glade_project.h"

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

/*
 * GladeClipboard is a subclass of GtkWindow, which shows all of the widgets
 * in the cut buffers, allowing the user to select which widget to paste.
 */


#define GLADE_CLIPBOARD(obj)          GTK_CHECK_CAST (obj, glade_clipboard_get_type (), GladeClipboard)
#define GLADE_CLIPBOARD_CLASS(klass)  GTK_CHECK_CLASS_CAST (klass, glade_clipboard_get_type (), GladeClipboardClass)
#define GLADE_IS_CLIPBOARD(obj)       GTK_CHECK_TYPE (obj, glade_clipboard_get_type ())

typedef struct _GladeClipboard       GladeClipboard;
typedef struct _GladeClipboardClass  GladeClipboardClass;

struct _GladeClipboard
{
  GtkWindow window;

  /* The list of widgets in the cut buffers. */
  GtkWidget *clist;

};

struct _GladeClipboardClass
{
  GtkWindowClass parent_class;
};


GType	    glade_clipboard_get_type		(void);
GtkWidget*  glade_clipboard_new			(void);

/* These cut/copy/paste widgets in the given project. If NULL is passed as
   the widget parameter, the currently selected widget will be used. */
void	    glade_clipboard_cut			(GladeClipboard *clipboard,
						 GladeProject   *project,
						 GtkWidget	*widget);
void	    glade_clipboard_copy		(GladeClipboard *clipboard,
						 GladeProject   *project,
						 GtkWidget	*widget);
void	    glade_clipboard_paste		(GladeClipboard *clipboard,
						 GladeProject   *project,
						 GtkWidget	*widget);


#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif /* GLADE_CLIPBOARD_H */