/* WARNING: This file was generated by dkct. 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 */ /* Copyright (C) 2015-2017, Dirk Krause Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above opyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the author nor the names of contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /** @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. */ DECLARE_EVENT_TABLE() 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 155 "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 244 "Dk4FcsFrame.wxc" #endif