/* 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: WxdkdrawDlgOptionsNewObjects.wxc */ /** @file WxdkdrawDlgOptionsNewObjects.h Header file for the WxdkdrawDlgOptionsNewObjects module. */ #ifndef WXDKDRAWDLGOPTIONSNEWOBJECTS_H_INCLUDED /** Avoid multiple inclusions. */ #define WXDKDRAWDLGOPTIONSNEWOBJECTS_H_INCLUDED 1 #line 75 "WxdkdrawDlgOptionsNewObjects.wxc" #ifndef WXDKDRAW_H_INCLUDED #include "wxdkdraw.h" #endif #ifndef WXDKDRAWFRAME_H_INCLUDED #include "WxdkdrawFrame.h" #endif #line 85 "WxdkdrawDlgOptionsNewObjects.wxc" /** Dialog to change dot details. */ class WxdkdrawDlgOptionsNewObjects : 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 "WxdkdrawDlgOptionsNewObjects.wxc" wxBoxSizer *sizerHorizontal; /** GUI element sizerVertical. */ #line 17 "WxdkdrawDlgOptionsNewObjects.wxc" wxBoxSizer *sizerVertical; /** GUI element sizerContents. */ #line 25 "WxdkdrawDlgOptionsNewObjects.wxc" wxGridBagSizer *sizerContents; /** GUI element sizerButtons. */ #line 59 "WxdkdrawDlgOptionsNewObjects.wxc" wxStdDialogButtonSizer *sizerButtons; /** GUI element lGroupDotFilled. */ #line 36 "WxdkdrawDlgOptionsNewObjects.wxc" wxStaticText *lGroupDotFilled; /** GUI element lDiameterFilled. */ #line 39 "WxdkdrawDlgOptionsNewObjects.wxc" wxStaticText *lDiameterFilled; /** GUI element spDiameterFilled. */ #line 42 "WxdkdrawDlgOptionsNewObjects.wxc" wxSpinCtrl *spDiameterFilled; /** GUI element lGroupDotWhite. */ #line 47 "WxdkdrawDlgOptionsNewObjects.wxc" wxStaticText *lGroupDotWhite; /** GUI element lDiameterWhite. */ #line 50 "WxdkdrawDlgOptionsNewObjects.wxc" wxStaticText *lDiameterWhite; /** GUI element spDiameterWhite. */ #line 53 "WxdkdrawDlgOptionsNewObjects.wxc" wxSpinCtrl *spDiameterWhite; /** GUI element buttonOK. */ #line 64 "WxdkdrawDlgOptionsNewObjects.wxc" wxButton *buttonOK; /** GUI element buttonCancel. */ #line 69 "WxdkdrawDlgOptionsNewObjects.wxc" wxButton *buttonCancel; #line 101 "WxdkdrawDlgOptionsNewObjects.wxc" protected: wxColour m_oColourRed; /** Parent frame. */ WxdkdrawFrame *m_pParent; /** Localized text fragments. */ wxChar const * const *m_sTexts; /** Address of filled dot diameter variable. */ int *m_pFilled; /** Address of white dot diameter variable. */ int *m_pWhite; /** Diameter of filled dots. */ int m_iDiameterFilled; /** Diameter of white filled dots. */ int m_iDiameterWhite; public: /** Constructor. @param pParent Parent frame (programs main window). @param pFilled Address of filled dot diameter variable. @param pWhite Address of white filled dot diameter variable. @param pTexts Localized text fragments. */ WxdkdrawDlgOptionsNewObjects( WxdkdrawFrame *pParent, int *pFilled, int *pWhite, 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); /** Retrieve diameter for filled dots. @return Diameter for filled dots. */ int GetFilledDotDiameter(void); /** Retrieve diameter for white filled dots. @return Diameter for white filled dots. */ int GetWhiteDotDiameter(void); }; #line 173 "WxdkdrawDlgOptionsNewObjects.wxc" #endif