kcalc
kcalc_const_button.cpp
Go to the documentation of this file.
37 addMode(ModeShift, i18nc("Write display data into memory", "Store"), i18n("Write display data into memory"));
46 KCalcConstButton::KCalcConstButton(const QString &label, QWidget *parent, const QString &tooltip) : KCalcButton(label, parent, tooltip), button_num_(-1) {
48 addMode(ModeShift, i18nc("Write display data into memory", "Store"), i18n("Write display data into memory"));
79 new_label = (KCalcSettings::nameConstant(button_num_).isNull() ? new_label : KCalcSettings::nameConstant(button_num_));
102 connect(tmp_menu, SIGNAL(triggeredConstant(science_constant)), SLOT(slotChooseScientificConst(science_constant)));
113 const QString input = KInputDialog::getText(i18n("New Name for Constant"), i18n("New name:"), text(), &yes_no, this); // "nameUserConstants-Dialog"
void setText(const QString &text)
void clicked(int num)
bool isNull() const
void addMode(ButtonModeFlags mode, const QString &label, const QString &tooltip)
Definition: kcalc_button.cpp:63
Definition: kcalc_button.h:37
Definition: kcalc_const_menu.h:36
QString number(int n, int base)
KCalcConstButton(QWidget *parent)
Definition: kcalc_const_button.cpp:35
static void setNameConstant(int i, const QString &v)
Set Name of the user programmable constants.
Definition: kcalc_settings.h:516
Definition: kcalc_const_menu.h:44
Definition: kcalc_button.h:38
static void setValueConstant(int i, const QString &v)
Set List of user programmable constants.
Definition: kcalc_settings.h:535
static QString nameConstant(int i)
Get Name of the user programmable constants.
Definition: kcalc_settings.h:526
static QString valueConstant(int i)
Get List of user programmable constants.
Definition: kcalc_settings.h:545
Definition: kcalc_button.h:58
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:42:28 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:42:28 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.