/* 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: Bmpp4App.cpt */ #ifndef BMPP4APP_H_INCLUDED /** Avoid multiple inclusions. */ #define BMPP4APP_H_INCLUDED 1 #line 12 "Bmpp4App.cpt" /** @file Bmpp4App.h The Bmpp4App class. */ /* The program may be invoked in 2 variants wxbmpp [] * NO -l OPTION SPECIFIED, RUN AS NORMAL GUI APPLICATION * Restore all settings made in the GUI previously * Restore directory if not specified on command line * Do not run automatically * Save directory if not specified on command line * Save all settings made in the GUI * When running retrieve current settings from GUI wxbmpp -l[.language],... [] * WITH -l OPTION AUTOMATICALLY START CONVERSION FOR SPECIFIED FILE * Do not restore settings * Apply settings in the -l option * Run automatically, exit after running * Do not save settings * Do not save file * Use settings from the -l option */ /** Application class, derived from wxApp, one instance per program. */ class Bmpp4App : public wxApp { protected: /** Helper object. */ Dk4WxApplicationHelper *pAh; /** Controller fr online help. */ Dk4WxHelpController *pHc; /* __CHANGE__ 009: Add further members here. */ /** Graphics output configuration. */ dk4_gra_conf_t graconf; /** Array of known paper sizes. */ dk4_paper_size_t *pPaperSizes; /** Paper size names correspondig to the pPaperSizes items. */ wxArrayString *pasPaperSizes; /** Directory name, allocated. */ wxChar *pDirname; /** Number of paper sizes in pasPaperSizes. */ 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; protected: /** Show error message if there is not enough memory available. */ void ShowMemoryErrorMessage(void); /** Process command line arguments and initialize components. @return True on success (can continue), false on error (abort). */ bool ProcessOptionsAndInitializeComponents( wxChar const * const *localizedTexts ); /** Process command line arguments. @return True on success (can continue), false on error (abort). */ bool ProcessOptions( dk4_app_t *app, wxChar const * const *localizedTexts ); public: /** Application initialization. @return true on success, false on error. */ virtual bool OnInit(); /** Application shutdown. @return 0 on success, any other value indicates an error. */ virtual int OnExit(); }; /** Declaration as the wxApp object. */ #if wxCHECK_VERSION(3,0,0) wxDECLARE_APP(Bmpp4App); #else DECLARE_APP(Bmpp4App) #endif /* vim: set ai sw=4 ts=4 : */ #endif