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

openldev-settings.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 OPENLDEV_ENVIRONMENT_H
00021 #define OPENLDEV_ENVIRONMENT_H
00022 
00023 #include <gconf/gconf-client.h>
00024 #include <cstdlib>
00025 #include <glib.h>
00026 #include <iostream>
00027 #include <fstream>
00028 #include <vector>
00029 using namespace std;
00030 
00031 typedef struct _EnvironmentSettings  EnvironmentSettings;
00032 
00033 struct _EnvironmentSettings
00034 {
00035   GConfClient *client;
00036 
00037   int auto_save;
00038   int browser_width;
00039   int height;
00040   int outputmanager_height;
00041   int tab_size;
00042   int undo;
00043   int width;
00044   
00045   gboolean auto_indent;
00046   gboolean auto_load;
00047   gboolean brackets;
00048   gboolean line_numbers;
00049   gboolean replace_tabs;
00050   gboolean right_margin;
00051   gboolean wrap;
00052   gboolean wrap_split;
00053   
00054   string error;
00055   string font_face;
00056   string font_size;
00057   string last_project;
00058   string warning;
00059   
00060   vector<string> recent_files;
00061 };
00062 
00063 EnvironmentSettings* openldev_environment_settings_new ();
00064 
00065 void openldev_environment_set_auto_indent  (EnvironmentSettings*, gboolean);
00066 void openldev_environment_set_auto_load    (EnvironmentSettings*, gboolean);
00067 void openldev_environment_set_brackets     (EnvironmentSettings*, gboolean);
00068 void openldev_environment_set_line_numbers (EnvironmentSettings*, gboolean);
00069 void openldev_environment_set_replace_tabs (EnvironmentSettings*, gboolean);
00070 void openldev_environment_set_right_margin (EnvironmentSettings*, gboolean);
00071 void openldev_environment_set_wrap         (EnvironmentSettings*, gboolean);
00072 void openldev_environment_set_wrap_split   (EnvironmentSettings*, gboolean);
00073 
00074 void openldev_environment_set_auto_save            (EnvironmentSettings*, int);
00075 void openldev_environment_set_browser_width        (EnvironmentSettings*, int);
00076 void openldev_environment_set_height               (EnvironmentSettings*, int);
00077 void openldev_environment_set_outputmanager_height (EnvironmentSettings*, int);
00078 void openldev_environment_set_tab_size             (EnvironmentSettings*, int);
00079 void openldev_environment_set_undo                 (EnvironmentSettings*, int);
00080 void openldev_environment_set_width                (EnvironmentSettings*, int);
00081 
00082 void openldev_environment_set_error        (EnvironmentSettings*, const char*);
00083 void openldev_environment_set_font_face    (EnvironmentSettings*, const char*);
00084 void openldev_environment_set_font_size    (EnvironmentSettings*, const char*);
00085 void openldev_environment_set_last_project (EnvironmentSettings*, const char*);
00086 void openldev_environment_set_warning      (EnvironmentSettings*, const char*);
00087 
00088 void openldev_environment_add_recent_file (EnvironmentSettings*, const char*);
00089 const char* openldev_environment_get_recent_short (EnvironmentSettings*, int);
00090 
00091 #endif

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