/home/enzo/treballs/fib/pfc/nanocomp/src/layoutConfig.hpp

Go to the documentation of this file.
00001 /*
00002  *                                                                         *
00003  *   This program is free software; you can redistribute it and/or modify  *
00004  *   it under the terms of the GNU General Public License as published by  *
00005  *   the Free Software Foundation; either version 2 of the License, or     *
00006  *   (at your option) any later version.                                   *
00007  *                                                                         *
00008  *   This program is distributed in the hope that it will be useful,       *
00009  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00010  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00011  *   GNU General Public License for more details.                          *
00012  *                                                                         *
00013  *   You should have received a copy of the GNU General Public License     *
00014  *   along with this program; if not, write to the                         *
00015  *   Free Software Foundation, Inc.,                                       *
00016  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00017                                                                           */
00018 
00029 #ifndef LAYOUTCONFIG_HPP_
00030 #define LAYOUTCONFIG_HPP_
00031 
00032 #include "grid.hpp"
00033 #include <wx/wx.h>
00034 #include "truthTableManager.hpp"
00035 #include <vector>
00036 
00037 using namespace std;
00038 
00039 
00040 class TruthTableManager;
00041 
00042 class LayoutConfig
00043 {
00044 public:
00045         LayoutConfig(int width, int height, int inputs, int outputs);
00046         virtual ~LayoutConfig();
00047     bool cellChanged(int x, int y, bool assigningInput, bool assigningOuput, vector<coordinate> listInputs, vector<coordinate> listOutputs);
00048     bool cellChanged(int x, int y, int status);
00049     Grid getGrid();
00050     void setGrid(Grid newGrid);
00051     int getWidth();
00052     int getHeight();
00053     int getInputs();
00054     int getOutputs();
00055     matrix getMatrix();
00056     
00057 private:
00059     Grid grid;
00061     int width;
00063     int height;
00065     int inputs;
00067     int outputs;
00069     int assignedInputs;
00071     int assignedOutputs;
00072     bool findCoordinate(vector<coordinate> list, int x, int y);
00073 };
00074 
00075 #endif /*LAYOUTCONFIG_HPP_*/

Generated on Fri Sep 1 23:55:14 2006 for NanoComp by  doxygen 1.4.6