kcalc
kcalc_const_button.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
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