~igor-cali/bilancio/stable

« back to all changes in this revision

Viewing changes to src/ombopt/omb33opt.h

  • Committer: Igor Calì
  • Date: 2019-04-07 16:24:48 UTC
  • Revision ID: igor.cali0@gmail.com-20190407162448-5mfwr7c39y3kzz6u
 v3.3.1.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************
 
2
 * Name:      omb33opt.h
 
3
 * Purpose:   Code for OpenMoneyBox Application Class
 
4
 * Author:    Igor Calì (igor.cali0@gmail.com)
 
5
 * Created:   2019-02-16
 
6
 * Copyright: Igor Calì (igor.cali0@gmail.com)
 
7
 * License:             GNU
 
8
 **************************************************************/
 
9
 
 
10
#ifndef OMB33OptH
 
11
#define OMB33OptH
 
12
 
 
13
#ifndef WX_PRECOMP
 
14
        #include <wx/wx.h>
 
15
#else
 
16
        #include <wx/wxprec.h>
 
17
#endif
 
18
 
 
19
//#include <wx/string.h>
 
20
#include <wx/fileconf.h> // For wxFileConfig
 
21
 
 
22
#ifdef __WXMSW__
 
23
        #include "../platformsetup.h"
 
24
  #ifdef _OMB_USEREGISTRY
 
25
    #include <wx/msw/registry.h> // For wxRegKey
 
26
  #endif // _OMB_USEREGISTRY
 
27
#endif
 
28
 
 
29
#include "../types.h"
 
30
//#include "constants.h"
 
31
 
 
32
class TOpt
 
33
{
 
34
//private:
 
35
public:
 
36
        bool SuccessfulCreated;     // true if Option are properly created
 
37
        #ifdef __WXMSW__
 
38
                // HKLM Options
 
39
                wxString SWKey;
 
40
                wxString InstallationPath;    // Program Folder
 
41
  #endif
 
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
 
46
        // HKCU Options
 
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;
 
66
        wxArrayString *Tools;
 
67
 
 
68
        TOpt(void);
 
69
 
 
70
        //void LastFile(wxString Name);
 
71
        bool SetDefaultDoc(wxString Doc);
 
72
        void SetCurrSymbol(void);
 
73
    /*
 
74
    #ifdef __WXMSW__
 
75
        #ifdef _OMB_USEREGISTRY
 
76
            void ReadLogString(wxRegKey *Key, int S);
 
77
        #endif // _OMB_USEREGISTRY
 
78
    #else
 
79
        void ReadLogString(wxFileConfig *Key, int S);
 
80
    #endif
 
81
    */
 
82
        void FirstRunDone(void);
 
83
 
 
84
        ~TOpt();
 
85
};
 
86
 
 
87
#ifdef __WXMSW__
 
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);
 
93
#endif
 
94
WXIMPORT wxString GetOSDocDir(void);
 
95
WXIMPORT wxString GetUserLocalDir(void);
 
96
 
 
97
#endif // OMB33OptH
 
98
 
 
99