// note-config.js
// Copyright (C) 2006 Notefish. All rights reserved.
// note configuration parameters
// this file must be included before any other note scripts

// debugging support
EnableDebug              = false;

// readonly mode: used for sharing mode
var ReadOnlyMode         = false;

// in/out
var RequestTimeout       = 5000; // in ms, server request timeout
var NewNotePollTime      = 3000; // in ms, new note polling interval

// section 
var SectionWidth         = 31;   // columns, odd number is preffered
var MinSectionHeight     = 8;    // rows
var MinSSectionHeight    = 20;   // minimal height for a single section

// note
var MinNoteWidth         = 5;    // cell units, min possible width

// note UI
var NoteUIBarWidth       = 39;   // px
var NoteResizerWidth     = 8;    // px including borders

var NoteFlarePeriod      = 200;  // in ms, note highlighing period
var NoteFlares           = 4;    // number of times a note gets highlighted

// section UI
var SecUIBarWidth        = 60;   // px

// bottom toolbars
var NoteToolsMarginBottom  = 10;   // px, rel window bottom
var ProPortalMarginBottom  = 42;   // px, rel window bottom 

// a rude way to emulate infinity
var Infinity             = 1000000;

// note autosizing
var TitleSizeWords       = 4;    // number of words in a note title to take into
                                 // account when computing note's width

// 'scroll while moving' support
var AutoScrollDst       = 20;    // in px, distance from a window edge that triggers scrolling
var MinAutoScrollStep   = 5;     // in px, a minimal single scrolling step
var MaxAutoScrollStep   = 40;    // in px, a maximal single scrolling step
var AutoScrollAccel     = (MaxAutoScrollStep - MinAutoScrollStep)/600;

// moving notes between projects
var ProListPage         = 10;     // projects per page in the project selection dialog