summaryrefslogtreecommitdiff
path: root/CalculatorButton.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'CalculatorButton.cpp')
-rw-r--r--CalculatorButton.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/CalculatorButton.cpp b/CalculatorButton.cpp
new file mode 100644
index 0000000..59fcfe3
--- /dev/null
+++ b/CalculatorButton.cpp
@@ -0,0 +1,24 @@
+#include "CalculatorButton.h"
+
+CalculatorButton::CalculatorButton( Window * pParent,
+ const Rect rFrame,
+ const String &pLabel,
+ unsigned int nWindowLayoutFlags,
+ unsigned int uiVKey)
+{
+ pButton = new Button(pParent, rFrame, pLabel, nWindowLayoutFlags);
+
+ Shortcut pShortcut(pButton, uiVKey, 0, KEY_QUAL_NONE);
+ pShortcut.Fire.Connect(this, &CalculatorButton::OnClicked);
+}
+
+CalculatorButton::CalculatorButton( Window * pParent,
+ const Rect rFrame,
+ const String &pLabel,
+ unsigned int nWindowLayoutFlags)
+{
+ pButton = new Button(pParent, rFrame, pLabel, nWindowLayoutFlags);
+}
+
+void CalculatorButton::OnClicked() {
+}