1
#ifndef ELEMENTDATAVIEWER_H
2
#define ELEMENTDATAVIEWER_H
3
/***************************************************************************
4
copyright : (C) 2004, 2005, 2006 by Carsten Niehaus
5
email : cniehaus@kde.org
6
***************************************************************************/
8
/***************************************************************************
10
* This program is free software; you can redistribute it and/or modify *
11
* it under the terms of the GNU General Public License as published by *
12
* the Free Software Foundation; either version 2 of the License, or *
13
* (at your option) any later version. *
15
***************************************************************************/
18
#include "ui_plotsetupwidget.h"
19
#include "kalziumdataobject.h"
20
#include "kalziumutils.h"
23
class KActionCollection;
25
typedef QList<double> DoubleList;
28
* @short the values of an axis
29
* @author Carsten Niehaus
35
* This represents the possible datasets.
52
AxisData( AxisData::AXISTYPE );
55
* @return the value of the selected dataset of element @p element
57
double value( int element ) const;
60
* the dataList contains the values off all elements
61
* but only of the currently selected data type. This
62
* means that it eg contains all boiling points
70
ChemicalDataObject::BlueObelisk kind;
72
AXISTYPE type() const {
82
* @short This widget shows the plot and the widget
83
* where you can setup the plot
84
* @author Carsten Niehaus
86
class ElementDataViewer : public KDialog
91
ElementDataViewer( QWidget *parent = 0 );
96
* the AxixData for the y-Axis
101
* the AxixData for the x-Axis
107
virtual void keyPressEvent(QKeyEvent *e);
110
Ui::PlotSetupWidget ui;
112
void getMinMax(double& min, double& max, AxisData * data);
116
QStringList elecConfig; //Electronic configuration of elements
117
QStringList block; //Indicates the periodic table block s,p,d,f...
120
KActionCollection* m_actionCollection;
123
void setupAxisData( AxisData * data );
129
* invoke the help of the correct chapter
131
virtual void slotHelp();
147
#endif // ELEMENTDATAVIEWER_H