// Action Bar description file :Kalensbar
//Added OJ prefs 12/2/14 KB
//Moved code out into sub functions 7-11-17
run("Action Bar","/plugins/ActionBar/_Kalensbar.txt");
exit();
run("Action Bar","/plugins/ActionBar/_Kalensbar.txt");
function ojQualifyApply(rowArray,flag){
for (i=0; i0){
ojQualify(rowArray[i], flag);
}
}
}
function markernamesFromColumnnames() {
markers = newArray(ojNColumns());
index=0;
for (i=1;i<=ojNColumns();i++){
if(endsWith(ojGetColumnTitle(i),"xpos")){
markers[index]=substring(ojGetColumnTitle(i), 0, indexOf(ojGetColumnTitle(i), "_"));//find the name before the _
index++;
}
}
markers=Array.trim(markers,index);
return markers;
}
function goToOjnumAll(ojnum){
currentimage=ojImageLink();
firstoncurrentimage=ojFirstObject(currentimage);
zoom=getZoom();
totalimages=ojNImages();
for (n=1; n<=totalimages; n++){
if(n != currentimage){
if(ojGetImageValue(n, "ID")!=0){
ojShowImage(n);
firstonimage=ojFirstObject(n);
ojToShow=ojnum+firstonimage-1;
if (ojToShow<=ojLastObject(n)&& ojToShow>0) {
ojShowObject(ojToShow);
yoj=ojYPos(1);
xoj=ojXPos(1);
ojZoom(zoom,xoj,yoj);
}
}
}
// To return the view to the start
}
ojShowImage(currentimage);
ojToShow=ojnum+firstoncurrentimage-1;
if(ojToShow>0)
ojShowObject(ojToShow);
yoj=ojYPos(1);
xoj=ojXPos(1);
ojZoom(zoom,xoj,yoj);
}