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

SolutionOptimizeDialog Class Reference

Lets the user optimize solutions. More...

#include <solution_optimize_dialog.h>

Inheritance diagram for SolutionOptimizeDialog::

List of all members.

Public Methods

 SolutionOptimizeDialog (CompressedMap const &map, bool opt_pushes, QWidget *parent=0, const char *name=0)
 SolutionOptimizeDialog (int index, bool opt_pushes, QWidget *parent=0, const char *name=0)

Protected Slots

void slotUser1 ()
void slotOk ()

Private Attributes

CompressedMap const & m_map
std::vector< int > m_optimized
std::vector< Movementsm_moves
int m_index
bool m_opt_pushes

Detailed Description

Lets the user optimize solutions.

Ralf Schmelter (

Constructor & Destructor Documentation

SolutionOptimizeDialog::SolutionOptimizeDialog CompressedMap const & map,
bool opt_pushes,
QWidget * parent = 0,
const char * name = 0

Contructs the object.

Note that the map <e>must</e> have a solution.

compressed_map   The compressed map of the level.
opt_pushes   If true, we optimize pushes and moves and if false only moves.
parent   The parent widget.
name   The internal name.

SolutionOptimizeDialog::SolutionOptimizeDialog int index,
bool opt_pushes,
QWidget * parent = 0,
const char * name = 0

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Member Function Documentation

void SolutionOptimizeDialog::slotOk [protected, slot]

Called when a ok is clicked.

void SolutionOptimizeDialog::slotUser1 [protected, slot]

Called when the user selected optimize.

Member Data Documentation

int SolutionOptimizeDialog::m_index [private]

The index of the map.

SolutionListView* SolutionOptimizeDialog::m_list_view [private]

The list view with the solution data.

CompressedMap const& SolutionOptimizeDialog::m_map [private]

The compressed map.

std::vector<Movements> SolutionOptimizeDialog::m_moves [private]

Here we store the moves.

bool SolutionOptimizeDialog::m_opt_pushes [private]

If true, we optimzed pushes.

std::vector<int> SolutionOptimizeDialog::m_optimized [private]

Here we store 1, if the solutions was optimized.

The documentation for this class was generated from the following file:
Generated at Sun Jan 6 18:49:12 2002 for EasySok by doxygen1.2.9.1 written by Dimitri van Heesch, © 1997-2001