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

export_solutions_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_EXPORT_SOLUTIONS_DIALOG_INC_GUARD_H
00022 #define EASYSOK_EXPORT_SOLUTIONS_DIALOG_INC_GUARD_H
00023 
00024 
00025 #include <qstring.h>
00026 
00027 #include <kdialogbase.h>
00028 
00029 
00030 class KConfig;
00031 class KLineEdit;
00032 class QRadioButton;
00033 
00034 
00035 
00036 
00044 class ExportSolutionsDialog : public KDialogBase
00045 {
00046     Q_OBJECT
00047 
00048 public:
00049 
00058     ExportSolutionsDialog(bool export_current_level, QWidget * parent = 0, char const * name = 0);
00059 
00060 
00065     virtual ~ExportSolutionsDialog();
00066 
00067 
00072     bool exportCurrentLevel() const;
00073 
00074 
00079     bool exportCollection() const;
00080 
00081 
00086     bool exportOnlyBest() const;
00087 
00088 
00093     bool exportAll() const;
00094 
00095 
00100     bool exportRegexpMatches() const;
00101 
00102 
00107     QString solutionRegexp() const;
00108 
00109 
00110 private slots:
00111 
00118     void regexpButtonToggled(bool state);
00119 
00120 
00121 private:
00122 
00127     QRadioButton * m_export_level;
00128 
00129 
00134     QRadioButton * m_export_collection;
00135 
00136 
00141     QRadioButton * m_export_all;
00142 
00143 
00147     QRadioButton * m_export_best;
00148 
00149 
00154     QRadioButton * m_export_all_solutions;
00155 
00156 
00161     QRadioButton * m_export_solutions_by_name;
00162 
00163 
00168     KLineEdit * m_solutions_regexp;
00169 };
00170 
00171 
00172 #endif

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