/*
 * Copyright 2006-2012 The MZmine 2 Development Team
 * 
 * This file is part of MZmine 2.
 * 
 * MZmine 2 is free software; you can redistribute it and/or modify it under the
 * terms of the GNU General Public License as published by the Free Software
 * Foundation; either version 2 of the License, or (at your option) any later
 * version.
 * 
 * MZmine 2 is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License along with
 * MZmine 2; if not, write to the Free Software Foundation, Inc., 51 Franklin St,
 * Fifth Floor, Boston, MA 02110-1301 USA
 */

package net.sf.mzmine.modules.visualization.peaklist;

import net.sf.mzmine.modules.visualization.peaklist.table.CommonColumnType;
import net.sf.mzmine.modules.visualization.peaklist.table.DataFileColumnType;
import net.sf.mzmine.parameters.Parameter;
import net.sf.mzmine.parameters.impl.SimpleParameterSet;
import net.sf.mzmine.parameters.parametertypes.ComboParameter;
import net.sf.mzmine.parameters.parametertypes.IntegerParameter;
import net.sf.mzmine.parameters.parametertypes.PeakListsParameter;

public class PeakListTableParameters extends SimpleParameterSet {

	public static final PeakListsParameter peakLists = new PeakListsParameter();

	public static final ColumnSettingParameter<CommonColumnType> commonColumns = new ColumnSettingParameter<CommonColumnType>(
			"Common columns", "Visible common columns",
			CommonColumnType.values());

	public static final ColumnSettingParameter<DataFileColumnType> dataFileColumns = new ColumnSettingParameter<DataFileColumnType>(
			"Data file columns", "Visible common columns",
			DataFileColumnType.values());

	public static final IntegerParameter rowHeight = new IntegerParameter(
			"Row height", "Row height", 30);

	public static final ComboParameter<PeakShapeNormalization> peakShapeNormalization = new ComboParameter<PeakShapeNormalization>(
			"Peak shape normalization", "Peak shape normalization",
			PeakShapeNormalization.values());

	public PeakListTableParameters() {
		super(new Parameter[] { peakLists, commonColumns, dataFileColumns,
				rowHeight, peakShapeNormalization });
	}

}
@@ -1366,17 +1366,20 @@
 rSet %7B%0A%0A
-%09
+    
 public s
@@ -1444,25 +1444,28 @@
 rameter();%0A%0A
-%09
+    
 public stati
@@ -1575,19 +1575,28 @@
 nType%3E(%0A
-%09%09%09
+            
 %22Common 
@@ -1631,19 +1631,28 @@
 lumns%22,%0A
-%09%09%09
+            
 CommonCo
@@ -1664,33 +1664,36 @@
 ype.values());%0A%0A
-%09
+    
 public static fi
@@ -1805,19 +1805,28 @@
 nType%3E(%0A
-%09%09%09
+            
 %22Data fi
@@ -1864,19 +1864,28 @@
 lumns%22,%0A
-%09%09%09
+            
 DataFile
@@ -1903,25 +1903,28 @@
 values());%0A%0A
-%09
+    
 public stati
@@ -1982,19 +1982,28 @@
 ameter(%0A
-%09%09%09
+            
 %22Row hei
@@ -2024,25 +2024,28 @@
 ght%22, 30);%0A%0A
-%09
+    
 public stati
@@ -2160,19 +2160,28 @@
 ation%3E(%0A
-%09%09%09
+            
 %22Peak sh
@@ -2228,19 +2228,28 @@
 ation%22,%0A
-%09%09%09
+            
 PeakShap
@@ -2275,17 +2275,20 @@
 es());%0A%0A
-%09
+    
 public P
@@ -2314,18 +2314,24 @@
 ers() %7B%0A
-%09%09
+        
 super(ne
@@ -2393,12 +2393,24 @@
 ns,%0A
-%09%09%09%09
+                
 rowH
@@ -2447,9 +2447,321 @@
 %7D);%0A
-%09
+%0A        // Set the default settings for data file columns%0A        DataFileColumnType%5B%5D defaultColumns = new DataFileColumnType%5B%5D %7B%0A                DataFileColumnType.STATUS, DataFileColumnType.HEIGHT,%0A                DataFileColumnType.AREA %7D;%0A        getParameter(dataFileColumns).setValue(defaultColumns);%0A    
 %7D%0A%0A%7D

Change in the peak list table visualizer: display only status, height and area by default