• Skip to content
  • Skip to link menu
KDE 4.0 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 periodictableview.h.


Public Slots

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

Signals

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

Public Member Functions

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

Protected Member Functions

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

Constructor & Destructor Documentation

PeriodicTableView::PeriodicTableView ( QWidget *  parent = 0  ) 

Constructor.

Parameters:
parent parent widget

Definition at line 42 of file periodictableview.cpp.

PeriodicTableView::~PeriodicTableView (  ) 

Definition at line 73 of file periodictableview.cpp.


Member Function Documentation

void PeriodicTableView::setFullDraw (  ) 

Draw the full table next time.

Definition at line 303 of file periodictableview.cpp.

void PeriodicTableView::setNumeration ( int  which  ) 

Sets the numeration type to the one with index which.

Definition at line 268 of file 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 the limit for type

Definition at line 224 of file periodictableview.cpp.

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 periodictableview.cpp.

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 periodictableview.cpp.

KalziumSchemeType * PeriodicTableView::scheme (  )  const

Returns:
the KalziumSchemeType of the current view

Definition at line 91 of file periodictableview.cpp.

QString PeriodicTableView::shortName (  )  const [inline]

Returns:
the short and descriptive name of this PeriodicTableView

Definition at line 95 of file periodictableview.h.

KalziumGradientType * PeriodicTableView::gradient (  )  const

Returns:
the current gradient type

Definition at line 275 of file periodictableview.cpp.

void PeriodicTableView::setGradient ( int  which  ) 

sets te KalziumGradientType

Definition at line 280 of file periodictableview.cpp.

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

Definition at line 96 of file periodictableview.cpp.

KalziumPainter::MODE PeriodicTableView::mode (  )  const

Returns:
the current KalziumPainter::MODE

Definition at line 106 of file periodictableview.cpp.

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 233 of file periodictableview.cpp.

QBrush PeriodicTableView::brushForElement ( int  element  )  const

Returns:
the QBrush for the Element element

Definition at line 238 of file periodictableview.cpp.

KalziumTableType * PeriodicTableView::tableType (  )  const

Definition at line 243 of file periodictableview.cpp.

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

Reimplemented from QWidget.

Definition at line 122 of file periodictableview.cpp.

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

Reimplemented from QWidget.

Definition at line 195 of file periodictableview.cpp.

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

Reimplemented from QWidget.

Definition at line 150 of file periodictableview.cpp.

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

Reimplemented from QWidget.

Definition at line 160 of file 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 289 of file periodictableview.cpp.

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

Definition at line 296 of file periodictableview.cpp.

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

Definition at line 248 of file periodictableview.cpp.

void PeriodicTableView::unSelect (  )  [slot]

this slot removes the selection of any point

Definition at line 207 of file periodictableview.cpp.

void PeriodicTableView::ElementClicked ( int   )  [signal]

this signal is emitted when an element is clicked

void PeriodicTableView::MouseOver ( int   )  [signal]

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

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

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

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

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


The documentation for this class was generated from the following files:
  • periodictableview.h
  • 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
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  •   docs
  •   src
  • parley
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