JUCE Designer
 All Classes Functions Variables
juced_Slider.cpp
1 /*
2  ==============================================================================
3 
4  juced_Slider.cpp
5  Created: 12 Apr 2013 4:02:39pm
6  Author: admin
7 
8  ==============================================================================
9 */
10 
11 #include "juced_Slider.h"
12 
13 int juced_Slider::_numObjects = 0;
14 
15 juced_Slider::juced_Slider() : Slider ()
16 {
17  setName("Slider");
18  setProperty(Attributes::objectType, Modules::Slider.toString());
19  setProperty(Attributes::backgroundColour, findColour(backgroundColourId).toDisplayString(true));
20  setProperty(Attributes::height, getHeight());
21  setProperty(Attributes::width, getWidth());
22  setProperty(Attributes::name, getName());
23  ++_numObjects;
24  setProperty(Attributes::varName, getName() + String(_numObjects));
25  setProperty(Attributes::className, "Slider");
26  setProperty(Attributes::toolName, "juced_Slider");
27  setProperty(Attributes::declareExtended, false);
28 
29  setRange (0, 10, 0);
30  setProperty(Attributes::minimum, 0);
31  setProperty(Attributes::maximum, 10);
32  setProperty(Attributes::interval, 0);
33  setProperty(Attributes::value, getValue());
34  setSliderStyle (Slider::LinearHorizontal);
35  setTextBoxStyle (Slider::NoTextBox, false, 80, 20);
36  setProperty(Attributes::textEntryBoxWidth, 80);
37  setProperty(Attributes::textEntryBoxHeight, 20);
38  setProperty(Attributes::textBoxReadOnly, false);
39  setProperty(Attributes::textEntryBoxPosition, "NoTextBox");
40  setProperty(Attributes::sliderStyle, "LinearHorizontal");
41 
42  setComponentID(Uuid().toString());
43  setProperty(Attributes::ID, getComponentID());
44 }
45 
46 void juced_Slider::mouseUp (const MouseEvent& event) {}
47 void juced_Slider::mouseDrag (const MouseEvent& event) {}
48 void juced_Slider::mouseDoubleClick (const MouseEvent& event) {}
49 void juced_Slider::mouseMove (const MouseEvent& event) {}
50 void juced_Slider::mouseDown (const MouseEvent& event) {}
51 void juced_Slider::mouseEnter (const MouseEvent& event) {}
52 void juced_Slider::mouseExit (const MouseEvent& event) {}
53 void juced_Slider::mouseWheelMove (const MouseEvent &event, const MouseWheelDetails &wheel) {}