/* Copyright (C) 2015-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: Dk4FcsFrame.wxc */ /** @file Dk4FcsFrame.h Header file for the Dk4FcsFrame module. */ #ifndef DK4FCSFRAME_H_INCLUDED /** Avoid multiple inclusions. */ #define DK4FCSFRAME_H_INCLUDED 1 #line 112 "Dk4FcsFrame.wxc" #line 116 "Dk4FcsFrame.wxc" class Dk4FcsFrame : public Dk4WxFrame { private: /** Event table for frame. */ #if wxCHECK_VERSION(3,0,0) wxDECLARE_EVENT_TABLE(); #else DECLARE_EVENT_TABLE() #endif protected: /** Autostart controller. */ Dk4WxAutostartController oAsc; /** Localized texts. */ wxChar const * const *sTexts; /** Non-localized texts. */ wxChar const * const *sNlWx; /** Non-localized texts. */ dkChar const * const *sNlDk; /** File name to process. */ wxString sFileName; /** Default directory. */ wxString sDirectory; /** Flag: Active (responding to idle events). */ bool bActive; /** Flag: GUI ok. */ bool dkctGUILayoutOK; /** Contents panel. */ wxPanel *dkctGUIContentsPanel; /** GUI element mainSizer. */ #line 57 "Dk4FcsFrame.wxc" wxBoxSizer *mainSizer; /** GUI element mbMain. */ #line 23 "Dk4FcsFrame.wxc" wxMenuBar *mbMain; /** GUI element menuFile. */ #line 27 "Dk4FcsFrame.wxc" wxMenu *menuFile; /** GUI element menuHelp. */ #line 42 "Dk4FcsFrame.wxc" wxMenu *menuHelp; /** GUI element miFileOpen. */ #line 32 "Dk4FcsFrame.wxc" wxMenuItem *miFileOpen; /** GUI element miFileExit. */ #line 37 "Dk4FcsFrame.wxc" wxMenuItem *miFileExit; /** GUI element miHelpAbout. */ #line 47 "Dk4FcsFrame.wxc" wxMenuItem *miHelpAbout; /** GUI element miHelpContents. */ #line 52 "Dk4FcsFrame.wxc" wxMenuItem *miHelpContents; /** GUI element verticalSizer. */ #line 65 "Dk4FcsFrame.wxc" wxBoxSizer *verticalSizer; /** GUI element contentsSizer. */ #line 73 "Dk4FcsFrame.wxc" wxGridBagSizer *contentsSizer; /** GUI element lFile. */ #line 83 "Dk4FcsFrame.wxc" wxStaticText *lFile; /** GUI element tFile. */ #line 86 "Dk4FcsFrame.wxc" wxStaticText *tFile; /** GUI element gResults. */ #line 89 "Dk4FcsFrame.wxc" wxGrid *gResults; #line 159 "Dk4FcsFrame.wxc" public: /** Constructor. @param wxid Window ID. @param applicationHelper Application helper object. @param hc Help controller for online help. @param argc Number of command line arguments. @param argv Command line arguments array. @param localizedTexts Localized wxChar texts. @param nlWx Non-localized wxChar texts. @param nlDk Non-localized dkChar texts. */ Dk4FcsFrame( int wxid, Dk4WxApplicationHelper *applicationHelper, Dk4WxHelpController *hc, int argc, wxChar **argv, wxChar const * const *localizedTexts, wxChar const * const *nlWx, dkChar const * const *nlDk ); /** Destructor. */ ~Dk4FcsFrame(); /** Check whether we can close the window. @param isFinal Flag: Last main window to close. */ bool CanClose(bool isFinal); /** Open a file and create checksums for it. @param event Event to process. */ void OnOpen(wxCommandEvent & event); /** Handler for File/Exit. @param event Event to process. */ void OnQuit(wxCommandEvent & event); /** Handler for Help/About. @param event Event to process. */ void OnAbout(wxCommandEvent & event); /** Handler for Help/Contents. @param event Event to process. */ void OnHelpContents(wxCommandEvent & event); /** Handler for idle events. */ void OnIdle(wxIdleEvent & event); /* Event handlers for further events. */ /* Further methods. */ private: /** Convert binary data to hex notation and set grid cell. @param rowno Row number in table. @param buf Buffer containing binary data. @param bytes Number of bytes in buffer. */ void SetCellValueBinary( int rowno, unsigned char *buf, size_t bytes ); /** Produce checksums. */ bool RunChecksumming(void); }; #line 248 "Dk4FcsFrame.wxc" #endif