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