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

kalzium

kalziumutils.h

Go to the documentation of this file.
00001 #ifndef KALZIUMUTILS_H
00002 #define KALZIUMUTILS_H
00003 
00004 /***************************************************************************
00005     copyright            : (C) 2005, 2006 by Carsten Niehaus
00006     email                : cniehaus@kde.org
00007  ***************************************************************************/
00008 /***************************************************************************
00009  *                                                                         *
00010  *   This program is free software; you can redistribute it and/or modify  *
00011  *   it under the terms of the GNU General Public License as published by  *
00012  *   the Free Software Foundation; either version 2 of the License, or     *
00013  *   (at your option) any later version.                                   *
00014  *                                                                         *
00015  ***************************************************************************/
00016 
00017 class QString;
00018 class QRect;
00019 class QFont;
00020 class QPainter;
00021 class Element;
00022 
00023 #include <chemicaldataobject.h>
00024 
00025 class KalziumUtils
00026 {
00027     public:
00036         static int maxSize( const QString& string, const QRect& rect, QFont font, QPainter* painter, int minFontSize = 4, int maxFontSize = 20 );
00037 
00044         static double strippedValue( double value );
00045 
00052         static int StringWidth( const QString& string, const QFont& font, QPainter* painter );
00059         static int StringHeight( const QString& string, const QFont& font, QPainter* painter );
00060 
00068         static QString prettyUnit( const Element* el, ChemicalDataObject::BlueObelisk kind );
00069 };
00070 
00071 #endif // KALZIUMUTILS_H
00072 

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