I have this code in c++ wxwidgets 3.1.4: #ifndef GAMESH #define GAMESH #include "Game.h"…
Jump to turn (7)
- 1I have this code in c++ wxwidgets 3.1.4: #ifndef GAMESH #define GAMESH #include
- 2give me an alternative to this
- 3src\Games.cpp|57|error: no matching function for call to 'wxGridEvent::wxGridEve
- 4C:\wxWidgets-3.1.4\include\wx\event.h|408|error: invalid conversion from 'wxEven
- 5didn't solved the problem, the error happened because of the bind method you pos
- 6src\FrameMain.cpp|28|error: invalid use of non-static data member 'Games::CUSTOM
- 7C:\wxWidgets-3.1.4\include\wx\event.h|408|error: invalid conversion from 'wxEven
- User
I have this code in c++ wxwidgets 3.1.4:
#ifndef GAMES_H #define GAMES_H
#include "Game.h" #include "CompletionStatus.h"
#include #include #include <wx/grid.h> #include <wx/event.h>
class Games : public wxEvtHandler { public: Games(int cols); virtual ~Games();
codeint GetNumberRows() const { return games.size(); } int GetNumberCols() const { return columns; } wxString GetValue(int row, int col); void SetValue(int row, int col, const wxString& value); wxString GetColLabelValue(int col) const; void AddGame(const Game& game); void ModifyGame(int row, const Game& game); void DeleteGame(int row); private: wxString GetCompletionStatusString(CompletionStatus status); CompletionStatus GetCompletionStatusFromString(wxString status); int GetIntFromString(wxString value); std::vector<Game> games; int columns;