#include "lkc.h"
#include "images.c"
#include <glade/glade.h>
#include <gtk/gtk.h>
#include <glib.h>
#include <gdk/gdkkeysyms.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <time.h>
#include <stdlib.h>
Include dependency graph for gconf.c:
Go to the source code of this file.
Enumerations | |
enum | { SINGLE_VIEW, SPLIT_VIEW, FULL_VIEW } |
enum | { COL_OPTION, COL_NAME, COL_NO, COL_MOD, COL_YES, COL_VALUE, COL_MENU, COL_COLOR, COL_EDIT, COL_PIXBUF, COL_PIXVIS, COL_BTNVIS, COL_BTNACT, COL_BTNINC, COL_BTNRAD, COL_NUMBER } |
Functions | |
void | display_list (void) |
void | display_tree (struct menu *menu) |
void | display_tree_part (void) |
void | update_tree (struct menu *src, GtkTreeIter *dst) |
void | set_node (GtkTreeIter *node, struct menu *menu, gchar **row) |
gchar ** | fill_row (struct menu *menu) |
const char * | dbg_print_stype (int val) |
const char * | dbg_print_flags (int val) |
const char * | dbg_print_ptype (int val) |
void | init_main_window (const gchar *glade_file) |
void | init_tree_model (void) |
void | init_left_tree (void) |
void | renderer_edited (GtkCellRendererText *cell, const gchar *path_string, const gchar *new_text, gpointer user_data) |
void | renderer_toggled (GtkCellRendererToggle *cellrenderertoggle, gchar *arg1, gpointer user_data) |
void | init_right_tree (void) |
void | text_insert_help (struct menu *menu) |
void | text_insert_msg (const char *title, const char *message) |
void | on_save1_activate (GtkMenuItem *menuitem, gpointer user_data) |
gboolean | on_window1_delete_event (GtkWidget *widget, GdkEvent *event, gpointer user_data) |
void | on_window1_destroy (GtkObject *object, gpointer user_data) |
void | on_window1_size_request (GtkWidget *widget, GtkRequisition *requisition, gpointer user_data) |
void | load_filename (GtkFileSelection *file_selector, gpointer user_data) |
void | on_load1_activate (GtkMenuItem *menuitem, gpointer user_data) |
void | store_filename (GtkFileSelection *file_selector, gpointer user_data) |
void | on_save_as1_activate (GtkMenuItem *menuitem, gpointer user_data) |
void | on_quit1_activate (GtkMenuItem *menuitem, gpointer user_data) |
void | on_show_name1_activate (GtkMenuItem *menuitem, gpointer user_data) |
void | on_show_range1_activate (GtkMenuItem *menuitem, gpointer user_data) |
void | on_show_data1_activate (GtkMenuItem *menuitem, gpointer user_data) |
void | on_show_all_options1_activate (GtkMenuItem *menuitem, gpointer user_data) |
void | on_show_debug_info1_activate (GtkMenuItem *menuitem, gpointer user_data) |
void | on_introduction1_activate (GtkMenuItem *menuitem, gpointer user_data) |
void | on_about1_activate (GtkMenuItem *menuitem, gpointer user_data) |
void | on_license1_activate (GtkMenuItem *menuitem, gpointer user_data) |
void | on_back_pressed (GtkButton *button, gpointer user_data) |
void | on_load_pressed (GtkButton *button, gpointer user_data) |
void | on_save_pressed (GtkButton *button, gpointer user_data) |
void | on_single_clicked (GtkButton *button, gpointer user_data) |
void | on_split_clicked (GtkButton *button, gpointer user_data) |
void | on_full_clicked (GtkButton *button, gpointer user_data) |
void | on_collapse_pressed (GtkButton *button, gpointer user_data) |
void | on_expand_pressed (GtkButton *button, gpointer user_data) |
void | change_sym_value (struct menu *menu, gint col) |
void | toggle_sym_value (struct menu *menu) |
gint | column2index (GtkTreeViewColumn *column) |
gboolean | on_treeview2_button_press_event (GtkWidget *widget, GdkEventButton *event, gpointer user_data) |
gboolean | on_treeview2_key_press_event (GtkWidget *widget, GdkEventKey *event, gpointer user_data) |
void | on_treeview2_cursor_changed (GtkTreeView *treeview, gpointer user_data) |
gboolean | on_treeview1_button_press_event (GtkWidget *widget, GdkEventButton *event, gpointer user_data) |
void | place_node (struct menu *menu, char **row) |
GtkTreeIter * | gtktree_iter_find_node (GtkTreeIter *parent, struct menu *tofind) |
void | fixup_rootmenu (struct menu *menu) |
int | main (int ac, char *av[]) |
Variables | |
gint | view_mode = FULL_VIEW |
gboolean | show_name = TRUE |
gboolean | show_range = TRUE |
gboolean | show_value = TRUE |
gboolean | show_all = FALSE |
gboolean | show_debug = FALSE |
gboolean | resizeable = FALSE |
gboolean | config_changed = FALSE |
char | nohelp_text [] |
GtkWidget * | main_wnd = NULL |
GtkWidget * | tree1_w = NULL |
GtkWidget * | tree2_w = NULL |
GtkWidget * | text_w = NULL |
GtkWidget * | hpaned = NULL |
GtkWidget * | vpaned = NULL |
GtkWidget * | back_btn = NULL |
GtkTextTag * | tag1 |
GtkTextTag * | tag2 |
GdkColor | color |
GtkTreeStore * | tree1 |
GtkTreeStore * | tree2 |
GtkTreeStore * | tree |
GtkTreeModel * | model1 |
GtkTreeModel * | model2 |
GtkTreeIter * | parents [256] |
gint | indent |
menu * | current |
menu * | browsed |
GtkTreeIter | found |
|
|
|
Definition at line 29 of file gconf.c. |
|
Definition at line 907 of file gconf.c. References browsed, COL_MOD, COL_NO, COL_YES, config_changed, display_list(), display_tree_part(), FULL_VIEW, mod, no, rootmenu, S_BOOLEAN, S_HEX, S_INT, S_STRING, S_TRISTATE, SINGLE_VIEW, SPLIT_VIEW, menu::sym, sym_get_tristate_value(), sym_get_type(), sym_set_tristate_value(), sym_tristate_within_range(), tristate, update_tree(), view_mode, and yes. Referenced by on_treeview2_button_press_event(), and on_treeview2_key_press_event(). Here is the call graph for this function: ![]() |
|
Definition at line 1000 of file gconf.c. References COL_NUMBER, and tree2_w. Referenced by on_treeview2_button_press_event(). |
|
Definition at line 111 of file gconf.c. References SYMBOL_AUTO, SYMBOL_CHANGED, SYMBOL_CHECK, SYMBOL_CHOICE, SYMBOL_CHOICEVAL, SYMBOL_CONST, SYMBOL_MOD, SYMBOL_NEW, SYMBOL_NO, SYMBOL_OPTIONAL, SYMBOL_PRINTED, SYMBOL_VALID, SYMBOL_WRITE, and SYMBOL_YES. Referenced by display_tree(). |
|
Definition at line 154 of file gconf.c. References P_CHOICE, P_COMMENT, P_DEFAULT, P_MENU, P_PROMPT, and P_UNKNOWN. Referenced by display_tree(). |
|
Definition at line 83 of file gconf.c. References S_BOOLEAN, S_HEX, S_INT, S_OTHER, S_STRING, S_TRISTATE, and S_UNKNOWN. Referenced by display_tree(). |
|
Definition at line 1543 of file gconf.c. References display_tree(), rootmenu, tree, tree1, tree1_w, and tree2. Referenced by change_sym_value(), main(), on_split_clicked(), and toggle_sym_value(). Here is the call graph for this function: ![]() |
|
Definition at line 1471 of file gconf.c. References current, dbg_print_flags(), dbg_print_ptype(), dbg_print_stype(), fill_row(), menu::flags, FULL_VIEW, indent, menu::list, menu_get_prompt(), menu_is_visible(), MENU_ROOT, menu::next, P_MENU, P_UNKNOWN, place_node(), menu::prompt, prop_type, rootmenu, show_all, SINGLE_VIEW, SPLIT_VIEW, property::sym, SYMBOL_CHANGED, tree, tree1, tree2, symbol::type, and view_mode. Referenced by display_list(), display_tree_part(), load_filename(), main(), on_full_clicked(), and on_show_all_options1_activate(). Here is the call graph for this function: ![]() |
|
Definition at line 1531 of file gconf.c. References browsed, current, display_tree(), SINGLE_VIEW, SPLIT_VIEW, tree2, tree2_w, and view_mode. Referenced by change_sym_value(), main(), on_back_pressed(), on_single_clicked(), on_treeview1_button_press_event(), on_treeview2_button_press_event(), and toggle_sym_value(). Here is the call graph for this function: ![]() |
|
Definition at line 1177 of file gconf.c. References COL_BTNACT, COL_BTNINC, COL_BTNRAD, COL_BTNVIS, COL_COLOR, COL_EDIT, COL_MOD, COL_NAME, COL_NO, COL_NUMBER, COL_OPTION, COL_PIXBUF, COL_PIXVIS, COL_VALUE, COL_YES, flags, menu::list, menu_get_prompt(), menu_is_visible(), mod, menu::next, no, P_COMMENT, P_MENU, P_UNKNOWN, menu::prompt, prop_type, S_BOOLEAN, S_HEX, S_INT, S_STRING, S_TRISTATE, show_all, SINGLE_VIEW, menu::sym, sym_calc_value(), sym_get_choice_value(), sym_get_string_value(), sym_get_tristate_value(), sym_get_type(), sym_is_choice(), sym_tristate_within_range(), SYMBOL_CHANGED, SYMBOL_CHOICEVAL, SYMBOL_NEW, tristate, property::type, view_mode, and yes. Referenced by display_tree(), and update_tree(). Here is the call graph for this function: ![]() |
|
Definition at line 1554 of file gconf.c. References menu::flags, menu::list, MENU_ROOT, menu::next, and P_MENU. Referenced by main(). |
|
Definition at line 1352 of file gconf.c. Referenced by update_tree(). |
|
Definition at line 308 of file gconf.c. References COL_BTNACT, COL_BTNINC, COL_BTNRAD, COL_BTNVIS, COL_COLOR, COL_OPTION, model1, and tree1_w. Referenced by main(). |
|
Definition at line 184 of file gconf.c. References back_btn, FULL_VIEW, hpaned, main_wnd, show_name, show_range, show_value, SINGLE_VIEW, SPLIT_VIEW, tag1, tag2, text_w, tree1_w, tree2_w, view_mode, and vpaned. Referenced by main(). |
|
Definition at line 352 of file gconf.c. References COL_BTNACT, COL_BTNINC, COL_BTNRAD, COL_BTNVIS, COL_COLOR, COL_EDIT, COL_MOD, COL_NAME, COL_NO, COL_OPTION, COL_PIXBUF, COL_PIXVIS, COL_VALUE, COL_YES, model2, renderer_edited(), resizeable, show_name, show_range, show_value, and tree2_w. Referenced by main(). Here is the call graph for this function: ![]() |
|
Definition at line 278 of file gconf.c. References COL_NUMBER, model1, model2, parents, tree, tree1, and tree2. Referenced by main(). |
|
Definition at line 592 of file gconf.c. References conf_read(), display_tree(), rootmenu, and text_insert_msg(). Referenced by on_load1_activate(). Here is the call graph for this function: ![]() |
|
Definition at line 1574 of file gconf.c. References conf_parse(), conf_read(), display_list(), display_tree(), display_tree_part(), fixup_rootmenu(), FULL_VIEW, init_left_tree(), init_main_window(), init_right_tree(), init_tree_model(), kconfig_load(), main_wnd, rootmenu, SINGLE_VIEW, SPLIT_VIEW, SRCTREE, sym_calc_value(), sym_get_string_value(), sym_lookup(), and view_mode. Here is the call graph for this function: ![]() |
|
Definition at line 765 of file gconf.c. References main_wnd. |
|
Definition at line 802 of file gconf.c. References back_btn, current, display_tree_part(), P_MENU, P_UNKNOWN, menu::parent, menu::prompt, prop_type, rootmenu, and property::type. Here is the call graph for this function: ![]() |
|
Definition at line 864 of file gconf.c. References tree2_w. |
|
Definition at line 870 of file gconf.c. References tree2_w. |
|
Definition at line 852 of file gconf.c. References back_btn, display_tree(), FULL_VIEW, hpaned, rootmenu, tree1_w, tree2, and view_mode. Here is the call graph for this function: ![]() |
|
Definition at line 733 of file gconf.c. References main_wnd. |
|
Definition at line 783 of file gconf.c. References main_wnd. |
|
Definition at line 605 of file gconf.c. References load_filename(). Referenced by on_load_pressed(). Here is the call graph for this function: ![]() |
|
Definition at line 817 of file gconf.c. References on_load1_activate(). Here is the call graph for this function: ![]() |
|
Definition at line 668 of file gconf.c. References main_wnd, and on_window1_delete_event(). Here is the call graph for this function: ![]() |
|
Definition at line 625 of file gconf.c. References conf_write(), config_changed, and text_insert_msg(). Referenced by on_save_pressed(), and on_window1_delete_event(). Here is the call graph for this function: ![]() |
|
Definition at line 648 of file gconf.c. References store_filename(). Here is the call graph for this function: ![]() |
|
Definition at line 823 of file gconf.c. References on_save1_activate(). Here is the call graph for this function: ![]() |
|
Definition at line 716 of file gconf.c. References display_tree(), rootmenu, show_all, and tree2. Here is the call graph for this function: ![]() |
|
Definition at line 704 of file gconf.c. References COL_VALUE, show_value, and tree2_w. |
|
Definition at line 726 of file gconf.c. References rootmenu, show_debug, and update_tree(). Here is the call graph for this function: ![]() |
|
|
Definition at line 686 of file gconf.c. References COL_MOD, COL_NO, COL_YES, show_range, and tree2_w. |
|
Definition at line 829 of file gconf.c. References current, display_tree_part(), hpaned, rootmenu, SINGLE_VIEW, tree1_w, and view_mode. Here is the call graph for this function: ![]() |
|
Definition at line 839 of file gconf.c. References display_list(), hpaned, main_wnd, SPLIT_VIEW, tree1_w, tree2, and view_mode. Here is the call graph for this function: ![]() |
|
Definition at line 1135 of file gconf.c. References browsed, COL_MENU, current, display_tree_part(), model1, toggle_sym_value(), and tree2_w. Here is the call graph for this function: ![]() |
|
Definition at line 1018 of file gconf.c. References back_btn, change_sym_value(), COL_MENU, COL_MOD, COL_NO, COL_OPTION, COL_VALUE, COL_YES, column2index(), current, display_tree_part(), FULL_VIEW, model2, P_MENU, P_UNKNOWN, prop_type, toggle_sym_value(), and view_mode. Here is the call graph for this function: ![]() |
|
Definition at line 1119 of file gconf.c. References COL_MENU, model2, and text_insert_help(). Here is the call graph for this function: ![]() |
|
Definition at line 1074 of file gconf.c. References change_sym_value(), COL_MENU, COL_MOD, COL_NO, COL_YES, model2, and tree1_w. Here is the call graph for this function: ![]() |
|
Definition at line 517 of file gconf.c. References config_changed, label, main_wnd, and on_save1_activate(). Referenced by on_quit1_activate(). Here is the call graph for this function: ![]() |
|
|
|
Definition at line 1336 of file gconf.c. References indent, parents, set_node(), and tree. Referenced by display_tree(). Here is the call graph for this function: ![]() |
|
Definition at line 879 of file gconf.c. References COL_MENU, COL_VALUE, config_changed, model2, rootmenu, sym_set_string_value(), and update_tree(). Referenced by init_right_tree(). Here is the call graph for this function: ![]() |
|
Definition at line 971 of file gconf.c. References COL_MENU, model2, toggle_sym_value(), and tree2_w. Here is the call graph for this function: ![]() |
|
Definition at line 1300 of file gconf.c. References COL_BTNACT, COL_BTNINC, COL_BTNRAD, COL_BTNVIS, COL_COLOR, COL_EDIT, COL_MENU, COL_MOD, COL_NAME, COL_NO, COL_OPTION, COL_PIXBUF, COL_PIXVIS, COL_VALUE, COL_YES, color, and tree. Referenced by place_node(), and update_tree(). |
|
Definition at line 635 of file gconf.c. References conf_write(), and text_insert_msg(). Referenced by on_save_as1_activate(). Here is the call graph for this function: ![]() |
|
Definition at line 456 of file gconf.c. References symbol::help, menu_get_prompt(), symbol::name, nohelp_text, menu::sym, tag1, tag2, and text_w. Referenced by on_treeview2_cursor_changed(). Here is the call graph for this function: ![]() |
|
Definition at line 493 of file gconf.c. References tag1, tag2, and text_w. Referenced by load_filename(), on_save1_activate(), and store_filename(). |
|
Definition at line 949 of file gconf.c. References browsed, display_list(), display_tree_part(), FULL_VIEW, mod, no, rootmenu, SINGLE_VIEW, SPLIT_VIEW, menu::sym, sym_get_tristate_value(), sym_set_tristate_value(), sym_tristate_within_range(), tristate, update_tree(), view_mode, and yes. Referenced by on_treeview1_button_press_event(), on_treeview2_button_press_event(), and renderer_toggled(). Here is the call graph for this function: ![]() |
|
Definition at line 1386 of file gconf.c. References COL_MENU, fill_row(), gtktree_iter_find_node(), indent, menu::list, menu_get_prompt(), menu_is_visible(), model2, menu::next, rootmenu, set_node(), show_all, SYMBOL_CHANGED, and tree2. Referenced by change_sym_value(), on_show_debug_info1_activate(), renderer_edited(), and toggle_sym_value(). Here is the call graph for this function: ![]() |
|
Definition at line 52 of file gconf.c. Referenced by init_main_window(), on_back_pressed(), on_full_clicked(), and on_treeview2_button_press_event(). |
|
Definition at line 63 of file gconf.c. Referenced by change_sym_value(), display_tree_part(), on_treeview1_button_press_event(), and toggle_sym_value(). |
|
Definition at line 55 of file gconf.c. Referenced by set_node(). |
|
Definition at line 41 of file gconf.c. Referenced by change_sym_value(), on_save1_activate(), on_window1_delete_event(), and renderer_edited(). |
|
Definition at line 62 of file gconf.c. Referenced by display_tree(), display_tree_part(), on_back_pressed(), on_single_clicked(), on_treeview1_button_press_event(), and on_treeview2_button_press_event(). |
|
Definition at line 1347 of file gconf.c. Referenced by gtktree_iter_find_node(). |
|
Definition at line 50 of file gconf.c. Referenced by init_main_window(), on_full_clicked(), on_single_clicked(), and on_split_clicked(). |
|
Definition at line 60 of file gconf.c. Referenced by display_tree(), place_node(), and update_tree(). |
|
Definition at line 46 of file gconf.c. Referenced by init_main_window(), main(), on_about1_activate(), on_introduction1_activate(), on_license1_activate(), on_quit1_activate(), on_split_clicked(), on_window1_delete_event(), and on_window1_size_request(). |
|
Definition at line 58 of file gconf.c. Referenced by init_left_tree(), init_tree_model(), and on_treeview1_button_press_event(). |
|
Definition at line 58 of file gconf.c. Referenced by gtktree_iter_find_node(), init_right_tree(), init_tree_model(), on_treeview2_button_press_event(), on_treeview2_cursor_changed(), on_treeview2_key_press_event(), renderer_edited(), renderer_toggled(), and update_tree(). |
|
Initial value: Definition at line 43 of file gconf.c. Referenced by text_insert_help(). |
|
Definition at line 59 of file gconf.c. Referenced by init_tree_model(), and place_node(). |
|
Definition at line 39 of file gconf.c. Referenced by init_right_tree(). |
|
Definition at line 37 of file gconf.c. Referenced by display_tree(), fill_row(), on_show_all_options1_activate(), and update_tree(). |
|
Definition at line 38 of file gconf.c. Referenced by on_show_debug_info1_activate(). |
|
Definition at line 34 of file gconf.c. Referenced by init_main_window(), init_right_tree(), and on_show_name1_activate(). |
|
Definition at line 35 of file gconf.c. Referenced by init_main_window(), init_right_tree(), and on_show_range1_activate(). |
|
Definition at line 36 of file gconf.c. Referenced by init_main_window(), init_right_tree(), and on_show_data1_activate(). |
|
Definition at line 54 of file gconf.c. Referenced by init_main_window(), text_insert_help(), and text_insert_msg(). |
|
Definition at line 54 of file gconf.c. Referenced by init_main_window(), text_insert_help(), and text_insert_msg(). |
|
Definition at line 49 of file gconf.c. Referenced by init_main_window(), text_insert_help(), and text_insert_msg(). |
|
Definition at line 57 of file gconf.c. Referenced by display_list(), display_tree(), init_tree_model(), place_node(), and set_node(). |
|
Definition at line 57 of file gconf.c. Referenced by display_list(), display_tree(), and init_tree_model(). |
|
Definition at line 47 of file gconf.c. Referenced by display_list(), init_left_tree(), init_main_window(), on_full_clicked(), on_single_clicked(), on_split_clicked(), and on_treeview2_key_press_event(). |
|
Definition at line 57 of file gconf.c. Referenced by display_list(), display_tree(), display_tree_part(), init_tree_model(), on_full_clicked(), on_show_all_options1_activate(), on_split_clicked(), and update_tree(). |
|
Definition at line 48 of file gconf.c. Referenced by column2index(), display_tree_part(), init_main_window(), init_right_tree(), on_collapse_pressed(), on_expand_pressed(), on_show_data1_activate(), on_show_name1_activate(), on_show_range1_activate(), on_treeview1_button_press_event(), and renderer_toggled(). |
|
Definition at line 33 of file gconf.c. Referenced by change_sym_value(), display_tree(), display_tree_part(), fill_row(), init_main_window(), main(), on_full_clicked(), on_single_clicked(), on_split_clicked(), on_treeview2_button_press_event(), and toggle_sym_value(). |
|
Definition at line 51 of file gconf.c. Referenced by init_main_window(), and on_window1_size_request(). |