1
/***************************************************************
3
* Purpose: Code for OpenMoneyBox Application Class
4
* Author: Igor Calì (igor.cali0@gmail.com)
6
* Copyright: Igor Calì (igor.cali0@gmail.com)
8
**************************************************************/
16
#include <wx/wxprec.h>
19
//#include <wx/string.h>
20
#include <wx/fileconf.h> // For wxFileConfig
23
#include "../platformsetup.h"
24
#ifdef _OMB_USEREGISTRY
25
#include <wx/msw/registry.h> // For wxRegKey
26
#endif // _OMB_USEREGISTRY
30
//#include "constants.h"
36
bool SuccessfulCreated; // true if Option are properly created
40
wxString InstallationPath; // Program Folder
42
//bool InstConv; // true if Conv utility is installed // DON'T REMOVE - May be restore with new Product version
43
//long InstWiz; // true if Wizard utility is installed
44
//long InstTray; // true if OmbTray utility is installed
45
//long InstUpdate; // true if Update utility is installed
47
long FirstRunEver; // Very first launch of application;
48
//bool FirstRunCurrVersion; // First lauch of new version;
49
// Preparation for future updates
50
//long GAutoOpen; // Automatic opening of last used file
51
//wxString GLastFile; // Latest opened document
52
wxString GDoc_folder, // Document default folder
53
GDDoc, // Default document
54
GMaster_db, // Master database
55
GDoc_prefix; // Prefix for self generated documents (XML's and related folders, backups, etc.)
56
long GBar; // Toolbar display
57
long GSplash; // Show Splash-screen
58
long GConv; // Automatic report export in text on new months
59
long GIcon; // Open TrayIcon on exit
60
long CTrendGraph; // Trend Graph display
61
long CFundGraph; // Fund Pie display
62
#ifdef _OMB_INSTALLEDUPDATE
63
long CheckUpdates; // Verify new version availability in the web
64
#endif // _OMB_INSTALLEDUPDATE
65
//wxArrayString *LogStrings;
70
//void LastFile(wxString Name);
71
bool SetDefaultDoc(wxString Doc);
72
void SetCurrSymbol(void);
75
#ifdef _OMB_USEREGISTRY
76
void ReadLogString(wxRegKey *Key, int S);
77
#endif // _OMB_USEREGISTRY
79
void ReadLogString(wxFileConfig *Key, int S);
82
void FirstRunDone(void);
88
// Calls to module igiomb
89
WXIMPORT TVersion GetInstalledVersion(void);
90
WXIMPORT TVersion GetLastRunVersion(void);
91
// Calls to module omberr.DLL
92
WXIMPORT void Error(int Err, wxString Opt);
94
WXIMPORT wxString GetOSDocDir(void);
95
WXIMPORT wxString GetUserLocalDir(void);