From 87aa99b65e0b53886f39526364cad799db2145ab Mon Sep 17 00:00:00 2001 From: Filippo Scognamiglio Date: Sat, 28 Dec 2013 14:52:10 +0100 Subject: [PATCH] Added GPL headers. --- main.cpp | 20 ++++++++++++ qml/cool-old-term/ColorButton.qml | 20 ++++++++++++ qml/cool-old-term/SettingComponent.qml | 20 ++++++++++++ qml/cool-old-term/SettingsWindow.qml | 20 ++++++++++++ qml/cool-old-term/ShaderManager.qml | 20 ++++++++++++ qml/cool-old-term/ShaderSettings.qml | 20 ++++++++++++ qml/cool-old-term/Storage.qml | 30 ++++++++++++------ qml/cool-old-term/TerminalWindow.qml | 20 ++++++++++++ qml/cool-old-term/main.qml | 44 +++++++++++--------------- 9 files changed, 180 insertions(+), 34 deletions(-) diff --git a/main.cpp b/main.cpp index 7471bc0..acbbfa0 100644 --- a/main.cpp +++ b/main.cpp @@ -1,3 +1,23 @@ +/******************************************************************************* +* Copyright (c) 2013 "Filippo Scognamiglio" +* https://github.com/Swordifish90/cool-old-term +* +* This file is part of cool-old-term. +* +* cool-old-term is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* This program 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 General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program. If not, see . +*******************************************************************************/ + #include #include #include diff --git a/qml/cool-old-term/ColorButton.qml b/qml/cool-old-term/ColorButton.qml index df6007b..db44719 100644 --- a/qml/cool-old-term/ColorButton.qml +++ b/qml/cool-old-term/ColorButton.qml @@ -1,3 +1,23 @@ +/******************************************************************************* +* Copyright (c) 2013 "Filippo Scognamiglio" +* https://github.com/Swordifish90/cool-old-term +* +* This file is part of cool-old-term. +* +* cool-old-term is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* This program 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 General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program. If not, see . +*******************************************************************************/ + import QtQuick 2.1 import QtQuick.Dialogs 1.1 diff --git a/qml/cool-old-term/SettingComponent.qml b/qml/cool-old-term/SettingComponent.qml index ea8e5aa..5f6b852 100644 --- a/qml/cool-old-term/SettingComponent.qml +++ b/qml/cool-old-term/SettingComponent.qml @@ -1,3 +1,23 @@ +/******************************************************************************* +* Copyright (c) 2013 "Filippo Scognamiglio" +* https://github.com/Swordifish90/cool-old-term +* +* This file is part of cool-old-term. +* +* cool-old-term is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* This program 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 General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program. If not, see . +*******************************************************************************/ + import QtQuick 2.1 import QtQuick.Controls 1.1 import QtQuick.Layouts 1.1 diff --git a/qml/cool-old-term/SettingsWindow.qml b/qml/cool-old-term/SettingsWindow.qml index 2c51a2d..c80294a 100644 --- a/qml/cool-old-term/SettingsWindow.qml +++ b/qml/cool-old-term/SettingsWindow.qml @@ -1,3 +1,23 @@ +/******************************************************************************* +* Copyright (c) 2013 "Filippo Scognamiglio" +* https://github.com/Swordifish90/cool-old-term +* +* This file is part of cool-old-term. +* +* cool-old-term is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* This program 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 General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program. If not, see . +*******************************************************************************/ + import QtQuick 2.1 import QtQuick.Controls 1.0 import QtQuick.Window 2.1 diff --git a/qml/cool-old-term/ShaderManager.qml b/qml/cool-old-term/ShaderManager.qml index 412f512..e285f07 100644 --- a/qml/cool-old-term/ShaderManager.qml +++ b/qml/cool-old-term/ShaderManager.qml @@ -1,3 +1,23 @@ +/******************************************************************************* +* Copyright (c) 2013 "Filippo Scognamiglio" +* https://github.com/Swordifish90/cool-old-term +* +* This file is part of cool-old-term. +* +* cool-old-term is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* This program 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 General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program. If not, see . +*******************************************************************************/ + import QtQuick 2.0 ShaderEffect { diff --git a/qml/cool-old-term/ShaderSettings.qml b/qml/cool-old-term/ShaderSettings.qml index 1ab8fc0..9c3cc2c 100644 --- a/qml/cool-old-term/ShaderSettings.qml +++ b/qml/cool-old-term/ShaderSettings.qml @@ -1,3 +1,23 @@ +/******************************************************************************* +* Copyright (c) 2013 "Filippo Scognamiglio" +* https://github.com/Swordifish90/cool-old-term +* +* This file is part of cool-old-term. +* +* cool-old-term is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* This program 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 General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program. If not, see . +*******************************************************************************/ + import QtQuick 2.1 Item{ diff --git a/qml/cool-old-term/Storage.qml b/qml/cool-old-term/Storage.qml index 22aaa16..8774813 100644 --- a/qml/cool-old-term/Storage.qml +++ b/qml/cool-old-term/Storage.qml @@ -1,3 +1,23 @@ +/******************************************************************************* +* Copyright (c) 2013 "Filippo Scognamiglio" +* https://github.com/Swordifish90/cool-old-term +* +* This file is part of cool-old-term. +* +* cool-old-term is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* This program 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 General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program. If not, see . +*******************************************************************************/ + import QtQuick 2.1 import QtQuick.LocalStorage 2.0 @@ -8,25 +28,19 @@ Item { return LocalStorage.openDatabaseSync("coololdterm", "1.0", "StorageDatabase", 100000); } - // At the start of the application, we can initialize the tables we need if they haven't been created yet function initialize() { var db = getDatabase(); db.transaction( function(tx) { - // Create the settings table if it doesn't already exist - // If the table exists, this is skipped tx.executeSql('CREATE TABLE IF NOT EXISTS settings(setting TEXT UNIQUE, value TEXT)'); }); initialized = true; } - // This function is used to write a setting into the database function setSetting(setting, value) { if(!initialized) initialize(); - // setting: string representing the setting name (eg: “username”) - // value: string representing the value of the setting (eg: “myUsername”) var db = getDatabase(); var res = ""; db.transaction(function(tx) { @@ -42,7 +56,7 @@ Item { // The function returns “OK” if it was successful, or “Error” if it wasn't return res; } - // This function is used to retrieve a setting from the database + function getSetting(setting) { if(!initialized) initialize(); var db = getDatabase(); @@ -55,8 +69,6 @@ Item { res = undefined; } }) - // The function returns “Unknown” if the setting was not found in the database - // For more advanced projects, this should probably be handled through error codes return res } diff --git a/qml/cool-old-term/TerminalWindow.qml b/qml/cool-old-term/TerminalWindow.qml index 2117ef6..fdbdc59 100644 --- a/qml/cool-old-term/TerminalWindow.qml +++ b/qml/cool-old-term/TerminalWindow.qml @@ -1,3 +1,23 @@ +/******************************************************************************* +* Copyright (c) 2013 "Filippo Scognamiglio" +* https://github.com/Swordifish90/cool-old-term +* +* This file is part of cool-old-term. +* +* cool-old-term is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* This program 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 General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program. If not, see . +*******************************************************************************/ + import QtQuick 2.1 import QtQuick.Window 2.0 import QtQuick.Controls 1.0 diff --git a/qml/cool-old-term/main.qml b/qml/cool-old-term/main.qml index ce33c34..ffabe48 100644 --- a/qml/cool-old-term/main.qml +++ b/qml/cool-old-term/main.qml @@ -1,28 +1,22 @@ -/**************************************************************************** - * This file is part of Terminal. - * - * Copyright (C) 2013 Pier Luigi Fiorini - * - * Author(s): - * Pier Luigi Fiorini - * - * $BEGIN_LICENSE:GPL2+$ - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * This program 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - * $END_LICENSE$ - ***************************************************************************/ +/******************************************************************************* +* Copyright (c) 2013 "Filippo Scognamiglio" +* https://github.com/Swordifish90/cool-old-term +* +* This file is part of cool-old-term. +* +* cool-old-term is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* This program 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 General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program. If not, see . +*******************************************************************************/ import QtQuick 2.1 import QtQuick.Window 2.0