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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
|
Index: src/databasehandler.cpp
===================================================================
--- src/databasehandler.cpp (.../rel_0_9_2/src) (révision 2085)
+++ src/databasehandler.cpp (.../rel_0_9_2-1/src) (révision 2085)
@@ -1,5 +1,5 @@
/*
- Copyright (c) 2004-2009 The FlameRobin Development Team
+ Copyright (c) 2004-2011 The FlameRobin Development Team
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
@@ -46,6 +46,7 @@
class DatabaseInfoHandler: public URIHandler
{
public:
+ DatabaseInfoHandler() {};
bool handleURI(URI& uri);
private:
// singleton; registers itself on creation.
Index: src/gui/RestoreFrame.cpp
===================================================================
--- src/gui/RestoreFrame.cpp (.../rel_0_9_2/src) (révision 2085)
+++ src/gui/RestoreFrame.cpp (.../rel_0_9_2-1/src) (révision 2085)
@@ -258,7 +258,7 @@
sizerFilename->Add(styleguide().getBrowseButtonMargin(), 0);
sizerFilename->Add(button_browse, 0, wxALIGN_CENTER_VERTICAL);
- wxGridSizer* sizerChecks = new wxGridSizer(2, 2,
+ wxGridSizer* sizerChecks = new wxGridSizer(3, 2,
styleguide().getCheckboxSpacing(),
styleguide().getUnrelatedControlMargin(wxHORIZONTAL));
sizerChecks->Add(checkbox_replace, 0, wxEXPAND);
Index: src/gui/ReorderFieldsDialog.cpp
===================================================================
--- src/gui/ReorderFieldsDialog.cpp (.../rel_0_9_2/src) (révision 2085)
+++ src/gui/ReorderFieldsDialog.cpp (.../rel_0_9_2-1/src) (révision 2085)
@@ -1,5 +1,5 @@
/*
- Copyright (c) 2004-2009 The FlameRobin Development Team
+ Copyright (c) 2004-2011 The FlameRobin Development Team
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
@@ -215,6 +215,7 @@
class ReorderFieldsHandler: public URIHandler
{
public:
+ ReorderFieldsHandler() {};
bool handleURI(URI& uri);
private:
// singleton; registers itself on creation.
Index: src/gui/FieldPropertiesDialog.cpp
===================================================================
--- src/gui/FieldPropertiesDialog.cpp (.../rel_0_9_2/src) (révision 2085)
+++ src/gui/FieldPropertiesDialog.cpp (.../rel_0_9_2-1/src) (révision 2085)
@@ -1,5 +1,5 @@
/*
- Copyright (c) 2004-2009 The FlameRobin Development Team
+ Copyright (c) 2004-2011 The FlameRobin Development Team
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
@@ -690,7 +690,7 @@
+ wxT(" IF (NEW.") + fNameSql + wxT(" IS NULL) THEN\n")
+ wxT(" NEW.") + fNameSql + wxT(" = GEN_ID(")
+ generator.getQuoted() + wxT(", 1);\n")
- + wxT(" ELSE\n BEGIN\n tmp = GEN_ID(") +
+ + wxT(" ELSE\n BEGIN\n tmp = GEN_ID(")
+ generator.getQuoted() + wxT(", 0);\n if (tmp < new.")
+ fNameSql + wxT(") then\n tmp = GEN_ID(")
+ generator.getQuoted() + wxT(", new.") + fNameSql
@@ -816,6 +816,7 @@
class ColumnPropertiesHandler: public URIHandler
{
public:
+ ColumnPropertiesHandler() {};
bool handleURI(URI& uri);
private:
// singleton; registers itself on creation.
Index: src/gui/controls/DBHTreeControl.cpp
===================================================================
--- src/gui/controls/DBHTreeControl.cpp (.../rel_0_9_2/src) (révision 2085)
+++ src/gui/controls/DBHTreeControl.cpp (.../rel_0_9_2-1/src) (révision 2085)
@@ -1,5 +1,5 @@
/*
- Copyright (c) 2004-2009 The FlameRobin Development Team
+ Copyright (c) 2004-2011 The FlameRobin Development Team
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
@@ -261,6 +261,8 @@
id = ART_View; break;
case ntViews:
id = ART_Views; break;
+ default:
+ break;
}
return getImageIndex(id);
}
Index: src/gui/controls/TextControl.cpp
===================================================================
--- src/gui/controls/TextControl.cpp (.../rel_0_9_2/src) (révision 2085)
+++ src/gui/controls/TextControl.cpp (.../rel_0_9_2-1/src) (révision 2085)
@@ -40,8 +40,8 @@
#include "gui/controls/TextControl.h"
//-----------------------------------------------------------------------------
-TextControl::TextControl(wxWindow *parent, wxWindowID id, long style)
- : wxStyledTextCtrl(parent, id, wxDefaultPosition, wxDefaultSize, style)
+TextControl::TextControl(wxWindow *parent, wxWindowID id)
+ : wxStyledTextCtrl(parent, id)
{
SetWrapMode(wxSTC_WRAP_WORD);
// wxStyledTextCtrl uses black on white initially -> use system defaults
Index: src/gui/controls/LogTextControl.cpp
===================================================================
--- src/gui/controls/LogTextControl.cpp (.../rel_0_9_2/src) (révision 2085)
+++ src/gui/controls/LogTextControl.cpp (.../rel_0_9_2-1/src) (révision 2085)
@@ -40,8 +40,8 @@
#include "gui/controls/LogTextControl.h"
//-----------------------------------------------------------------------------
-LogTextControl::LogTextControl(wxWindow *parent, wxWindowID id, long style)
- : TextControl(parent, id, style)
+LogTextControl::LogTextControl(wxWindow *parent, wxWindowID id)
+ : TextControl(parent, id)
{
setDefaultStyles();
}
Index: src/gui/controls/TextControl.h
===================================================================
--- src/gui/controls/TextControl.h (.../rel_0_9_2/src) (révision 2085)
+++ src/gui/controls/TextControl.h (.../rel_0_9_2-1/src) (révision 2085)
@@ -61,8 +61,7 @@
DECLARE_EVENT_TABLE()
public:
- TextControl(wxWindow *parent, wxWindowID id = wxID_ANY,
- long style = wxSUNKEN_BORDER);
+ TextControl(wxWindow *parent, wxWindowID id = wxID_ANY);
};
//-----------------------------------------------------------------------------
#endif
Index: src/gui/controls/LogTextControl.h
===================================================================
--- src/gui/controls/LogTextControl.h (.../rel_0_9_2/src) (révision 2085)
+++ src/gui/controls/LogTextControl.h (.../rel_0_9_2-1/src) (révision 2085)
@@ -38,8 +38,7 @@
enum LogStyle { logStyleDefault, logStyleImportant, logStyleError };
void addStyledText(const wxString& message, LogStyle style);
public:
- LogTextControl(wxWindow *parent, wxWindowID id = wxID_ANY,
- long style = wxSUNKEN_BORDER);
+ LogTextControl(wxWindow *parent, wxWindowID id = wxID_ANY);
void logErrorMsg(const wxString& message);
void logImportantMsg(const wxString& message);
Index: src/gui/UserDialog.cpp
===================================================================
--- src/gui/UserDialog.cpp (.../rel_0_9_2/src) (révision 2085)
+++ src/gui/UserDialog.cpp (.../rel_0_9_2-1/src) (révision 2085)
@@ -1,5 +1,5 @@
/*
- Copyright (c) 2004-2009 The FlameRobin Development Team
+ Copyright (c) 2004-2011 The FlameRobin Development Team
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
@@ -222,6 +222,7 @@
class UserPropertiesHandler: public URIHandler
{
public:
+ UserPropertiesHandler() {};
bool handleURI(URI& uri);
private:
// singleton; registers itself on creation.
@@ -300,6 +301,7 @@
class DropUserHandler: public URIHandler
{
public:
+ DropUserHandler() {};
bool handleURI(URI& uri);
private:
// singleton; registers itself on creation.
Index: src/gui/CreateIndexDialog.cpp
===================================================================
--- src/gui/CreateIndexDialog.cpp (.../rel_0_9_2/src) (révision 2085)
+++ src/gui/CreateIndexDialog.cpp (.../rel_0_9_2-1/src) (révision 2085)
@@ -1,5 +1,5 @@
/*
- Copyright (c) 2004-2009 The FlameRobin Development Team
+ Copyright (c) 2004-2011 The FlameRobin Development Team
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
@@ -209,6 +209,7 @@
class TableIndicesHandler: public URIHandler
{
public:
+ TableIndicesHandler() {};
bool handleURI(URI& uri);
private:
// singleton; registers itself on creation.
Index: src/gui/BackupFrame.cpp
===================================================================
--- src/gui/BackupFrame.cpp (.../rel_0_9_2/src) (révision 2085)
+++ src/gui/BackupFrame.cpp (.../rel_0_9_2-1/src) (révision 2085)
@@ -241,7 +241,7 @@
sizerFilename->Add(styleguide().getBrowseButtonMargin(), 0);
sizerFilename->Add(button_browse, 0, wxALIGN_CENTER_VERTICAL);
- wxGridSizer* sizerChecks = new wxGridSizer(2, 2,
+ wxGridSizer* sizerChecks = new wxGridSizer(3, 2,
styleguide().getCheckboxSpacing(),
styleguide().getUnrelatedControlMargin(wxHORIZONTAL));
sizerChecks->Add(checkbox_checksum, 0, wxEXPAND);
Index: src/gui/PrivilegesDialog.cpp
===================================================================
--- src/gui/PrivilegesDialog.cpp (.../rel_0_9_2/src) (révision 2085)
+++ src/gui/PrivilegesDialog.cpp (.../rel_0_9_2-1/src) (révision 2085)
@@ -1,5 +1,5 @@
/*
- Copyright (c) 2004-2009 The FlameRobin Development Team
+ Copyright (c) 2004-2011 The FlameRobin Development Team
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
@@ -583,6 +583,7 @@
class ManagePrivilegesHandler: public URIHandler
{
public:
+ ManagePrivilegesHandler() {};
bool handleURI(URI& uri);
private:
// singleton; registers itself on creation.
Index: src/gui/MainFrame.cpp
===================================================================
--- src/gui/MainFrame.cpp (.../rel_0_9_2/src) (révision 2085)
+++ src/gui/MainFrame.cpp (.../rel_0_9_2-1/src) (révision 2085)
@@ -380,6 +380,7 @@
EVT_MENU(Cmds::Menu_Reconnect, MainFrame::OnMenuReconnect)
EVT_UPDATE_UI(Cmds::Menu_Reconnect, MainFrame::OnMenuUpdateIfDatabaseConnected)
EVT_MENU(Cmds::Menu_RecreateDatabase, MainFrame::OnMenuRecreateDatabase)
+ EVT_UPDATE_UI(Cmds::Menu_RecreateDatabase, MainFrame::OnMenuUpdateIfDatabaseConnected)
EVT_MENU(Cmds::Menu_DropDatabase, MainFrame::OnMenuDropDatabase)
EVT_UPDATE_UI(Cmds::Menu_DropDatabase, MainFrame::OnMenuUpdateIfDatabaseConnected)
EVT_MENU(Cmds::Menu_Query, MainFrame::OnMenuQuery)
@@ -540,8 +541,10 @@
}
//-----------------------------------------------------------------------------
//! handle double-click on item (or press Enter)
-void MainFrame::OnTreeItemActivate(wxTreeEvent& WXUNUSED(event))
+void MainFrame::OnTreeItemActivate(wxTreeEvent& event)
{
+ event.Skip();
+
wxTreeItemId item = treeMainM->GetSelection();
if (!item.IsOk())
return;
Index: src/gui/TriggerWizardDialog.cpp
===================================================================
--- src/gui/TriggerWizardDialog.cpp (.../rel_0_9_2/src) (révision 2085)
+++ src/gui/TriggerWizardDialog.cpp (.../rel_0_9_2-1/src) (révision 2085)
@@ -1,5 +1,5 @@
/*
- Copyright (c) 2004-2009 The FlameRobin Development Team
+ Copyright (c) 2004-2011 The FlameRobin Development Team
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
@@ -178,6 +178,7 @@
class CreateTriggerHandler: public URIHandler
{
public:
+ CreateTriggerHandler() {};
bool handleURI(URI& uri);
private:
static const CreateTriggerHandler handlerInstance;
Index: src/gui/EventWatcherFrame.cpp
===================================================================
--- src/gui/EventWatcherFrame.cpp (.../rel_0_9_2/src) (révision 2085)
+++ src/gui/EventWatcherFrame.cpp (.../rel_0_9_2-1/src) (révision 2085)
@@ -55,15 +55,13 @@
class EventLogControl: public LogTextControl
{
public:
- EventLogControl(wxWindow* parent, wxWindowID id = wxID_ANY,
- long style = wxSUNKEN_BORDER);
+ EventLogControl(wxWindow* parent, wxWindowID id = wxID_ANY);
void logAction(const wxString& action);
void logEvent(const wxString& name, int count);
};
//-----------------------------------------------------------------------------
-EventLogControl::EventLogControl(wxWindow* parent, wxWindowID id,
- long style)
- : LogTextControl(parent, id, style)
+EventLogControl::EventLogControl(wxWindow* parent, wxWindowID id)
+ : LogTextControl(parent, id)
{
}
//-----------------------------------------------------------------------------
Index: src/gui/MetadataItemPropertiesFrame.cpp
===================================================================
--- src/gui/MetadataItemPropertiesFrame.cpp (.../rel_0_9_2/src) (révision 2085)
+++ src/gui/MetadataItemPropertiesFrame.cpp (.../rel_0_9_2-1/src) (révision 2085)
@@ -1,5 +1,5 @@
/*
- Copyright (c) 2004-2009 The FlameRobin Development Team
+ Copyright (c) 2004-2011 The FlameRobin Development Team
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
@@ -360,6 +360,8 @@
case ntDatabase:
case ntRole:
pages.push_back(wxT("DDL"));
+ default:
+ break;
};
wxString page = loadEntireFile(config().getHtmlTemplatesPath()
+ wxT("header.html"));
@@ -1290,6 +1292,7 @@
class PageHandler: public URIHandler
{
public:
+ PageHandler() {};
bool handleURI(URI& uri);
private:
static const PageHandler handlerInstance; // singleton; registers itself on creation.
@@ -1327,6 +1330,7 @@
class PropertiesHandler: public URIHandler
{
public:
+ PropertiesHandler() {};
bool handleURI(URI& uri);
private:
static const PropertiesHandler handlerInstance; // singleton; registers itself on creation.
Index: src/gui/ExecuteSqlFrame.cpp
===================================================================
--- src/gui/ExecuteSqlFrame.cpp (.../rel_0_9_2/src) (révision 2085)
+++ src/gui/ExecuteSqlFrame.cpp (.../rel_0_9_2-1/src) (révision 2085)
@@ -1,5 +1,5 @@
/*
- Copyright (c) 2004-2009 The FlameRobin Development Team
+ Copyright (c) 2004-2011 The FlameRobin Development Team
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
@@ -2749,6 +2749,7 @@
class DropColumnHandler: public URIHandler
{
public:
+ DropColumnHandler() {};
bool handleURI(URI& uri);
private:
static const DropColumnHandler handlerInstance;
@@ -2806,6 +2807,7 @@
class DropColumnsHandler: public URIHandler
{
public:
+ DropColumnsHandler() {};
bool handleURI(URI& uri);
private:
static const DropColumnsHandler handlerInstance;
@@ -2842,6 +2844,7 @@
class DropObjectHandler: public URIHandler
{
public:
+ DropObjectHandler() {};
bool handleURI(URI& uri);
private:
static const DropObjectHandler handlerInstance;
@@ -2878,6 +2881,7 @@
class EditDDLHandler: public URIHandler
{
public:
+ EditDDLHandler() {};
bool handleURI(URI& uri);
private:
static const EditDDLHandler handlerInstance;
@@ -2919,6 +2923,7 @@
class EditProcedureHandler: public URIHandler
{
public:
+ EditProcedureHandler() {};
bool handleURI(URI& uri);
private:
// singleton; registers itself on creation.
@@ -2947,6 +2952,7 @@
class AlterViewHandler: public URIHandler
{
public:
+ AlterViewHandler() {};
bool handleURI(URI& uri);
private:
// singleton; registers itself on creation.
@@ -2973,6 +2979,7 @@
class EditTriggerHandler: public URIHandler
{
public:
+ EditTriggerHandler() {};
bool handleURI(URI& uri);
private:
// singleton; registers itself on creation.
@@ -2999,6 +3006,7 @@
class EditGeneratorValueHandler: public URIHandler
{
public:
+ EditGeneratorValueHandler() {};
bool handleURI(URI& uri);
private:
// singleton; registers itself on creation.
@@ -3041,6 +3049,7 @@
class EditExceptionHandler: public URIHandler
{
public:
+ EditExceptionHandler() {};
bool handleURI(URI& uri);
private:
// singleton; registers itself on creation.
@@ -3067,6 +3076,7 @@
class IndexActionHandler: public URIHandler
{
public:
+ IndexActionHandler() {};
bool handleURI(URI& uri);
private:
// singleton; registers itself on creation.
@@ -3113,6 +3123,7 @@
class ActivateTriggersHandler: public URIHandler
{
public:
+ ActivateTriggersHandler() {};
bool handleURI(URI& uri);
private:
static const ActivateTriggersHandler handlerInstance;
@@ -3160,6 +3171,7 @@
class ActivateTriggerHandler: public URIHandler
{
public:
+ ActivateTriggerHandler() {};
bool handleURI(URI& uri);
private:
static const ActivateTriggerHandler handlerInstance;
Index: src/images.cpp
===================================================================
--- src/images.cpp (.../rel_0_9_2/src) (révision 2085)
+++ src/images.cpp (.../rel_0_9_2-1/src) (révision 2085)
@@ -1,5 +1,5 @@
/*
- Copyright (c) 2004-2009 The FlameRobin Development Team
+ Copyright (c) 2004-2011 The FlameRobin Development Team
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
@@ -68,6 +68,8 @@
return wxArtProvider::GetIcon(ART_Trigger, wxART_OTHER, sz);
case ntView:
return wxArtProvider::GetIcon(ART_View, wxART_OTHER, sz);
+ default:
+ break;
}
return wxArtProvider::GetIcon(ART_FlameRobin, wxART_OTHER, sz);
}
Index: src/objectdescriptionhandler.cpp
===================================================================
--- src/objectdescriptionhandler.cpp (.../rel_0_9_2/src) (révision 2085)
+++ src/objectdescriptionhandler.cpp (.../rel_0_9_2-1/src) (révision 2085)
@@ -1,5 +1,5 @@
/*
- Copyright (c) 2004-2009 The FlameRobin Development Team
+ Copyright (c) 2004-2011 The FlameRobin Development Team
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
@@ -46,6 +46,7 @@
class ObjectDescriptionHandler: public URIHandler
{
public:
+ ObjectDescriptionHandler() {};
bool handleURI(URI& uri);
private:
// singleton; registers itself on creation.
Index: src/addconstrainthandler.cpp
===================================================================
--- src/addconstrainthandler.cpp (.../rel_0_9_2/src) (révision 2085)
+++ src/addconstrainthandler.cpp (.../rel_0_9_2-1/src) (révision 2085)
@@ -1,5 +1,5 @@
/*
- Copyright (c) 2004-2009 The FlameRobin Development Team
+ Copyright (c) 2004-2011 The FlameRobin Development Team
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
@@ -51,6 +51,8 @@
class AddConstraintHandler: public URIHandler
{
public:
+ AddConstraintHandler() {};
+
bool handleURI(URI& uri);
private:
static const AddConstraintHandler handlerInstance; // singleton; registers itself on creation.
|