+ function setFocus(){
+ if(focusIndex==0){
+ inputSearchText.setFocus();
+ if(!inputSearchText.enabled)
+ focusIndex++;
+ }
+ if(focusIndex==1)
+ clearButton.focus=true;
+
+ if(focusIndex==2){
+ searchButton.focus = true
+ if(!searchButton.enabled)
+ focusIndex++;
+ }
+
+ if(focusIndex==3){
+ historyPrevToolButton.focus = true
+ if(!historyPrevToolButton.enabled)
+ focusIndex++;
+ }
+
+ if(focusIndex==4){
+ historyShowToolButton.focus = true
+ if(!historyShowToolButton.enabled)
+ focusIndex++;
+ }
+
+ if(focusIndex==5){
+ historyNextToolButton.focus = true
+ if(!historyNextToolButton.enabled)
+ focusIndex++;
+ }
+
+ if (focusIndex>5){
+ nextFocus();
+ focusIndex=-1;
+ focus=true;
+ }
+ }
+
+ function focusOff(){ focus=true; focusIndex=-1;}
+
+ signal nextFocus();
+ signal checkFocus();