//
// $Source: /cvsroot/gambit/gambit/sources/gui/nfgpanel.h,v $
// $Date: 2006/11/11 17:30:25 $
// $Revision: 1.8 $
//
// DESCRIPTION:
// Panel to display normal form games in tabular format
//
// This file is part of Gambit
// Copyright (c) 2005, The Gambit Project
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
#ifndef NFGPANEL_H
#define NFGPANEL_H
#include "wx/sheet/sheet.h" // for wxSheet
class wxPrintout;
class gbtTableWidget;
class gbtNfgPanel : public wxPanel, public gbtGameView {
private:
wxWindow *m_dominanceToolbar, *m_playerToolbar;
gbtTableWidget *m_tableWidget;
void OnToolsDominance(wxCommandEvent &);
// Overriding gbtGameView members
void OnUpdate(void);
void PostPendingChanges(void);
public:
gbtNfgPanel(wxWindow *p_parent, gbtGameDocument *p_doc);
virtual ~gbtNfgPanel() { }
bool IsDominanceShown(void) const { return m_dominanceToolbar->IsShown(); }
/// @name Exporting/printing graphics
//@{
/// Creates a printout object of the game as currently displayed
wxPrintout *GetPrintout(void);
/// Creates a bitmap of the game as currently displayed
bool GetBitmap(wxBitmap &, int marginX, int marginY);
/// Outputs the game as currently displayed to a SVG file
void GetSVG(const wxString &p_filename, int marginX, int marginY);
/// Prints the game as currently displayed, centered on the DC
void RenderGame(wxDC &p_dc, int marginX, int marginY);
//@}
DECLARE_EVENT_TABLE()
};
#endif // NFGPANEL_H
syntax highlighted by Code2HTML, v. 0.9.1