1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2 /*
3  * This program is free software; you can redistribute it and/or modify
4  * it under the terms of the GNU General Public License version 2 as
5  * published by the Free Software Foundation;
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software
14  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
15  *
16  * Author: John Abraham <john.abraham.in@gmail.com>
17  */
18 
19 #ifndef ANIMATORCONSTANTS_H
20 #define ANIMATORCONSTANTS_H
21 #define VERSION_FIELD_DEFAULT "ver=\"netanim-"
22 #define ANIM_MIN_VERSION 3.108
23 #define ANIMPACKET_ZVAVLUE 1
24 #define ANIMNODE_ZVALUE 0
25 #define ANIMLINK_ZVALUE -1
26 #define ANIMBACKGROUND_ZVALUE -2
27 
28 #define WIRED_PACKET_SLOTS 4
29 #define NODE_POS_STATS_DLG_WIDTH_MIN 200
30 #define VERTICAL_TOOLBAR_WIDTH_DEFAULT 30
31 #define ICON_WIDTH_DEFAULT 20
32 #define ICON_HEIGHT_DEFAULT 20
33 #define PAUSE_AT_EDIT_WITH 80
34 #define UPDATE_RATE_LABEL_WIDTH 25
35 #define FORM_LAYOUT_SPACING_DEFAULT 5
36 #define SIMULATION_TIME_SLIDER_WIDTH 250
37 #define UPDATE_RATE_SLIDER_MAX 22
38 #define UPDATE_RATE_SLIDER_DEFAULT 19
39 #define UPDATE_RATE_SLIDER_WIRELESS_DEFAULT 19
40 #define PACKET_PERSIST_DEFAULT 1
41 #define APP_RESPONSIVE_INTERVAL 1000
42 #define INTER_PACKET_GAP 0.98
43 #define XSCALE_SCENE_DEFAULT 1
44 #define YSCALE_SCENE_DEFAULT 1
45 #define NODE_SIZE_SCENE_DEFAULT 2
46 #define GRID_LINES_LOW 3
47 #define GRID_LINES_HIGH 21
48 #define GRID_LINES_STEP 2
49 #define GRID_LINES_DEFAULT 5
50 #define GRID_STEP_MAX 100
51 #define GRID_STEP_MIN 1
52 #define NODE_SIZE_DEFAULT 6
53 #define SCENE_OFFSET_DEFAULT 175
54 #define PACKET_PEN_WIDTH_DEFAULT 4.5
55 #define INITIAL_ANIM_PACKET_ID 1
56 #define INTERFACE_TEXT_FONT_SIZE_DEFAULT 5
57 #define PACKET_TIME_MAX 65535
58 
59 
60 
61 #define ANIMATORSCENE_USERAREA_WIDTH 250
62 #define ANIMATORSCENE_USERAREA_HEIGHT 250
63 
64 #define UTYPE 65536
65 #define ANIMNODE_TYPE (UTYPE + 100)
66 #define ANIMNODE_ID_TYPE (UTYPE + 101)
67 #define ANIMINTERFACE_TEXT_TYPE (UTYPE + 102)
68 #define ANIMNODE_BATTERY_TYPE (UTYPE + 103)
69 #define ANIMPACKET_TYPE (UTYPE + 104)
70 
71 
72 #endif // ANIMATORCONSTANTS_H
73