1 /*
2     Copyright 2007, 2008, 2009, 2010 Geyer Klaus
3 
4     This file is part of Cat'sEyE.
5 
6     Cat'sEyE is free software: you can redistribute it and/or modify
7     it under the terms of the GNU General Public License as published by
8     the Free Software Foundation, either version 3 of the License, or
9     (at your option) any later version.
10 
11     Cat'sEyE is distributed in the hope that it will be useful,
12     but WITHOUT ANY WARRANTY; without even the implied warranty of
13     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14     GNU General Public License for more details.
15 
16     You should have received a copy of the GNU General Public License
17     along with Cat'sEyE.  If not, see <http://www.gnu.org/licenses/>.
18 */
19 #ifndef CONFIGHANDLINGDEFINITIONS_H_
20 #define CONFIGHANDLINGDEFINITIONS_H_
21 
22 #define CATSEYEHOMEDIR ".catseye"
23 #define CONFIG_FILE_TYPES ".catseye/catseye_XML_config_file.conf"
24 #define SAVE_FILE ".catseye/.catseye_saves"
25 #define PROGRAMSEPERATOR ";"		//not used in future
26 #define TYPESEPARATOR ":"			//not used in future
27 
28 ////////!!!!!!!!!!!!!!!!!      ONLY LOW CHARACTERS ARE ALLOWED!!!!!
29 
30 ////////Configfile /////////////
31 #define STANDARDEDITORKEY "stded"	//standard editor
32 #define SAVEPATHESONEXIT "svpths"	//Save pathes on exit, this is just for the decision wether to load or not, the pathes are stored in another file
33 #define TERMINALKEY "trmnl"			//terminal
34 #define STANDARDSTARTDIRECTORY "strdd"	//Directory opened when calling new page from popup menue at the notebooks
35 #define STARTDIRECTORIESLEFTKEY "strtdl"	//Directories loaded on start, left side
36 #define STARTDIRECTORIESRIGHTKEY "strtdr"	//Directories loaded on start, right side
37 #define PREVIEWSIZE "prvsize"   //the size of the previews (picture can be previewed) (a string like 24x24 or 24x0 or 0x24, where 0 means that the ratio should be fix, is this possible?)
38 #define PREVIEWTYPES "prvtypes" //the file types they are previewed, a string of file endings divided by spaces ( jpg png )
39 #define DEFAULT_PREVIEWSIZE "24x24"
40 #define SAVESESSIONMINUTESTYPES "svssnmnts"
41 #define DEFAULT_SAVESESSIONMINUTES 0	//this no char (0 = off)
42 
43 #define COLOR_ITEMS_DEFAULT "clritm"
44 #define COLOR_DIRECTORIES   "clrdir"
45 #define COLOR_LINKS         "clrlnk"
46 #define COLOR_ITEMS_MISSING "clrmss"
47 #define DEFAULT_COLOR_ITEMS_DEFAULT "Black"
48 #define DEFAULT_COLOR_DIRECTORIES   "Blue"
49 #define DEFAULT_COLOR_LINKS         "CornflowerBlue"
50 #define DEFAULT_COLOR_ITEMS_MISSING "Red"
51 
52 #define COLUMN_ORDER "clmnord"
53 #define COLUMN_ORDER_SEPARATOR "\" \""		//used as separator to store the order of the columns, mind that we want to set names between '"'
54 
55 #define COUNTSFORALLITEMSKEY "allfls"	//A filetype identifier which defines userprograms which can used on all types of items (e.g. packing)
56 
57 ///////// Savefile //////////
58 #define LASTSIZE_X "sizex"
59 #define LASTSIZE_Y "sizey"
60 
61 #define ALWAYS_SHOW_HIDDEN "alwshdn"	//Identifier within the savefile. Set or unset from within the internal menu. Uses a global varibale (int g_int_AlwaysShowHidden)
62 
63 #define LASTPATHESLEFTKEY "lpl"	//in the file where the pathes are stored and loaded again on restart, these are the identifier for left and right
64 #define LASTPATHESRIGHTKEY "lpr"
65 
66 #define LASTPATHLEFTID "lpl%dp"	//these are the identifier used in the savedfile to save the pathes ...
67 #define LASTPATHRIGHTID "lpr%dp"
68 #define LASTPATHLEFTHIDDENID "lpl%dh"	//... and hidden property
69 #define LASTPATHRIGHTHIDDENID "lpr%dh"
70 #define LASTPATHLEFTPREVIEWID "lpl%dv" //... and the preview flag
71 #define LASTPATHRIGHTPREVIEWID "lpr%dv"
72 #define LASTPATHLEFTREADONLYID "lpl%dro" // ... and the read only flag
73 #define LASTPATHRIGHTREADONLYID	"lpr%dro"
74 
75 ////////// XML - Configfile Keys ////////////////////
76 #define XMLTAG_MAIN "CatsEyE"
77 #define XMLTAG_BOOKMARKS "CatsEyEBookmarks"
78 #define XMLTAG_OPTIONS "CatsEyEOptions"
79 #define XMLTAG_USERCOMMANDS "CatsEyEUsercommands"
80 #define XMLTAG_USERCOMMAND "Usercommand"
81 #define XMLTAG_OBJECT "Object"
82 #define XMLTAG_OPTION "Option"
83 #define XMLTAG_ID "ID"
84 #define XMLTAG_NAME "Name"
85 #define XMLTAG_VALUE "Value"
86 #define XMLTAG_TYPE "type"
87 #define XMLTAG_QUESTION "question"
88 #define XMLTAG_CHECKBOX "checkbox"
89 #define XMLTAG_TEXT "text"
90 #define XMLTAG_SEPARATOR "separator"
91 #define XMLTAG_FILECHOOSER "filechooser"
92 #define XMLTAG_DIRCHOOSER "dirchooser"
93 #define XMLTAG_DEFAULTCOMMAND "Defaultcommand"
94 #define XMLTAG_TARGET "Target"
95 #define XMLTAG_COMMAND "Command"
96 #define XMLTAG_CALLTYPE "Calltype"
97 #define XMLTAG_QUITREPLY "OptionQuitreply"
98 #define XMLTAG_ACTIONNOTE "OptionActionnote"
99 #define XMLTAG_LISTCAPTION "OptionCaption"
100 #define XMLTAG_LISTLABEL "OptionLabel"
101 #define XMLTAG_DIALOGCAPTION "DialogCaption"
102 #define XMLTAG_DIALOGLABEL "DialogLabel"
103 #define XMLTAG_VARID "VarID"
104 #define XMLTAG_LABELTEXT "LabelText"
105 #define XMLTAG_PREDEFINE "Predefine"
106 #define XMLTAG_TRUEVALUE "TrueValue"
107 #define XMLTAG_BUTTONTEXT "ButtonText"
108 #define XMLTAG_FALSEVALUE "FalseValue"
109 #define XMLTAG_CHOOSERCAPTION "ChooserCaption"
110 
111 
112 #endif //CONFIGHANDLINGDEFINITIONS_H_
113