/* Copyright (C) 2018-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: Bmpp4Frame.wxc */ /** @file Bmpp4Frame.h Header file for the Bmpp4Frame module. */ #ifndef BMPP4FRAME_H_INCLUDED /** Avoid multiple inclusions. */ #define BMPP4FRAME_H_INCLUDED 1 #line 273 "Bmpp4Frame.wxc" #line 277 "Bmpp4Frame.wxc" class Bmpp4Frame : public Dk4WxFrame { private: /** Event table for frame. */ #if wxCHECK_VERSION(3,0,0) wxDECLARE_EVENT_TABLE(); #else DECLARE_EVENT_TABLE() #endif private: /** Start time. */ dk4_time_t firsttime; /** We are already correcting GUI, no recursive attempt. */ bool bIsCorrecting; protected: /** Auto start controller. */ Dk4WxAutostartController oAsc; /** Text color for status text on error. */ wxColour cRed; /** Text color for status text on success. */ wxColour cGreen; /** Normal text color. */ wxColour cBlack; /** Localized texts. */ wxChar const * const *sTexts; /** Non-localized texts. */ wxChar const * const *sNlWx; /** Non-localized texts. */ dkChar const * const *sNlDk; /* __CHANGE__ 011: Add further member variables. */ /** Graphics output configuration. */ dk4_gra_conf_t graconf; /** Known paper sizes. */ dk4_paper_size_t *pPaperSizes; /** Paper sizes. */ wxArrayString asPaperSizes; /** Directory name. */ wxString sDirname; /** Number of paper sizes in asPaperSizes. */ size_t szPaperSizes; /** Restore and save graphics conversion settings. */ bool bRestoreGx; /** Restore and save Make mode setting. */ bool bRestoreMake; /** Restore and save location to process. */ bool bRestoreLocation; /** Make mode setting from options, if not restored. */ bool bMakeMode; /** Automatically start. */ bool bAutorun; /** Flag: Processing idle events. */ bool bActive; /** Flag: GUI ok. */ bool dkctGUILayoutOK; /** Contents panel. */ wxPanel *dkctGUIContentsPanel; /** GUI element mainSizer. */ #line 90 "Bmpp4Frame.wxc" wxBoxSizer *mainSizer; /** GUI element mbMain. */ #line 20 "Bmpp4Frame.wxc" wxMenuBar *mbMain; /** GUI element tbMain. */ #line 74 "Bmpp4Frame.wxc" wxToolBar *tbMain; /** GUI element menuFile. */ #line 26 "Bmpp4Frame.wxc" wxMenu *menuFile; /** GUI element menuConversion. */ #line 31 "Bmpp4Frame.wxc" wxMenu *menuConversion; /** GUI element menuExtras. */ #line 50 "Bmpp4Frame.wxc" wxMenu *menuExtras; /** GUI element menuHelp. */ #line 59 "Bmpp4Frame.wxc" wxMenu *menuHelp; /** GUI element miFileDirectory. */ #line 35 "Bmpp4Frame.wxc" wxMenuItem *miFileDirectory; /** GUI element miFileExit. */ #line 40 "Bmpp4Frame.wxc" wxMenuItem *miFileExit; /** GUI element miConversionRun. */ #line 45 "Bmpp4Frame.wxc" wxMenuItem *miConversionRun; /** GUI element miExtrasOptionReset. */ #line 54 "Bmpp4Frame.wxc" wxMenuItem *miExtrasOptionReset; /** GUI element miHelpAbout. */ #line 64 "Bmpp4Frame.wxc" wxMenuItem *miHelpAbout; /** GUI element miHelpContents. */ #line 69 "Bmpp4Frame.wxc" wxMenuItem *miHelpContents; /** GUI element bChooseDir. */ #line 78 "Bmpp4Frame.wxc" wxToolBarToolBase *bChooseDir; /** GUI element bRunConversion. */ #line 84 "Bmpp4Frame.wxc" wxToolBarToolBase *bRunConversion; /** GUI element verticalSizer. */ #line 96 "Bmpp4Frame.wxc" wxBoxSizer *verticalSizer; /** GUI element contentsSizer. */ #line 104 "Bmpp4Frame.wxc" wxGridBagSizer *contentsSizer; /** GUI element staticline0. */ #line 148 "Bmpp4Frame.wxc" wxStaticLine *staticline0; /** GUI element lDirectoryName. */ #line 151 "Bmpp4Frame.wxc" wxStaticText *lDirectoryName; /** GUI element staticline1. */ #line 156 "Bmpp4Frame.wxc" wxStaticLine *staticline1; /** GUI element cbMakeMode. */ #line 159 "Bmpp4Frame.wxc" wxCheckBox *cbMakeMode; /** GUI element cbColorOutput. */ #line 163 "Bmpp4Frame.wxc" wxCheckBox *cbColorOutput; /** GUI element lRgbToGray. */ #line 168 "Bmpp4Frame.wxc" wxStaticText *lRgbToGray; /** GUI element chRgbToGray. */ #line 171 "Bmpp4Frame.wxc" wxChoice *chRgbToGray; /** GUI element lOutputMode. */ #line 175 "Bmpp4Frame.wxc" wxStaticText *lOutputMode; /** GUI element chOutputMode. */ #line 178 "Bmpp4Frame.wxc" wxChoice *chOutputMode; /** GUI element cbImgInterpolation. */ #line 184 "Bmpp4Frame.wxc" wxCheckBox *cbImgInterpolation; /** GUI element lPsLevel. */ #line 189 "Bmpp4Frame.wxc" wxStaticText *lPsLevel; /** GUI element chPsLevel. */ #line 192 "Bmpp4Frame.wxc" wxChoice *chPsLevel; /** GUI element cbDsc. */ #line 197 "Bmpp4Frame.wxc" wxCheckBox *cbDsc; /** GUI element cbLzw. */ #line 201 "Bmpp4Frame.wxc" wxCheckBox *cbLzw; /** GUI element cbDct. */ #line 205 "Bmpp4Frame.wxc" wxCheckBox *cbDct; /** GUI element lPaperSize. */ #line 209 "Bmpp4Frame.wxc" wxStaticText *lPaperSize; /** GUI element chPaperSizes. */ #line 212 "Bmpp4Frame.wxc" wxChoice *chPaperSizes; /** GUI element cbRotation. */ #line 217 "Bmpp4Frame.wxc" wxCheckBox *cbRotation; /** GUI element cbDctInterpolation. */ #line 221 "Bmpp4Frame.wxc" wxCheckBox *cbDctInterpolation; /** GUI element lFinishing. */ #line 225 "Bmpp4Frame.wxc" wxStaticText *lFinishing; /** GUI element chFinishing. */ #line 228 "Bmpp4Frame.wxc" wxChoice *chFinishing; /** GUI element cbAnBpc. */ #line 233 "Bmpp4Frame.wxc" wxCheckBox *cbAnBpc; /** GUI element lResolution. */ #line 237 "Bmpp4Frame.wxc" wxStaticText *lResolution; /** GUI element chResolution. */ #line 240 "Bmpp4Frame.wxc" wxChoice *chResolution; /** GUI element tfResolution. */ #line 246 "Bmpp4Frame.wxc" wxTextCtrl *tfResolution; /** GUI element cbAnColor. */ #line 250 "Bmpp4Frame.wxc" wxCheckBox *cbAnColor; /** GUI element lBackground. */ #line 254 "Bmpp4Frame.wxc" wxStaticText *lBackground; /** GUI element ccBackground. */ #line 257 "Bmpp4Frame.wxc" Dk4WxColourView *ccBackground; /** GUI element cbBackground. */ #line 261 "Bmpp4Frame.wxc" wxCheckBox *cbBackground; /** GUI element cbAnAlpha. */ #line 265 "Bmpp4Frame.wxc" wxCheckBox *cbAnAlpha; #line 378 "Bmpp4Frame.wxc" public: /** Constructor. @param wxid Window ID. @param applicationHelper Application helper object. @param hc Help controller for online help. @param localizedTexts Localized wxChar texts. @param nlWx Non-localized wxChar texts. @param nlDk Non-localized dkChar texts. */ Bmpp4Frame( int wxid, Dk4WxApplicationHelper *applicationHelper, Dk4WxHelpController *hc, wxChar const * const *localizedTexts, wxChar const * const *nlWx, dkChar const * const *nlDk, dk4_gra_conf_t *pgc, wxArrayString *pPapSiz, wxChar *pDir, size_t szPap, bool bRGx, bool bRMa, bool bRLo, bool bMak, bool bRun, dk4_paper_size_t *pSizes ); /** Destructor. */ ~Bmpp4Frame(); /** Check whether we can close the window. @param isLast Flag: Last main window to close. */ bool CanClose(bool isFinal); /** Save current settings. */ void SaveSettings(void); /** Restore settings from previous session. */ void RestoreSettings(void); /** Modify enabled or disabled state of GUI components. */ void CorrectGUI(void); /** Check for documents whether paper size is usable. @return True on success, false on error. */ bool CheckPaperSizeForDocuments(void); /** Run Conversion. @return True on success, false on error. */ bool RunConversion(void); /** 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); /* __CHANGE__ 008: Remove OnIdle if no idle processing required. */ /** Handler for idle events. */ void OnIdle(wxIdleEvent & event); /* __CHANGE__ 017: Event handlers for further events. */ /** Handler for choose directory command. */ void OnChooseDirectory(wxCommandEvent & event); /** Handler for reset options command. */ void OnResetOptions(wxCommandEvent & event); /** Handler for run conversion command. */ void OnRunConversion(wxCommandEvent & event); /** Handler for output type change. */ void OnOutputType(wxCommandEvent & event); /** Handler for PS level change. */ void OnPSLevel(wxCommandEvent & event); /** Handler for resolution setting change. */ void OnResolution(wxCommandEvent & event); /** Handler for interpolation checkbox change. */ void OnInterpolationChange(wxCommandEvent & event); /** Handler for color output checkbox change. */ void OnColorOutput(wxCommandEvent & event); /* __CHANGE__ 014: Add further methods. */ /** Place configuration settings from graconf to GUI. */ void ConfigurationToGUI(void); /** Fill graconf from GUI. */ void ConfigurationFromGUI(void); }; #line 531 "Bmpp4Frame.wxc" /* vim: set ai sw=4 ts=4 : */ #endif