reset.h File Reference

#include <gtk/gtk.h>
Include dependency graph for reset.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

GtkWidget * create_reset_window (GtkWidget *parent)
void load_reset_settings ()
void save_reset_settings ()
void reset_sdcard_mounted ()

Function Documentation

GtkWidget* create_reset_window ( GtkWidget *  parent  ) 

Copyright (C) 2008 iRex Technologies B.V. All rights reserved.

Definition at line 166 of file reset.c.

References create_format_widgets(), create_frame(), create_reset_widgets(), create_settingsview(), create_title(), g_reset_window, init_widgets_with_settings(), on_focus_in(), on_focus_out(), on_listview_navigate_cursor(), on_listview_row_activated(), and WINDOW_BORDER_PADDING.

Referenced by create_concrete_win().

00167 {
00168     // create top window
00169     GtkWidget* top_window = parent;
00170     gtk_window_maximize(GTK_WINDOW(top_window));
00171     gtk_window_set_resizable(GTK_WINDOW(top_window), FALSE);
00172     gtk_container_set_border_width(GTK_CONTAINER(top_window),WINDOW_BORDER_PADDING  );
00173     gtk_window_set_modal(GTK_WINDOW(top_window), TRUE);
00174 
00175     // top level vbox (vboxtop)
00176     GtkWidget* vboxtop = gtk_vbox_new(FALSE, 0);
00177     gtk_container_add(GTK_CONTAINER(top_window), vboxtop);
00178 
00179     // add header container the title and subtitle of this settings page
00180     create_title(GTK_VBOX(vboxtop), _("Settings"), _("Device Management"));
00181     
00182     // add the back/exit bar below the title 
00183     GtkWidget* view = create_settingsview();
00184     gtk_box_pack_start(GTK_BOX(vboxtop), view, FALSE, FALSE,0 ); 
00185     g_signal_connect(view, "row-activated", G_CALLBACK(on_listview_row_activated), NULL ) ;
00186     g_signal_connect(view, "navigate-cursor", G_CALLBACK(on_listview_navigate_cursor), NULL ) ;
00187     g_signal_connect(view, "focus-in-event", G_CALLBACK(on_focus_in), NULL );
00188     g_signal_connect(view, "focus-out-event", G_CALLBACK(on_focus_out), NULL );
00189 
00190    
00191     GtkWidget* vbox1 = GTK_WIDGET( create_frame(GTK_VBOX(vboxtop)) );
00192     create_reset_widgets(GTK_BOX(vbox1));
00193 
00194 #if MACHINE_IS_DR800SG || MACHINE_IS_DR800SW
00195     GtkWidget* vbox2 = GTK_WIDGET( create_frame(GTK_VBOX(vboxtop)) );
00196     create_deauthorize_widgets(GTK_BOX(vbox2));
00197 #endif
00198 
00199     GtkWidget* vbox3 = GTK_WIDGET( create_frame(GTK_VBOX(vboxtop)) );
00200     create_format_widgets(GTK_BOX(vbox3));
00201 
00202 #if MACHINE_IS_DR800SG
00203     GtkWidget* vbox4 = GTK_WIDGET( create_frame(GTK_VBOX(vboxtop)) );
00204     create_reactivate_widgets(GTK_BOX(vbox4));
00205 #endif
00206 
00207         // Update widget with current settings.
00208     init_widgets_with_settings();
00209 
00210     g_reset_window = top_window;
00211 
00212     gtk_widget_grab_focus(view);
00213 
00214     gtk_widget_show_all(top_window);
00215     return top_window;
00216 }

Here is the call graph for this function:

Here is the caller graph for this function:

void load_reset_settings (  ) 

Definition at line 155 of file reset.c.

References LOGPRINTF.

Referenced by create_concrete_win().

00156 {
00157     LOGPRINTF("Loading reset settings, done.\n");
00158 }

Here is the caller graph for this function:

void reset_sdcard_mounted (  ) 

Referenced by on_mounted(), and on_unmounted().

Here is the caller graph for this function:

void save_reset_settings (  ) 

Definition at line 161 of file reset.c.

References LOGPRINTF.

00162 {
00163     LOGPRINTF("Saving reset settings, done.\n");
00164 }

Generated by  doxygen 1.6.2-20100208