#ifndef WXGUI_HPP #define WXGUI_HPP #include #include #include #include #include #include #include "fbgui/fbgui.h" #include "crossgen.hpp" #include "fsettings.hpp" #ifndef APP_CATALOG #define APP_CATALOG "app" // replace with the appropriate catalog name #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); MainFrame( wxWindow* parent): VMainFrame(parent) { _isDictLoaded = false; srand(time(NULL)); } void onExitClick( wxCloseEvent& event ) { event.Skip(); } void onOpenGridClick( wxCommandEvent& event ); void onGenerateClick( wxCommandEvent& event ); void onSettingsClick( wxCommandEvent& event ); void onExportClick( wxCommandEvent& event ); void onExitClick( wxCommandEvent& event ) { Close(); } void onAboutClick( wxCommandEvent& event ) { wxAboutDialogInfo info; 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 // WXGUI_HPP