00001 /* 00002 Copyright (C) 2000,2001 Stefan Duffner 00003 00004 This program is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU General Public License 00006 as published by the Free Software Foundation; either version 2 00007 of the License, or any later version. 00008 00009 This program is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 GNU General Public License for more details. 00013 00014 You should have received a copy of the GNU General Public License 00015 along with this program; if not, write to the Free Software 00016 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00017 */ 00018 00019 #ifndef OPTIONS_H 00020 #define OPTIONS_H 00021 00022 #include <qcolor.h> 00023 #include <qobject.h> 00024 00025 class MainWindow; 00026 00027 00032 class Options : public QObject 00033 { 00034 Q_OBJECT 00035 public: 00036 Options(QObject* parent=NULL, const char* name=0); 00037 00039 bool getViewMoore() { return viewMoore; }; 00041 void setViewMoore(bool v) { viewMoore = v; }; 00043 bool getViewMealyIn() { return viewMealyIn; }; 00045 void setViewMealyIn(bool v) { viewMealyIn = v; }; 00047 bool getViewMealyOut() { return viewMealyOut; }; 00049 void setViewMealyOut(bool v) { viewMealyOut = v; }; 00051 bool getViewGrid() { return viewGrid; }; 00053 void setViewGrid(bool v) { viewGrid = v; }; 00055 QColor getGridColor() { return gridColor; }; 00057 void setGridColor(QColor c) { gridColor = c; }; 00059 int getGridSize() { return gridSize; }; 00061 void setGridSize(int s) { gridSize = s; }; 00063 bool getToolTips() { return tooltips; }; 00065 void setToolTips(bool t) { tooltips = t; }; 00067 QString getStartDescriptor() { return start_descriptor; }; 00069 void setStartDescriptor(QString sd) { start_descriptor = sd; }; 00070 00071 void applyOptions(MainWindow* ); 00072 00073 private: 00075 bool viewMoore; 00077 bool viewMealyIn; 00079 bool viewMealyOut; 00081 bool viewGrid; 00083 QColor gridColor; 00085 int gridSize; 00087 bool tooltips; 00089 QString start_descriptor; 00090 }; 00091 00092 00093 #endif