/* * configGeneral.qml — pagina di configurazione del plasmoide AI Credits Balance. */ import QtQuick import QtQuick.Layouts import org.kde.plasma.components 3.0 as PC3 import org.kde.kirigami as Kirigami Item { id: page property alias cfg_refreshIntervalSec: refreshSpin.value property alias cfg_warnThreshold: warnSpin.value property alias cfg_critThreshold: critSpin.value property alias cfg_dsBudget: budgetSpin.value property alias cfg_showDeepSeek: dsCheck.checked property alias cfg_showOpenRouter: orCheck.checked ColumnLayout { anchors.fill: parent anchors.margins: Kirigami.Units.largeSpacing spacing: Kirigami.Units.smallSpacing PC3.Label { text: i18n("Intervallo di aggiornamento (secondi)") font.bold: true } PC3.SpinBox { id: refreshSpin from: 30 to: 3600 stepSize: 30 Layout.fillWidth: true } PC3.Label { text: i18n("Soglia residuo giallo (%)"); font.bold: true } PC3.SpinBox { id: warnSpin; from: 0; to: 100; Layout.fillWidth: true } PC3.Label { text: i18n("Soglia residuo rosso (%)"); font.bold: true } PC3.SpinBox { id: critSpin; from: 0; to: 100; Layout.fillWidth: true } PC3.Label { text: i18n("Budget di riferimento DeepSeek ($)") font.bold: true } PC3.SpinBox { id: budgetSpin from: 0 to: 100000 stepSize: 1 Layout.fillWidth: true } PC3.Label { text: i18n("Usato per calcolare % e barra di DeepSeek. 0 = nessuna barra (solo valore).") color: Kirigami.Theme.disabledTextColor font.pointSize: Kirigami.Theme.defaultFont.pointSize - 3 Layout.fillWidth: true wrapMode: Text.Wrap } PC3.CheckBox { id: dsCheck; text: i18n("Mostra DeepSeek") } PC3.CheckBox { id: orCheck; text: i18n("Mostra OpenRouter") } Item { Layout.fillHeight: true } } }