-
Notifications
You must be signed in to change notification settings - Fork 0
/
InnoScript.h
91 lines (80 loc) · 1.79 KB
/
InnoScript.h
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
#ifndef INNOSCRIPT_H
#define INNOSCRIPT_H
#include "Files.h"
#include "Dirs.h"
#include "Comment.h"
#include "Icons.h"
#include "Ini.h"
#include "Tasks.h"
#include "Registry.h"
#include "Languages.h"
#include "Types.h"
#include "Components.h"
#include "Messages.h"
#include "CustomMessages.h"
#include "Run.h"
#include "InstallDelete.h"
#include "UninstallDelete.h"
#include <list>
#include <string>
#include <wx/string.h>
#include <wx/listctrl.h>
#include <wx/textfile.h>
using namespace std;
enum InnoPart
{
SCRIPT,
SETUP,
FILES,
FOLDERS,
ICONS,
INI,
TASKS,
REGISTRY,
LANGUAGES,
LANGOPT,
TYPES,
COMPONENTS,
MESSAGES,
CMESSAGES,
RUN,
PASCALCODE,
INSTALLDEL,
UNINSTALL,
UNINSTALLDEL,
PRE,
POST
};
class InnoScript
{
public:
/** Default constructor */
InnoScript();
/** Default destructor */
virtual ~InnoScript();
void Read(const wxString& filename);
void Analize(const wxString& content, const wxString& line);
void AnalizePreprocessor(const wxString& content);
void AnalizeSection(const wxString& content, const wxString& line);
void Write(wxString filename);
void Show(wxListCtrl* liste, const InnoPart& part);
protected:
private:
InnoPart m_part;
list<CFiles> m_files;
list<CDirs> m_dirs;
list<CIcons> m_icons;
list<CIni> m_ini;
list<CTasks> m_tasks;
list<CRegistry> m_registry;
list<CLanguages> m_languages;
list<CTypes> m_types;
list<CComponents> m_components;
list<CMessages> m_messages;
list<CCustomMessages> m_cmessages;
list<CRun> m_runs;
list<CInstallDelete> m_instal_del;
list<CUninstallDelete> m_uninstal_del;
list<CRun> m_uninstal_run;
};
#endif // INNOSCRIPT_H