#ifndef FMAIN_HPP #define FMAIN_HPP #include #include #include #include #include #include #include #include "fbgui/fbgui.h" #include "settingsconsts.hpp" #include "crossgen.hpp" #include "crossexport.hpp" #include "fsettings.hpp" #ifndef APP_CATALOG #define APP_CATALOG "CrossGen" #endif class MainFrame: public VMainFrame { protected: std::vector _ans; std::vector _ques; DictType _dict; bool _isDictLoaded; AllWordsType _allWords; CharsTransType _transType; GridType _grid; public: void SetGridImage(GridType &grid, size_t w=400); void procDict(wxString path); void saveConfig(); MainFrame( wxWindow* parent); void onWindowClose( wxCloseEvent& event ); void onOpenGridClick( wxCommandEvent& event ); void onGenerateClick( wxCommandEvent& event ); void onSettingsClick( wxCommandEvent& event ); void onExportClick( wxCommandEvent& event ); void onExitClick( wxCommandEvent& event ); void onAboutClick( wxCommandEvent& event ) { wxAboutDialogInfo info; info.SetVersion(wxT("1.0")); info.AddDeveloper(_("Aleksey Lobanov")); info.SetDescription(_("Simple GUI cross-generation application. Yet another bike")); info.SetName(wxTheApp->GetAppName()); info.SetWebSite(wxT("http://likemath.ru")); wxAboutBox(info); } }; #endif // FMAIN_HPP