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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
|
/***************************************************************
* Name: omb33opt.h
* Purpose: Code for OpenMoneyBox Application Class
* Author: Igor Calì (igor.cali0@gmail.com)
* Created: 2019-02-16
* Copyright: Igor Calì (igor.cali0@gmail.com)
* License: GNU
**************************************************************/
#ifndef OMB33OptH
#define OMB33OptH
#ifndef WX_PRECOMP
#include <wx/wx.h>
#else
#include <wx/wxprec.h>
#endif
//#include <wx/string.h>
#include <wx/fileconf.h> // For wxFileConfig
#ifdef __WXMSW__
#include "../platformsetup.h"
#ifdef _OMB_USEREGISTRY
#include <wx/msw/registry.h> // For wxRegKey
#endif // _OMB_USEREGISTRY
#endif
#include "../types.h"
//#include "constants.h"
class TOpt
{
//private:
public:
bool SuccessfulCreated; // true if Option are properly created
#ifdef __WXMSW__
// HKLM Options
wxString SWKey;
wxString InstallationPath; // Program Folder
#endif
//bool InstConv; // true if Conv utility is installed // DON'T REMOVE - May be restore with new Product version
//long InstWiz; // true if Wizard utility is installed
//long InstTray; // true if OmbTray utility is installed
//long InstUpdate; // true if Update utility is installed
// HKCU Options
long FirstRunEver; // Very first launch of application;
//bool FirstRunCurrVersion; // First lauch of new version;
// Preparation for future updates
//long GAutoOpen; // Automatic opening of last used file
//wxString GLastFile; // Latest opened document
wxString GDoc_folder, // Document default folder
GDDoc, // Default document
GMaster_db, // Master database
GDoc_prefix; // Prefix for self generated documents (XML's and related folders, backups, etc.)
long GBar; // Toolbar display
long GSplash; // Show Splash-screen
long GConv; // Automatic report export in text on new months
long GIcon; // Open TrayIcon on exit
long CTrendGraph; // Trend Graph display
long CFundGraph; // Fund Pie display
#ifdef _OMB_INSTALLEDUPDATE
long CheckUpdates; // Verify new version availability in the web
#endif // _OMB_INSTALLEDUPDATE
//wxArrayString *LogStrings;
wxArrayString *Tools;
TOpt(void);
//void LastFile(wxString Name);
bool SetDefaultDoc(wxString Doc);
void SetCurrSymbol(void);
/*
#ifdef __WXMSW__
#ifdef _OMB_USEREGISTRY
void ReadLogString(wxRegKey *Key, int S);
#endif // _OMB_USEREGISTRY
#else
void ReadLogString(wxFileConfig *Key, int S);
#endif
*/
void FirstRunDone(void);
~TOpt();
};
#ifdef __WXMSW__
// Calls to module igiomb
WXIMPORT TVersion GetInstalledVersion(void);
WXIMPORT TVersion GetLastRunVersion(void);
// Calls to module omberr.DLL
WXIMPORT void Error(int Err, wxString Opt);
#endif
WXIMPORT wxString GetOSDocDir(void);
WXIMPORT wxString GetUserLocalDir(void);
#endif // OMB33OptH
|