// // $Source: /cvsroot/gambit/gambit/sources/gui/efgpanel.h,v $ // $Date: 2006/11/11 17:30:25 $ // $Revision: 1.7 $ // // DESCRIPTION: // Main viewing panel for extensive forms // // 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 EFGPANEL_H #define EFGPANEL_H #include "gamedoc.h" class wxPrintout; class gbtEfgDisplay; class gbtEfgPanel : public wxPanel, public gbtGameView { private: gbtEfgDisplay *m_treeWindow; wxWindow *m_dominanceToolbar, *m_playerToolbar; // Overriding gbtGameView members void OnUpdate(void) { } /// @name Command event handlers //@{ void OnToolsDominance(wxCommandEvent &); void OnViewZoomIn(wxCommandEvent &); void OnViewZoomOut(wxCommandEvent &); void OnViewZoom100(wxCommandEvent &); void OnViewZoomFit(wxCommandEvent &); //@} public: gbtEfgPanel(wxWindow *p_parent, gbtGameDocument *p_doc); virtual ~gbtEfgPanel() { } /// @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 // EFGPANEL_H