273 public wxScrollingDialog
277 explicit options(wxWindow *parent, wxWindowID
id = SYMBOL_OPTIONS_IDNAME,
278 const wxString &caption = SYMBOL_OPTIONS_TITLE,
279 const wxPoint &pos = SYMBOL_OPTIONS_POSITION,
280 const wxSize &size = SYMBOL_OPTIONS_SIZE,
281 long style = SYMBOL_OPTIONS_STYLE);
284#if wxCHECK_VERSION(3, 0, 0)
285 bool SendIdleEvents(wxIdleEvent &event);
287 void SetInitialPage(
int page_sel,
int sub_page = -1);
290 void OnClose(wxCloseEvent &event);
292 void CreateListbookIcons();
293 void CreateControls(
void);
294 size_t CreatePanel(
const wxString &title);
295 wxScrolledWindow *AddPage(
size_t parent,
const wxString &title);
296 bool DeletePluginPage(wxScrolledWindow *page);
297 void SetColorScheme(ColorScheme cs);
298 void RecalculateSize(
int hint_x,
int hint_y);
300 void SetInitChartDir(
const wxString &dir) { m_init_chart_dir = dir; }
301 void SetInitialSettings(
void);
302 void SetInitialVectorSettings(
void);
304 void SetCurrentDirList(ArrayOfCDI p) { m_CurrentDirList = p; }
305 void SetWorkDirListPtr(ArrayOfCDI *p) { m_pWorkDirList = p; }
306 ArrayOfCDI *GetWorkDirListPtr(
void) {
return m_pWorkDirList; }
308 void AddChartDir(
const wxString &dir);
310 void UpdateDisplayedChartDirList(ArrayOfCDI p);
311 void UpdateOptionsUnits(
void);
313 void SetConfigPtr(
MyConfig *p) { m_pConfig = p; }
314 void OnDebugcheckbox1Click(wxCommandEvent &event);
315 void OnDirctrlSelChanged(wxTreeEvent &event);
316 void OnButtonaddClick(wxCommandEvent &event);
317 void OnButtondeleteClick(wxCommandEvent &event);
318 void OnButtonParseENC(wxCommandEvent &event);
319 void OnButtoncompressClick(wxCommandEvent &event);
320 void OnButtonmigrateClick(wxCommandEvent &event);
321 void OnButtonEcdisHelp(wxCommandEvent &event);
322 void OnRadioboxSelected(wxCommandEvent &event);
323 void OnApplyClick(wxCommandEvent &event);
324 void OnXidOkClick(wxCommandEvent &event);
325 void OnCancelClick(wxCommandEvent &event);
326 void OnChooseFont(wxCommandEvent &event);
327 void OnFontChoice(wxCommandEvent &event);
328 void OnCPAWarnClick(wxCommandEvent &event);
329 void OnSyncCogPredClick(wxCommandEvent &event);
330 void OnSizeAutoButton(wxCommandEvent &event);
331 void OnSizeManualButton(wxCommandEvent &event);
333#if defined(__WXGTK__) || defined(__WXQT__)
334 void OnChooseFontColor(wxCommandEvent &event);
336 void OnGLClicked(wxCommandEvent &event);
337 void OnOpenGLOptions(wxCommandEvent &event);
338 void OnDisplayCategoryRadioButton(wxCommandEvent &event);
339 void OnButtonClearClick(wxCommandEvent &event);
340 void OnButtonSelectClick(wxCommandEvent &event);
341 void OnButtonSetStd(wxCommandEvent &event);
343 void OnPageChange(wxListbookEvent &event);
344 void OnTopNBPageChange(wxNotebookEvent &event);
345 void OnSubNBPageChange(wxNotebookEvent &event);
346 void DoOnPageChange(
size_t page);
348 wxString SelectSoundFile();
349 void OnButtonSelectSound(wxCommandEvent &event);
350 void OnButtonTestSound(wxCommandEvent &event);
352 void OnShowGpsWindowCheckboxClick(wxCommandEvent &event);
353 void OnZTCCheckboxClick(wxCommandEvent &event);
354 void OnRadarringSelect(wxCommandEvent &event);
355 void OnWaypointRangeRingSelect(wxCommandEvent &event);
356 void OnShipTypeSelect(wxCommandEvent &event);
357 void OnButtonGroups(wxCommandEvent &event);
358 void OnInsertTideDataLocation(wxCommandEvent &event);
359 void OnRemoveTideDataLocation(wxCommandEvent &event);
360 void OnCharHook(wxKeyEvent &event);
361 void OnChartsPageChange(wxListbookEvent &event);
362 void OnChartDirListSelect(wxCommandEvent &event);
363 void OnUnitsChoice(wxCommandEvent &event);
365 void UpdateWorkArrayFromDisplayPanel(
void);
366 ArrayOfCDI GetSelectedChartDirs();
367 ArrayOfCDI GetUnSelectedChartDirs();
368 void SetDirActionButtons();
370 void OnCreateConfig(wxCommandEvent &event);
371 void OnEditConfig(wxCommandEvent &event);
372 void OnDeleteConfig(wxCommandEvent &event);
373 void OnApplyConfig(wxCommandEvent &event);
374 void SetConfigButtonState();
375 void ClearConfigList();
376 void BuildConfigList();
377 void OnConfigMouseSelected(wxMouseEvent &event);
378 void OnDialogInit(wxInitDialogEvent &event);
380 bool GetNeedNew() {
return m_bneedNew; }
381 void SetNeedNew(
bool bnew) { m_bneedNew = bnew; }
382 int GetScrollRate() {
return m_scrollRate; }
383 void SetForceNewToolbarOnCancel(
bool val) {
384 m_bForceNewToolbaronCancel = val;
387 wxArrayString *GetSerialArray() {
return m_pSerialArray; }
390 static bool ShowToolTips(
void);
392#ifdef __OCPN__OPTIONS_USE_LISTBOOK__
393 wxListbook *m_pListbook;
395 wxNotebook *m_pListbook;
398 size_t m_pageDisplay, m_pageConnections, m_pageCharts, m_pageShips;
399 size_t m_pageUI, m_pagePlugins;
400 int lastPage, lastSubPage;
401 wxPoint lastWindowPos;
402 wxSize lastWindowSize;
403 wxButton *m_ApplyButton, *m_OKButton, *m_CancelButton;
405 ChartGroupArray *m_pGroupArray;
406 int m_groups_changed;
409 wxSizerFlags inputFlags, verticleInputFlags, labelFlags, groupInputFlags;
410 wxSizerFlags groupLabelFlags, groupLabelFlagsHoriz;
413 wxScrolledWindow *pDisplayPanel;
414 wxCheckBox *pShowStatusBar, *pShowMenuBar, *pShowChartBar, *pShowCompassWin;
415 wxCheckBox *pPrintShowIcon, *pCDOOutlines, *pSDepthUnits, *pSDisplayGrid;
416 wxCheckBox *pAutoAnchorMark, *pCDOQuilting, *pCBRaster, *pCBVector;
417 wxCheckBox *pCBCM93, *pCBLookAhead, *pSkewComp, *pOpenGL, *pSmoothPanZoom;
418 wxCheckBox *pFullScreenQuilt, *pMobile, *pResponsive, *pOverzoomEmphasis;
419 wxCheckBox *pOZScaleVector, *pToolbarAutoHideCB, *pInlandEcdis, *pRollover;
420 wxCheckBox *pZoomButtons, *pChartBarEX;
421 wxTextCtrl *pCOGUPUpdateSecs, *m_pText_OSCOG_Predictor, *pScreenMM;
422 wxTextCtrl *pToolbarHideSecs, *m_pText_OSHDT_Predictor, *m_pTxt_OwnMMSI;
433 wxTextCtrl *pCmdSoundString;
435 wxChoice *m_pShipIconType, *m_pcTCDatasets;
436 wxSlider *m_pSlider_Zoom_Raster, *m_pSlider_GUI_Factor,
437 *m_pSlider_Chart_Factor, *m_pSlider_Ship_Factor, *m_pSlider_Text_Factor,
438 *m_pSlider_ENCText_Factor;
439 wxSlider *m_pMouse_Zoom_Slider;
440 wxSlider *m_pSlider_Zoom_Vector;
441 wxSlider *m_pSlider_CM93_Zoom;
443 wxCheckBox *pSLiveETA;
444 wxTextCtrl *pSDefaultBoatSpeed;
446 wxRadioButton *pCBCourseUp, *pCBNorthUp, *pRBSizeAuto, *pRBSizeManual;
450 wxStaticText *itemStaticTextUserVar;
451 wxStaticText *itemStaticTextUserVar2;
452 wxButton *m_configDeleteButton, *m_configApplyButton;
454 void OnAISRolloverClick(wxCommandEvent &event);
455 void UpdateChartDirList();
457 void OnCanvasConfigSelectClick(
int ID,
bool selected);
464 wxBoxSizer *vectorPanel;
465 wxScrolledWindow *ps57Ctl;
469 wxChoice *pDispCat, *pPointStyle, *pBoundStyle, *p24Color;
470 wxButton *itemButtonClearList, *itemButtonSelectList, *itemButtonSetStd;
471 wxCheckBox *pCheck_SOUNDG, *pCheck_META, *pCheck_SHOWIMPTEXT;
472 wxCheckBox *pCheck_SCAMIN, *pCheck_SuperSCAMIN;
473 wxCheckBox *pCheck_ATONTEXT, *pCheck_LDISTEXT;
474 wxCheckBox *pCheck_XLSECTTEXT, *pCheck_DECLTEXT, *pCheck_NATIONALTEXT;
475 wxCheckBox *pSEnableCM93Offset;
476 wxTextCtrl *m_ShallowCtl, *m_SafetyCtl, *m_DeepCtl;
477 wxStaticText *m_depthUnitsShal, *m_depthUnitsSafe, *m_depthUnitsDeep;
481 wxChoice *pSDMMFormat, *pDistanceFormat, *pSpeedFormat, *pDepthUnitSelect,
482 *pTempFormat, *pWindSpeedFormat;
483 wxCheckBox *pCBTrueShow, *pCBMagShow;
487 wxStaticBoxSizer *activeSizer;
488 wxBoxSizer *chartPanel;
491 ArrayOfCDI ActiveChartArray;
493 wxStaticBox *itemActiveChartStaticBox;
494 wxCheckBox *pUpdateCheckBox, *pScanCheckBox;
495 wxButton *pParseENCButton;
496 wxButton *m_removeBtn, *m_compressBtn;
497 wxButton *m_migrateBtn;
500 wxBoxSizer *boxSizerCharts;
501 wxScrolledWindow *m_scrollWinChartList;
502 wxScrolledWindow *chartPanelWin;
503 wxBoxSizer *cmdButtonSizer;
504 wxStaticBox *loadedBox;
505 std::vector<OCPNChartDirPanel *> panelVector;
506 wxArrayString activeChartList;
509 wxScrolledWindow *m_ChartDisplayPage;
512 wxCheckBox *m_pCheck_CPA_Max, *m_pCheck_CPA_Warn, *m_pCheck_CPA_WarnT;
513 wxCheckBox *m_pCheck_Mark_Lost, *m_pCheck_Remove_Lost;
514 wxCheckBox *m_pCheck_Show_COG, *m_pCheck_Sync_OCOG_ACOG;
515 wxCheckBox *m_pCheck_Show_Tracks, *m_pCheck_Hide_Moored,
516 *m_pCheck_Scale_Priority;
517 wxCheckBox *m_pCheck_AlertDialog, *m_pCheck_AlertAudio;
518 wxCheckBox *m_pCheck_Alert_Moored, *m_pCheck_Rollover_Class;
519 wxCheckBox *m_pCheck_Rollover_COG, *m_pCheck_Rollover_CPA;
520 wxCheckBox *m_pCheck_Ack_Timout, *m_pCheck_Show_Area_Notices;
521 wxCheckBox *m_pCheck_Draw_Target_Size, *m_pCheck_Draw_Realtime_Prediction;
522 wxCheckBox *m_pCheck_Show_Target_Name;
523 wxChoice *m_pWplAction;
524 wxCheckBox *m_pCheck_use_Wpl, *m_pCheck_ShowAllCPA;
525 wxTextCtrl *m_pText_CPA_Max, *m_pText_CPA_Warn, *m_pText_CPA_WarnT;
526 wxTextCtrl *m_pText_Mark_Lost, *m_pText_Remove_Lost, *m_pText_COG_Predictor;
527 wxTextCtrl *m_pText_Track_Length, *m_pText_Moored_Speed,
528 *m_pText_Scale_Priority;
529 wxTextCtrl *m_pText_ACK_Timeout, *m_pText_Show_Target_Name_Scale;
530 wxTextCtrl *m_pText_RealtPred_Speed;
533 wxScrolledWindow *m_DisplayConfigsPage;
537 wxStaticText *m_Text_def_boat_speed;
540 wxScrolledWindow *m_scrollWinConfigList;
541 wxStaticText *m_templateTitleText;
542 wxStaticText *m_staticTextLastAppled;
543 wxStaticBoxSizer *m_templateStatusBoxSizer;
546 wxFlexGridSizer *realSizes;
547 wxTextCtrl *m_pOSLength, *m_pOSWidth, *m_pOSGPSOffsetX, *m_pOSGPSOffsetY;
548 wxTextCtrl *m_pOSMinSize, *m_pText_ACRadius;
549 wxStaticBoxSizer *dispOptions, *dispWaypointOptions;
550 wxScrolledWindow *itemPanelShip, *itemPanelRoutes;
551 wxBoxSizer *ownShip, *Routes;
552 wxCheckBox *pShowshipToActive;
553 wxChoice *m_shipToActiveStyle, *m_shipToActiveColor;
557 wxCheckBox *pScaMinChckB, *pScaMinOverruleChckB;
558 wxTextCtrl *m_pText_ScaMin;
561 wxBoxSizer *m_itemBoxSizerFontPanel;
562 wxChoice *m_itemFontElementListBox, *m_itemStyleListBox, *m_itemLangListBox;
563 wxStaticText *m_textSample;
567 wxComboBox *m_itemAISListBox;
573 wxScrolledWindow *itemPanelPlugins;
574 wxBoxSizer *itemBoxSizerPanelPlugins;
575 wxFlexGridSizer *radarGrid, *waypointradarGrid;
576 wxChoice *pNavAidRadarRingsNumberVisible, *pWaypointRangeRingsNumber;
578 wxChoice *m_itemRadarRingsUnits, *m_itemWaypointRangeRingsUnits;
581 wxChoice *pTrackPrecision;
582 wxTextCtrl *pNavAidRadarRingsStep, *pWaypointRangeRingsStep;
583 wxCheckBox *pSogCogFromLLCheckBox;
584 wxSpinCtrl *pSogCogFromLLDampInterval;
585 wxTextCtrl *m_pText_TP_Secs, *m_pText_TP_Dist;
586 wxCheckBox *pWayPointPreventDragging, *pConfirmObjectDeletion;
587 wxCheckBox *pEnableZoomToCursor, *pPreserveScale, *pPlayShipsBells;
588 wxCheckBox *pTransparentToolbar;
589 wxCheckBox *pAdvanceRouteWaypointOnArrivalOnly, *pTrackShowIcon;
590 wxCheckBox *pTrackDaily, *pTrackHighlite;
591 wxStaticText *pStatic_CallSign;
593#if wxCHECK_VERSION(2, 9, 0)
594#if wxUSE_TIMEPICKCTRL
598 wxTimePickerCtrl *pTrackRotateTime;
602 wxRadioButton *pTrackRotateComputerTime, *pTrackRotateUTC, *pTrackRotateLMT;
604 wxChoice *pSoundDeviceIndex;
605 wxStaticText *stSoundDeviceIndex;
607 wxArrayPtrVoid OBJLBoxArray;
608 wxString m_init_chart_dir;
609 wxArrayString *m_pSerialArray;
611 ArrayOfCDI m_CurrentDirList, *m_pWorkDirList;
616 bool m_bForceNewToolbaronCancel;
624 void OnUXAudioEnableButtonClickAIS(wxCommandEvent &event);
625 void OnUXAudioEnableButtonClickSART(wxCommandEvent &event);
626 void OnUXAudioEnableButtonClickDSC(wxCommandEvent &event);
634 void CreatePanel_MMSI(
size_t parent,
int border_size,
int group_item_spacing);
635 void CreatePanel_AIS(
size_t parent,
int border_size,
int group_item_spacing);
636 void CreatePanel_Ownship(
size_t parent,
int border_size,
637 int group_item_spacing);
638 void CreatePanel_NMEA(
size_t parent,
int border_size,
int group_item_spacing);
639 void CreatePanel_ChartsLoad(
size_t parent,
int border_size,
640 int group_item_spacing);
641 void CreatePanel_VectorCharts(
size_t parent,
int border_size,
642 int group_item_spacing);
643 void CreatePanel_TidesCurrents(
size_t parent,
int border_size,
644 int group_item_spacing);
645 void CreatePanel_ChartGroups(
size_t parent,
int border_size,
646 int group_item_spacing);
647 void CreatePanel_Display(
size_t parent,
int border_size,
648 int group_item_spacing);
649 void CreatePanel_UI(
size_t parent,
int border_size,
int group_item_spacing);
650 void CreatePanel_Units(
size_t parent,
int border_size,
651 int group_item_spacing);
652 void CreatePanel_Sounds(
size_t parent,
int border_size,
653 int group_item_spacing);
654 void CreatePanel_Advanced(
size_t parent,
int border_size,
655 int group_item_spacing);
656 void CreatePanel_Configs(
size_t parent,
int border_size,
657 int group_item_spacing);
658 void CreatePanel_Routes(
size_t parent,
int border_size,
659 int group_item_spacing);
661 void OnAlertEnableButtonClick(wxCommandEvent &event);
662 void OnAlertAudioEnableButtonClick(wxCommandEvent &event);
663 void OnResetFont(wxCommandEvent &event);
665 void UpdateTemplateTitleText();
666 void CheckDeviceAccess(wxString &path);
668 wxListCtrl *tcDataSelected;
669 std::vector<int> marinersStdXref;
671 wxImageList *m_topImgList;
673 wxCheckBox *m_persist_active_route_chkbox;
674 wxScrolledWindow *m_pNMEAForm;
675 void resetMarStdList(
bool bsetConfig,
bool bsetStd);
678 void ApplyChanges(wxCommandEvent &event);
680 unsigned int m_screenConfig;
682 wxNotebookPage *m_groupsPage;
686 wxSize m_small_button_size;
689 int m_fontHeight, m_scrollRate;
691 wxArrayString m_font_element_array;
695 wxBoxSizer *m_boxSizerConfigs;
696 wxColour m_panelBackgroundUnselected;
697 wxString m_selectedConfigPanelGUID;
698 wxSize m_colourPickerDefaultSize;
703 std::shared_ptr<ConnectionsDlg> comm_dialog;
705 DECLARE_EVENT_TABLE()