summaryrefslogtreecommitdiffstats
path: root/kexi/doc/dev/compile_time_options.txt
blob: 220cbca14fba7d71d3e4a36c8f173edd745a5694 (plain)
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
Compile-Time Options for Kexi
-----------------------------

(c) 2005-2007, Jaroslaw Staniek, <js @ iidea . pl>


See http://www.kexi-project.org/wiki/wikiview/index.php?AdvancedBuildNotes
for explanation how to conveniently set compile-time options.

List of available options
-------------------------

* KEXI_STANDALONE
Type: defined/undefined
Default: -
Description: Can be defined globally in kexi_global.h.
Defined for standalone Kexi releases (without KOffice, e.g. 1.0) and undefined 
for releases bundled with KOffice,. e.g. 1.1.

* KEXI_NO_UNFINISHED
Type: defined/undefined
Default: defined in kexi_export.h if KEXI_OPTIONS is undefined
Description: If defined, unfinished Kexi features (for example a few features 
within Table Designer) will be hidded for Kexi, to avoid user confusion.

* KEXI_SHOW_UNIMPLEMENTED
Type: defined/undefined
Default: undefined
Description: If defined, forces to show menu entries and dialogs just to give 
impression about development plans of Kexi Team. 
Only recommended for test/development versions.

* KEXI_FORMS_SUPPORT
Type: defined/undefined
Default: defined in kexi_export.h if KEXI_OPTIONS is undefined
Description: If defined, form plugin will be loaded; else: it will be 
not loaded even if is compiled.

* KEXI_REPORTS_SUPPORT
Type: defined/undefined
Like KEXI_FORMS_SUPPORT macro, but for enabling report plugin.
Default: undefined

* KEXI_SCRIPTS_SUPPORT
Type: defined/undefined
Like KEXI_FORMS_SUPPORT macro, but for enabling scripts plugin.
Default: undefined

* KEXI_KROSS_SUPPORT
Type: defined/undefined
If KEXI_SCRIPTS_SUPPORT is defined, this option defines that
Kross, located at kexi/scripting{core|plugins}, should be
compiled and used for scripting.
Default: same as KEXI_SCRIPTS_SUPPORT

* KEXI_NO_MIGRATION
Type: defined/undefined
Default: undefined
Description: If defined, data/project migration support for Kexi 
(available in Tools>Migration menu) will be disabled; else: support will 
be enabled.

* KEXI_CUSTOM_HARDCODED_CONNDATA
Type: defined/undefined
Default: undefined
Description: If defined, you are forcing to add custom hardcoded connections 
to the  KexiMigration::importWizard constructor and KexiStartupHandler::init().
All you need is to create your own private "custom_connectiondata.h" file 
in kexi/ directory, which will be included into Kexi source code and fill 
it with code providing one or more hardcoded connections. 
Example custom_connectiondata.h file for adding a single connection data: 
---- custom_connectiondata.h, cut here -----
	conndata = new KexiDB::ConnectionData();
	conndata->connName = "My Custom Pgsql Connection";
	conndata->driverName = "postgresql"; //can be also "sqlite3", "sqlite2", "mysql"
	conndata->hostName = "myhost.example.com";
	conndata->userName = "john";
	conndata->password = "secret";
	Kexi::connset().addConnectionData(conndata); //always call this to add 
----- cut here ------------------------------
Notes: 
- security warning: if you provide your passwords in your code, it will 
  be available in compiled binaries, so think twice before providine the binaries
  for somebody else. The custom_connectiondata.h file will not be available 
  in CVS, so don't worry.
- this hardcoding will be removed when full handling of connectiondata arrives.
- conndata is predefined as: KexiDB::ConnectionData* conndata;
- See KexiDB::ConnectionData deocumentation for more information.
- you can assign KUser().loginName() for username if you want to get current 
  login.

* KEXI_USE_GRADIENT_WIDGET
Type: defined/undefined
Default: undefined
Description: If defined, KexiGradientWidget is used as form's background. 
Currently disabled due to problems with performance and child widget's palettes.


* KEXI_NO_SUBFORM
Type: defined/undefined, temporary
Default: undefined
Description: If defined, subform widget will not be available

* KEXI_NO_AUTOFIELD_WIDGET
Type: defined/undefined, temporary
Default: undefined
Description: If defined, atofield (KexiDBFieldEdit) widget will not be available, 
nor dragging fields from "data source" will be available

* KEXI_NO_IMAGEBOX_WIDGET
Type: defined/undefined, temporary
Default: undefined
Description: If defined, image box (KexiImageBox) widget will not be available

* CUSTOM_VERSION
Type: defined/undefined
Default: undefined
Description: Defined means Kexi version compiled for standalone distribution 
with some minor vendor-specific tweaks. Used for OOPL version.

* KEXI_DEBUG_GUI
Type: defined/undefined
Default: defined (but should be undefined for final releases)
Description: If defined, showInternalDebugger=true (in [General] group) 
can be specified to display KexiDB Debugger. 
In the future the window will be probably used for debugging other features
like scripts or macros. This option is useful for Kexi Developers.

Also shows additional "Show Form UI Code" action in form's design mode. 
This is useful for debugging: after executing the action, 
a dialog with current (after changes) and original form's 
GUI XML code will be presented in a tabbed dialog, so you can compare what changed 
and look for possible problems. The "current" XML code will be saved when "save" 
action is executed. TODO: it will be merged with Internal Debuger window.

* KEXI_DB_COMBOBOX_WIDGET
Type: defined/undefined
Default: undefined
Description: Defined means Kexi offers combo box form widget.

* DB_TEMPLATES
Type: defined/undefined
Default: undefined
Description: Defined means Kexi offers "Templates" in the startup dialog.

==== Obsolete, don't use ====

* KDOCKWIDGET_P
Type: defined/undefined
Default: undefined
Description: If defined, enables a hack for better handling property editor's 
panel within KexiMainWindowImpl object. 

* KEXI_OPTIONS
Type: defined/undefined
Default: undefined
Description: Define this if you want override default compile time options 
to use any of the options described below.