settings_style.h

Go to the documentation of this file.
00001 #ifndef SETTINGS_STYLE_H
00002 #define SETTINGS_STYLE_H
00003 
00004 /*
00005  * File Name: settings_style.h
00006  */
00007 
00008 /*
00009  * This file is part of settings.
00010  *
00011  * settings is free software: you can redistribute it and/or modify
00012  * it under the terms of the GNU General Public License as published by
00013  * the Free Software Foundation, either version 2 of the License, or
00014  * (at your option) any later version.
00015  *
00016  * settings is distributed in the hope that it will be useful,
00017  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00019  * GNU General Public License for more details.
00020  *
00021  * You should have received a copy of the GNU General Public License
00022  * along with this program. If not, see <http://www.gnu.org/licenses/>.
00023  */
00024 
00025 /**
00026  * Copyright (C) 2008 iRex Technologies B.V.
00027  * All rights reserved.
00028  */
00029  
00030 #include <gtk/gtk.h>
00031 
00032 G_BEGIN_DECLS
00033 
00034 // columns in file model
00035 typedef enum
00036         {
00037             MODCOL_TITLE = 0,
00038             MODCOL_SUBTITLE,
00039             MODCOL_THUMBNAIL,
00040             N_SETTINGSMODEL_COLUMNS
00041         } settingsmodel_column_t;
00042 
00043 #define SETTINGSMODEL_COLUMN_TYPES                                 \
00044             G_TYPE_STRING,      /* MODCOL_TITLE     */  \
00045             G_TYPE_STRING,      /* MODCOL_SUBTITLE  */  \
00046             GDK_TYPE_PIXBUF,    /* MODCOL_THUMBNAIL        */  \
00047             NULL  /* end of list */
00048 
00049 
00050 
00051 
00052 
00053 /* creates a CTB contentview imitation for te settings
00054  * return: a gtkwidget
00055  */
00056 GtkWidget* create_settingsview (void);
00057 
00058 GtkWidget* create_settingsview_for_type( SettingType setting );
00059 
00060 void update_settings_exit_text(gchar* title, gchar* subtitle);
00061 
00062 /* gets the "settingsmodel" GtkTreeModel */
00063 GtkTreeModel* get_settingsmodel(void);
00064 
00065 /* creates a title at the top of a window 
00066  * parent: a GtkVBox to place the title in
00067  * Title: The title string
00068  * subtitle: The subtitle string
00069  * return: void
00070  */
00071 void create_title(GtkVBox* parent, gchar* title, gchar* subtitle);
00072 void create_title_keep_labels(GtkVBox* parent, gchar* title, gchar* subtitle, GtkWidget** title_label, GtkWidget** subtitle_label);
00073 
00074 GtkVBox * create_frame(GtkVBox* vbox);
00075 
00076 /* 
00077  * returns a label used for section titles
00078  */
00079 GtkWidget* subject_create();
00080 
00081 /* 
00082  * return labels used for descriptive texts ->
00083  * These do correctly wrap 
00084  */
00085 GtkWidget* description_create();
00086 
00087 
00088 
00089 
00090 G_END_DECLS
00091 
00092 #endif // SETTINGS_STYLE_H
Generated by  doxygen 1.6.2-20100208