/[eliot]/eliot/wxwin/mainframe.cc
ViewVC logotype

Diff of /eliot/wxwin/mainframe.cc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.10 by ipkiss, Sun Oct 23 14:53:44 2005 UTC revision 1.11 by ipkiss, Fri Nov 4 20:00:06 2005 UTC
# Line 16  Line 16 
16  /* along with this program; if not, write to the Free Software               */  /* along with this program; if not, write to the Free Software               */
17  /* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */  /* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */
18    
 /* $Id$ */  
   
19  #include <stdlib.h>  #include <stdlib.h>
20  #include <stdio.h>  #include <stdio.h>
21  #include <iostream>  #include <iostream>
# Line 220  MainFrame::MainFrame(wxPoint pos_, wxSiz Line 218  MainFrame::MainFrame(wxPoint pos_, wxSiz
218      else      else
219        {        {
220          wxCommandEvent event;          wxCommandEvent event;
221          OnMenuConfGameDic(event);                OnMenuConfGameDic(event);
222          m_game = NULL;          m_game = NULL;
223        }        }
224      m_game = GameFactory::Instance()->createTraining(m_dic);      m_game = GameFactory::Instance()->createTraining(m_dic);
# Line 243  MainFrame::~MainFrame() Line 241  MainFrame::~MainFrame()
241          GameFactory::Instance()->releaseGame(*m_game);          GameFactory::Instance()->releaseGame(*m_game);
242          m_game = NULL;          m_game = NULL;
243        }        }
244        
245      if (m_dic)      if (m_dic)
246        {        {
247          Dic_destroy(m_dic);          Dic_destroy(m_dic);
# Line 961  MainFrame::InitFrames() Line 959  MainFrame::InitFrames()
959    auxframes_ptr[ ID_Frame_Benj   ] = new BenjFrame  (this, *m_game, results);    auxframes_ptr[ ID_Frame_Benj   ] = new BenjFrame  (this, *m_game, results);
960    auxframes_ptr[ ID_Frame_Bag    ] = new BagFrame   (this, *m_game);    auxframes_ptr[ ID_Frame_Bag    ] = new BagFrame   (this, *m_game);
961    auxframes_ptr[ ID_Frame_Board  ] = new BoardFrame (this, *m_game);    auxframes_ptr[ ID_Frame_Board  ] = new BoardFrame (this, *m_game);
962      
963    for (int i = MIN_FRAME_ID; i < MAX_FRAME_ID; i++)    for (int i = MIN_FRAME_ID; i < MAX_FRAME_ID; i++)
964      {      {
965        auxframes_ptr[i]->Reload();        auxframes_ptr[i]->Reload();
# Line 998  MainFrame::UpdateFrames(refresh_t force) Line 996  MainFrame::UpdateFrames(refresh_t force)
996      for (int id = 0; id < MAX_FRAME_ID; id++)      for (int id = 0; id < MAX_FRAME_ID; id++)
997      {      {
998          if (auxframes_ptr[id])          if (auxframes_ptr[id])
999            {                  {
1000              // debug("UpdateFrames %d\n",id);              // debug("UpdateFrames %d\n",id);
1001              auxframes_ptr[id]->Refresh(force);              auxframes_ptr[id]->Refresh(force);
1002            }            }

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26