JUCE Designer
 All Classes Functions Variables
juced_ComboBox.cpp
1 /*
2  ==============================================================================
3 
4  juced_ComboBox.cpp
5  Created: 17 Apr 2013 11:22:20pm
6  Author: admin
7 
8  ==============================================================================
9 */
10 
11 #include "juced_ComboBox.h"
12 
13 int juced_ComboBox::_numObjects = 0;
14 
15 juced_ComboBox::juced_ComboBox() : ComboBox ()
16 {
17  setText("Combo Box", false);
18  setName("Box");
19  setProperty(Attributes::objectType, Modules::ComboBox.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::height, getHeight());
25  setProperty(Attributes::width, getWidth());
26  setProperty(Attributes::itemList, "");
27  setProperty(Attributes::name, getName());
28  ++_numObjects;
29  setProperty(Attributes::varName, getName() + String(_numObjects));
30  setProperty(Attributes::className, "ComboBox");
31  setProperty(Attributes::toolName, "juced_ComboBox");
32  setProperty(Attributes::declareExtended, false);
33  setComponentID(Uuid().toString());
34  setProperty(Attributes::ID, getComponentID());
35 }
36 
37 void juced_ComboBox::mouseUp (const MouseEvent& event) {}
38 void juced_ComboBox::mouseDrag (const MouseEvent& event) {}
39 void juced_ComboBox::mouseDoubleClick (const MouseEvent& event) {}
40 void juced_ComboBox::mouseMove (const MouseEvent& event) {}
41 void juced_ComboBox::mouseDown (const MouseEvent& event) {}
42 void juced_ComboBox::mouseEnter (const MouseEvent& event) {}
43 void juced_ComboBox::mouseExit (const MouseEvent& event) {}
44 void juced_ComboBox::mouseWheelMove (const MouseEvent &event, const MouseWheelDetails &wheel) {}