// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (C) 2002-2003 Romain Lievin <roms@tilp.info>
*/
#include <stdlib.h>
#include "lkc.h"
#include <gtk/gtk.h>
#include <stdio.h>
#include <string.h>
#include <strings.h>
#include <unistd.h>
#include <time.h>
enum view_mode {
SINGLE_VIEW, SPLIT_VIEW, FULL_VIEW
};
enum {
OPT_NORMAL, OPT_ALL, OPT_PROMPT
};
static gint view_mode = FULL_VIEW;
static gboolean show_name = TRUE;
static gboolean show_range = TRUE;
static gboolean show_value = TRUE;
static int opt_mode = OPT_NORMAL;
static GtkWidget *main_wnd;
static GtkWidget *tree1_w; // left frame
static GtkWidget *tree2_w; // right frame
static GtkWidget *text_w;
static GtkWidget *hpaned;
static GtkWidget *vpaned;
static GtkWidget *back_btn, *save_btn, *single_btn, *split_btn, *full_btn;
static GtkWidget *save_menu_item;
static GtkTextTag *tag1, *tag2;
static GtkTreeStore *tree1, *tree2;
static GdkPixbuf *pix_menu;
static struct menu *browsed; // browsed menu for SINGLE/SPLIT view
static struct menu *selected; // selected entry
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
};
static void display_tree(GtkTreeStore *store, struct menu *menu);
static void recreate_tree(void);
static void conf_changed(bool dirty)