2005-09-02 23:27:25 +00:00
|
|
|
/*
|
|
|
|
* moofileentry.h
|
|
|
|
*
|
2010-12-21 20:15:45 -08:00
|
|
|
* Copyright (C) 2004-2010 by Yevgen Muntyan <emuntyan@users.sourceforge.net>
|
2005-09-02 23:27:25 +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-09-02 23:27:25 +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-09-02 23:27:25 +00:00
|
|
|
*/
|
|
|
|
|
2007-06-10 04:06:03 -05:00
|
|
|
#ifndef MOO_FILE_ENTRY_H
|
|
|
|
#define MOO_FILE_ENTRY_H
|
2005-09-02 23:27:25 +00:00
|
|
|
|
2005-10-13 14:08:18 +00:00
|
|
|
#include <mooutils/mooentry.h>
|
2006-04-16 11:40:46 -05:00
|
|
|
#include <moofileview/moofile.h>
|
2005-09-02 23:27:25 +00:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
|
2006-05-13 16:09:46 -05:00
|
|
|
#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))
|
|
|
|
|
2006-05-13 16:09:46 -05:00
|
|
|
#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
|
|
|
|
{
|
2005-10-13 14:08:18 +00:00
|
|
|
MooEntry parent;
|
2005-09-02 23:27:25 +00:00
|
|
|
|
|
|
|
MooFileEntryCompletion *completion;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct _MooFileEntryClass
|
|
|
|
{
|
2005-10-13 14:08:18 +00:00
|
|
|
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);
|
|
|
|
|
|
|
|
|
2006-05-13 16:09:46 -05:00
|
|
|
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
|
|
|
|
2006-05-13 16:09:46 -05:00
|
|
|
GtkWidget *_moo_file_entry_new (void);
|
2005-09-02 23:27:25 +00:00
|
|
|
|
2006-05-13 16:09:46 -05: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 */
|
2006-05-13 16:09:46 -05:00
|
|
|
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
|
|
|
|
|
2007-06-10 04:06:03 -05:00
|
|
|
#endif /* MOO_FILE_ENTRY_H */
|