/*
Visual TODO List v1.1
Copyright Florent D'Halluin 2010
This file is part of Visual TODO List v1.1.
See VisualTODO.pde for help.
COPYRIGHT NOTICE
------------------------------------------------------------------------
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see .
------------------------------------------------------------------------
*/
// Common options
boolean read_only = false;
String saver_type = "file"; // "file" or "mysql"
// Save file name (File saver)
String f_name = "visual_todo_save.sav";
// DB info (MySQL saver)
String db_user = "mysql_user";
String db_database = "mysql_database";
String db_password = "mysql_password";
String db_host = "mysql_host:port";
// Visual options
boolean d_perspective = true; // Camera perspective (false = isometric mode)
boolean d_animated_transitions = true; // Animated transition to child
boolean text_screen_mode = true; // nicer text but z-sort issues?
// Graphic constants
int w_w = 900;
int w_h = 600;
// Background color
int b_r = 200;
int b_g = 200;
int b_b = 200;
// Graph display properties
int v_size = 50;
int v_outline_offset = 5;
int t_y_offset = 0;
int e_length = 250;
int g_z_offset = -150;
int g_max_depth = 5;
float g_child_scale = 0.4;
float g_child_scale_alpha = 0.35;
int g_stroke_weight = 3;
float d_transition_scale = 0.8;
int child_list_size = 27;
// Internal variables
float x = w_w / 2;
float y = w_h / 2;
float z = 0;
float tx = 0;
float ty = 0;
float tz = 0;
float px = 0;
float py = 0;
float pz = 0;
float rx = 0;
float ry = 0;
float rz = 0;
float rmx = 0;
float rmy = 0;
float scl = 1;
boolean key_handled = false;
int int_max = 2147483647;
Map vertices;
Map edges;
MySQL mysql;
Vertex vCurrent = null;
Vertex vHome = null;
Vertex vNew = null;
Vertex vEdit = null;
Vertex vHighlighted = null;
Vertex vOrphan = null;
int vHighlightedIndex = 0;
boolean click;
boolean rotating;
Saver saver = null;
PFont font[];
float confirmation = 0;
Vector child_list = null;