@@ -81,13 +81,13 @@ class s63_pi_event_handler : public wxEvtHandler
81
81
void OnImportPermitClick ( wxCommandEvent &event );
82
82
void OnRemovePermitClick ( wxCommandEvent &event );
83
83
void OnImportCellsClick ( wxCommandEvent &event );
84
- void OnSelectPermit ( wxListEvent& event );
85
- void OnNewUserpermitClick ( wxCommandEvent& event );
86
- void OnNewInstallpermitClick ( wxCommandEvent& event );
84
+ void OnSelectPermit ( wxListEvent& event );
85
+ void OnNewUserpermitClick ( wxCommandEvent& event );
86
+ void OnNewInstallpermitClick ( wxCommandEvent& event );
87
87
void OnImportCertClick ( wxCommandEvent &event );
88
88
void OnNewFPRClick ( wxCommandEvent &event );
89
89
void OncbLogClick ( wxCommandEvent &event );
90
-
90
+
91
91
s63_pi *m_parent;
92
92
};
93
93
@@ -97,7 +97,7 @@ class Catalog_Entry31
97
97
public:
98
98
Catalog_Entry31 (){};
99
99
~Catalog_Entry31 (){};
100
-
100
+
101
101
wxString m_filename;
102
102
wxString m_comt;
103
103
};
@@ -129,7 +129,7 @@ class s63_pi : public opencpn_plugin_116
129
129
wxString GetLongDescription ();
130
130
bool RenderOverlay (wxDC &dc, PlugIn_ViewPort *vp);
131
131
bool RenderGLOverlay (wxGLContext *pcontext, PlugIn_ViewPort *vp);
132
-
132
+
133
133
wxArrayString GetDynamicChartClassNameArray ();
134
134
135
135
void OnSetupOptions ();
@@ -141,42 +141,43 @@ class s63_pi : public opencpn_plugin_116
141
141
int ImportCells ( void );
142
142
int ImportCert ( void );
143
143
void Set_FPR ();
144
-
144
+
145
145
void EnablePermitRemoveButton (bool benable){ m_buttonRemovePermit->Enable (benable); }
146
146
void GetNewUserpermit (void );
147
147
void GetNewInstallpermit (void );
148
-
148
+
149
149
bool SaveConfig ( void );
150
-
150
+
151
151
wxString GetCertificateDir ();
152
-
152
+
153
153
wxStaticText *m_up_text;
154
154
wxStaticText *m_ip_text;
155
155
wxStaticText *m_fpr_text;
156
-
156
+
157
157
wxScrolledWindow *m_s63chartPanelWinTop;
158
158
wxPanel *m_s63chartPanelWin;
159
159
wxPanel *m_s63chartPanelKeys;
160
160
wxNotebook *m_s63NB;
161
-
161
+
162
162
private:
163
163
wxString GetPermitDir ();
164
-
164
+
165
165
void CreateCatalog31 (const wxString &file31);
166
-
166
+
167
167
int ProcessCellPermit ( wxString &permit, bool b_confirm_existing );
168
168
int AuthenticateCell ( const wxString & cell_file );
169
-
169
+
170
170
bool LoadConfig ( void );
171
-
171
+
172
172
int pi_error ( wxString msg );
173
-
173
+
174
174
wxArrayString m_class_name_array;
175
175
176
176
wxBitmap *m_pplugin_icon;
177
+ wxBitmap m_panelBitmap;
177
178
178
179
s63_pi_event_handler *m_event_handler;
179
-
180
+
180
181
OCPNPermitList *m_permit_list;
181
182
wxButton *m_buttonImportPermit;
182
183
wxButton *m_buttonRemovePermit;
@@ -185,23 +186,23 @@ class s63_pi : public opencpn_plugin_116
185
186
wxButton *m_buttonNewIP;
186
187
wxButton *m_buttonNewFPR;
187
188
wxCheckBox *m_cbLog;
188
-
189
+
189
190
wxFileConfig *m_pconfig;
190
191
wxString m_SelectPermit_dir;
191
192
192
193
wxString m_userpermit;
193
-
194
+
194
195
std::vector<Catalog_Entry31 *> m_catalog;
195
196
wxString m_last_enc_root_dir;
196
-
197
+
197
198
OCPNCertificateList *m_cert_list;
198
199
wxButton *m_buttonImportCert;
199
-
200
+
200
201
bool m_bSSE26_shown;
201
202
TexFont m_TexFontMessage;
202
-
203
-
204
-
203
+
204
+
205
+
205
206
};
206
207
207
208
@@ -211,37 +212,37 @@ class S63ScreenLog : public wxWindow
211
212
public:
212
213
S63ScreenLog (wxWindow *parent);
213
214
~S63ScreenLog ();
214
-
215
+
215
216
void LogMessage (wxString &s);
216
217
void ClearLog (void );
217
218
void ClearLogSeq (void ){ m_nseq = 0 ; }
218
-
219
+
219
220
void OnServerEvent (wxSocketEvent& event);
220
221
void OnSocketEvent (wxSocketEvent& event);
221
222
void OnSize ( wxSizeEvent& event);
222
-
223
-
224
- private:
223
+
224
+
225
+ private:
225
226
wxTextCtrl *m_plogtc;
226
227
unsigned int m_nseq;
227
-
228
+
228
229
wxSocketServer *m_server;
229
-
230
+
230
231
DECLARE_EVENT_TABLE ()
231
-
232
+
232
233
};
233
234
234
235
class S63ScreenLogContainer : public wxDialog
235
236
{
236
237
public:
237
238
S63ScreenLogContainer (wxWindow *parent);
238
239
~S63ScreenLogContainer ();
239
-
240
+
240
241
void LogMessage (wxString &s);
241
242
void ClearLog (void );
242
243
S63ScreenLog *m_slog;
243
-
244
- private:
244
+
245
+ private:
245
246
};
246
247
247
248
@@ -253,7 +254,7 @@ class OCPNPermitList : public wxListCtrl
253
254
public:
254
255
OCPNPermitList (wxWindow *parent);
255
256
~OCPNPermitList ();
256
-
257
+
257
258
void BuildList ( const wxString &permit_dir );
258
259
wxArrayString m_permit_file_array;
259
260
};
@@ -263,7 +264,7 @@ class OCPNCertificateList : public wxListCtrl
263
264
public:
264
265
OCPNCertificateList (wxWindow *parent);
265
266
~OCPNCertificateList ();
266
-
267
+
267
268
void BuildList ( const wxString &cert_dir );
268
269
// wxArrayString m_permit_file_array;
269
270
};
@@ -295,7 +296,7 @@ class GetUserpermitDialog: public wxDialog
295
296
{
296
297
DECLARE_DYNAMIC_CLASS ( GetUserpermitDialog )
297
298
DECLARE_EVENT_TABLE ()
298
-
299
+
299
300
public:
300
301
// / Constructors
301
302
GetUserpermitDialog ( );
@@ -304,33 +305,33 @@ class GetUserpermitDialog: public wxDialog
304
305
const wxPoint& pos = SYMBOL_GETUP_POSITION,
305
306
const wxSize& size = SYMBOL_GETUP_SIZE,
306
307
long style = SYMBOL_GETUP_STYLE );
307
-
308
+
308
309
~GetUserpermitDialog ();
309
-
310
+
310
311
// / Creation
311
312
bool Create ( wxWindow* parent, wxWindowID id = SYMBOL_GETUP_IDNAME,
312
313
const wxString& caption = SYMBOL_GETUP_TITLE,
313
314
const wxPoint& pos = SYMBOL_GETUP_POSITION,
314
315
const wxSize& size = SYMBOL_GETUP_SIZE, long style = SYMBOL_GETUP_STYLE );
315
-
316
-
316
+
317
+
317
318
void CreateControls ();
318
-
319
+
319
320
void OnCancelClick ( wxCommandEvent& event );
320
321
void OnOkClick ( wxCommandEvent& event );
321
322
void OnUpdated ( wxCommandEvent& event );
322
323
void OnTestClick ( wxCommandEvent& event );
323
-
324
+
324
325
// / Should we show tooltips?
325
326
static bool ShowToolTips ();
326
-
327
+
327
328
wxTextCtrl* m_PermitCtl;
328
329
wxButton* m_CancelButton;
329
330
wxButton* m_OKButton;
330
331
wxButton* m_testBtn;
331
332
wxStaticText* m_TestResult;
332
-
333
-
333
+
334
+
334
335
};
335
336
336
337
/* !
@@ -359,7 +360,7 @@ class GetInstallpermitDialog: public wxDialog
359
360
{
360
361
DECLARE_DYNAMIC_CLASS ( GetInstallpermitDialog )
361
362
DECLARE_EVENT_TABLE ()
362
-
363
+
363
364
public:
364
365
// / Constructors
365
366
GetInstallpermitDialog ( );
@@ -368,63 +369,63 @@ class GetInstallpermitDialog: public wxDialog
368
369
const wxPoint& pos = SYMBOL_GETIP_POSITION,
369
370
const wxSize& size = SYMBOL_GETIP_SIZE,
370
371
long style = SYMBOL_GETIP_STYLE );
371
-
372
+
372
373
~GetInstallpermitDialog ();
373
-
374
+
374
375
// / Creation
375
376
bool Create ( wxWindow* parent, wxWindowID id = SYMBOL_GETIP_IDNAME,
376
377
const wxString& caption = SYMBOL_GETIP_TITLE,
377
378
const wxPoint& pos = SYMBOL_GETIP_POSITION,
378
379
const wxSize& size = SYMBOL_GETIP_SIZE, long style = SYMBOL_GETIP_STYLE );
379
-
380
-
380
+
381
+
381
382
void CreateControls ();
382
-
383
+
383
384
void OnCancelClick ( wxCommandEvent& event );
384
385
void OnOkClick ( wxCommandEvent& event );
385
386
void OnUpdated ( wxCommandEvent& event );
386
387
void OnTestClick ( wxCommandEvent& event );
387
-
388
+
388
389
// / Should we show tooltips?
389
390
static bool ShowToolTips ();
390
-
391
+
391
392
wxTextCtrl* m_PermitCtl;
392
393
wxButton* m_CancelButton;
393
394
wxButton* m_OKButton;
394
395
wxButton* m_testBtn;
395
396
wxStaticText* m_TestResult;
396
-
397
-
397
+
398
+
398
399
};
399
400
400
401
class InfoWin : public wxWindow
401
402
{
402
403
public:
403
404
InfoWin ( wxWindow *parent, const wxString&s = _T(" " ), bool show_gauge = true );
404
405
~InfoWin ();
405
-
406
+
406
407
void SetString (const wxString &s);
407
408
const wxString& GetString (void ) { return m_string; }
408
-
409
+
409
410
void SetPosition ( wxPoint pt ){ m_position = pt; }
410
411
void SetWinSize ( wxSize sz ){ m_size = sz; }
411
412
void Realize ( void );
412
413
wxSize GetWinSize ( void ){ return m_size; }
413
414
void OnPaint ( wxPaintEvent& event );
414
415
void OnEraseBackground ( wxEraseEvent& event );
415
416
void OnTimer ( wxTimerEvent& event );
416
-
417
+
417
418
wxStaticText *m_pInfoTextCtl;
418
419
wxGauge *m_pGauge;
419
420
wxTimer m_timer;
420
-
421
+
421
422
private:
422
-
423
+
423
424
wxString m_string;
424
425
wxSize m_size;
425
426
wxPoint m_position;
426
427
bool m_bGauge;
427
-
428
+
428
429
DECLARE_EVENT_TABLE ()
429
430
};
430
431
@@ -433,29 +434,29 @@ class InfoWinDialog: public wxDialog
433
434
public:
434
435
InfoWinDialog ( wxWindow *parent, const wxString&s = _T(" " ), bool show_gauge = true );
435
436
~InfoWinDialog ();
436
-
437
+
437
438
void SetString (const wxString &s);
438
439
const wxString& GetString (void ) { return m_string; }
439
-
440
+
440
441
void SetPosition ( wxPoint pt ){ m_position = pt; }
441
442
void SetWinSize ( wxSize sz ){ m_size = sz; }
442
443
void Realize ( void );
443
444
wxSize GetWinSize ( void ){ return m_size; }
444
445
void OnPaint ( wxPaintEvent& event );
445
446
void OnEraseBackground ( wxEraseEvent& event );
446
447
void OnTimer ( wxTimerEvent& event );
447
-
448
+
448
449
wxStaticText *m_pInfoTextCtl;
449
450
wxGauge *m_pGauge;
450
451
wxTimer m_timer;
451
-
452
+
452
453
private:
453
-
454
+
454
455
wxString m_string;
455
456
wxSize m_size;
456
457
wxPoint m_position;
457
458
bool m_bGauge;
458
-
459
+
459
460
DECLARE_EVENT_TABLE ()
460
461
};
461
462
0 commit comments