public static void SetSettingsFromConfig(iniparser parser)
{
// locations in MJ's laptop
//Point p1 = new Point(120, 382); locations.Add(p1);
//Point p2 = new Point(140, 420); locations.Add(p2);
//Point p3 = new Point(290, 230); locations.Add(p3);
//Point p4 = new Point(400, 300); locations.Add(p4);
//Point p5 = new Point(405, 480); locations.Add(p5);
//Point p6 = new Point(480, 595); locations.Add(p6);
//Point p7 = new Point(515, 690); locations.Add(p7);
//Point p8 = new Point(465, 755); locations.Add(p8);
//Point p9 = new Point(415, 755); locations.Add(p9);
//Point p10 = new Point(180, 545); locations.Add(p10);
//Point p11 = new Point(150, 570); locations.Add(p11);
// Locations (in tabletop)
Point p1 = new Point(parser.GetValue("Locations", "P1X", 0), parser.GetValue("Locations", "P1Y", 0)); locations.Add(p1);
Point p2 = new Point(parser.GetValue("Locations", "P2X", 0), parser.GetValue("Locations", "P2Y", 0)); locations.Add(p2);
Point p3 = new Point(parser.GetValue("Locations", "P3X", 0), parser.GetValue("Locations", "P3Y", 0)); locations.Add(p3);
Point p4 = new Point(parser.GetValue("Locations", "P4X", 0), parser.GetValue("Locations", "P4Y", 0)); locations.Add(p4);
Point p5 = new Point(parser.GetValue("Locations", "P5X", 0), parser.GetValue("Locations", "P5Y", 0)); locations.Add(p5);
Point p6 = new Point(parser.GetValue("Locations", "P6X", 0), parser.GetValue("Locations", "P6Y", 0)); locations.Add(p6);
Point p7 = new Point(parser.GetValue("Locations", "P7X", 0), parser.GetValue("Locations", "P7Y", 0)); locations.Add(p7);
Point p8 = new Point(parser.GetValue("Locations", "P8X", 0), parser.GetValue("Locations", "P8Y", 0)); locations.Add(p8);
Point p9 = new Point(parser.GetValue("Locations", "P9X", 0), parser.GetValue("Locations", "P9Y", 0)); locations.Add(p9);
Point p10 = new Point(parser.GetValue("Locations", "P10X", 0), parser.GetValue("Locations", "P10Y", 0)); locations.Add(p10);
Point p11 = new Point(parser.GetValue("Locations", "P11X", 0), parser.GetValue("Locations", "P11Y", 0)); locations.Add(p11);
//Point p1 = new Point(parser.GetValue("Locations", "P1X", 800), parser.GetValue("Locations", "P1Y", 1383)); locations.Add(p1);
//Point p2 = new Point(parser.GetValue("Locations", "P2X", 925), parser.GetValue("Locations", "P2Y", 1499)); locations.Add(p2);
//Point p3 = new Point(parser.GetValue("Locations", "P3X", 1795), parser.GetValue("Locations", "P3Y", 844)); locations.Add(p3);
//Point p4 = new Point(parser.GetValue("Locations", "P4X", 2437), parser.GetValue("Locations", "P4Y", 1077)); locations.Add(p4);
//Point p5 = new Point(parser.GetValue("Locations", "P5X", 2457), parser.GetValue("Locations", "P5Y", 1711)); locations.Add(p5);
//Point p6 = new Point(parser.GetValue("Locations", "P6X", 2921), parser.GetValue("Locations", "P6Y", 2111)); locations.Add(p6);
//Point p7 = new Point(parser.GetValue("Locations", "P7X", 3120), parser.GetValue("Locations", "P7Y", 2430)); locations.Add(p7);
//Point p8 = new Point(parser.GetValue("Locations", "P8X", 2837), parser.GetValue("Locations", "P8Y", 2670)); locations.Add(p8);
//Point p9 = new Point(parser.GetValue("Locations", "P9X", 2533), parser.GetValue("Locations", "P9Y", 2668)); locations.Add(p9);
//Point p10 = new Point(parser.GetValue("Locations", "P10X", 1151), parser.GetValue("Locations", "P10Y", 1931)); locations.Add(p10);
//Point p11 = new Point(parser.GetValue("Locations", "P11X", 969), parser.GetValue("Locations", "P11Y", 2016)); locations.Add(p11);
location_dot_diameter = parser.GetValue("Locations", "location_dot_diameter", 55);
location_dot_color = parser.GetValue("Locations", "location_dot_color", Brushes.Crimson);
location_dot_outline_color = parser.GetValue("Locations", "location_dot_outline_color", Brushes.Crimson);
location_dot_font_color = parser.GetValue("Locations", "location_dot_font_color", Brushes.White);
// General variables
//line_break = parser.GetValue("General", "line_break", "\r\n");
log_file = parser.GetValue("General", "log_file", "log.txt");
contribution_comment_date = parser.GetValue("General", "contribution_comment_date", "Taken by: ");
contribution_comment_tag = parser.GetValue("General", "contribution_comment_tag", "Tags: ");
contribution_comment_location = parser.GetValue("General", "contribution_comment_location", "Location ");
designidea_date_desc = parser.GetValue("General", "designidea_date_desc", "Last Update: ");
designidea_num_desc = parser.GetValue("General", "designidea_num_desc", "Comments");
users_date_desc = parser.GetValue("General", "users_date_desc", "Last Update: ");
users_num_desc = parser.GetValue("General", "users_num_desc", "Contributions");
users_no_date = parser.GetValue("General", "users_no_date", "Just Created");
activities_date_desc = parser.GetValue("General", "activities_date_desc", "Last Update: ");
activities_num_desc = parser.GetValue("General", "activities_num_desc", "Contributions");
frame_title = parser.GetValue("General", "frame_title", "Observations");
// Parameters
high_contrast = parser.GetValue("Parameters", "high_contrast", false);
top_most = parser.GetValue("Parameters", "top_most", false);
show_update_label = parser.GetValue("Parameters", "show_update_label", false);
response_to_mouse_clicks = parser.GetValue("Parameters", "response_to_mouse_clicks", true);
enable_single_rotation = parser.GetValue("Parameters", "enable_single_rotation", true);
max_num_content_update = parser.GetValue("Parameters", "max_num_content_update", 12);
max_signup_frame = parser.GetValue("Parameters", "max_signup_frame", 5);
max_collection_frame = parser.GetValue("Parameters", "max_collection_frame", 10);
max_image_display_frame = parser.GetValue("Parameters", "max_image_display_frame", 10);
max_design_ideas_frame = parser.GetValue("Parameters", "max_design_ideas_frame", 10);
max_activity_frame = parser.GetValue("Parameters", "max_activity_frame", 10);
max_thread_reply = parser.GetValue("Parameters", "max_thread_reply", 3);
max_activity_frame_title_chars = parser.GetValue("Parameters", "max_activity_frame_title_chars", 10);
//thumbnail_pixel_width = parser.GetValue("Parameters", "thumbnail_pixel_width",100);
thumbnail_pixel_height = parser.GetValue("Parameters", "thumbnail_pixel_height", 100);
thumbnail_video_span = new TimeSpan(0, 0, parser.GetValue("Parameters", "thumbnail_video_span_seconds", 2));
use_existing_thumbnails = parser.GetValue("Parameters", "use_existing_thumbnails", true);
drag_dy_dx_factor = parser.GetValue("Parameters", "drag_dy_dx_factor", 2.1);
//drag_dx_dy_factor = parser.GetValue("Parameters", "drag_dx_dy_factor",1.0);
drag_collection_theta = parser.GetValue("Parameters", "drag_collection_theta", 5);
scroll_scale_factor = parser.GetValue("Parameters", "scroll_scale_factor", 5);
min_touch_points = parser.GetValue("Parameters", "min_touch_points", 2);
max_consecutive_drag_points = parser.GetValue("Parameters", "max_consecutive_drag_points", 5);
tap_error = parser.GetValue("Parameters", "tap_error", 5);
manipulation_pivot_radius = parser.GetValue("Parameters", "manipulation_pivot_radius", 20.0);
use_avatar_drag = parser.GetValue("Parameters", "use_avatar_drag", false);
tab_width_percentage = parser.GetValue("Parameters", "tab_width_percentage", 17);
manual_scroll = parser.GetValue("Parameters", "manual_scroll", false);
manual_tap = parser.GetValue("Parameters", "manual_tap", false);
right_panel_drag = parser.GetValue("Parameters", "right_panel_drag", true);
whole_item_drag = parser.GetValue("Parameters", "whole_item_drag", false);
center_commentarea_and_keyboard = parser.GetValue("Parameters", "center_commentarea_and_keyboard", false);
multi_keyboard = parser.GetValue("Parameters", "multi_keyboard", false);
show_vertical_drag = parser.GetValue("Parameters", "show_vertical_drag", true);
show_empty_metadata = parser.GetValue("Parameters", "show_empty_metadata", false);
show_all_metadata = parser.GetValue("Parameters", "show_all_metadata", false);
use_list_refresher = parser.GetValue("Parameters", "use_list_refresher", false);
update_period_ms = parser.GetValue("Parameters", "update_period_ms", 20000);
scaling_mode = parser.GetValue("Parameters", "scaling_mode", BitmapScalingMode.Fant);
click_opacity_on_collection_item = parser.GetValue("Parameters", "click_opacity_on_collection_item", 0.8);
// Google Drive
googledrive_directory_id = parser.GetValue("GoogleDrive", "googledrive_directory_id", "0B9mU-w_CpbztUUxtaXVIeE9SbWM");
googledrive_client_id = parser.GetValue("GoogleDrive", "googledrive_client_id", "333780750675-ag76kpq3supbbqi3v92vn3ejil8ght23.apps.googleusercontent.com");
googledrive_client_secret = parser.GetValue("GoogleDrive", "googledrive_client_secret", "bCYIAfrAC0i-qIfl0cLRnhwn");
googledrive_storage = parser.GetValue("GoogleDrive", "googledrive_storage", "gdrive_uploader");
googledrive_key = parser.GetValue("GoogleDrive", "googledrive_key", "z},drdzf11x9;87");
googledrive_refresh_token = parser.GetValue("GoogleDrive", "googledrive_refresh_token", "1/jpJHu8br2TnnM5hwCqgFe-yagf6zixlDZrlUvdXZ9s8");
googledrive_lastchange = parser.GetValue("GoogleDrive", "googledrive_lastchange", configurations.googledrive_lastchange);
googledrive_userfilename = parser.GetValue("GoogleDrive", "googledrive_userfilename", "Users.txt");
googledrive_userfiletitle = parser.GetValue("GoogleDrive", "googledrive_userfiletitle", "Users");
googledrive_ideafilename = parser.GetValue("GoogleDrive", "googledrive_ideafilename", "Ideas.txt");
googledrive_ideafiletitle = parser.GetValue("GoogleDrive", "googledrive_ideafiletitle", "Ideas");
download_buffer_size = parser.GetValue("GoogleDrive", "download_buffer_size", 10240); // 10KB = 10 * 1024
// Paths
image_path = parser.GetValue("Paths", "image_path", ".\\images\\");
avatar_path = parser.GetValue("Paths", "avatar_path", ".\\images\\avatars\\");
thumbnails_path = parser.GetValue("Paths", "thumbnails_path", ".\\images\\thumbnails\\");
contributions_path = parser.GetValue("Paths", "contributions_path", ".\\images\\contributions\\");
// Files
background_pic = parser.GetValue("Files", "background_pic", "background.png");
drop_avatar_pic = parser.GetValue("Files", "drop_avatar_pic", "drop_avatar.png");
loading_image_pic = parser.GetValue("Files", "loading_image_pic", "loading_image.png");
empty_image_pic = parser.GetValue("Files", "empty_image_pic", "empty_image.png");
not_found_image_pic = parser.GetValue("Files", "not_found_image_pic", "not_found_image.png");
sound_image_pic = parser.GetValue("Files", "sound_image_pic", "sound_image.png");
video_image_pic = parser.GetValue("Files", "video_image_pic", "film.png");
keyboard_pic = parser.GetValue("Files", "keyboard_pic", "NN_Keyboard_v2.png");
keyboard_shift_pic = parser.GetValue("Files", "keyboard_shift_pic", "NN_Keyboard_v2_shift.png");
keyboard_caps_pic = parser.GetValue("Files", "keyboard_caps_pic", "NN_Keyboard_v2_caps.png");
keyboard_numpad_pic = parser.GetValue("Files", "keyboard_numpad_pic", "NN_Numpad.png");
close_icon = parser.GetValue("Files", "close_icon", "close.png");
change_view_list_icon = parser.GetValue("Files", "change_view_list_icon", "change_view_list.png");
change_view_stack_icon = parser.GetValue("Files", "change_view_stack_icon", "change_view_stack.png");
collection_window_icon = parser.GetValue("Files", "collection_window_icon", "collection_window_icon.png");
signup_icon = parser.GetValue("Files", "signup_icon", "signup.png");
signup_window_icon = parser.GetValue("Files", "signup_window_icon", "signup_window_icon.png");
submit_idea_icon = parser.GetValue("Files", "submit_idea_icon", "submit_idea.png");
thumbs_up_icon = parser.GetValue("Files", "thumbs_up_icon", "tu.jpg");
thumbs_down_icon = parser.GetValue("Files", "thumbs_down_icon", "td.jpg");
drag_icon = parser.GetValue("Files", "drag_icon", "drag.png");
drag_vertical_icon = parser.GetValue("Files", "drag_vertical_icon", "drag_vertical.png");
comment_icon = parser.GetValue("Files", "comment_icon", "comment.png");
reply_icon = parser.GetValue("Files", "reply_icon", "reply.png");
keyboard_click_wav = parser.GetValue("Files", "keyboard_click_wav", "click.wav");
// Frame
frame_width = parser.GetValue("Frame", "frame_width", 300);
frame_title_bar_height = parser.GetValue("Frame", "frame_title_bar_height", 40);
frame_icon_width = parser.GetValue("Frame", "frame_icon_width", 40);
// Item
toolbar_item_width = parser.GetValue("Item", "toolbar_item_width", 30);
}