/* Copyright (C) 2019-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: WxdkdrawDlgFillStyle.wxc */ /** @file WxdkdrawDlgFillStyle.h Header file for the WxdkdrawDlgFillStyle module. */ #ifndef WXDKDRAWDLGFILLSTYLE_H_INCLUDED /** Avoid multiple inclusions. */ #define WXDKDRAWDLGFILLSTYLE_H_INCLUDED 1 #line 179 "WxdkdrawDlgFillStyle.wxc" #ifndef WXDKDRAW_H_INCLUDED #include "wxdkdraw.h" #endif #ifndef WXDKDRAWFRAME_H_INCLUDED #include "WxdkdrawFrame.h" #endif #line 189 "WxdkdrawDlgFillStyle.wxc" /** Dialog to modify fill style. */ class WxdkdrawDlgFillStyle : public wxDialog { private: /** Events to handle. */ #if wxCHECK_VERSION(3,0,0) wxDECLARE_EVENT_TABLE(); #else DECLARE_EVENT_TABLE() #endif protected: /** Parent frame. */ WxdkdrawFrame *m_pParent; /** Object to modify. */ Wxd_object_t *m_pObject; /** Selected fill style. */ uint8_t m_uFillStyleCurrent; /** Original fill style when starting dialog. */ uint8_t m_uFillStyleOriginal; /** Is drawing element (true) or default style object (false). */ bool m_bDrwElem; public: /** Window IDs for buttons. */ enum { WXD_ID_FS_NONE = (wxID_HIGHEST + 1), /**< No fill. */ WXD_ID_FS_PURE , /**< Pure colour fill. */ WXD_ID_FS_LEFT_DIAG_30 , /**< 30 degree diagonal left lines. */ WXD_ID_FS_RIGHT_DIAG_30 , /**< 30 degree diagonal right lines. */ WXD_ID_FS_SIEVE_30 , /**< 30 degree diagonal sieve. */ WXD_ID_FS_LEFT_DIAG_45 , /**< 45 degree diagonal left lines. */ WXD_ID_FS_RIGHT_DIAG_45 , /**< 45 degree diagonal right lines. */ WXD_ID_FS_SIEVE_45 , /**< 45 degree diagonal sieve. */ WXD_ID_FS_BRICKS_HOR , /**< Horizontal bricks. */ WXD_ID_FS_BRICKS_VER , /**< Vertical bricks. */ WXD_ID_FS_LINES_HOR , /**< Horizontal lines. */ WXD_ID_FS_LINES_VER , /**< Vertical lines. */ WXD_ID_FS_SIEVE_HOR_VER , /**< Horizontal-vertical sieve. */ WXD_ID_FS_SHINGLES_HOR_1 , /**< Horizontal shingles 1. */ WXD_ID_FS_SHINGLES_HOR_2 , /**< Horizontal shingles 2. */ WXD_ID_FS_SHINGLES_VER_1 , /**< Vertical shingles 1. */ WXD_ID_FS_SHINGLES_VER_2 , /**< Vertical shingles 2. */ WXD_ID_FS_FISH_SCALES_L , /**< Large fish scales. */ WXD_ID_FS_FISH_SCALES_S , /**< Small fish scales. */ WXD_ID_FS_CIRCLES , /**< Circles. */ WXD_ID_FS_HEXAGONS , /**< Hexagons. */ WXD_ID_FS_OCTAGONS , /**< Octagons. */ WXD_ID_FS_TIRES_HOR , /**< Horizontal tire treads. */ WXD_ID_FS_TIRES_VER /**< Vertical tire treads. */ }; /** Constructor. @param pParent Applications main frame. @param pObject Object to modify. @param pTexts Localized text fragments. @param pImages Images for line style buttons. @param bDrwElem Is drawing element (true) or default (false). */ WxdkdrawDlgFillStyle( WxdkdrawFrame *pParent, Wxd_object_t *pObject, wxChar const * const *pTexts, const char ** const *pImages, bool bDrwElem ); /** Handler for fill style buttons. @param event Event to process. */ void OnFillStyle(wxCommandEvent & event); /** Handler for Cancel button. @param event Event to process. */ void OnCancel(wxCommandEvent & event); /** Flag: GUI ok. */ bool dkctGUILayoutOK; /** GUI element sizerHorizontal. */ #line 12 "WxdkdrawDlgFillStyle.wxc" wxBoxSizer *sizerHorizontal; /** GUI element sizerVertical. */ #line 18 "WxdkdrawDlgFillStyle.wxc" wxBoxSizer *sizerVertical; /** GUI element sizerContents. */ #line 26 "WxdkdrawDlgFillStyle.wxc" wxGridBagSizer *sizerContents; /** GUI element buttonCancel. */ #line 173 "WxdkdrawDlgFillStyle.wxc" wxButton *buttonCancel; /** GUI element b00. */ #line 53 "WxdkdrawDlgFillStyle.wxc" wxBitmapButton *b00; /** GUI element b01. */ #line 58 "WxdkdrawDlgFillStyle.wxc" wxBitmapButton *b01; /** GUI element b02. */ #line 63 "WxdkdrawDlgFillStyle.wxc" wxBitmapButton *b02; /** GUI element b03. */ #line 68 "WxdkdrawDlgFillStyle.wxc" wxBitmapButton *b03; /** GUI element b04. */ #line 73 "WxdkdrawDlgFillStyle.wxc" wxBitmapButton *b04; /** GUI element b05. */ #line 78 "WxdkdrawDlgFillStyle.wxc" wxBitmapButton *b05; /** GUI element b06. */ #line 83 "WxdkdrawDlgFillStyle.wxc" wxBitmapButton *b06; /** GUI element b07. */ #line 88 "WxdkdrawDlgFillStyle.wxc" wxBitmapButton *b07; /** GUI element b08. */ #line 93 "WxdkdrawDlgFillStyle.wxc" wxBitmapButton *b08; /** GUI element b09. */ #line 98 "WxdkdrawDlgFillStyle.wxc" wxBitmapButton *b09; /** GUI element b10. */ #line 103 "WxdkdrawDlgFillStyle.wxc" wxBitmapButton *b10; /** GUI element b11. */ #line 108 "WxdkdrawDlgFillStyle.wxc" wxBitmapButton *b11; /** GUI element b12. */ #line 113 "WxdkdrawDlgFillStyle.wxc" wxBitmapButton *b12; /** GUI element b13. */ #line 118 "WxdkdrawDlgFillStyle.wxc" wxBitmapButton *b13; /** GUI element b14. */ #line 123 "WxdkdrawDlgFillStyle.wxc" wxBitmapButton *b14; /** GUI element b15. */ #line 128 "WxdkdrawDlgFillStyle.wxc" wxBitmapButton *b15; /** GUI element b16. */ #line 133 "WxdkdrawDlgFillStyle.wxc" wxBitmapButton *b16; /** GUI element b17. */ #line 138 "WxdkdrawDlgFillStyle.wxc" wxBitmapButton *b17; /** GUI element b18. */ #line 143 "WxdkdrawDlgFillStyle.wxc" wxBitmapButton *b18; /** GUI element b19. */ #line 148 "WxdkdrawDlgFillStyle.wxc" wxBitmapButton *b19; /** GUI element b20. */ #line 153 "WxdkdrawDlgFillStyle.wxc" wxBitmapButton *b20; /** GUI element b21. */ #line 158 "WxdkdrawDlgFillStyle.wxc" wxBitmapButton *b21; /** GUI element b22. */ #line 163 "WxdkdrawDlgFillStyle.wxc" wxBitmapButton *b22; /** GUI element b23. */ #line 168 "WxdkdrawDlgFillStyle.wxc" wxBitmapButton *b23; #line 285 "WxdkdrawDlgFillStyle.wxc" }; #line 289 "WxdkdrawDlgFillStyle.wxc" #endif