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

kalzium/libscience

Public Member Functions | Static Public Member Functions | List of all members
pseTables Class Reference

#include <psetables.h>

Public Member Functions

 ~pseTables ()
 
pseTable * getTabletype (const int tableType)
 
pseTable * getTabletype (const QString tableType)
 
QStringList tables () const
 

Static Public Member Functions

static pseTables * instance ()
 

Detailed Description

Holds all periodic system tables and make them accessible.

Provides functions to easyli create pse tables with qGridLayouts or qGraphicsView.

creating a table for the gridlayout

foreach (int elementIndex, pseTables::instance()->getTabletype( m_psTableType )->elements()) {
int group = pseTables::instance()->getTabletype( m_psTableType )->elementCoords( elementIndex ).x();
int period = pseTables::instance()->getTabletype( m_psTableType )->elementCoords( elementIndex ).y();
ElementLabel *element = new ElementLabel( elementIndex );
gridLayoutOfPeriodSystem->addItem (element, period, group );
}

position elements in a qGraphicsScene

getting the position of the Numerations for the periodic system of elements (j)

for (int i = 0; i < pseTables::instance()->getTabletype( j )->tableSize().x() || i < numerationItems.count(); i++) {
int itemAtPos = pseTables::instance()->getTabletype( j )->numerationAtPos( i );
}

Provides shape and elements of diferent peridic tables of elements

Author
Etienne Rebetez

Definition at line 68 of file psetables.h.

Constructor & Destructor Documentation

pseTables::~pseTables ( )

Definition at line 37 of file psetables.cpp.

Member Function Documentation

pseTable * pseTables::getTabletype ( const int  tableType)

Returns the KalziumTableType with the id specified.

It will gives 0 if none found.

Definition at line 57 of file psetables.cpp.

pseTable * pseTables::getTabletype ( const QString  tableType)

Returns the KalziumTableType whose name is the id specified.

It will gives 0 if none found.

Definition at line 66 of file psetables.cpp.

pseTables * pseTables::instance ( )
static

Definition at line 41 of file psetables.cpp.

QStringList pseTables::tables ( ) const

Returns a list with the names of the table types we support.

Definition at line 47 of file psetables.cpp.


The documentation for this class was generated from the following files:
  • psetables.h
  • psetables.cpp
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