/* Copyright (C) 2020-2020, Dirk Krause SPDX-License-Identifier: BSD-3-Clause */ /* WARNING: This file was generated by the dkct program (see http://dktools.sourceforge.net/ for details). Changes you make here will be lost if dkct is run again! You should modify the original source and run dkct on it. Original source: WxdkdrawDlgOptionsScreen.wxc */ /** @file WxdkdrawDlgOptionsScreen.h Header file for the WxdkdrawDlgOptionsScreen module. */ #ifndef WXDKDRAWDLGOPTIONSSCREEN_H_INCLUDED /** Avoid multiple inclusions. */ #define WXDKDRAWDLGOPTIONSSCREEN_H_INCLUDED 1 #line 84 "WxdkdrawDlgOptionsScreen.wxc" #ifndef WXDKDRAW_H_INCLUDED #include "wxdkdraw.h" #endif #ifndef WXDKDRAWFRAME_H_INCLUDED #include "WxdkdrawFrame.h" #endif #line 94 "WxdkdrawDlgOptionsScreen.wxc" /** Dialog to change dot details. */ class WxdkdrawDlgOptionsScreen : public wxDialog { private: /** Events to process. */ #if wxCHECK_VERSION(3,0,0) wxDECLARE_EVENT_TABLE(); #else DECLARE_EVENT_TABLE() #endif /** Flag: GUI ok. */ bool dkctGUILayoutOK; /** GUI element sizerHorizontal. */ #line 11 "WxdkdrawDlgOptionsScreen.wxc" wxBoxSizer *sizerHorizontal; /** GUI element sizerVertical. */ #line 17 "WxdkdrawDlgOptionsScreen.wxc" wxBoxSizer *sizerVertical; /** GUI element sizerContents. */ #line 25 "WxdkdrawDlgOptionsScreen.wxc" wxGridBagSizer *sizerContents; /** GUI element sizerButtons. */ #line 67 "WxdkdrawDlgOptionsScreen.wxc" wxStdDialogButtonSizer *sizerButtons; /** GUI element lTexts. */ #line 38 "WxdkdrawDlgOptionsScreen.wxc" wxStaticText *lTexts; /** GUI element cbTexts. */ #line 41 "WxdkdrawDlgOptionsScreen.wxc" wxCheckBox *cbTexts; /** GUI element lSplines. */ #line 46 "WxdkdrawDlgOptionsScreen.wxc" wxStaticText *lSplines; /** GUI element lSubsegs. */ #line 49 "WxdkdrawDlgOptionsScreen.wxc" wxStaticText *lSubsegs; /** GUI element spSubsegs. */ #line 52 "WxdkdrawDlgOptionsScreen.wxc" wxSpinCtrl *spSubsegs; /** GUI element lPointMoveOps. */ #line 58 "WxdkdrawDlgOptionsScreen.wxc" wxStaticText *lPointMoveOps; /** GUI element cbPointMoveOps. */ #line 61 "WxdkdrawDlgOptionsScreen.wxc" wxCheckBox *cbPointMoveOps; /** GUI element buttonOK. */ #line 72 "WxdkdrawDlgOptionsScreen.wxc" wxButton *buttonOK; /** GUI element buttonCancel. */ #line 77 "WxdkdrawDlgOptionsScreen.wxc" wxButton *buttonCancel; #line 110 "WxdkdrawDlgOptionsScreen.wxc" protected: /** Red colour for group titles. */ wxColour m_oColourRed; /** Parent frame. */ WxdkdrawFrame *m_pParent; /** Drawing control to refresh on changes. */ wxControl *m_pControl; /** Entire drawing. */ Wxd_drawing_t *m_pDrw; /** Localized text fragments. */ wxChar const * const *m_sTexts; /** Address of subsegments variable. */ int *m_pSubsegs; /** Address of exact fonts variable. */ int *m_pExact; /** Address of variable for markup reduction. */ int *m_pReduceMarkup; /** Initial value for number of subsegments. */ int m_iSubsegments; /** Initial value for exact font flag. */ int m_iExact; /** Initial value for markup reduction. */ int m_iReduceMarkup; public: /** Control events. */ enum { WXD_ID_SUBSEGS = (wxID_HIGHEST + 1), /**< Subsegs changed. */ WXD_ID_EXACT , /**< Use exact fonts. */ WXD_ID_POINT_OPS , /**< Reduce markup. */ }; /** Constructor. @param pParent Parent frame (programs main window). @param pControl Drawing control. @param pDrw Drawing. @param pSubsegs Address of sub-segments variable. @param pExact Address of exact font variables. @param pReduce Address of variable to reduce markup. @param pTexts Localized text fragments. */ WxdkdrawDlgOptionsScreen( WxdkdrawFrame *pParent, wxControl *pControl, Wxd_drawing_t *pDrw, int *pSubsegs, int *pExact, int *pReduce, wxChar const * const *pTexts ); /** OK button handler. @param event Event to process. */ void OnOK(wxCommandEvent & event); /** Cancel button handler. @param event Event to process. */ void OnCancel(wxCommandEvent & event); /** Subsegs spin control handler. @param event Event to process. */ void OnSubsegs(wxSpinEvent & event); /** Handler for checkbox change. @param event Event to process. */ void OnFontExact(wxCommandEvent & event); /** Handler for reduce markup checkbox change. @param event Event to process. */ void OnMarkupReduce(wxCommandEvent & event); }; #line 220 "WxdkdrawDlgOptionsScreen.wxc" #endif