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

kalzium

PeriodicTableView Class Reference

#include <periodictableview.h>

Inheritance diagram for PeriodicTableView:

Inheritance graph
[legend]

List of all members.


Detailed Description

A PeriodicTableView is the widget on which we paint a periodic table.

It does not contain any code for painting, as all the painting routines belongs to KalziumPainter.

Author:
Carsten Niehaus

Pino Toscano

Definition at line 47 of file src/periodictableview.h.


Public Slots

void setTemperature (int temp)
void setTime (int time)
void slotChangeTable (int table)
void unSelect ()

Signals

void ElementClicked (int)
void GradientTypeChanged (KalziumGradientType *)
void ModeChanged (KalziumPainter::MODE)
void MouseOver (int)
void SchemeChanged (KalziumSchemeType *)
void TableTypeChanged (KalziumTableType *)

Public Member Functions

void activateColorScheme (const int nr)
QBrush brushForElement (int element) const
void generateSvg (const QString &filename)
KalziumGradientType * gradient () const
KalziumPainter::MODE mode () const
 PeriodicTableView (QWidget *parent=0)
KalziumSchemeType * scheme () const
void setFullDraw ()
void setGradient (int which)
void setMode (KalziumPainter::MODE m)
void setNumeration (int which)
void setValueLimit (int value, ChemicalDataObject::BlueObelisk type)
QString shortName () const
int sliderValue (ChemicalDataObject::BlueObelisk type)
KalziumTableType * tableType () const
 ~PeriodicTableView ()

Protected Member Functions

virtual void mouseMoveEvent (QMouseEvent *)
virtual void mousePressEvent (QMouseEvent *event)
virtual void mouseReleaseEvent (QMouseEvent *)
virtual void paintEvent (QPaintEvent *e)

Constructor & Destructor Documentation

PeriodicTableView::PeriodicTableView ( QWidget *  parent = 0  ) 

Constructor.

Parameters:
parent parent widget

Definition at line 42 of file src/periodictableview.cpp.

PeriodicTableView::~PeriodicTableView (  ) 

Definition at line 73 of file src/periodictableview.cpp.


Member Function Documentation

void PeriodicTableView::activateColorScheme ( const int  nr  ) 

Sets the scheme to use.

Parameters:
nr is the index of the new scheme

Definition at line 81 of file src/periodictableview.cpp.

QBrush PeriodicTableView::brushForElement ( int  element  )  const

Returns:
the QBrush for the Element element

Definition at line 240 of file src/periodictableview.cpp.

void PeriodicTableView::ElementClicked ( int   )  [signal]

this signal is emitted when an element is clicked

void PeriodicTableView::generateSvg ( const QString &  filename  ) 

Generate a SVG from the current table and save it in the file filename.

Definition at line 111 of file src/periodictableview.cpp.

KalziumGradientType * PeriodicTableView::gradient (  )  const

Returns:
the current gradient type

Definition at line 277 of file src/periodictableview.cpp.

void PeriodicTableView::GradientTypeChanged ( KalziumGradientType *   )  [signal]

KalziumPainter::MODE PeriodicTableView::mode (  )  const

Returns:
the current KalziumPainter::MODE

Definition at line 106 of file src/periodictableview.cpp.

void PeriodicTableView::ModeChanged ( KalziumPainter::MODE   )  [signal]

void PeriodicTableView::mouseMoveEvent ( QMouseEvent *  event  )  [protected, virtual]

Reimplemented from QWidget.

Definition at line 161 of file src/periodictableview.cpp.

void PeriodicTableView::MouseOver ( int   )  [signal]

This signal is emitted when the mouse pointer is over an element.

void PeriodicTableView::mousePressEvent ( QMouseEvent *  event  )  [protected, virtual]

Reimplemented from QWidget.

Definition at line 151 of file src/periodictableview.cpp.

void PeriodicTableView::mouseReleaseEvent ( QMouseEvent *  mouse  )  [protected, virtual]

Reimplemented from QWidget.

Definition at line 197 of file src/periodictableview.cpp.

void PeriodicTableView::paintEvent ( QPaintEvent *  e  )  [protected, virtual]

Reimplemented from QWidget.

Definition at line 123 of file src/periodictableview.cpp.

KalziumSchemeType * PeriodicTableView::scheme (  )  const

Returns:
the KalziumSchemeType of the current view

Definition at line 91 of file src/periodictableview.cpp.

void PeriodicTableView::SchemeChanged ( KalziumSchemeType *   )  [signal]

void PeriodicTableView::setFullDraw (  ) 

Draw the full table next time.

Definition at line 305 of file src/periodictableview.cpp.

void PeriodicTableView::setGradient ( int  which  ) 

sets te KalziumGradientType

Definition at line 282 of file src/periodictableview.cpp.

void PeriodicTableView::setMode ( KalziumPainter::MODE  m  ) 

Definition at line 96 of file src/periodictableview.cpp.

void PeriodicTableView::setNumeration ( int  which  ) 

Sets the numeration type to the one with index which.

Definition at line 270 of file src/periodictableview.cpp.

void PeriodicTableView::setTemperature ( int  temp  )  [slot]

This method sets the color for the buttons corresponding to the given temperature temp.

Parameters:
temp is the temperature to which all buttons will be set

Definition at line 291 of file src/periodictableview.cpp.

void PeriodicTableView::setTime ( int  time  )  [slot]

Definition at line 298 of file src/periodictableview.cpp.

void PeriodicTableView::setValueLimit ( int  value,
ChemicalDataObject::BlueObelisk  type 
)

put the limit for the type specified, but do not actually (de)activate it

Parameters:
type type of the value
value the value of the limit for type

Definition at line 226 of file src/periodictableview.cpp.

QString PeriodicTableView::shortName (  )  const [inline]

Returns:
the short and descriptive name of this PeriodicTableView

Definition at line 95 of file src/periodictableview.h.

int PeriodicTableView::sliderValue ( ChemicalDataObject::BlueObelisk  type  ) 

Parameters:
type the type of value which is searched for

Returns:
the value of the type

Definition at line 235 of file src/periodictableview.cpp.

void PeriodicTableView::slotChangeTable ( int  table  )  [slot]

Definition at line 250 of file src/periodictableview.cpp.

KalziumTableType * PeriodicTableView::tableType (  )  const

Definition at line 245 of file src/periodictableview.cpp.

void PeriodicTableView::TableTypeChanged ( KalziumTableType *   )  [signal]

void PeriodicTableView::unSelect (  )  [slot]

this slot removes the selection of any point

Definition at line 209 of file src/periodictableview.cpp.


The documentation for this class was generated from the following files:
  • src/periodictableview.h
  • src/periodictableview.cpp

kalzium

Skip menu "kalzium"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdeedu

Skip menu "kdeedu"
  • kalzium
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  •   docs
  •   src
  • parley
  •   stepcore
Generated for kdeedu by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal