Commit 6d72dbc4 authored by Lays Rodrigues's avatar Lays Rodrigues 😀

Initial commit

Signed-off-by: Lays Rodrigues's avatarLays Rodrigues <lays.rodrigues@kde.org>
parent 8e1143c8
CMakeFiles/
build/
# C++ objects and libs
*.slo
*.lo
*.o
*.a
*.la
*.lai
*.so
*.dll
*.dylib
# Qt-es
object_script.*.Release
object_script.*.Debug
*_plugin_import.cpp
/.qmake.cache
/.qmake.stash
*.pro.user
*.pro.user.*
*.qbs.user
*.qbs.user.*
*.moc
moc_*.cpp
moc_*.h
qrc_*.cpp
ui_*.h
*.qmlc
*.jsc
Makefile*
*build-*
# Qt unit tests
target_wrapper.*
# QtCreator
*.autosave
# QtCreator Qml
*.qmlproject.user
*.qmlproject.user.*
# QtCreator CMake
CMakeLists.txt.user*
# QtCreator 4.8< compilation database
compile_commands.json
# QtCreator local machine specific files for imported projects
*creator.user*
cmake_minimum_required(VERSION 3.10)
find_package(ECM REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR} ${CMAKE_MODULE_PATH})
find_package(KF5Plasma REQUIRED)
find_package(KF5 REQUIRED COMPONENTS I18n)
find_package(AtCore REQUIRED COMPONENTS AtCore)
plasma_install_package(plasmoid org.kde.atelier)
\ No newline at end of file
# Atelier Plasmoid
An applet so you can do quick prints from
your KDE Plasma environment. =D
import QtQuick 2.0
import QtQuick.Controls 2.5 as QQC2
import QtQuick.Dialogs 1.3
import QtQuick.Layouts 1.11
import org.kde.plasma.components 2.0 as PlasmaComponents
import org.kde.plasma.plasmoid 2.0
ColumnLayout {
property url printFile: ""
RowLayout {
PlasmaComponents.Label {
text: i18n("Atelier Quick Print")
Layout.alignment: Qt.AlignHCenter
}
}
GridLayout{
columns: 3
PlasmaComponents.Label {
text: i18n("Port:")
}
QQC2.ComboBox {
model: []
}
QQC2.Button{
text: i18n("Connect!")
}
PlasmaComponents.Label{
text: i18n("Baud:")
}
QQC2.ComboBox{
model: []
}
}
RowLayout{
QQC2.Button{
icon.name: "document-open"
text: i18n("Select a File")
onClicked: {
dialog.open()
}
}
PlasmaComponents.Label{
text: printFile
}
}
RowLayout{
Layout.fillWidth: true
PlasmaComponents.Label{
text: i18n("Bed")
}
QQC2.SpinBox{
}
PlasmaComponents.Label{
text: "0 ºC"
}
PlasmaComponents.Label{
Layout.fillWidth: true
}
PlasmaComponents.Label{
text: i18n("Extrusor")
}
QQC2.SpinBox{
}
PlasmaComponents.Label{
text: "0 ºC"
}
}
RowLayout{
PlasmaComponents.Label{
text: i18n("Print Progress:")
}
PlasmaComponents.Label{
text: "0%"
}
PlasmaComponents.Label{
Layout.fillWidth: true
}
PlasmaComponents.Label{
text: i18n("Status:")
}
PlasmaComponents.Label{
text: "Atcore status"
}
}
FileDialog{
id: dialog
title: i18n("Please, select a GCode")
folder: shortcuts.home
nameFilters: ["GCode Files (*.gcode *.gco)"]
onAccepted:{
printFile = dialog.fileUrl
}
onRejected: {
printFile = ""
}
}
}
\ No newline at end of file
[Desktop Entry]
Encoding=UTF-8
Name=Atelier Plasmoid
Comment=Connect and Print a file in 3D using Atelier
Type=Service
X-KDE-Library=atelier_applet
X-KDE-ParentApp=
X-KDE-PluginInfo-Author=Lays Rodrigues
X-KDE-PluginInfo-Email=lays.rodrigues@kde.org
X-KDE-PluginInfo-License=GPL
X-KDE-PluginInfo-Name=org.kde.atelier
X-KDE-PluginInfo-Version=1.0
X-KDE-PluginInfo-Website=atelier.kde.org
X-KDE-ServiceTypes=Plasma/Applet
X-Plasma-API=declarativeappletscript
X-Plasma-MainScript=ui/main.qml
X-KDE-PluginInfo-Category=Utilities
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment