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

kcalc

kcalc_const_menu.h

Go to the documentation of this file.
00001 /*
00002     KCalc, a scientific calculator for the X window system using the
00003     Qt widget libraries, available at no cost at http://www.troll.no
00004 
00005     Copyright (C) 2004 Klaus Niederkruger
00006                        kniederk@ulb.ac.be
00007 
00008     This program is free software; you can redistribute it and/or modify
00009     it under the terms of the GNU General Public License as published by
00010     the Free Software Foundation; either version 2 of the License, or
00011     (at your option) any later version.
00012 
00013     This program is distributed in the hope that it will be useful,
00014     but WITHOUT ANY WARRANTY; without even the implied warranty of
00015     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016     GNU General Public License for more details.
00017 
00018     You should have received a copy of the GNU General Public License
00019     along with this program; if not, write to the Free Software
00020     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
00021 
00022 */
00023 
00024 #ifndef _KCALC_CONST_MENU_H
00025 #define _KCALC_CONST_MENU_H
00026 
00027 #include <QList>
00028 #include <QMenu>
00029 
00030 
00031 enum ConstantCategory {Mathematics = 1, Electromagnetic = 2, Nuclear = 4, Thermodynamics = 8, Gravitation = 16};
00032 
00033 struct science_constant{
00034   QString label;
00035   QString name;
00036   QString whatsthis;
00037   QString value;
00038   ConstantCategory category;
00039 };
00040 
00041 class KCalcConstMenu : public QMenu
00042 {
00043 Q_OBJECT 
00044 
00045  public:
00046   KCalcConstMenu(QWidget * parent = 0);
00047   explicit KCalcConstMenu(QString const & title, QWidget * parent = 0);
00048 
00049   static QList<struct science_constant> Constants;
00050   static void init_consts(void);
00051 
00052 signals:
00053   void triggeredConstant(struct science_constant const &);
00054 
00055 
00056  private:
00057   void _init_all(void);
00058 
00059 
00060 public slots:
00061   void slotPassSignalThrough(QAction  *chosen_const);
00062 };
00063 
00064 #endif  // _KCALC_CONST_MENU_H

kcalc

Skip menu "kcalc"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members

kdeutils

Skip menu "kdeutils"
  • ark
  • kcalc
  • kcharselect
  • kdelirc
  • kdessh
  • kdf
  • kfloppy
  • kgpg
  • kjots
  • klaptopdaemon
  • kmilo
  • ksim
  • ktimer
  • kwallet
  • superkaramba
Generated for kdeutils 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