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