medit/moo/moofileview/moofileentry.h

87 lines
3.4 KiB
C
Raw Normal View History

2005-09-02 23:27:25 +00:00
/*
* moofileentry.h
*
2007-06-24 12:56:20 -05:00
* Copyright (C) 2004-2007 by Yevgen Muntyan <muntyan@math.tamu.edu>
2005-09-02 23:27:25 +00:00
*
2007-06-24 12:56:20 -05:00
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
2007-09-23 11:47:28 -05:00
* License version 2.1 as published by the Free Software Foundation.
2005-09-02 23:27:25 +00:00
*
* See COPYING file that comes with this distribution.
*/
#ifndef MOO_FILE_ENTRY_H
#define MOO_FILE_ENTRY_H
2005-09-02 23:27:25 +00:00
#include <mooutils/mooentry.h>
#include <moofileview/moofile.h>
2005-09-02 23:27:25 +00:00
G_BEGIN_DECLS
#define MOO_TYPE_FILE_ENTRY_COMPLETION (_moo_file_entry_completion_get_type ())
2005-09-02 23:27:25 +00:00
#define MOO_FILE_ENTRY_COMPLETION(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), MOO_TYPE_FILE_ENTRY_COMPLETION, MooFileEntryCompletion))
#define MOO_FILE_ENTRY_COMPLETION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MOO_TYPE_FILE_ENTRY_COMPLETION, MooFileEntryCompletionClass))
#define MOO_IS_FILE_ENTRY_COMPLETION(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), MOO_TYPE_FILE_ENTRY_COMPLETION))
#define MOO_IS_FILE_ENTRY_COMPLETION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MOO_TYPE_FILE_ENTRY_COMPLETION))
#define MOO_FILE_ENTRY_COMPLETION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MOO_TYPE_FILE_ENTRY_COMPLETION, MooFileEntryCompletionClass))
#define MOO_TYPE_FILE_ENTRY (_moo_file_entry_get_type ())
2005-09-02 23:27:25 +00:00
#define MOO_FILE_ENTRY(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), MOO_TYPE_FILE_ENTRY, MooFileEntry))
#define MOO_FILE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MOO_TYPE_FILE_ENTRY, MooFileEntryClass))
#define MOO_IS_FILE_ENTRY(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), MOO_TYPE_FILE_ENTRY))
#define MOO_IS_FILE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MOO_TYPE_FILE_ENTRY))
#define MOO_FILE_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MOO_TYPE_FILE_ENTRY, MooFileEntryClass))
typedef struct _MooFileEntry MooFileEntry;
typedef struct _MooFileEntryClass MooFileEntryClass;
typedef struct _MooFileEntryCompletion MooFileEntryCompletion;
typedef struct _MooFileEntryCompletionPrivate MooFileEntryCompletionPrivate;
typedef struct _MooFileEntryCompletionClass MooFileEntryCompletionClass;
struct _MooFileEntry
{
MooEntry parent;
2005-09-02 23:27:25 +00:00
MooFileEntryCompletion *completion;
};
struct _MooFileEntryClass
{
MooEntryClass parent_class;
2005-09-02 23:27:25 +00:00
};
struct _MooFileEntryCompletion
{
GObject parent;
MooFileEntryCompletionPrivate *priv;
};
struct _MooFileEntryCompletionClass
{
GObjectClass parent_class;
};
typedef gboolean (*MooFileVisibleFunc) (MooFile *file,
gpointer data);
GType _moo_file_entry_get_type (void) G_GNUC_CONST;
GType _moo_file_entry_completion_get_type (void) G_GNUC_CONST;
2005-09-02 23:27:25 +00:00
GtkWidget *_moo_file_entry_new (void);
2005-09-02 23:27:25 +00:00
void _moo_file_entry_completion_set_entry (MooFileEntryCompletion *completion,
2005-09-02 23:27:25 +00:00
GtkEntry *entry);
2005-09-08 17:08:31 +00:00
/* converts path to utf8 and sets entry content */
void _moo_file_entry_completion_set_path (MooFileEntryCompletion *completion,
2005-09-08 17:08:31 +00:00
const char *path);
2008-05-06 14:07:00 -05:00
char *_moo_file_entry_completion_get_path (MooFileEntryCompletion *completion);
2005-09-08 17:08:31 +00:00
2005-09-02 23:27:25 +00:00
G_END_DECLS
#endif /* MOO_FILE_ENTRY_H */