-
Notifications
You must be signed in to change notification settings - Fork 156
/
GeoDa.h
676 lines (595 loc) · 26.5 KB
/
GeoDa.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
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
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
/**
* GeoDa TM, Copyright (C) 2011-2015 by Luc Anselin - all rights reserved
*
* This file is part of GeoDa.
*
* GeoDa is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* GeoDa is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __GEODA_CENTER_GEODA_H__
#define __GEODA_CENTER_GEODA_H__
#include <list>
#include <string>
#include <vector>
#include <boost/uuid/uuid.hpp>
#include <wx/arrstr.h>
#include <wx/app.h>
#include <wx/clipbrd.h>
#include <wx/colordlg.h>
#include <wx/cmdline.h>
#include <wx/docview.h>
#include <wx/filename.h>
#include <wx/ipc.h>
#include <wx/string.h>
#include <wx/snglinst.h>
#include <wx/timer.h>
#include <wx/toolbar.h>
#include <wx/xrc/xh_auitoolb.h>
// Forward Declarations
class Project;
class CatClassifFrame;
class GdaApp;
class GdaFrame;
class LineChartFrame;
class wxTranslationHelper;
/** Main appilcation class. */
class GdaApp: public wxApp
{
public:
GdaApp();
virtual ~GdaApp();
virtual bool OnInit(void);
virtual int OnExit(void);
virtual void OnFatalException(void);
virtual void OnInitCmdLine(wxCmdLineParser& parser);
virtual bool OnCmdLineParsed(wxCmdLineParser& parser);
virtual void MacOpenFiles(const wxArrayString& fileNames);
static const wxCmdLineEntryDesc globalCmdLineDesc[];
private:
wxSingleInstanceChecker* checker;
wxString cmd_line_proj_file_name;
wxTranslationHelper* m_TranslationHelper;
FILE *m_pLogFile;
};
DECLARE_APP(GdaApp)
/** Main toolbar frame. */
class GdaFrame: public wxFrame
{
public:
GdaFrame(const wxString& title,
const wxPoint& pos,
const wxSize& size,
long style);
virtual ~GdaFrame();
void EnableTool(const wxString& id_str, bool enable);
void EnableTool(int xrc_id, bool enable);
boost::uuids::uuid GetWeightsId(const wxString& caption = _("Choose Weights"));
void OnSize(wxSizeEvent& event);
void OnKeyEvent(wxKeyEvent& event);
void OnToolOpenNewTable(wxCommandEvent& event);
void OnOpenNewTable();
bool OnCloseProject(bool ignore_unsaved_changes = false);
void OnClose(wxCloseEvent& event);
void OnMenuClose(wxCommandEvent& event);
void OnCloseProjectEvt(wxCommandEvent& event);
void OnQuit(wxCommandEvent& WXUNUSED(event));
void NewProjectFromFile(const wxString& full_file_path);
void OnNewProject(wxCommandEvent& event);
void ShowOpenDatasourceDlg(wxPoint pos, bool init=false);
void OpenProject(const wxString& full_proj_path);
void OnOpenProject(wxCommandEvent& event);
void OnSaveProject(wxCommandEvent& event);
void OnSaveAsProject(wxCommandEvent& event);
void OnShowProjectInfo(wxCommandEvent& event);
void OnPreferenceSetup(wxCommandEvent& event);
void OnHtmlEntry(int entry);
void OnHtmlEntry0(wxCommandEvent& event);
void OnHtmlEntry1(wxCommandEvent& event);
void OnHtmlEntry2(wxCommandEvent& event);
void OnHtmlEntry3(wxCommandEvent& event);
void OnHtmlEntry4(wxCommandEvent& event);
void OnHtmlEntry5(wxCommandEvent& event);
void OnHtmlEntry6(wxCommandEvent& event);
void OnHtmlEntry7(wxCommandEvent& event);
void OnHtmlEntry8(wxCommandEvent& event);
void OnHtmlEntry9(wxCommandEvent& event);
void OnSelectWithRect(wxCommandEvent& event);
void OnSelectWithCircle(wxCommandEvent& event);
void OnSelectWithLine(wxCommandEvent& event);
void OnSelectWithCustom(wxCommandEvent& event);
void OnSelectionMode(wxCommandEvent& event);
void OnFitToWindowMode(wxCommandEvent& event);
void OnFixedAspectRatioMode(wxCommandEvent& event);
void OnSetAxisDisplayPrecision(wxCommandEvent& event);
void OnZoomMode(wxCommandEvent& event);
void OnPanMode(wxCommandEvent& event);
void OnPrintCanvasState(wxCommandEvent& event);
void OnChangeMapTransparency(wxCommandEvent& event);
void OnCleanBasemap(wxCommandEvent& event);
void OnSetNoBasemap(wxCommandEvent& event);
void OnSetBasemap1(wxCommandEvent& event);
void OnSetBasemap2(wxCommandEvent& event);
void OnSetBasemap3(wxCommandEvent& event);
void OnSetBasemap4(wxCommandEvent& event);
void OnSetBasemap5(wxCommandEvent& event);
void OnSetBasemap6(wxCommandEvent& event);
void OnSetBasemap7(wxCommandEvent& event);
void OnSetBasemap8(wxCommandEvent& event);
void OnBasemapConfig(wxCommandEvent& event);
void OnSaveCanvasImageAs(wxCommandEvent& event);
void OnSaveSelectedToColumn(wxCommandEvent& event);
void OnCanvasBackgroundColor(wxCommandEvent& event);
void OnLegendUseScientificNotation(wxCommandEvent& event);
void OnLegendDisplayPrecision(wxCommandEvent& event);
void OnLegendBackgroundColor(wxCommandEvent& event);
void OnSelectableFillColor(wxCommandEvent& event);
void OnSelectableOutlineColor(wxCommandEvent& event);
void OnSelectableOutlineVisible(wxCommandEvent& event);
void OnShowMapBoundary(wxCommandEvent& event);
void OnHighlightColor(wxCommandEvent& event);
void OnCopyImageToClipboard(wxCommandEvent& event);
void OnCopyLegendToClipboard(wxCommandEvent& event);
void OnToolsDataPCA(wxCommandEvent& event);
void OnToolsDataKMeans(wxCommandEvent& event);
void OnToolsDataKMedians(wxCommandEvent& event);
void OnToolsDataKMedoids(wxCommandEvent& event);
void OnToolsDataHCluster(wxCommandEvent& event);
void OnToolsDataDBScan(wxCommandEvent& event);
void OnToolsDataHDBScan(wxCommandEvent& event);
void OnToolsDataMaxP(wxCommandEvent& event);
void OnToolsDataAZP(wxCommandEvent& event);
void OnToolsDataSkater(wxCommandEvent& event);
void OnToolsDataSCHC(wxCommandEvent& event);
void OnToolsDataSpectral(wxCommandEvent& event);
void OnToolsDataRedcap(wxCommandEvent& event);
void OnToolsDataSCKMEANS(wxCommandEvent& event);
void OnToolsDataMDS(wxCommandEvent& event);
void OnToolsDataTSNE(wxCommandEvent& event);
void OnToolsWeightsManager(wxCommandEvent& event);
void OnToolsWeightsCreate(wxCommandEvent& event);
void OnConnectivityHistView(wxCommandEvent& event);
void OnConnectivityMapView(wxCommandEvent& event);
void ShowConnectivityMapView(boost::uuids::uuid weights_id);
void OnMapChoices(wxCommandEvent& event);
void OnShapePointsFromASCII(wxCommandEvent& event);
void OnShapePolygonsFromGrid(wxCommandEvent& event);
void OnShapePolygonsFromBoundary(wxCommandEvent& event);
void OnShapeToBoundary(wxCommandEvent& event);
void OnShowTimeChooser(wxCommandEvent& event);
void OnShowDataMovie(wxCommandEvent& event);
void OnShowCatClassif(wxCommandEvent& event);
CatClassifFrame* GetCatClassifFrame(bool useScientificNotation=false);
void OnVarGroupingEditor(wxCommandEvent& event);
void OnTimeEditor(wxCommandEvent& event);
void OnMoveSelectedToTop(wxCommandEvent& event);
void OnInvertSelection(wxCommandEvent& event);
void OnClearSelection(wxCommandEvent& event);
void OnRangeSelection(wxCommandEvent& event);
void OnFieldCalculation(wxCommandEvent& event);
void OnCalculator(wxCommandEvent& event);
void OnAddCol(wxCommandEvent& event);
void OnDeleteCol(wxCommandEvent& event);
void OnEditFieldProperties(wxCommandEvent& event);
void OnChangeFieldType(wxCommandEvent& event);
void OnMergeTableData(wxCommandEvent& event);
void OnAggregateData(wxCommandEvent& event);
void OnSpatialJoin(wxCommandEvent& event);
void OnGroupingMap(wxCommandEvent& event);
void OnExportToCsvFile(wxCommandEvent& event); // not used currently
void OnExportToOGR(wxCommandEvent& event);
void OnExportSelectedToOGR(wxCommandEvent& event);
void OnGeneratePointShpFile(wxCommandEvent& event);
void OnDissolve(wxCommandEvent& event);
void OnRegressionClassic(wxCommandEvent& event);
void OnPublish(wxCommandEvent& event);
void OnCondPlotChoices(wxCommandEvent& event);
void OnClusteringChoices(wxCommandEvent& event);
void OnShowConditionalMapView(wxCommandEvent& event);
void OnShowConditionalScatterView(wxCommandEvent& event);
void OnShowConditionalHistView(wxCommandEvent& event);
void OnShowConditionalBoxView(wxCommandEvent& event);
void OnShowCartogramNewView(wxCommandEvent& event );
void OnCartogramImprove1(wxCommandEvent& event);
void OnCartogramImprove2(wxCommandEvent& event);
void OnCartogramImprove3(wxCommandEvent& event);
void OnCartogramImprove4(wxCommandEvent& event);
void OnCartogramImprove5(wxCommandEvent& event);
void OnCartogramImprove6(wxCommandEvent& event);
void OnExploreHist(wxCommandEvent& event);
void OnExploreScatterNewPlot(wxCommandEvent& event);
void OnExploreBubbleChart(wxCommandEvent& event);
void OnExploreScatterPlotMat(wxCommandEvent& event);
void OnExploreTestMap(wxCommandEvent& event);
void OnExploreBox(wxCommandEvent& event);
void OnExploreNewBox(wxCommandEvent& event);
void OnExplorePCP(wxCommandEvent& event);
void OnExplore3DP(wxCommandEvent& event);
void OnExploreLineChart(wxCommandEvent& event);
void OnExploreCovScatterPlot(wxCommandEvent& event);
void OnExploreCorrelogram(wxCommandEvent& event);
void OnDistancePlot(wxCommandEvent& event);
void OnToolsChoices(wxCommandEvent& event);
void OnMoranMenuChoices(wxCommandEvent& event);
void OnOpenMSPL(wxCommandEvent& event);
void OnOpenGMoran(wxCommandEvent& event);
void OnOpenDiffMoran(wxCommandEvent& event);
void OnOpenMoranEB(wxCommandEvent& event);
void OnLisaMenuChoices(wxCommandEvent& event);
void OnCorrelogramMenuChoices(wxCommandEvent& event);
void OnGetisMenuChoices(wxCommandEvent& event);
void OnOpenUniLisa(wxCommandEvent& event);
void OnOpenUniMedianLisa(wxCommandEvent& event);
void OnOpenMultiLisa(wxCommandEvent& event);
void OnOpenDiffLisa(wxCommandEvent& event);
void OnOpenLisaEB(wxCommandEvent& event);
void OnOpenGetisOrd(wxCommandEvent& event);
void OnOpenLocalJoinCount(wxCommandEvent& event);
void OnOpenGetisOrdStar(wxCommandEvent& event);
void OnOpenUniLocalGeary(wxCommandEvent& event);
void OnOpenMultiLocalGeary(wxCommandEvent& event);
void OnOpenBivariateLJC(wxCommandEvent& event);
void OnOpenMultiLJC(wxCommandEvent& event);
void OnOpenQuantileLisa(wxCommandEvent& event);
void OnOpenMultiQuantileLisa(wxCommandEvent& event);
void OnOpenLocalMatch(wxCommandEvent& event);
void OnNewCustomCatClassifA(wxCommandEvent& event);
void OnNewCustomCatClassifB(wxCommandEvent& event);
void OnNewCustomCatClassifC(wxCommandEvent& event);
void OnCCClassifA(int cc_menu_num);
void OnCCClassifB(int cc_menu_num);
void OnCCClassifC(int cc_menu_num);
void OnOpenThemelessMap(wxCommandEvent& event);
void OnThemelessMap(wxCommandEvent& event);
void OnOpenQuantile1(wxCommandEvent& event);
void OnOpenQuantile2(wxCommandEvent& event);
void OnOpenQuantile3(wxCommandEvent& event);
void OnOpenQuantile4(wxCommandEvent& event);
void OnOpenQuantile5(wxCommandEvent& event);
void OnOpenQuantile6(wxCommandEvent& event);
void OnOpenQuantile7(wxCommandEvent& event);
void OnOpenQuantile8(wxCommandEvent& event);
void OnOpenQuantile9(wxCommandEvent& event);
void OnOpenQuantile10(wxCommandEvent& event);
void OpenQuantile(int num_cats);
void OnQuantile1(wxCommandEvent& event);
void OnQuantile2(wxCommandEvent& event);
void OnQuantile3(wxCommandEvent& event);
void OnQuantile4(wxCommandEvent& event);
void OnQuantile5(wxCommandEvent& event);
void OnQuantile6(wxCommandEvent& event);
void OnQuantile7(wxCommandEvent& event);
void OnQuantile8(wxCommandEvent& event);
void OnQuantile9(wxCommandEvent& event);
void OnQuantile10(wxCommandEvent& event);
void ChangeToQuantile(int num_cats);
void OnOpenPercentile(wxCommandEvent& event);
void OnPercentile(wxCommandEvent& event);
void OnOpenHinge15(wxCommandEvent& event);
void OnHinge15(wxCommandEvent& event);
void OnOpenHinge30(wxCommandEvent& event);
void OnHinge30(wxCommandEvent& event);
void OnOpenStddev(wxCommandEvent& event);
void OnStddev(wxCommandEvent& event);
void OnOpenNaturalBreaks1(wxCommandEvent& event);
void OnOpenNaturalBreaks2(wxCommandEvent& event);
void OnOpenNaturalBreaks3(wxCommandEvent& event);
void OnOpenNaturalBreaks4(wxCommandEvent& event);
void OnOpenNaturalBreaks5(wxCommandEvent& event);
void OnOpenNaturalBreaks6(wxCommandEvent& event);
void OnOpenNaturalBreaks7(wxCommandEvent& event);
void OnOpenNaturalBreaks8(wxCommandEvent& event);
void OnOpenNaturalBreaks9(wxCommandEvent& event);
void OnOpenNaturalBreaks10(wxCommandEvent& event);
void OpenNaturalBreaks(int num_cats);
void OnNaturalBreaks1(wxCommandEvent& event);
void OnNaturalBreaks2(wxCommandEvent& event);
void OnNaturalBreaks3(wxCommandEvent& event);
void OnNaturalBreaks4(wxCommandEvent& event);
void OnNaturalBreaks5(wxCommandEvent& event);
void OnNaturalBreaks6(wxCommandEvent& event);
void OnNaturalBreaks7(wxCommandEvent& event);
void OnNaturalBreaks8(wxCommandEvent& event);
void OnNaturalBreaks9(wxCommandEvent& event);
void OnNaturalBreaks10(wxCommandEvent& event);
void ChangeToNaturalBreaks(int num_cats);
void OnOpenEqualIntervals1(wxCommandEvent& event);
void OnOpenEqualIntervals2(wxCommandEvent& event);
void OnOpenEqualIntervals3(wxCommandEvent& event);
void OnOpenEqualIntervals4(wxCommandEvent& event);
void OnOpenEqualIntervals5(wxCommandEvent& event);
void OnOpenEqualIntervals6(wxCommandEvent& event);
void OnOpenEqualIntervals7(wxCommandEvent& event);
void OnOpenEqualIntervals8(wxCommandEvent& event);
void OnOpenEqualIntervals9(wxCommandEvent& event);
void OnOpenEqualIntervals10(wxCommandEvent& event);
void OpenEqualIntervals(int num_cats);
void OnEqualIntervals1(wxCommandEvent& event);
void OnEqualIntervals2(wxCommandEvent& event);
void OnEqualIntervals3(wxCommandEvent& event);
void OnEqualIntervals4(wxCommandEvent& event);
void OnEqualIntervals5(wxCommandEvent& event);
void OnEqualIntervals6(wxCommandEvent& event);
void OnEqualIntervals7(wxCommandEvent& event);
void OnEqualIntervals8(wxCommandEvent& event);
void OnEqualIntervals9(wxCommandEvent& event);
void OnEqualIntervals10(wxCommandEvent& event);
void ChangeToEqualIntervals(int num_cats);
void OnOpenUniqueValues(wxCommandEvent& event);
void OnOpenColocationMap(wxCommandEvent& event);
void OnUniqueValues(wxCommandEvent& event);
void OnOpenClusterMatchMap(wxCommandEvent& event);
void OnOpenClusterValidation(wxCommandEvent& event);
void OnSaveCategories(wxCommandEvent& event);
void OnOpenClusterMakeSpatial(wxCommandEvent& event);
void OnOpenRawrate(wxCommandEvent& event);
void OnRawrate(wxCommandEvent& event);
void OnOpenExcessrisk(wxCommandEvent& event);
void OnExcessrisk(wxCommandEvent& event);
void OnOpenEmpiricalBayes(wxCommandEvent& event);
void OnEmpiricalBayes(wxCommandEvent& event);
void OnOpenSpatialRate(wxCommandEvent& event);
void OnSpatialRate(wxCommandEvent& event);
void OnOpenSpatialEmpiricalBayes(wxCommandEvent& event);
void OnSpatialEmpiricalBayes(wxCommandEvent& event);
void OnCondHorizThemelessMap(wxCommandEvent& event);
void OnCondHorizQuant1(wxCommandEvent& event);
void OnCondHorizQuant2(wxCommandEvent& event);
void OnCondHorizQuant3(wxCommandEvent& event);
void OnCondHorizQuant4(wxCommandEvent& event);
void OnCondHorizQuant5(wxCommandEvent& event);
void OnCondHorizQuant6(wxCommandEvent& event);
void OnCondHorizQuant7(wxCommandEvent& event);
void OnCondHorizQuant8(wxCommandEvent& event);
void OnCondHorizQuant9(wxCommandEvent& event);
void OnCondHorizQuant10(wxCommandEvent& event);
void ChangeToCondHorizQuant(int num_cats);
void OnCondHorizPercentile(wxCommandEvent& event);
void OnCondHorizHinge15(wxCommandEvent& event);
void OnCondHorizHinge30(wxCommandEvent& event);
void OnCondHorizStddev(wxCommandEvent& event);
void OnCondHorizNatBrks1(wxCommandEvent& event);
void OnCondHorizNatBrks2(wxCommandEvent& event);
void OnCondHorizNatBrks3(wxCommandEvent& event);
void OnCondHorizNatBrks4(wxCommandEvent& event);
void OnCondHorizNatBrks5(wxCommandEvent& event);
void OnCondHorizNatBrks6(wxCommandEvent& event);
void OnCondHorizNatBrks7(wxCommandEvent& event);
void OnCondHorizNatBrks8(wxCommandEvent& event);
void OnCondHorizNatBrks9(wxCommandEvent& event);
void OnCondHorizNatBrks10(wxCommandEvent& event);
void ChangeToCondHorizNatBrks(int num_cats);
void OnCondHorizEquInts1(wxCommandEvent& event);
void OnCondHorizEquInts2(wxCommandEvent& event);
void OnCondHorizEquInts3(wxCommandEvent& event);
void OnCondHorizEquInts4(wxCommandEvent& event);
void OnCondHorizEquInts5(wxCommandEvent& event);
void OnCondHorizEquInts6(wxCommandEvent& event);
void OnCondHorizEquInts7(wxCommandEvent& event);
void OnCondHorizEquInts8(wxCommandEvent& event);
void OnCondHorizEquInts9(wxCommandEvent& event);
void OnCondHorizEquInts10(wxCommandEvent& event);
void ChangeToCondHorizEquInts(int num_cats);
void OnCondHorizUniqueValues(wxCommandEvent& event);
void OnCondVertThemelessMap(wxCommandEvent& event);
void OnCondVertQuant1(wxCommandEvent& event);
void OnCondVertQuant2(wxCommandEvent& event);
void OnCondVertQuant3(wxCommandEvent& event);
void OnCondVertQuant4(wxCommandEvent& event);
void OnCondVertQuant5(wxCommandEvent& event);
void OnCondVertQuant6(wxCommandEvent& event);
void OnCondVertQuant7(wxCommandEvent& event);
void OnCondVertQuant8(wxCommandEvent& event);
void OnCondVertQuant9(wxCommandEvent& event);
void OnCondVertQuant10(wxCommandEvent& event);
void ChangeToCondVertQuant(int num_cats);
void OnCondVertPercentile(wxCommandEvent& event);
void OnCondVertHinge15(wxCommandEvent& event);
void OnCondVertHinge30(wxCommandEvent& event);
void OnCondVertStddev(wxCommandEvent& event);
void OnCondVertNatBrks1(wxCommandEvent& event);
void OnCondVertNatBrks2(wxCommandEvent& event);
void OnCondVertNatBrks3(wxCommandEvent& event);
void OnCondVertNatBrks4(wxCommandEvent& event);
void OnCondVertNatBrks5(wxCommandEvent& event);
void OnCondVertNatBrks6(wxCommandEvent& event);
void OnCondVertNatBrks7(wxCommandEvent& event);
void OnCondVertNatBrks8(wxCommandEvent& event);
void OnCondVertNatBrks9(wxCommandEvent& event);
void OnCondVertNatBrks10(wxCommandEvent& event);
void ChangeToCondVertNatBrks(int num_cats);
void OnCondVertEquInts1(wxCommandEvent& event);
void OnCondVertEquInts2(wxCommandEvent& event);
void OnCondVertEquInts3(wxCommandEvent& event);
void OnCondVertEquInts4(wxCommandEvent& event);
void OnCondVertEquInts5(wxCommandEvent& event);
void OnCondVertEquInts6(wxCommandEvent& event);
void OnCondVertEquInts7(wxCommandEvent& event);
void OnCondVertEquInts8(wxCommandEvent& event);
void OnCondVertEquInts9(wxCommandEvent& event);
void OnCondVertEquInts10(wxCommandEvent& event);
void ChangeToCondVertEquInts(int num_cats);
void OnCondVertUniqueValues(wxCommandEvent& event);
void OnSaveResults(wxCommandEvent& event);
void OnHistogramIntervals(wxCommandEvent& event);
void OnSaveConnectivityToTable(wxCommandEvent& event);
void OnSelectIsolates(wxCommandEvent& event);
void OnRan99Per(wxCommandEvent& event);
void OnRan199Per(wxCommandEvent& event);
void OnRan499Per(wxCommandEvent& event);
void OnRan999Per(wxCommandEvent& event);
void OnRanOtherPer(wxCommandEvent& event);
void OnUseSpecifiedSeed(wxCommandEvent& event);
void OnSpecifySeedDlg(wxCommandEvent& event);
void OnSaveMoranI(wxCommandEvent& event);
void OnSigFilter05(wxCommandEvent& event);
void OnSigFilter01(wxCommandEvent& event);
void OnSigFilter001(wxCommandEvent& event);
void OnSigFilter0001(wxCommandEvent& event);
void OnSigFilterSetup(wxCommandEvent& event);
void OnSaveGetisOrd(wxCommandEvent& event);
void OnSaveLisa(wxCommandEvent& event);
void OnSaveColocation(wxCommandEvent& event);
void OnSelectCores(wxCommandEvent& event);
void OnSelectNeighborsOfCores(wxCommandEvent& event);
void OnSelectCoresAndNeighbors(wxCommandEvent& event);
void OnAddNeighborToSelection(wxCommandEvent& event);
void OnShowAsConditionalMap(wxCommandEvent& event);
void OnDisplayWeightsGraph(wxCommandEvent& event);
void OnDisplayMapWithGraph(wxCommandEvent& event);
void OnChangeGraphThickness(wxCommandEvent& event);
void OnChangeGraphColor(wxCommandEvent& event);
void OnChangeConnSelectedColor(wxCommandEvent& event);
void OnChangeConnSelectedFillColor(wxCommandEvent& event);
void OnChangeNeighborFillColor(wxCommandEvent& event);
void OnChangeConnRootSize(wxCommandEvent& event);
void OnChangeConnRootColor(wxCommandEvent& event);
void OnAddMeanCenters(wxCommandEvent& event);
void OnAddCentroids(wxCommandEvent& event);
void OnDisplayMeanCenters(wxCommandEvent& event);
void OnDisplayCentroids(wxCommandEvent& event);
void OnDisplayVoronoiDiagram(wxCommandEvent& event);
void OnExportVoronoi(wxCommandEvent& event);
void OnExportMeanCntrs(wxCommandEvent& event);
void OnExportCentroids(wxCommandEvent& event);
void OnSaveVoronoiDupsToTable(wxCommandEvent& event);
void OnDisplayPrecision(wxCommandEvent& event);
// ScatterPlot and PCP specific callbacks
void OnViewStandardizedData(wxCommandEvent& event);
void OnViewOriginalData(wxCommandEvent& event);
// ScatterPlot specific callbacks
void OnViewLinearSmoother(wxCommandEvent& event);
void OnViewLowessSmoother(wxCommandEvent& event);
void OnEditLowessParams(wxCommandEvent& event);
void OnEditVariables(wxCommandEvent& event);
void OnSaveStatsToCsv(wxCommandEvent& event);
void OnViewRegimesRegression(wxCommandEvent& event);
void OnViewRegressionSelectedExcluded(wxCommandEvent& event);
void OnViewRegressionSelected(wxCommandEvent& event);
void OnCompareRegimes(wxCommandEvent& event);
void OnCompareTimePeriods(wxCommandEvent& event);
void OnCompareRegAndTmPer(wxCommandEvent& event);
void OnDisplayStatistics(wxCommandEvent& event);
void OnShowAxesThroughOrigin(wxCommandEvent& event);
// BoxPlot and Histogram specific callback
void OnShowAxes(wxCommandEvent& event);
// Conditional Scatter Plot
void OnDisplayAxesScaleValues(wxCommandEvent& event);
void OnDisplaySlopeValues(wxCommandEvent& event);
void OnTimeSyncVariable(int var_index);
void OnTimeSyncVariable1(wxCommandEvent& event);
void OnTimeSyncVariable2(wxCommandEvent& event);
void OnTimeSyncVariable3(wxCommandEvent& event);
void OnTimeSyncVariable4(wxCommandEvent& event);
void OnFixedScaleVariable(int var_index);
void OnFixedScaleVariable1(wxCommandEvent& event);
void OnFixedScaleVariable2(wxCommandEvent& event);
void OnFixedScaleVariable3(wxCommandEvent& event);
void OnFixedScaleVariable4(wxCommandEvent& event);
void OnPlotsPerView(int plots_per_view);
void OnPlotsPerView1(wxCommandEvent& event);
void OnPlotsPerView2(wxCommandEvent& event);
void OnPlotsPerView3(wxCommandEvent& event);
void OnPlotsPerView4(wxCommandEvent& event);
void OnPlotsPerView5(wxCommandEvent& event);
void OnPlotsPerView6(wxCommandEvent& event);
void OnPlotsPerView7(wxCommandEvent& event);
void OnPlotsPerView8(wxCommandEvent& event);
void OnPlotsPerView9(wxCommandEvent& event);
void OnPlotsPerView10(wxCommandEvent& event);
void OnPlotsPerViewOther(wxCommandEvent& event);
void OnPlotsPerViewAll(wxCommandEvent& event);
void OnDisplayStatusBar(wxCommandEvent& event);
void OnDonate(wxCommandEvent& event);
void OnHelpAbout(wxCommandEvent& event);
void OnReportBug(wxCommandEvent& event);
void OnCheckUpdates(wxCommandEvent& event);
void OnCheckTestMode(wxCommandEvent& event);
void OnTableSetLocale(wxCommandEvent& event);
void OnEncodingUTF8(wxCommandEvent& event);
void OnEncodingUTF16(wxCommandEvent& event);
void OnEncodingWindows1250(wxCommandEvent& event);
void OnEncodingWindows1251(wxCommandEvent& event);
void OnEncodingWindows1254(wxCommandEvent& event);
void OnEncodingWindows1255(wxCommandEvent& event);
void OnEncodingWindows1256(wxCommandEvent& event);
void OnEncodingWindows1258(wxCommandEvent& event);
void OnEncodingCP852(wxCommandEvent& event);
void OnEncodingCP866(wxCommandEvent& event);
void OnEncodingISO8859_1(wxCommandEvent& event);
void OnEncodingISO8859_2(wxCommandEvent& event);
void OnEncodingISO8859_3(wxCommandEvent& event);
void OnEncodingISO8859_5(wxCommandEvent& event);
void OnEncodingISO8859_7(wxCommandEvent& event);
void OnEncodingISO8859_8(wxCommandEvent& event);
void OnEncodingISO8859_9(wxCommandEvent& event);
void OnEncodingISO8859_10(wxCommandEvent& event);
void OnEncodingISO8859_15(wxCommandEvent& event);
void OnEncodingGB2312(wxCommandEvent& event);
void OnEncodingBIG5(wxCommandEvent& event);
void OnEncodingKOI8_R(wxCommandEvent& event);
void OnEncodingSHIFT_JIS(wxCommandEvent& event);
void OnEncodingEUC_JP(wxCommandEvent& event);
void OnEncodingEUC_KR(wxCommandEvent& event);
void OnRecentDSClick(wxCommandEvent& event);
void SetEncodingCheckmarks(wxFontEncoding e);
void DisplayRegression(const wxString dump);
void UpdateToolbarAndMenus();
void SetMenusToDefault();
void RemoveInvalidRecentDS();
void OnEmptyCustomCategoryClick(wxCommandEvent& event);
void OnCustomCategoryClick(wxCommandEvent& event);
void OnCustomCategoryClick_B(wxCommandEvent& event);
void OnCustomCategoryClick_C(wxCommandEvent& event);
void UpdateRecentDatasourceMenu();
static Project* GetProject() { return projectOpen ? project_p : 0; }
static GdaFrame* GetGdaFrame() { return gda_frame; }
static bool IsProjectOpen();
struct MenuItem {
MenuItem(const wxString& t, const wxString& u) :menu_title(t), url(u){};
wxString menu_title;
wxString url;
};
static bool GetHtmlMenuItems();
// GetHtmlMenuItems helper functions
static bool GetHtmlMenuItemsJson();
static bool GetHtmlMenuItemsSqlite();
static int sqlite3_GetHtmlMenuItemsCB(void *data, int argc,
char **argv, char **azColName);
void CheckUpdate();
void InitWithProject(wxString gda_file_path=wxEmptyString);
protected:
static std::vector<MenuItem> htmlMenuItems;
static void SetProjectOpen(bool open);
static GdaFrame* gda_frame;
static Project* project_p;
static bool projectOpen;
static std::list<wxAuiToolBar*> toolbar_list;
DECLARE_EVENT_TABLE()
};
/** This helper class is a workaround for an issue that is currently unique
to LineChartCanvas, but might apply to other views in the future.
Several menu items in LineChartCanvas result in an action that deletes
the current LineChartCanvas from the parent Frame. This timer class
decouples the this action from the original wxWidgets menu popup callback
by calling the indended callback again after a 100 ms delay. */
class LineChartEventDelay : public wxTimer
{
public:
LineChartEventDelay();
LineChartEventDelay(LineChartFrame* lc_frame, const wxString& cb_name);
virtual ~LineChartEventDelay();
LineChartFrame* lc_frame;
wxString cb_name;
virtual void Notify();
};
#endif