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

kcalc

  • sources
  • kde-4.14
  • kdeutils
  • kcalc
kcalc_const_button.h
Go to the documentation of this file.
1 /*
2 Copyright (C) 2001 - 2013 Evan Teran
3  evan.teran@gmail.com
4 
5 Copyright (C) 1996 - 2000 Bernd Johannes Wuebben
6  wuebben@kde.org
7 
8 This program is free software; you can redistribute it and/or
9 modify it under the terms of the GNU General Public License as
10 published by the Free Software Foundation; either version 2 of
11 the License, or (at your option) any later version.
12 
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17 
18 You should have received a copy of the GNU General Public License
19 along with this program. If not, see <http://www.gnu.org/licenses/>.
20 */
21 
22 #ifndef KCALC_CONST_BUTTON_H_
23 #define KCALC_CONST_BUTTON_H_
24 
25 #include "kcalc_button.h"
26 
27 struct science_constant;
28 
29 
30 class KCalcConstButton : public KCalcButton {
31  Q_OBJECT
32 
33 public:
34 
35  explicit KCalcConstButton(QWidget *parent);
36 
37  KCalcConstButton(const QString &label, QWidget *parent,
38  const QString &tooltip = QString());
39 
40  QString constant() const;
41 
42  void setButtonNumber(int num);
43 
44  void setLabelAndTooltip();
45 
46 signals:
47  void clicked(int num);
48 
49 private slots:
50  void slotConfigureButton();
51  void slotChooseScientificConst(const science_constant &const_chosen);
52  void slotClicked();
53 
54 private:
55  void initPopupMenu();
56 
57 private:
58  int button_num_;
59 };
60 
61 
62 #endif
KCalcConstButton::clicked
void clicked(int num)
QWidget
kcalc_button.h
science_constant
Definition: kcalc_const_menu.h:36
KCalcConstButton::setLabelAndTooltip
void setLabelAndTooltip()
Definition: kcalc_const_button.cpp:74
KCalcConstButton::KCalcConstButton
KCalcConstButton(QWidget *parent)
Definition: kcalc_const_button.cpp:35
KCalcConstButton::setButtonNumber
void setButtonNumber(int num)
Definition: kcalc_const_button.cpp:65
QString
KCalcConstButton::constant
QString constant() const
Definition: kcalc_const_button.cpp:56
KCalcConstButton
Definition: kcalc_const_button.h:30
KCalcButton
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

KDE's Doxygen guidelines are available online.

kcalc

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

kdeutils API Reference

Skip menu "kdeutils API Reference"
  • ark
  • filelight
  • kcalc
  • kcharselect
  • kdf
  • kfloppy
  • kgpg
  • ktimer
  • kwallet
  • sweeper

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal