summaryrefslogtreecommitdiff
path: root/plugins/filebrowser/gedit-file-browser-widget.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/filebrowser/gedit-file-browser-widget.h')
-rwxr-xr-xplugins/filebrowser/gedit-file-browser-widget.h121
1 files changed, 121 insertions, 0 deletions
diff --git a/plugins/filebrowser/gedit-file-browser-widget.h b/plugins/filebrowser/gedit-file-browser-widget.h
new file mode 100755
index 00000000..e9cc2a0e
--- /dev/null
+++ b/plugins/filebrowser/gedit-file-browser-widget.h
@@ -0,0 +1,121 @@
+/*
+ * gedit-file-browser-widget.h - Gedit plugin providing easy file access
+ * from the sidepanel
+ *
+ * Copyright (C) 2006 - Jesse van den Kieboom <[email protected]>
+ *
+ * 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, 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 __GEDIT_FILE_BROWSER_WIDGET_H__
+#define __GEDIT_FILE_BROWSER_WIDGET_H__
+
+#include <gtk/gtk.h>
+#include "gedit-file-browser-store.h"
+#include "gedit-file-bookmarks-store.h"
+#include "gedit-file-browser-view.h"
+
+G_BEGIN_DECLS
+#define GEDIT_TYPE_FILE_BROWSER_WIDGET (gedit_file_browser_widget_get_type ())
+#define GEDIT_FILE_BROWSER_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEDIT_TYPE_FILE_BROWSER_WIDGET, GeditFileBrowserWidget))
+#define GEDIT_FILE_BROWSER_WIDGET_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEDIT_TYPE_FILE_BROWSER_WIDGET, GeditFileBrowserWidget const))
+#define GEDIT_FILE_BROWSER_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GEDIT_TYPE_FILE_BROWSER_WIDGET, GeditFileBrowserWidgetClass))
+#define GEDIT_IS_FILE_BROWSER_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEDIT_TYPE_FILE_BROWSER_WIDGET))
+#define GEDIT_IS_FILE_BROWSER_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GEDIT_TYPE_FILE_BROWSER_WIDGET))
+#define GEDIT_FILE_BROWSER_WIDGET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GEDIT_TYPE_FILE_BROWSER_WIDGET, GeditFileBrowserWidgetClass))
+
+typedef struct _GeditFileBrowserWidget GeditFileBrowserWidget;
+typedef struct _GeditFileBrowserWidgetClass GeditFileBrowserWidgetClass;
+typedef struct _GeditFileBrowserWidgetPrivate GeditFileBrowserWidgetPrivate;
+
+typedef
+gboolean (*GeditFileBrowserWidgetFilterFunc) (GeditFileBrowserWidget * obj,
+ GeditFileBrowserStore *
+ model, GtkTreeIter * iter,
+ gpointer user_data);
+
+struct _GeditFileBrowserWidget
+{
+ GtkVBox parent;
+
+ GeditFileBrowserWidgetPrivate *priv;
+};
+
+struct _GeditFileBrowserWidgetClass
+{
+ GtkVBoxClass parent_class;
+
+ /* Signals */
+ void (*uri_activated) (GeditFileBrowserWidget * widget,
+ gchar const *uri);
+ void (*error) (GeditFileBrowserWidget * widget,
+ guint code,
+ gchar const *message);
+ gboolean (*confirm_delete) (GeditFileBrowserWidget * widget,
+ GeditFileBrowserStore * model,
+ GList *list);
+ gboolean (*confirm_no_trash) (GeditFileBrowserWidget * widget,
+ GList *list);
+};
+
+GType gedit_file_browser_widget_get_type (void) G_GNUC_CONST;
+GType gedit_file_browser_widget_register_type (GTypeModule * module);
+
+GtkWidget *gedit_file_browser_widget_new (const gchar *data_dir);
+
+void gedit_file_browser_widget_show_bookmarks (GeditFileBrowserWidget * obj);
+void gedit_file_browser_widget_show_files (GeditFileBrowserWidget * obj);
+
+void gedit_file_browser_widget_set_root (GeditFileBrowserWidget * obj,
+ gchar const *root,
+ gboolean virtual_root);
+void
+gedit_file_browser_widget_set_root_and_virtual_root (GeditFileBrowserWidget * obj,
+ gchar const *root,
+ gchar const *virtual_root);
+
+gboolean
+gedit_file_browser_widget_get_selected_directory (GeditFileBrowserWidget * obj,
+ GtkTreeIter * iter);
+
+GeditFileBrowserStore *
+gedit_file_browser_widget_get_browser_store (GeditFileBrowserWidget * obj);
+GeditFileBookmarksStore *
+gedit_file_browser_widget_get_bookmarks_store (GeditFileBrowserWidget * obj);
+GeditFileBrowserView *
+gedit_file_browser_widget_get_browser_view (GeditFileBrowserWidget * obj);
+GtkWidget *
+gedit_file_browser_widget_get_filter_entry (GeditFileBrowserWidget * obj);
+
+GtkUIManager *
+gedit_file_browser_widget_get_ui_manager (GeditFileBrowserWidget * obj);
+
+gulong gedit_file_browser_widget_add_filter (GeditFileBrowserWidget * obj,
+ GeditFileBrowserWidgetFilterFunc func,
+ gpointer user_data,
+ GDestroyNotify notify);
+void gedit_file_browser_widget_remove_filter (GeditFileBrowserWidget * obj,
+ gulong id);
+void gedit_file_browser_widget_set_filter_pattern (GeditFileBrowserWidget * obj,
+ gchar const *pattern);
+
+void gedit_file_browser_widget_refresh (GeditFileBrowserWidget * obj);
+void gedit_file_browser_widget_history_back (GeditFileBrowserWidget * obj);
+void gedit_file_browser_widget_history_forward (GeditFileBrowserWidget * obj);
+
+G_END_DECLS
+#endif /* __GEDIT_FILE_BROWSER_WIDGET_H__ */
+
+// ex:ts=8:noet: