* ftpfs.c (ftpfs_fill_names): New function.
[midnight-commander.git] / gtkedit / gtkedit.h
blob6eb3c405b013d2d1c4e203ba0fa976146779e3fd
1 /* GTK - The GIMP Toolkit
2 * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
14 * You should have received a copy of the GNU Library General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 * Boston, MA 02111-1307, USA.
19 #ifndef __GTK_EDIT_H__
20 #define __GTK_EDIT_H__
23 #include <gdk/gdk.h>
24 #include <gtk/gtkadjustment.h>
25 #include <gtk/gtkeditable.h>
26 #if ! defined (MIDNIGHT) && ! defined (GTK)
27 #include <gtkedit/mousemark.h>
28 #endif
30 #ifdef __cplusplus
31 extern "C" {
32 #endif /* __cplusplus */
35 #define GTK_EDIT(obj) GTK_CHECK_CAST (obj, gtk_edit_get_type (), GtkEdit)
36 #define GTK_EDIT_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, gtk_edit_get_type (), GtkEditClass)
37 #define GTK_IS_EDIT(obj) GTK_CHECK_TYPE (obj, gtk_edit_get_type ())
40 typedef struct _GtkEdit GtkEdit;
41 typedef struct _GtkEditClass GtkEditClass;
44 struct _GtkEdit
46 GtkEditable editable;
48 GdkWindow *text_area;
49 GtkWidget *menubar, *status;
51 GtkAdjustment *hadj;
52 gint last_hadj_value;
54 GtkAdjustment *vadj;
55 gint last_vadj_value;
57 GdkGC *gc;
58 GdkColor color[256];
59 int color_last_pixel;
60 void (*destroy_me) (GtkWidget *);
61 GtkWidget *destroy_me_user_data;
62 struct editor_widget *editor;
63 gulong options;
64 gint timer;
67 struct _GtkEditClass
69 GtkEditableClass parent_class;
73 guint gtk_edit_get_type (void);
74 GtkWidget* gtk_edit_new (GtkAdjustment *hadj,
75 GtkAdjustment *vadj);
76 void gtk_edit_set_editable (GtkEdit *text,
77 gint editable);
78 void gtk_edit_set_word_wrap (GtkEdit *text,
79 gint word_wrap);
80 void gtk_edit_set_adjustments (GtkEdit *text,
81 GtkAdjustment *hadj,
82 GtkAdjustment *vadj);
83 void gtk_edit_set_point (GtkEdit *text,
84 guint index);
85 guint gtk_edit_get_point (GtkEdit *text);
86 guint gtk_edit_get_length (GtkEdit *text);
87 void gtk_edit_freeze (GtkEdit *text);
88 void gtk_edit_thaw (GtkEdit *text);
89 void gtk_edit_insert (GtkEdit *text,
90 GdkFont *font,
91 GdkColor *fore,
92 GdkColor *back,
93 const char *chars,
94 gint length);
95 gint gtk_edit_backward_delete (GtkEdit *text,
96 guint nchars);
97 gint gtk_edit_forward_delete (GtkEdit *text,
98 guint nchars);
101 char *gtk_edit_dialog_get_load_file (guchar * directory, guchar * file, guchar * heading);
102 char *gtk_edit_dialog_get_save_file (guchar * directory, guchar * file, guchar * heading);
103 void gtk_edit_dialog_error (guchar * heading, char *fmt,...);
104 void gtk_edit_dialog_message (guchar * heading, char *fmt,...);
105 int gtk_edit_dialog_query (guchar * heading, guchar * first,...);
109 #ifdef __cplusplus
111 #endif /* __cplusplus */
114 #endif /* __GTK_EDIT_H__ */