00001 /********************************************************************** 00002 Optimizer - Generic optimizer interface 00003 00004 Copyright (C) 2010 by David C. Lonie 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 as published by 00008 the Free Software Foundation version 2 of the License. 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 00016 // Don't document this: 00018 #ifndef OPTIMIZERDIALOG_H 00019 #define OPTIMIZERDIALOG_H 00020 00021 #include <QtGui/QDialog> 00022 00023 class QLineEdit; 00024 00025 namespace GlobalSearch { 00026 class AbstractDialog; 00027 class OptBase; 00028 class Optimizer; 00029 00030 // Basic input dialog needed for all optimizers 00031 class OptimizerConfigDialog : public QDialog 00032 { 00033 Q_OBJECT; 00034 public: 00035 OptimizerConfigDialog(AbstractDialog *parent, 00036 OptBase *opt, Optimizer *o); 00037 00038 public slots: 00039 void updateState(); 00040 void updateGUI(); 00041 00042 protected: 00043 OptBase *m_opt; 00044 Optimizer *m_optimizer; 00045 QLineEdit *m_lineedit; 00046 00047 }; 00048 00049 } // end namespace GlobalSearch 00050 00051 #endif 00052
1.6.3