-
Notifications
You must be signed in to change notification settings - Fork 0
/
DigIt_types.pas
51 lines (39 loc) · 1.65 KB
/
DigIt_types.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
(*******************************************************************************
** DigIt **
** **
** (s) 2023 Massimo Magnano **
** **
********************************************************************************
** Common Types\Consts **
*******************************************************************************)
unit DigIt_Types;
{$mode objfpc}{$H+}
interface
uses SysUtils, ComCtrls;
type
TDigItCropMode = (
diCropNull = -1, //Used during the creation phase
diCropFull, //All captured pages are processed in bulk as they are
diCropCustom //All captured pages are processed with the cut chosen the first time in preview
);
const
Config_XMLWork = 'digit.xml';
Config_Options = 'digit.ini';
Config_CapturedThumbs = 'c_thumbs.img';
XMLWork_Captured = 'CapturedFiles/';
XMLWork_PageSettings = 'PageSettings/';
var
Path_Application,
Path_Config,
Path_Temp,
Path_Pictures: String;
implementation
initialization
Path_Application :=ExtractFilePath(ParamStr(0));
Path_Config :=GetAppConfigDir(False);
Path_Temp :=Path_Config+'tmp'+DirectorySeparator; //GetTempDir(False)+'DigIt'+DirectorySeparator;
Path_Pictures :=GetUserDir+'Pictures'+DirectorySeparator+'DigIt'+DirectorySeparator;
//ForceDirectories(Path_Config);
ForceDirectories(Path_Temp);
ForceDirectories(Path_Pictures);
end.