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