<commit_before>/*
qgvdial is a cross platform Google Voice Dialer
Copyright (C) 2010  <NAME>

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA

Contact: <EMAIL>
*/

import Qt 4.7

Rectangle {
    id: container
    objectName: "SmsPage"

    signal sigBack
    signal sigText(string strNumbers, string strText)

    color: "black"

    function addSmsDestination(name, number) {
        modelDestinations.append({"name": name, "number": number});
    }

    function clearAllDestinations() {
        smsText.text = '';
        modelDestinations.clear();
    }

    ListModel {
        id: modelDestinations
        ListElement {
            name: "<NAME>"
            number: "+1 111 222 3333"
        }
    }

    Timer {
        id: hackModelTimer
        property int index: 0
        interval: 100
        repeat: false
        onTriggered: {
            modelDestinations.remove(index);
            if (modelDestinations.count == 0) {
                container.sigBack();
            }
        }
    }

    Flickable {
        id: mainFlick
        anchors.fill: parent

        contentHeight: smsLabel.height + smsTextRect.height + remainingCharsText.height +
                       ((pixHeight+1) * modelDestinations.count) + btnRow.height + 8
        contentWidth: width

        property real pixHeight: (parent.height + parent.width) / 35

        Text {
            id: smsLabel
            anchors {
                top: parent.top
                left: parent.left
                right: parent.right
            }

            text: "SMS Text:"
            color: "white"

            font.pixelSize: mainFlick.pixHeight
        }

        FocusScope {
            Rectangle {
                id: smsTextRect

                anchors {
                    top: smsLabel.bottom
                    left: parent.left
                }
                height: smsText.paintedHeight
                width: parent.width - 1<commit_msg>fix sizes<commit_after>/*
qgvdial is a cross platform Google Voice Dialer
Copyright (C) 2010  <NAME>

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA

Contact: <EMAIL>
*/

import Qt 4.7

Rectangle {
    id: container
    objectName: "SmsPage"

    signal sigBack
    signal sigText(string strNumbers, string strText)

    color: "black"

    function addSmsDestination(name, number) {
        modelDestinations.append({"name": name, "number": number});
    }

    function clearAllDestinations() {
        smsText.text = '';
        modelDestinations.clear();
    }

    ListModel {
        id: modelDestinations
        ListElement {
            name: "<NAME>"
            number: "+1 111 222 3333"
        }
    }

    Timer {
        id: hackModelTimer
        property int index: 0
        interval: 100
        repeat: false
        onTriggered: {
            modelDestinations.remove(index);
            if (modelDestinations.count == 0) {
                container.sigBack();
            }
        }
    }

    Flickable {
        id: mainFlick
        anchors.fill: parent

        contentHeight: smsLabel.height + smsTextRect.height + remainingCharsText.height +
                       ((pixHeight+1) * modelDestinations.count) + btnRow.height + 8
        contentWidth: width

        property real pixHeight: (parent.height + parent.width) / 35

        Text {
            id: smsLabel
            anchors {
                top: parent.top
                left: parent.left
                right: parent.right
            }

            text: "SMS Text:"
            color: "white"

            font.pixelSize: mainFlick.pixHeight
        }

        FocusScope {
            anchors {
                top: smsLabel.bottom
                left: parent.left
            }
            height: smsText.paintedHeight
            width: parent.width - 1

            Rectangle {
                id: smsTextRect

                anchors.fill: parent
{'fraction_non_alphanumeric': 0.0695351517479831, 'fraction_numerical': 0.01536688436419516, 'mean_word_length': 1.8927777777777777, 'pattern_counts': {'":': 4, '<': 9, '<?xml version=': 0, '>': 9, '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': '2681597', 'n_tokens_mistral': 1450, 'n_tokens_neox': 1331, 'n_words': 480}