JUCE Designer
 All Classes Functions Variables
juced_TextButton.cpp
1 /*
2  ==============================================================================
3 
4  juced_TextButton.cpp
5  Created: 16 Mar 2013 12:39:06pm
6  Author: admin
7 
8  ==============================================================================
9 */
10 
11 #include "juced_TextButton.h"
12 
13 int juced_TextButton::_numObjects = 0;
14 
15 juced_TextButton::juced_TextButton() : TextButton ()
16 {
17  setName("TextButton");
18  setButtonText("Text Button");
19  setProperty(Attributes::objectType, Modules::TextButton.toString());
20  setProperty(Attributes::font, getFont().toString());
21  setProperty(Attributes::buttonColour, findColour(TextButton::buttonColourId).toDisplayString(true));
22  setProperty(Attributes::buttonOnColour, findColour(TextButton::buttonOnColourId).toDisplayString(true));
23  setProperty(Attributes::height, getHeight());
24  setProperty(Attributes::width, getWidth());
25  setProperty(Attributes::name, getName());
26  ++_numObjects;
27  setProperty(Attributes::varName, getName() + String(_numObjects));
28  setProperty(Attributes::buttonText, getButtonText());
29  setProperty(Attributes::connectedEdges, getConnectedEdgeFlags());
30  setProperty(Attributes::className, "TextButton");
31  setProperty(Attributes::toolName, "juced_TextButton");
32  setProperty(Attributes::declareExtended, false);
33  setComponentID(Uuid().toString());
34  setProperty(Attributes::ID, getComponentID());
35 }
36 
37 void juced_TextButton::mouseUp (const MouseEvent& event) {}
38 void juced_TextButton::mouseDrag (const MouseEvent& event) {}
39 void juced_TextButton::mouseDoubleClick (const MouseEvent& event) {}
40 void juced_TextButton::mouseMove (const MouseEvent& event) {}
41 void juced_TextButton::mouseDown (const MouseEvent& event) {}
42 void juced_TextButton::mouseEnter (const MouseEvent& event) {}
43 void juced_TextButton::mouseExit (const MouseEvent& event) {}
44 void juced_TextButton::mouseWheelMove (const MouseEvent &event, const MouseWheelDetails &wheel) {}