Main Page | Namespace List | Class List | Directories | File List | Class Members | File Members

openldev-file-manager.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2004-2005 by Andrew Krause                              *
00003  *                                                                         *
00004  *   This program is free software; you can redistribute it and/or modify  *
00005  *   it under the terms of the GNU General Public License as published by  *
00006  *   the Free Software Foundation; either version 2 of the License, or     *
00007  *   (at your option) any later version.                                   *
00008  *                                                                         *
00009  *   This program is distributed in the hope that it will be useful,       *
00010  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00011  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00012  *   GNU General Public License for more details.                          *
00013  *                                                                         *
00014  *   You should have received a copy of the GNU General Public License     *
00015  *   along with this program; if not, write to the                         *
00016  *   Free Software Foundation, Inc.,                                       *
00017  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00018  ***************************************************************************/
00019 
00020 #ifndef FILE_MANAGER_H
00021 #define FILE_MANAGER_H
00022 
00023 #include "openldev-file-tab.h"
00024 #include "../openldev-settings/openldev-auto-list.h"
00025 #include "../openldev-settings/openldev-settings.h"
00026 #include "openldev-auto-complete.h"
00027 
00028 #include <libgnomevfs/gnome-vfs.h>
00029 #include <gtksourceview/gtksourceview.h>
00030 #include <gtksourceview/gtksourcebuffer.h>
00031 #include <gtksourceview/gtksourcelanguagesmanager.h>
00032 #include <vector>
00033 using namespace std;
00034 
00035 typedef struct _FileManager  FileManager;
00036 
00037 struct _FileManager
00038 {
00039   GtkWidget    *notebook;
00040   AutoComplete *acompl;
00041   AutoList     *autolist;
00042   
00043   vector<FileTab*> tabs;
00044   int tab_count;
00045 };
00046 
00047 FileManager* openldev_file_manager_new ();
00048 
00049 GtkWidget* openldev_file_manager_get_textview           (FileManager*);
00050 GtkSourceBuffer* openldev_file_manager_get_textbuffer   (FileManager*);
00051 string openldev_file_manager_get_current_filename       (FileManager*);
00052 string openldev_file_manager_get_current_short_filename (FileManager*);
00053 int    openldev_file_manager_get_current_tab            (FileManager*);
00054 int    openldev_file_manager_get_insert_offset          (FileManager*);
00055 int    openldev_file_manager_get_selection_offset       (FileManager*);
00056 gboolean   openldev_file_manager_get_file_open              (FileManager*);
00057   
00058 void openldev_file_manager_set_filename   (FileManager*, const char*);
00059 void openldev_file_manager_set_properties (FileManager*, gboolean, EnvironmentSettings*);
00060 gboolean openldev_file_manager_add_tab        (FileManager*, const char*, EnvironmentSettings*);
00061 void openldev_file_manager_erase_all_tabs (FileManager*);
00062 void openldev_file_manager_save_all_files (FileManager*);
00063 void openldev_file_manager_mark_current_tab_modified (FileManager*, gboolean, int);
00064   
00065 void openldev_file_manager_scroll_to_mark  (FileManager*);
00066 void openldev_file_manager_modify_fonts    (FileManager*, PangoFontDescription*);
00067 void openldev_file_manager_revert_to_saved (FileManager*);
00068  
00069 void openldev_file_manager_autolist_parse_files (FileManager*, GList*);
00070 void openldev_file_manager_autolist_parse_file  (FileManager*, const char*);
00071 void openldev_file_manager_autolist_clean_all   (FileManager*);
00072 
00073 gboolean openldev_file_manager_question (string question);
00074 
00075 PangoTabArray* openldev_file_manager_get_tab_array (PangoFontDescription*, 
00076                EnvironmentSettings*, GtkWidget*);
00077 
00078 // Don't use me!
00079 void openldev_file_manager_on_delete_tab (GtkWidget*, gpointer);
00080 
00081 #endif

Generated on Tue Jan 31 23:32:42 2006 for OpenLDev by  doxygen 1.4.4