-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
114 changed files
with
990 additions
and
246 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-54.6 KB
docs/source/img/case_study_a5_output_electricity_load_unit_flow.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-35.5 KB
docs/source/img/case_study_a5_spine_opt_tool_properties_cmdline_args.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-19.4 KB
docs/source/img/gdx_export_parameter_indexing_window_using_existing_domain.png
Binary file not shown.
Binary file removed
BIN
-20.6 KB
docs/source/img/gdx_export_parameter_indexing_window_using_new_domain.png
Binary file not shown.
Binary file not shown.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file removed
BIN
-8.96 KB
docs/source/img/partial_dag_input_datastore-tool-output_data_store.png
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file removed
BIN
-36.7 KB
docs/source/img/simple_system_add_unit__from_node_relationships.png
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file removed
BIN
-13.8 KB
docs/source/spine_db_editor/img/add_relationship_classes_dialog.png
Diff not rendered.
Diff not rendered.
Oops, something went wrong.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 60 additions & 0 deletions
60
spinetoolbox/spine_db_editor/ui/commit_viewer_affected_item_info.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# -*- coding: utf-8 -*- | ||
###################################################################################################################### | ||
# Copyright (C) 2017-2022 Spine project consortium | ||
# Copyright Spine Toolbox contributors | ||
# This file is part of Spine Toolbox. | ||
# Spine Toolbox is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser 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 Lesser General | ||
# Public License for more details. You should have received a copy of the GNU Lesser General Public License along with | ||
# this program. If not, see <http://www.gnu.org/licenses/>. | ||
###################################################################################################################### | ||
|
||
################################################################################ | ||
## Form generated from reading UI file 'commit_viewer_affected_item_info.ui' | ||
## | ||
## Created by: Qt User Interface Compiler version 6.5.2 | ||
## | ||
## WARNING! All changes made in this file will be lost when recompiling UI file! | ||
################################################################################ | ||
|
||
from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale, | ||
QMetaObject, QObject, QPoint, QRect, | ||
QSize, QTime, QUrl, Qt) | ||
from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor, | ||
QFont, QFontDatabase, QGradient, QIcon, | ||
QImage, QKeySequence, QLinearGradient, QPainter, | ||
QPalette, QPixmap, QRadialGradient, QTransform) | ||
from PySide6.QtWidgets import (QApplication, QHeaderView, QLabel, QSizePolicy, | ||
QTableWidget, QTableWidgetItem, QVBoxLayout, QWidget) | ||
|
||
class Ui_Form(object): | ||
def setupUi(self, Form): | ||
if not Form.objectName(): | ||
Form.setObjectName(u"Form") | ||
Form.resize(400, 300) | ||
self.verticalLayout = QVBoxLayout(Form) | ||
self.verticalLayout.setObjectName(u"verticalLayout") | ||
self.verticalLayout.setContentsMargins(0, 0, 0, 0) | ||
self.affected_items_table = QTableWidget(Form) | ||
self.affected_items_table.setObjectName(u"affected_items_table") | ||
|
||
self.verticalLayout.addWidget(self.affected_items_table) | ||
|
||
self.fetch_status_label = QLabel(Form) | ||
self.fetch_status_label.setObjectName(u"fetch_status_label") | ||
|
||
self.verticalLayout.addWidget(self.fetch_status_label) | ||
|
||
|
||
self.retranslateUi(Form) | ||
|
||
QMetaObject.connectSlotsByName(Form) | ||
# setupUi | ||
|
||
def retranslateUi(self, Form): | ||
Form.setWindowTitle(QCoreApplication.translate("Form", u"Form", None)) | ||
self.fetch_status_label.setText(QCoreApplication.translate("Form", u"TextLabel", None)) | ||
# retranslateUi | ||
|
56 changes: 56 additions & 0 deletions
56
spinetoolbox/spine_db_editor/ui/commit_viewer_affected_item_info.ui
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
###################################################################################################################### | ||
# Copyright (C) 2017-2022 Spine project consortium | ||
# Copyright Spine Toolbox contributors | ||
# This file is part of Spine Toolbox. | ||
# Spine Toolbox is free software: you can redistribute it and\/or modify it under the terms of the GNU Lesser 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 Lesser General | ||
# Public License for more details. You should have received a copy of the GNU Lesser General Public License along with | ||
# this program. If not, see <http:\/\/www.gnu.org\/licenses\/>. | ||
###################################################################################################################### | ||
--> | ||
<ui version="4.0"> | ||
<class>Form</class> | ||
<widget class="QWidget" name="Form"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>0</x> | ||
<y>0</y> | ||
<width>400</width> | ||
<height>300</height> | ||
</rect> | ||
</property> | ||
<property name="windowTitle"> | ||
<string>Form</string> | ||
</property> | ||
<layout class="QVBoxLayout" name="verticalLayout"> | ||
<property name="leftMargin"> | ||
<number>0</number> | ||
</property> | ||
<property name="topMargin"> | ||
<number>0</number> | ||
</property> | ||
<property name="rightMargin"> | ||
<number>0</number> | ||
</property> | ||
<property name="bottomMargin"> | ||
<number>0</number> | ||
</property> | ||
<item> | ||
<widget class="QTableWidget" name="affected_items_table"/> | ||
</item> | ||
<item> | ||
<widget class="QLabel" name="fetch_status_label"> | ||
<property name="text"> | ||
<string>TextLabel</string> | ||
</property> | ||
</widget> | ||
</item> | ||
</layout> | ||
</widget> | ||
<resources/> | ||
<connections/> | ||
</ui> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,154 @@ | ||
# -*- coding: utf-8 -*- | ||
###################################################################################################################### | ||
# Copyright (C) 2017-2022 Spine project consortium | ||
# Copyright Spine Toolbox contributors | ||
# This file is part of Spine Toolbox. | ||
# Spine Toolbox is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser 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 Lesser General | ||
# Public License for more details. You should have received a copy of the GNU Lesser General Public License along with | ||
# this program. If not, see <http://www.gnu.org/licenses/>. | ||
###################################################################################################################### | ||
|
||
################################################################################ | ||
## Form generated from reading UI file 'db_commit_viewer.ui' | ||
## | ||
## Created by: Qt User Interface Compiler version 6.5.2 | ||
## | ||
## WARNING! All changes made in this file will be lost when recompiling UI file! | ||
################################################################################ | ||
|
||
from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale, | ||
QMetaObject, QObject, QPoint, QRect, | ||
QSize, QTime, QUrl, Qt) | ||
from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor, | ||
QFont, QFontDatabase, QGradient, QIcon, | ||
QImage, QKeySequence, QLinearGradient, QPainter, | ||
QPalette, QPixmap, QRadialGradient, QTransform) | ||
from PySide6.QtWidgets import (QApplication, QFrame, QHBoxLayout, QHeaderView, | ||
QLabel, QSizePolicy, QSplitter, QStackedWidget, | ||
QTabWidget, QTextBrowser, QTreeWidget, QTreeWidgetItem, | ||
QVBoxLayout, QWidget) | ||
|
||
class Ui_DBCommitViewer(object): | ||
def setupUi(self, DBCommitViewer): | ||
if not DBCommitViewer.objectName(): | ||
DBCommitViewer.setObjectName(u"DBCommitViewer") | ||
DBCommitViewer.resize(716, 218) | ||
self.horizontalLayout_2 = QHBoxLayout(DBCommitViewer) | ||
self.horizontalLayout_2.setObjectName(u"horizontalLayout_2") | ||
self.splitter = QSplitter(DBCommitViewer) | ||
self.splitter.setObjectName(u"splitter") | ||
self.splitter.setOrientation(Qt.Horizontal) | ||
self.commit_list = QTreeWidget(self.splitter) | ||
__qtreewidgetitem = QTreeWidgetItem() | ||
__qtreewidgetitem.setText(0, u"1"); | ||
self.commit_list.setHeaderItem(__qtreewidgetitem) | ||
self.commit_list.setObjectName(u"commit_list") | ||
self.splitter.addWidget(self.commit_list) | ||
self.verticalFrame = QFrame(self.splitter) | ||
self.verticalFrame.setObjectName(u"verticalFrame") | ||
self.verticalFrame.setStyleSheet(u"QFrame {\n" | ||
" background-color: white;\n" | ||
"}") | ||
self.verticalFrame.setFrameShape(QFrame.Box) | ||
self.verticalLayout = QVBoxLayout(self.verticalFrame) | ||
self.verticalLayout.setSpacing(3) | ||
self.verticalLayout.setObjectName(u"verticalLayout") | ||
self.verticalLayout.setContentsMargins(5, 5, 5, 0) | ||
self.label = QLabel(self.verticalFrame) | ||
self.label.setObjectName(u"label") | ||
|
||
self.verticalLayout.addWidget(self.label) | ||
|
||
self.affected_items_widget_stack = QStackedWidget(self.verticalFrame) | ||
self.affected_items_widget_stack.setObjectName(u"affected_items_widget_stack") | ||
self.items_page = QWidget() | ||
self.items_page.setObjectName(u"items_page") | ||
self.horizontalLayout_3 = QHBoxLayout(self.items_page) | ||
self.horizontalLayout_3.setSpacing(0) | ||
self.horizontalLayout_3.setObjectName(u"horizontalLayout_3") | ||
self.horizontalLayout_3.setContentsMargins(0, 0, 0, 0) | ||
self.affected_item_tab_widget = QTabWidget(self.items_page) | ||
self.affected_item_tab_widget.setObjectName(u"affected_item_tab_widget") | ||
self.affected_item_tab_widget.setDocumentMode(True) | ||
|
||
self.horizontalLayout_3.addWidget(self.affected_item_tab_widget) | ||
|
||
self.affected_items_widget_stack.addWidget(self.items_page) | ||
self.no_items_page = QWidget() | ||
self.no_items_page.setObjectName(u"no_items_page") | ||
self.horizontalLayout = QHBoxLayout(self.no_items_page) | ||
self.horizontalLayout.setSpacing(0) | ||
self.horizontalLayout.setObjectName(u"horizontalLayout") | ||
self.horizontalLayout.setContentsMargins(0, 0, 0, 0) | ||
self.no_affected_items_notice = QTextBrowser(self.no_items_page) | ||
self.no_affected_items_notice.setObjectName(u"no_affected_items_notice") | ||
self.no_affected_items_notice.setFocusPolicy(Qt.NoFocus) | ||
self.no_affected_items_notice.setVerticalScrollBarPolicy(Qt.ScrollBarAlwaysOff) | ||
self.no_affected_items_notice.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOff) | ||
self.no_affected_items_notice.setOpenLinks(False) | ||
|
||
self.horizontalLayout.addWidget(self.no_affected_items_notice) | ||
|
||
self.affected_items_widget_stack.addWidget(self.no_items_page) | ||
self.loading_page = QWidget() | ||
self.loading_page.setObjectName(u"loading_page") | ||
self.horizontalLayout_4 = QHBoxLayout(self.loading_page) | ||
self.horizontalLayout_4.setSpacing(0) | ||
self.horizontalLayout_4.setObjectName(u"horizontalLayout_4") | ||
self.horizontalLayout_4.setContentsMargins(0, 0, 0, 0) | ||
self.loading_label = QLabel(self.loading_page) | ||
self.loading_label.setObjectName(u"loading_label") | ||
self.loading_label.setAlignment(Qt.AlignLeading|Qt.AlignLeft|Qt.AlignTop) | ||
|
||
self.horizontalLayout_4.addWidget(self.loading_label) | ||
|
||
self.affected_items_widget_stack.addWidget(self.loading_page) | ||
self.no_commit_selected_page = QWidget() | ||
self.no_commit_selected_page.setObjectName(u"no_commit_selected_page") | ||
self.verticalLayout_2 = QVBoxLayout(self.no_commit_selected_page) | ||
self.verticalLayout_2.setSpacing(0) | ||
self.verticalLayout_2.setObjectName(u"verticalLayout_2") | ||
self.verticalLayout_2.setContentsMargins(0, 0, 0, 0) | ||
self.label_2 = QLabel(self.no_commit_selected_page) | ||
self.label_2.setObjectName(u"label_2") | ||
self.label_2.setAlignment(Qt.AlignLeading|Qt.AlignLeft|Qt.AlignTop) | ||
|
||
self.verticalLayout_2.addWidget(self.label_2) | ||
|
||
self.affected_items_widget_stack.addWidget(self.no_commit_selected_page) | ||
|
||
self.verticalLayout.addWidget(self.affected_items_widget_stack) | ||
|
||
self.splitter.addWidget(self.verticalFrame) | ||
|
||
self.horizontalLayout_2.addWidget(self.splitter) | ||
|
||
|
||
self.retranslateUi(DBCommitViewer) | ||
|
||
self.affected_items_widget_stack.setCurrentIndex(3) | ||
self.affected_item_tab_widget.setCurrentIndex(-1) | ||
|
||
|
||
QMetaObject.connectSlotsByName(DBCommitViewer) | ||
# setupUi | ||
|
||
def retranslateUi(self, DBCommitViewer): | ||
self.label.setText(QCoreApplication.translate("DBCommitViewer", u"Affected items", None)) | ||
self.no_affected_items_notice.setHtml(QCoreApplication.translate("DBCommitViewer", u"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n" | ||
"<html><head><meta name=\"qrichtext\" content=\"1\" /><meta charset=\"utf-8\" /><style type=\"text/css\">\n" | ||
"p, li { white-space: pre-wrap; }\n" | ||
"hr { height: 1px; border-width: 0; }\n" | ||
"li.unchecked::marker { content: \"\\2610\"; }\n" | ||
"li.checked::marker { content: \"\\2612\"; }\n" | ||
"</style></head><body style=\" font-family:'Segoe UI'; font-size:9pt; font-weight:400; font-style:normal;\">\n" | ||
"<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">No affected items found for selected commit.</p>\n" | ||
"<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Note, that it is not possible to show items that have been removed by this or a later commit.</p></body></html>", None)) | ||
self.loading_label.setText(QCoreApplication.translate("DBCommitViewer", u"Loading...", None)) | ||
self.label_2.setText(QCoreApplication.translate("DBCommitViewer", u"Select a commit from the list on the left.", None)) | ||
pass | ||
# retranslateUi | ||
|
Oops, something went wrong.