MainFrame Class Reference

#include <mainframe.h>


Detailed Description

Definition at line 33 of file mainframe.h.

Public Member Functions

 MainFrame (wxPoint, wxSize)
virtual ~MainFrame ()
void SetRack (Game::set_rack_mode, wxString=wxT(""))
void Search ()
void Play (int)
void TestPlay (int)
void UpdateFrames (AuxFrame::refresh_t force=AuxFrame::REFRESH)
void OnMenuGameNew (wxCommandEvent &event)
void OnMenuGameOpen (wxCommandEvent &event)
void OnMenuGameSave (wxCommandEvent &event)
void OnMenuGamePrint (wxCommandEvent &event)
void OnMenuGamePrintPreview (wxCommandEvent &event)
void OnMenuGamePrintPS (wxCommandEvent &event)
void OnMenuConfGameDic (wxCommandEvent &event)
void OnMenuConfGameSearch (wxCommandEvent &event)
void OnMenuConfPrint (wxCommandEvent &event)
void OnMenuConfAspectFont (wxCommandEvent &event)
void OnMenuConfAspectBoardColour (wxCommandEvent &event)
void OnMenuShowFrame (wxCommandEvent &event)
void OnMenuQuitApropos (wxCommandEvent &event)
void OnMenuQuitConfirm (wxCommandEvent &event)
void OnPlay (wxCommandEvent &event)
void OnSetRack (wxCommandEvent &event)
void OnSearch (wxCommandEvent &event)
void OnPlayBack (wxCommandEvent &event)
void OnTextEnter (wxCommandEvent &event)
void OnCloseWindow (wxCloseEvent &event)


Constructor & Destructor Documentation

MainFrame::MainFrame wxPoint  ,
wxSize 
 

MainFrame::~MainFrame  )  [virtual]
 

Definition at line 233 of file mainframe.cc.

References APPNAME, Dic_destroy(), GameFactory::Instance(), GameFactory::releaseGame(), ConfigDB::setFramePos(), and ConfigDB::setFrameSize().


Member Function Documentation

void MainFrame::OnCloseWindow wxCloseEvent &  event  ) 
 

Definition at line 349 of file mainframe.cc.

void MainFrame::OnMenuConfAspectBoardColour wxCommandEvent &  event  ) 
 

Definition at line 707 of file mainframe.cc.

References BCOLOURBACKGROUND, BCOLOURLETTERS, BCOLOURLINES, BCOLOURLX2, BCOLOURLX3, BCOLOURTSTLETTERS, BCOLOURWX2, BCOLOURWX3, BTILEBACKGROUND, BTSTTILEBACKGROUND, ConfigDB::ChooseColour(), AuxFrame::FORCE_REFRESH, ConfigDB::getColour(), INCOMPLETE, Menu_Conf_Aspect_BoardColour_Background, Menu_Conf_Aspect_BoardColour_Default, Menu_Conf_Aspect_BoardColour_Letters, Menu_Conf_Aspect_BoardColour_Lines, Menu_Conf_Aspect_BoardColour_Lx2, Menu_Conf_Aspect_BoardColour_Lx3, Menu_Conf_Aspect_BoardColour_TestLetters, Menu_Conf_Aspect_BoardColour_TestTileBack, Menu_Conf_Aspect_BoardColour_TileBack, Menu_Conf_Aspect_BoardColour_Wx2, Menu_Conf_Aspect_BoardColour_Wx3, ConfigDB::setColour(), ConfigDB::setColourDefault(), UpdateFrames(), and wxU.

void MainFrame::OnMenuConfAspectFont wxCommandEvent &  event  ) 
 

Definition at line 677 of file mainframe.cc.

References BOARDFONT, ConfigDB::ChooseFont(), AuxFrame::FORCE_REFRESH, ConfigDB::getFont(), INCOMPLETE, LISTFONT, Menu_Conf_Aspect_Font_Board, Menu_Conf_Aspect_Font_Default, ConfigDB::setFont(), ConfigDB::setFontDefault(), UpdateFrames(), and wxU.

void MainFrame::OnMenuConfGameDic wxCommandEvent &  event  ) 
 

void MainFrame::OnMenuConfGameSearch wxCommandEvent &  event  ) 
 

void MainFrame::OnMenuConfPrint wxCommandEvent &  event  ) 
 

void MainFrame::OnMenuGameNew wxCommandEvent &  event  ) 
 

Definition at line 359 of file mainframe.cc.

References GameFactory::createTraining(), AuxFrame::FORCE_REFRESH, GameFactory::Instance(), GameFactory::releaseGame(), Game::start(), TODO, UpdateFrames(), and wxU.

void MainFrame::OnMenuGameOpen wxCommandEvent &  event  ) 
 

Definition at line 393 of file mainframe.cc.

References GameFactory::Instance(), and GameFactory::releaseGame().

void MainFrame::OnMenuGamePrint wxCommandEvent &  event  ) 
 

void MainFrame::OnMenuGamePrintPreview wxCommandEvent &  event  ) 
 

void MainFrame::OnMenuGamePrintPS wxCommandEvent &  event  ) 
 

void MainFrame::OnMenuGameSave wxCommandEvent &  event  ) 
 

void MainFrame::OnMenuQuitApropos wxCommandEvent &  event  ) 
 

void MainFrame::OnMenuQuitConfirm wxCommandEvent &  event  ) 
 

void MainFrame::OnMenuShowFrame wxCommandEvent &  event  ) 
 

Definition at line 886 of file mainframe.cc.

References debug, IDBASE, INCOMPLETE, and AuxFrame::SwitchDisplay().

void MainFrame::OnPlay wxCommandEvent &  event  ) 
 

Definition at line 812 of file mainframe.cc.

References Button_Play, Button_PlayBack, and Play().

void MainFrame::OnPlayBack wxCommandEvent &  event  ) 
 

void MainFrame::OnSearch wxCommandEvent &  event  ) 
 

void MainFrame::OnSetRack wxCommandEvent &  event  ) 
 

Definition at line 770 of file mainframe.cc.

References Button_SetManual, Button_SetNew, Button_SetRack, debug, Game::RACK_ALL, Game::RACK_MANUAL, Game::RACK_NEW, and SetRack().

void MainFrame::OnTextEnter wxCommandEvent &  event  ) 
 

void MainFrame::Play int   ) 
 

Definition at line 1019 of file mainframe.cc.

References debug, ID_Frame_Result, UpdateFrames(), and wxU.

Referenced by GfxResult::OnListCtrlActivated(), and OnPlay().

void MainFrame::Search  ) 
 

Definition at line 1003 of file mainframe.cc.

References ID_Frame_Result, and UpdateFrames().

void MainFrame::SetRack Game::set_rack_mode  ,
wxString  = wxT("")
 

Definition at line 962 of file mainframe.cc.

References debug, ConfigDB::getRackChecking(), UpdateFrames(), and wxU.

Referenced by OnSetRack().

void MainFrame::TestPlay int   ) 
 

Definition at line 1048 of file mainframe.cc.

References UpdateFrames().

Referenced by GfxResult::OnListCtrlSelected().

void MainFrame::UpdateFrames AuxFrame::refresh_t  force = AuxFrame::REFRESH  ) 
 

Definition at line 915 of file mainframe.cc.

References AuxFrame::Refresh().

Referenced by OnMenuConfAspectBoardColour(), OnMenuConfAspectFont(), OnMenuGameNew(), Play(), Search(), SetRack(), and TestPlay().


The documentation for this class was generated from the following files:
Generated on Thu Dec 29 02:01:15 2005 for Eliot by  doxygen 1.4.5