Commit a2f8fb5f authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

Added a new harmattan frontend

parent 38bfd30a
import com.nokia.meego 1.0
Button {}
install( FILES
Label.qml Button.qml CalcButton.qml ExpressionInput.qml
Keyboard.qml RealInput.qml ToolTip.qml SimpleListView.qml
KAlgebraPage.qml KAlgebraMobile.qml
DESTINATION ${DATA_INSTALL_DIR}/kalgebra/plugins/widgets/
)
import QtQuick 1.0
Button
{
onClicked: doOp(text)
}
\ No newline at end of file
import com.nokia.meego 1.0
TextField
{
id: input
placeholderText: "Enter the expression to calculate..."
// Keys.onPressed: {
// console.log("bum :: "+text);
// hints.text=text;
// }
//
// ToolTip {
// id: hints
// }
// height: input.font.pixelSize+5
}
// Rectangle
// {
// color: "green"
// }
\ No newline at end of file
import QtQuick 1.0
import org.kde.analitza 1.0
Rectangle
{
SystemPalette { id:syspal }
color: syspal.window
height: 400
width: 300
ToolBar{
id: toolbar
width: parent.width
height: 40
Row {
spacing: 2
anchors.verticalCenter: parent.verticalCenter
ToolButton{
// iconSource: "images/folder_new.png"
anchors.verticalCenter: parent.verticalCenter
text: "Go!"
onClicked: {
var idx = pluginsView.currentIndex
var toOpen = plugins.pluginPath(idx)
try {
var component = Qt.createComponent(toOpen)
frame.addTab(component)
} catch (e) {
console.log("error: "+e)
}
}
}
}
}
TabFrame
{
id: frame
width: parent.width
anchors.top: toolbar.bottom
anchors.bottom: parent.bottom
Tab {
title: "hola"
TableView {
id: pluginsView
anchors.fill: parent
headerVisible: false
TableColumn {
role: "display"
caption: "Title"
width: 120
}
// itemDelegate: Row { /*Image { source: 'image://desktoptheme/'+decoration-name } */Text { text: display } }
// highlight: Rectangle { color: "lightsteelblue"; radius: 5 }
model: PluginsModel { id: plugins }
}
}
}
}
import QtDesktop 0.1
Tab {
title: "<unnamed>"
}
import QtQuick 1.0
Row {
signal clear
Grid {
id:nums
columns: 3
rows: 4
height: 300
anchors.top: parent.top
anchors.bottom: parent.bottom
signal newInput(string text)
signal deleteChar
CalcButton { text: "1" }
CalcButton { text: "2" }
CalcButton { text: "3" }
CalcButton { text: "4" }
CalcButton { text: "5" }
CalcButton { text: "6" }
CalcButton { text: "7" }
CalcButton { text: "8" }
CalcButton { text: "9" }
CalcButton { text: "." }
CalcButton { text: "0" }
}
Flow {
flow: Flow.TopToBottom
CalcButton { text: "-" }
CalcButton { text: "+" }
CalcButton { text: "*" }
CalcButton { text: "/" }
CalcButton { text: "(" }
CalcButton { text: ")" }
Button { text: "AC"; onClicked: clear();}
anchors.bottom: nums.bottom
anchors.top: nums.top
}
}
\ No newline at end of file
import com.nokia.meego 1.0
Label {}
import QtQuick 1.1
import com.nokia.meego 1.0
TextField
{
property double value: parseFloat(text)
validator: DoubleValidator {}
onValueChanged: text=value.toString()
}
\ No newline at end of file
import QtQuick 1.1
ListView
{
id: view
property string role: ""
delegate: Label { text: model[role] }
}
import QtQuick 1.0
Rectangle {
id: tooltip
property string text
Text {
text: tooltip.text
anchors.fill: parent
}
color: "blue"
}
\ No newline at end of file
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