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

openldev-environment.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 ENVIRONMENT_DIALOG_H
00021 #define ENVIRONMENT_DIALOG_H
00022 
00023 #include <gtk/gtk.h>
00024 #include <glade/glade.h>
00025 #include <iostream>
00026 using namespace std;
00027 
00028 typedef struct _EnvironmentDialog  EnvironmentDialog;
00029 
00030 struct _EnvironmentDialog
00031 {
00032   GtkWidget *autosave;
00033   GtkWidget *autoindent;
00034   GtkWidget *bracket;
00035   GtkWidget *error;
00036   GtkWidget *fontbutton;
00037   GtkWidget *load_on_launch;
00038   GtkWidget *replace_tabs;
00039   GtkWidget *right_margin;
00040   GtkWidget *split_words;
00041   GtkWidget *tab_size;
00042   GtkWidget *undo_actions;
00043   GtkWidget *warning;
00044   GtkWidget *wrap;
00045   
00046   GtkWidget *cancel;
00047   GtkWidget *dialog;
00048   GtkWidget *ok;
00049   GtkWidget *label_autoindent;
00050   GtkWidget *label_bracket;
00051   GtkWidget *label_compiler;
00052   GtkWidget *label_filemanagement;
00053   GtkWidget *label_font;
00054   GtkWidget *label_rightmargin;
00055   GtkWidget *label_tabstops;
00056   GtkWidget *label_text_wrap;
00057   GtkWidget *label_undo;
00058   
00059   string fontname;
00060 };
00061 
00062 EnvironmentDialog* openldev_env_dialog_new        ();
00063 GtkWidget*         openldev_env_dialog_get_dialog (EnvironmentDialog*);
00064 int                openldev_env_dialog_run        (EnvironmentDialog*);
00065 
00066 void openldev_env_dialog_set_autosave       (EnvironmentDialog*, int);
00067 void openldev_env_dialog_set_undo           (EnvironmentDialog*, int);
00068 void openldev_env_dialog_set_tab_size       (EnvironmentDialog*, int);
00069 void openldev_env_dialog_set_autoindent     (EnvironmentDialog*, gboolean);
00070 void openldev_env_dialog_set_bracket        (EnvironmentDialog*, gboolean);
00071 void openldev_env_dialog_set_load_on_launch (EnvironmentDialog*, gboolean);
00072 void openldev_env_dialog_set_replace_tabs   (EnvironmentDialog*, gboolean);
00073 void openldev_env_dialog_set_right_margin   (EnvironmentDialog*, gboolean);
00074 void openldev_env_dialog_set_split_words    (EnvironmentDialog*, gboolean);
00075 void openldev_env_dialog_set_wrap           (EnvironmentDialog*, gboolean);
00076 void openldev_env_dialog_set_error          (EnvironmentDialog*, const char*);
00077 void openldev_env_dialog_set_font           (EnvironmentDialog*, const char*, const char*);
00078 void openldev_env_dialog_set_warning        (EnvironmentDialog*, const char*);
00079 
00080 int openldev_env_dialog_get_autosave (EnvironmentDialog*);
00081 int openldev_env_dialog_get_undo     (EnvironmentDialog*);
00082 int openldev_env_dialog_get_tab_size (EnvironmentDialog*);
00083 
00084 gboolean openldev_env_dialog_get_autoindent     (EnvironmentDialog*);
00085 gboolean openldev_env_dialog_get_bracket        (EnvironmentDialog*);
00086 gboolean openldev_env_dialog_get_load_on_launch (EnvironmentDialog*);
00087 gboolean openldev_env_dialog_get_replace_tabs   (EnvironmentDialog*);
00088 gboolean openldev_env_dialog_get_right_margin   (EnvironmentDialog*);
00089 gboolean openldev_env_dialog_get_split_words    (EnvironmentDialog*);
00090 gboolean openldev_env_dialog_get_wrap           (EnvironmentDialog*);
00091 
00092 const char* openldev_env_dialog_get_error     (EnvironmentDialog*);
00093 const char* openldev_env_dialog_get_font_size (EnvironmentDialog*);
00094 const char* openldev_env_dialog_get_font_face (EnvironmentDialog*);
00095 const char* openldev_env_dialog_get_warning   (EnvironmentDialog*);
00096 
00097 #endif

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