Code polished from unused functions
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -5,3 +5,4 @@ data/
|
|||||||
.flake8
|
.flake8
|
||||||
*.qtds
|
*.qtds
|
||||||
artemis_rc.py
|
artemis_rc.py
|
||||||
|
site
|
||||||
|
|||||||
1780
artemis/resources.py
1780
artemis/resources.py
File diff suppressed because it is too large
Load Diff
@@ -4,6 +4,7 @@ import QtQuick.Controls
|
|||||||
import QtQuick.Window
|
import QtQuick.Window
|
||||||
import QtQuick.Controls.Material
|
import QtQuick.Controls.Material
|
||||||
|
|
||||||
|
|
||||||
Dialog {
|
Dialog {
|
||||||
x: (parent.width - width) / 2
|
x: (parent.width - width) / 2
|
||||||
y: (parent.height - height) / 2
|
y: (parent.height - height) / 2
|
||||||
|
|||||||
@@ -12,8 +12,8 @@ Window {
|
|||||||
height: 800
|
height: 800
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
x = Screen.width/2 - width/2
|
x = Screen.width / 2 - width / 2
|
||||||
y = Screen.height/2 - height/2
|
y = Screen.height / 2 - height / 2
|
||||||
}
|
}
|
||||||
|
|
||||||
title: qsTr("Artemis")
|
title: qsTr("Artemis")
|
||||||
@@ -169,13 +169,16 @@ Window {
|
|||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
Label {
|
||||||
|
text: qsTr("Enter the name of the new database:")
|
||||||
|
Layout.bottomMargin: 15
|
||||||
|
font.pointSize: 12
|
||||||
|
}
|
||||||
TextField {
|
TextField {
|
||||||
id: newDbName
|
id: newDbName
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
placeholderText: qsTr("New DB Name")
|
placeholderText: qsTr("Name")
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
onAccepted: {
|
onAccepted: {
|
||||||
|
|||||||
@@ -13,8 +13,8 @@ Window {
|
|||||||
height: 400
|
height: 400
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
x = Screen.width/2 - width/2
|
x = Screen.width / 2 - width / 2
|
||||||
y = Screen.height/2 - height/2
|
y = Screen.height / 2 - height / 2
|
||||||
}
|
}
|
||||||
|
|
||||||
modality: Qt.ApplicationModal
|
modality: Qt.ApplicationModal
|
||||||
@@ -41,14 +41,6 @@ Window {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function getModel() {
|
|
||||||
var modelList = []
|
|
||||||
for (var i = 0; i < myModel.count; i++) {
|
|
||||||
modelList.push(myModel.get(i).value)
|
|
||||||
}
|
|
||||||
return modelList
|
|
||||||
}
|
|
||||||
|
|
||||||
function clearAll() {
|
function clearAll() {
|
||||||
myModel.clear()
|
myModel.clear()
|
||||||
}
|
}
|
||||||
@@ -79,11 +71,15 @@ Window {
|
|||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
Label {
|
||||||
|
text: qsTr("Enter the name of the new tag:")
|
||||||
|
Layout.bottomMargin: 15
|
||||||
|
font.pointSize: 12
|
||||||
|
}
|
||||||
TextField {
|
TextField {
|
||||||
id: newCatName
|
id: newCatName
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
placeholderText: qsTr("Tag")
|
placeholderText: qsTr("Tag Name")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -105,11 +101,15 @@ Window {
|
|||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
Label {
|
||||||
|
text: qsTr("Enter the new name for the tag:")
|
||||||
|
Layout.bottomMargin: 15
|
||||||
|
font.pointSize: 12
|
||||||
|
}
|
||||||
TextField {
|
TextField {
|
||||||
id: renameCatName
|
id: renameCatName
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
placeholderText: qsTr("Tag")
|
placeholderText: qsTr("Tag Name")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import QtQuick.Controls
|
|||||||
import QtQuick.Controls.Material
|
import QtQuick.Controls.Material
|
||||||
import QtQuick.Layouts
|
import QtQuick.Layouts
|
||||||
|
|
||||||
|
|
||||||
Window {
|
Window {
|
||||||
id: windowDBmanager
|
id: windowDBmanager
|
||||||
|
|
||||||
@@ -41,14 +42,6 @@ Window {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function getModel() {
|
|
||||||
var modelList = []
|
|
||||||
for (var i = 0; i < myModel.count; i++) {
|
|
||||||
modelList.push(myModel.get(i).name)
|
|
||||||
}
|
|
||||||
return modelList
|
|
||||||
}
|
|
||||||
|
|
||||||
function clearAll() {
|
function clearAll() {
|
||||||
titleLabel.text = 'N/A'
|
titleLabel.text = 'N/A'
|
||||||
totDocsLabel.text = ''
|
totDocsLabel.text = ''
|
||||||
@@ -62,7 +55,6 @@ Window {
|
|||||||
loadDB(myModel.get(listView.currentIndex).db_dir_name)
|
loadDB(myModel.get(listView.currentIndex).db_dir_name)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function renameDb() {
|
function renameDb() {
|
||||||
if (textDBName.readOnly) {
|
if (textDBName.readOnly) {
|
||||||
textDBName.focus = true
|
textDBName.focus = true
|
||||||
@@ -120,7 +112,11 @@ Window {
|
|||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
Label {
|
||||||
|
text: qsTr("Enter the new for the database:")
|
||||||
|
Layout.bottomMargin: 15
|
||||||
|
font.pointSize: 12
|
||||||
|
}
|
||||||
TextField {
|
TextField {
|
||||||
id: newDbName
|
id: newDbName
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|||||||
@@ -12,8 +12,8 @@ Window {
|
|||||||
height: 500
|
height: 500
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
x = Screen.width/2 - width/2
|
x = Screen.width / 2 - width / 2
|
||||||
y = Screen.height/2 - height/2
|
y = Screen.height / 2 - height / 2
|
||||||
}
|
}
|
||||||
|
|
||||||
modality: Qt.ApplicationModal
|
modality: Qt.ApplicationModal
|
||||||
|
|||||||
@@ -12,8 +12,8 @@ Window {
|
|||||||
height: 400
|
height: 400
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
x = Screen.width/2 - width/2
|
x = Screen.width / 2 - width / 2
|
||||||
y = Screen.height/2 - height/2
|
y = Screen.height / 2 - height / 2
|
||||||
}
|
}
|
||||||
|
|
||||||
modality: Qt.ApplicationModal
|
modality: Qt.ApplicationModal
|
||||||
|
|||||||
@@ -12,8 +12,8 @@ Window {
|
|||||||
height: 400
|
height: 400
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
x = Screen.width/2 - width/2
|
x = Screen.width / 2 - width / 2
|
||||||
y = Screen.height/2 - height/2
|
y = Screen.height / 2 - height / 2
|
||||||
}
|
}
|
||||||
|
|
||||||
modality: Qt.ApplicationModal
|
modality: Qt.ApplicationModal
|
||||||
|
|||||||
@@ -11,8 +11,8 @@ Window {
|
|||||||
height: 700
|
height: 700
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
x = Screen.width/2 - width/2
|
x = Screen.width / 2 - width / 2
|
||||||
y = Screen.height/2 - height/2
|
y = Screen.height / 2 - height / 2
|
||||||
}
|
}
|
||||||
|
|
||||||
modality: Qt.ApplicationModal
|
modality: Qt.ApplicationModal
|
||||||
|
|||||||
@@ -53,7 +53,6 @@ Page {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
labelDay1Event.text = poseidon_data['FORCST']['PRE_DATES'][0]
|
labelDay1Event.text = poseidon_data['FORCST']['PRE_DATES'][0]
|
||||||
labelDay2Event.text = poseidon_data['FORCST']['PRE_DATES'][1]
|
labelDay2Event.text = poseidon_data['FORCST']['PRE_DATES'][1]
|
||||||
labelDay3Event.text = poseidon_data['FORCST']['PRE_DATES'][2]
|
labelDay3Event.text = poseidon_data['FORCST']['PRE_DATES'][2]
|
||||||
@@ -119,7 +118,6 @@ Page {
|
|||||||
labelEventMajor2.text = geoMajorM2 + ' / ' + geoMajorH2
|
labelEventMajor2.text = geoMajorM2 + ' / ' + geoMajorH2
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
anchors.rightMargin: 20
|
anchors.rightMargin: 20
|
||||||
|
|||||||
Reference in New Issue
Block a user