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

kcalc

kcalc_const_button.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) 1996 Bernd Johannes Wuebben
00006                        wuebben@math.cornell.edu
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_BUTTON_H
00025 #define _KCALC_CONST_BUTTON_H
00026 
00027 #include <klocale.h>
00028 #include "kcalc_button.h"
00029 
00030 
00031 class KCalcConstButton : public KCalcButton
00032 {
00033 Q_OBJECT
00034 
00035   public:
00036 
00037   KCalcConstButton(QWidget *parent);
00038   
00039   KCalcConstButton(const QString &label, QWidget *parent,
00040            const QString &tooltip = QString());
00041 
00042   QString constant(void) const;
00043 
00044   void setButtonNumber(int num);
00045 
00046   void setLabelAndTooltip(void);
00047 
00048  signals:
00049   void clicked(int num);
00050 
00051  private slots:
00052   void slotConfigureButton();
00053   void slotChooseScientificConst(struct science_constant const &const_chosen);
00054   void slotClicked();
00055 
00056  private:
00057   void initPopupMenu(void);
00058   
00059   int _button_num;
00060 };
00061 
00062 
00063 #endif  // _KCALC_CONST_BUTTON_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