gfxresult.h

Go to the documentation of this file.
00001 /* Eliot                                                                     */
00002 /* Copyright (C) 2005  Antoine Fraboulet                                     */
00003 /*                                                                           */
00004 /* This file is part of Eliot.                                               */
00005 /*                                                                           */
00006 /* Eliot is free software; you can redistribute it and/or modify             */
00007 /* it under the terms of the GNU General Public License as published by      */
00008 /* the Free Software Foundation; either version 2 of the License, or         */
00009 /* (at your option) any later version.                                       */
00010 /*                                                                           */
00011 /* Eliot is distributed in the hope that it will be useful,                  */
00012 /* but WITHOUT ANY WARRANTY; without even the implied warranty of            */
00013 /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             */
00014 /* GNU General Public License for more details.                              */
00015 /*                                                                           */
00016 /* You should have received a copy of the GNU General Public License         */
00017 /* along with this program; if not, write to the Free Software               */
00018 /* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */
00019 
00020 /**
00021  *  \file   reslist.h
00022  *  \brief  Search results list view
00023  *  \author Antoine Fraboulet
00024  *  \date   2005
00025  */
00026 
00027 #ifndef _RESLIST_H
00028 #define _RESLIST_H
00029 
00030 /**
00031  *
00032  */
00033 #include <wx/listctrl.h>
00034 
00035 class MainFrame;
00036 
00037 class GfxResult : public wxControl
00038 {
00039  private:
00040     MainFrame    *mf;
00041     std::string  savedrack;
00042     Game         *game;
00043     wxListCtrl   *results;
00044     ConfigDB     config;
00045 
00046  public:
00047     GfxResult(wxFrame*, MainFrame*, Game*);
00048     ~GfxResult();
00049 
00050     void SetGame(Game*);
00051     void Search();
00052     int  GetSelected();
00053     void Refresh();
00054 
00055     void OnSize(wxSizeEvent& e);
00056     void OnListCtrlSelected(wxListEvent& event);
00057     void OnListCtrlActivated(wxListEvent& event);
00058 
00059     DECLARE_EVENT_TABLE()
00060 };
00061 
00062 
00063 #endif
00064 
00065 /// Local Variables:
00066 /// mode: c++
00067 /// mode: hs-minor
00068 /// c-basic-offset: 4
00069 /// End:

Generated on Thu Dec 29 02:01:15 2005 for Eliot by  doxygen 1.4.5