Standarizing Names
This commit is contained in:
1 parent
d221a68978
commit
a4e59d210b
5 files changed
+42
-24
No files matched your search
+17
-8
@@ -4,23 +4,32 @@ function newAAMastersPlottersCandlesVolumesCandlesCandlePanel() {
|
||||
let thisObject = {
|
||||
fitFunction: undefined,
|
||||
container: undefined,
|
||||
onEventRaised: onEventRaised,
|
||||
onRecordChange: onRecordChange,
|
||||
draw: draw,
|
||||
getContainer: getContainer,
|
||||
initialize: initialize
|
||||
initialize: initialize,
|
||||
finalize: finalize
|
||||
};
|
||||
|
||||
let container = newContainer();
|
||||
container.initialize();
|
||||
thisObject.container = container;
|
||||
|
||||
container.frame.containerName = "Candle";
|
||||
thisObject.container = newContainer();
|
||||
thisObject.container.initialize();
|
||||
thisObject.container.frame.containerName = "Candle";
|
||||
|
||||
let currentCandle;
|
||||
let panelTabButton
|
||||
|
||||
return thisObject;
|
||||
|
||||
function finalize() {
|
||||
thisObject.container.finalize()
|
||||
thisObject.container = undefined
|
||||
thisObject.fitFunction = undefined
|
||||
|
||||
currentCandle = undefined
|
||||
panelTabButton.finalize()
|
||||
panelTabButton = undefined
|
||||
}
|
||||
|
||||
function initialize() {
|
||||
|
||||
thisObject.container.frame.width = UI_PANEL.WIDTH.NORMAL;
|
||||
@@ -59,7 +68,7 @@ function newAAMastersPlottersCandlesVolumesCandlesCandlePanel() {
|
||||
}
|
||||
|
||||
|
||||
function onEventRaised(lastCurrentCandle) {
|
||||
function onRecordChange(lastCurrentCandle) {
|
||||
|
||||
currentCandle = lastCurrentCandle;
|
||||
|
||||
|
||||
+3
-3
@@ -439,7 +439,7 @@
|
||||
if (datetime.valueOf() >= candle.begin && datetime.valueOf() <= candle.end) {
|
||||
|
||||
thisObject.currentCandle = candle;
|
||||
thisObject.container.eventHandler.raiseEvent("Current Candle Changed", thisObject.currentCandle);
|
||||
thisObject.container.eventHandler.raiseEvent("Current Record Changed", thisObject.currentCandle);
|
||||
|
||||
}
|
||||
}
|
||||
@@ -515,7 +515,7 @@
|
||||
if (datetime.valueOf() >= candle.begin && datetime.valueOf() <= candle.end) {
|
||||
|
||||
thisObject.currentCandle = candle;
|
||||
thisObject.container.eventHandler.raiseEvent("Current Candle Changed", thisObject.currentCandle);
|
||||
thisObject.container.eventHandler.raiseEvent("Current Record Changed", thisObject.currentCandle);
|
||||
|
||||
}
|
||||
}
|
||||
@@ -785,7 +785,7 @@
|
||||
period: timeFrame,
|
||||
innerCandle: candle
|
||||
};
|
||||
thisObject.container.eventHandler.raiseEvent("Current Candle Changed", currentCandle);
|
||||
thisObject.container.eventHandler.raiseEvent("Current Record Changed", currentCandle);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+17
-8
@@ -4,23 +4,32 @@ function newAAMastersPlottersCandlesVolumesVolumesVolumePanel() {
|
||||
let thisObject = {
|
||||
fitFunction: undefined,
|
||||
container: undefined,
|
||||
onEventRaised: onEventRaised,
|
||||
onRecordChange: onRecordChange,
|
||||
draw: draw,
|
||||
getContainer: getContainer,
|
||||
initialize: initialize
|
||||
initialize: initialize,
|
||||
finalize: finalize
|
||||
};
|
||||
|
||||
let container = newContainer();
|
||||
container.initialize();
|
||||
thisObject.container = container;
|
||||
|
||||
container.frame.containerName = "Volume";
|
||||
thisObject.container = newContainer();
|
||||
thisObject.container.initialize();
|
||||
thisObject.container.frame.containerName = "Volume";
|
||||
|
||||
let currentVolume;
|
||||
let panelTabButton
|
||||
|
||||
return thisObject;
|
||||
|
||||
function finalize() {
|
||||
thisObject.container.finalize()
|
||||
thisObject.container = undefined
|
||||
thisObject.fitFunction = undefined
|
||||
|
||||
currentVolume = undefined
|
||||
panelTabButton.finalize()
|
||||
panelTabButton = undefined
|
||||
}
|
||||
|
||||
function initialize() {
|
||||
|
||||
thisObject.container.frame.width = UI_PANEL.WIDTH.NORMAL;
|
||||
@@ -59,7 +68,7 @@ function newAAMastersPlottersCandlesVolumesVolumesVolumePanel() {
|
||||
}
|
||||
|
||||
|
||||
function onEventRaised(lastCurrentVolume) {
|
||||
function onRecordChange(lastCurrentVolume) {
|
||||
|
||||
currentVolume = lastCurrentVolume;
|
||||
|
||||
|
||||
+3
-3
@@ -346,7 +346,7 @@
|
||||
|
||||
if (datetime.valueOf() >= volume.begin && datetime.valueOf() <= volume.end) {
|
||||
|
||||
thisObject.container.eventHandler.raiseEvent("Current Volume Changed", thisObject.currentCandle);
|
||||
thisObject.container.eventHandler.raiseEvent("Current Record Changed", thisObject.currentCandle);
|
||||
|
||||
}
|
||||
}
|
||||
@@ -417,7 +417,7 @@
|
||||
|
||||
if (datetime.valueOf() >= volume.begin && datetime.valueOf() <= volume.end) {
|
||||
|
||||
thisObject.container.eventHandler.raiseEvent("Current Volume Changed", thisObject.currentCandle);
|
||||
thisObject.container.eventHandler.raiseEvent("Current Record Changed", thisObject.currentCandle);
|
||||
|
||||
}
|
||||
}
|
||||
@@ -791,7 +791,7 @@
|
||||
innerVolumeBar: volume
|
||||
};
|
||||
|
||||
thisObject.container.eventHandler.raiseEvent("Current Volume Changed", currentVolume);
|
||||
thisObject.container.eventHandler.raiseEvent("Current Record Changed", currentVolume);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
{
|
||||
"codeName": "CandlePanel",
|
||||
"moduleName": "CandlePanel",
|
||||
"event": "Current Candle Changed"
|
||||
"event": "Current Record Changed"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -25,7 +25,7 @@
|
||||
{
|
||||
"codeName": "VolumePanel",
|
||||
"moduleName": "VolumePanel",
|
||||
"event": "Current Volume Changed"
|
||||
"event": "Current Record Changed"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user