• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

kalzium/libscience

  • sources
  • kde-4.12
  • kdeedu
  • kalzium
  • libscience
element.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2003, 2004, 2005 by Carsten Niehaus *
3  * cniehaus@kde.org *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the GNU General Public License as published by *
7  * the Free Software Foundation; either version 2 of the License, or *
8  * (at your option) any later version. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the GNU General Public License *
16  * along with this program; if not, write to the *
17  * Free Software Foundation, Inc., *
18  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
19  ***************************************************************************/
20 
21 #ifndef ELEMENT_H
22 #define ELEMENT_H
23 
24 #include "libkdeedu_science_export.h"
25 #include <QtCore/QList>
26 #include <QtCore/QVariant>
27 
28 #include "chemicaldataobject.h"
29 
30 
31 class Spectrum;
32 class Isotope;
33 
41 class SCIENCE_EXPORT Element
42 {
43 public:
44  Element();
45 
46  virtual ~Element();
47 
52  void addData( const ChemicalDataObject& o );
53 
60  void addData( const QVariant& value, ChemicalDataObject::BlueObelisk type );
61 
65  QVariant dataAsVariant( ChemicalDataObject::BlueObelisk type ) const;
66 
70  QVariant dataAsVariant( ChemicalDataObject::BlueObelisk type, int unit ) const;
71 
75  QString dataAsString( ChemicalDataObject::BlueObelisk type ) const;
79  QString dataAsString( ChemicalDataObject::BlueObelisk type, int unit ) const;
80 
85  QString dataAsStringWithUnit( ChemicalDataObject::BlueObelisk type, int unit ) const;
86 
90  QList<ChemicalDataObject> data()const {
91  return dataList;
92  }
93 
94 private:
98  QList<ChemicalDataObject> dataList;
99 };
100 
101 #endif
Element::data
QList< ChemicalDataObject > data() const
Definition: element.h:90
libkdeedu_science_export.h
Isotope
Definition: isotope.h:32
Spectrum
Definition: spectrum.h:35
ChemicalDataObject
A ChemicalDataObject is an object which contains information about a chemical element.
Definition: chemicaldataobject.h:38
chemicaldataobject.h
Element
In this class all information about an element are stored.
Definition: element.h:41
ChemicalDataObject::BlueObelisk
BlueObelisk
The BlueObelisk-project defines in their XML file the dataset with the names of the enum plus "bo:"...
Definition: chemicaldataobject.h:47
SCIENCE_EXPORT
#define SCIENCE_EXPORT
Definition: libkdeedu_science_export.h:32
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:35:31 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kalzium/libscience

Skip menu "kalzium/libscience"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal