<commit_before>import QtQuick 2.2
import QtQuick.Controls 1.0
import QtQuick.Layouts 1.0
import QtQuick.Controls.Styles 1.0
import UIContextModel 1.0
import LayerManager 1.0
import "./propertyeditors" as LayerManagement
import "../../controls" as Controls
import "../../Global.js" as Global

ToolBar{
    id : maptools
    width : parent.width
    height : 35
    Button {
        height : 25
        width : 25
        id : entireMap
        anchors.verticalCenter: parent.verticalCenter
        anchors.leftMargin: 2
        tooltip: "EntireMap"
        Image {
            anchors.verticalCenter: parent.verticalCenter
            anchors.horizontalCenter: parent.horizontalCenter

            source : iconsource("entiremap20.png")
        }
        action : entireClicked
    }

    Button {
        height : 25
        width : 25
        id : refreshButton
        anchors.verticalCenter: parent.verticalCenter
        anchors.left :entireMap.right
        action : refreshClicked
        anchors.rightMargin: 2
        Image {
            anchors.verticalCenter: parent.verticalCenter
            anchors.horizontalCenter: parent.horizontalCenter
            source : iconsource("refresh20.png")
        }
    }


    Button {
        height : 25
        width : 25
        id : panButton
        anchors.verticalCenter: parent.verticalCenter
        anchors.left :refreshButton.right
        anchors.rightMargin: 2
        Image {
            anchors.verticalCenter: parent.verticalCenter
            anchors.horizontalCenter: parent.horizontalCenter
            source : iconsource("pan20.png")
        }
    }


    Button {
        height : 25
        width : 25
        id : zoominButton
        anchors.verticalCenter: parent.verticalCenter
        anchors.left :panButton.right
        anchors.rightMargin: 2
        action : zoomClicked
        checkable: true
        checked: false
        Image {
            id : zoomimage
            anchors.verticalCenter: parent.verticalCenter
            anchors.horizontalCenter: parent.horizontalCenter
            source : iconsource(zoominButton.checked ? "zoomin20A.png" : "zoomin20.png")
        }
        onClicked: {
            checked = !checked
        }
    }
    Button {
        height : 25
        width : 25
        id : zoomoutButton
        anchors.verticalCenter: parent.verticalCenter
        anchors.left :zoominButton.right
        anchors.leftMargin: 2
        checkable: true
        checked: false
        Image {
            anchors.verticalCenter: parent.verticalCenter
            anchors.horizontalCenter: parent.horizontalCenter

            source : iconsource("zoomout20.png")
        }
    }
}

<commit_msg>redone the l;ayout and split of the buttons to a seperate class<commit_after>import QtQuick 2.2
import QtQuick.Controls 1.0
import QtQuick.Layouts 1.0
import QtQuick.Controls.Styles 1.0
import UIContextModel 1.0
import LayerManager 1.0
import "./propertyeditors" as LayerManagement
import "../../controls" as Controls
import "../../Global.js" as Global

ToolBar{
    id : maptools
    width : parent.width
    height : 35
    Row {
        anchors.fill: parent
        anchors.verticalCenter: parent.verticalCenter
        spacing : 2
        MapExtentButton{
            icon  :"entiremap20.png"
            id : entireMap
            action : entireClicked
        }

        MapExtentButton{
            id : refreshButton
            icon : "refresh20.png"
            action : refreshClicked
        }

        MapExtentButton{
            id : panButton
            icon : "pan20.png"
        }

        MapExtentButton{
            id : zoominButton
            icon : zoominButton.checked ? "zoomin20A.png" : "zoomin20.png"
            action : zoomClicked
            checkable: true
            checked: false
            onClicked: {
                checked = !checked
            }
        }
        MapExtentButton{
            id : zoomoutButton
            icon :"zoomout20.png"
        }
    }
}


{'fraction_non_alphanumeric': 0.07331670822942643, 'fraction_numerical': 0.01945137157107232, 'mean_word_length': 1.7585969738651994, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5451389', 'n_tokens_mistral': 1126, 'n_tokens_neox': 1059, 'n_words': 253}