00001 /*************************************************************************** 00002 ** 00003 ** This file is part of geopsyarray. 00004 ** 00005 ** This file may be distributed and/or modified under the terms of the 00006 ** GNU General Public License version 2 or 3 as published by the Free 00007 ** Software Foundation and appearing in the file LICENSE.GPL included 00008 ** in the packaging of this file. 00009 ** 00010 ** This file is distributed in the hope that it will be useful, but WITHOUT 00011 ** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00012 ** FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 00013 ** more details. 00014 ** 00015 ** You should have received a copy of the GNU General Public License 00016 ** along with this program. If not, see <http://www.gnu.org/licenses/>. 00017 ** 00018 ** See http://www.geopsy.org for more information. 00019 ** 00020 ** Created : 2004-09-04 00021 ** Authors: 00022 ** Marc Wathelet 00023 ** Marc Wathelet (ULg, Liège, Belgium) 00024 ** Marc Wathelet (LGIT, Grenoble, France) 00025 ** 00026 ***************************************************************************/ 00027 00028 #ifndef TOOLARRAYBASE_H 00029 #define TOOLARRAYBASE_H 00030 00031 #include <GeopsyGui.h> 00032 #include <ArrayCore.h> 00033 00034 class ToolArrayBase : public ToolBase 00035 { 00036 Q_OBJECT 00037 public: 00038 ToolArrayBase(QWidget * parent, int nChildren); 00039 00040 void setTimeWindowLayer(TimeWindowList * winList); 00041 protected: 00042 virtual const char * toolName()=0; 00043 // General initialization function 00044 bool initStations(SubSignalPool * subPool, WindowingParameterWidget * winParam); 00045 // Painting time windows 00046 StationSignals * belongsTo(Signal * sig); 00047 // Log management 00048 void resetLogs(); 00049 void writeParameterLogs(QString outputFile); 00050 void writeProcessLogs(QString outputFile); 00051 protected: 00052 ArrayStations _array; 00053 QString _log; 00054 QString _initLog; 00055 QString _paramLog; 00056 }; 00057 00058 #endif // TOOLARRAYBASE_H