1 /* floppyfileentry.h */
2 
3 #ifndef __FLOPPYFILEENTRY_H__
4 #define __FLOPPYFILEENTRY_H__
5 
6 #include <gdk/gdk.h>
7 #include <gtk/gtkframe.h>
8 
9 #ifdef __cplusplus
10 extern "C" {
11 #endif /* __cplusplus */
12 
13 #define FLOPPYFILEENTRY(obj)          GTK_CHECK_CAST (obj, floppyfileentry_get_type (), FloppyFileEntry)
14 #define FLOPPYFILEENTRY_CLASS(klass)  GTK_CHECK_CLASS_CAST (klass, floppyfileentry_get_type (), FloppyFileEntryClass)
15 #define IS_FLOPPYFILEENTRY(obj)       GTK_CHECK_TYPE (obj, floppyfileentry_get_type ())
16 
17 typedef struct _FloppyFileEntry       FloppyFileEntry;
18 typedef struct _FloppyFileEntryClass  FloppyFileEntryClass;
19 
20 struct _FloppyFileEntry
21 {
22     GtkFrame   frame;
23     GtkWidget *led;
24     GtkWidget *insert_button;
25     GtkWidget *eject_button;
26     GtkWidget *path_widget;
27 
28     gchar     *filename;
29     gchar     *drivename;
30 
31     GtkWidget *filesel;
32 };
33 
34 struct _FloppyFileEntryClass
35 {
36   GtkFrameClass parent_class;
37 
38   void (* floppyfileentry) (FloppyFileEntry *floppyfileentry);
39 };
40 
41 GtkType			floppyfileentry_get_type	(void);
42 GtkWidget*		floppyfileentry_new		(void);
43 void			floppyfileentry_set_currentdir	(FloppyFileEntry *ffentry, const gchar *filename);
44 void			floppyfileentry_set_filename	(FloppyFileEntry *ffentry, const gchar *filename);
45 void			floppyfileentry_set_label	(FloppyFileEntry *ffentry, const gchar *filename);
46 void			floppyfileentry_set_drivename	(FloppyFileEntry *ffentry, const gchar *filename);
47 #if GTK_MAJOR_VERSION > 2
48 G_CONST_RETURN
49 #endif
50 gchar		       *floppyfileentry_get_filename	(FloppyFileEntry *ffentry);
51 void			floppyfileentry_set_led		(FloppyFileEntry *ffentry, gboolean state);
52 void			floppyfileentry_do_dialog	(FloppyFileEntry *ffentry);
53 
54 #ifdef __cplusplus
55 }
56 #endif /* __cplusplus */
57 
58 #endif /* __FLOPPYFILEENTRY_H__ */
59