Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

solver_dialog.h

00001 /*
00002  *   EasySok --- A(nother) sokoban game for KDE.
00003  *
00004  *   Copyright (C) 2001 by Ralf Schmelter (ralfs@pc2a.chemie.uni-dortmund.de).
00005  *
00006  *   This program is free software; you can redistribute it and/or modify
00007  *   it under the terms of the GNU General Public License version 2 as
00008  *   published by the Free Software Foundation.
00009  *
00010  *   This program is distributed in the hope that it will be useful,
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  *   GNU General Public License for more details.
00014  *
00015  *   You should have received a copy of the GNU General Public License
00016  *   along with this program; if not, write to the Free Software
00017  *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00018  */
00019 
00020 
00021 #ifndef EASYSOK_SOLVER_DIALOG_INC_GUARD_H
00022 #define EASYSOK_SOLVER_DIALOG_INC_GUARD_H
00023 
00024 
00025 #include <qmessagebox.h>
00026 #include <qstring.h>
00027 
00028 #include "map.h"
00029 
00030 class QTimer;
00031 class Solver;
00032 
00033 
00034 
00035 
00043 class SolverDialog : public QMessageBox
00044 {
00045     Q_OBJECT
00046 
00047 public:
00048 
00057     SolverDialog(Map const & map, QWidget * parent = 0, char const * name = 0);
00058 
00059 
00064     virtual ~SolverDialog();
00065 
00066 
00071     Solver const * solver() const;
00072 
00073 
00078     QString positionsExaminedAsText() const;
00079 
00080 
00081 private slots:
00082 
00087     void prepareSolver();
00088 
00089 
00094     void performSolve();
00095 
00096 
00097 private:
00098 
00103     Solver * m_solver;
00104 
00105 
00110     QTimer * m_timer;
00111 
00112 
00117     int m_positions_per_step;
00118 
00119 
00124     int m_steps_rest;
00125 
00126 
00131     int m_steps_million;
00132 };
00133 
00134 
00135 #endif

Generated at Sun Jan 6 18:49:09 2002 for EasySok by doxygen1.2.9.1 written by Dimitri van Heesch, © 1997-2001