Files
CrossGen/wxCrossGen/wxgui.hpp
Aleksey Lobanov 68376baa4a Added exporting.
A lot of changes: GUI changed, added exporting(not completed yet) to txt
2015-06-17 17:21:46 +03:00

54 lines
1.3 KiB
C++

// generated by wxGlade 0.6.8 on Wed May 20 12:40:03 2015
#ifndef WXGUI_HPP
#define WXGUI_HPP
#include <ctime>
#include <map>
#include <wx/wx.h>
#include <wx/image.h>
#include "wx/intl.h"
#include "crossgen.hpp"
#include "fbgui/fbgui.h"
#ifndef APP_CATALOG
#define APP_CATALOG "app" // replace with the appropriate catalog name
#endif
class MainFrame: public VMainFrame {
protected:
std::vector<wxString> _ans;
DictType _dict;
bool _isDictLoaded;
AllWordsType _allWords;
CharsTransType _transType;
GridType _grid;
public:
void SetGridImage(GridType &grid, size_t w=400);
MainFrame(
wxWindow* parent,
wxWindowID id = wxID_ANY,
const wxString& title = _("CrossGen"),
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxSize( 700,500 ),
long style = wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL )
: VMainFrame(parent){
_isDictLoaded = false;
srand(time(NULL));
}
void onExitClick( wxCloseEvent& event ) { event.Skip(); }
void onOpenGridClick( wxCommandEvent& event );
void onGenerateClick( wxCommandEvent& event );
void onExportClick( wxCommandEvent& event );
void onExitClick( wxCommandEvent& event ) { event.Skip(); }
void onAboutClick( wxCommandEvent& event ) { event.Skip(); }
};
#endif // WXGUI_HPP