summaryrefslogtreecommitdiff
path: root/CalculatorButton.cpp
blob: 59fcfe3db92c30078ee34d69283e522758a71cc8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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() {
}