eliot-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Eliot-dev] Changes to eliot/wxwin/gfxresult.cc [antoine-1]


From: eliot-dev
Subject: [Eliot-dev] Changes to eliot/wxwin/gfxresult.cc [antoine-1]
Date: Sun, 23 Oct 2005 16:59:36 -0400

Index: eliot/wxwin/gfxresult.cc
diff -u eliot/wxwin/gfxresult.cc:1.1.2.2 eliot/wxwin/gfxresult.cc:1.1.2.3
--- eliot/wxwin/gfxresult.cc:1.1.2.2    Sun Oct 23 19:12:15 2005
+++ eliot/wxwin/gfxresult.cc    Sun Oct 23 20:58:21 2005
@@ -17,8 +17,6 @@
 /* along with this program; if not, write to the Free Software               */
 /* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA 
*/
 
-/* $Id: gfxresult.cc,v 1.1.2.2 2005/10/23 19:12:15 ipkiss Exp $ */
-
 /**
  *  \file   reslist.cc
  *  \brief  Search results list view
@@ -31,6 +29,7 @@
 #include "ewx.h"
 #include "dic.h"
 #include "game.h"
+#include "player.h"
 #include "training.h"
 #include "configdb.h"
 #include "gfxresult.h"
@@ -52,8 +51,8 @@
 /* ************************************************** */
 /* ************************************************** */
 
-GfxResult::GfxResult(wxFrame *parent, MainFrame* _mf, Game* _game) : 
-    wxControl(parent, wxWindowID(234), wxDefaultPosition, wxDefaultSize, 
+GfxResult::GfxResult(wxFrame *parent, MainFrame* _mf, Game* _game) :
+    wxControl(parent, wxWindowID(234), wxDefaultPosition, wxDefaultSize,
              wxNO_BORDER | wxFULL_REPAINT_ON_RESIZE)
 {
     mf = _mf;
@@ -141,13 +140,13 @@
 
     results->DeleteAllItems();
     results->SetFont(config.getFont(LISTFONT));
-    
+
     //debug("   GfxResult::Search size = 
%d\n",((Training*)game)->getResults().size());
     for (int i = 0; i < ((Training*)game)->getResults().size(); i++)
        {
            Round r = ((Training*)game)->getResults().get(i);
            //debug("    adding %s\n",r.toString().c_str());
-           wxString pts;           
+           wxString pts;
            wxString word   = wxU(r.getWord().c_str());
            wxString coords = wxU(r.getCoord().toString().c_str());
            wxChar   bonus  = r.getBonus() ?  wxT('*') : wxT(' ');
@@ -159,12 +158,12 @@
            tmp = results->SetItem(i, 2, coords);
            tmp = results->SetItem(i, 3, pts);
        }
-    
+
     for (int i = 0; i < 4; i++)
         results->SetColumnWidth(i, wxLIST_AUTOSIZE);
-    
+
     // results->Show();
-    
+
     if (((Training*)game)->getResults().size() > 0)
        {
            results->SetItemState(0, wxLIST_STATE_SELECTED, 
wxLIST_STATE_SELECTED | wxLIST_MASK_STATE);
@@ -179,7 +178,7 @@
 GfxResult::GetSelected()
 {
     int item = -1;
-    item = results->GetNextItem(item,wxLIST_NEXT_ALL,wxLIST_STATE_SELECTED); 
+    item = results->GetNextItem(item,wxLIST_NEXT_ALL,wxLIST_STATE_SELECTED);
     //debug("GfxResult::GetSelected = %d\n",item);
     return item;
 }
@@ -193,7 +192,7 @@
     //debug("   GfxResult::OnListCtrlSelected\n");
     if (event.m_itemIndex > -1)
        {
-           mf->TestPlay(event.m_itemIndex); 
+           mf->TestPlay(event.m_itemIndex);
        }
 }
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]