Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
b083de2
Initial Commit
mhsuhail00 Jun 30, 2025
2342d73
Added Tutorial Widget that gets triggered by Tutorial Button
mhsuhail00 Jun 30, 2025
2b7311d
Added Project Details Widget that gets triggered by Its Button
mhsuhail00 Jun 30, 2025
ddc736c
Added widgets for Carbon Emission Cost Data, these widgets can be tes…
mhsuhail00 Jun 30, 2025
8215e40
Added widgets for Structure Works Data and a GitIgnore file
mhsuhail00 Jun 30, 2025
d911e0e
Added widgets for Maintenance and Repair Data
mhsuhail00 Jun 30, 2025
667af9a
Added Project Details Left Widget
mhsuhail00 Jul 4, 2025
b36131d
Fixed the click functionality of the available buttons and tabs
mhsuhail00 Jul 8, 2025
f8c903b
Fixed closing Signal for all the widgets
mhsuhail00 Jul 8, 2025
54eb9ca
removing desktop_app folder that needed to be replaced by new desktop…
mhsuhail00 Jul 9, 2025
aaf9cf9
Add 'src/osbridgelcca/desktop_app/' from commit 'f8c903b9987db351cdc9…
mhsuhail00 Jul 9, 2025
13fd50e
Fixed the appearance of 'x' button in components of structure_works_d…
mhsuhail00 Jul 9, 2025
8680ab5
Update main_template.py
mhsuhail00 Jul 9, 2025
559bb79
Added Tabs in Project detail widgets
mhsuhail00 Sep 7, 2025
2be68a9
Graph Integration
mhsuhail00 Sep 8, 2025
f777642
Integrated database and functions
mhsuhail00 Nov 6, 2025
cca6f14
Added save and change stated in structural modules
mhsuhail00 Nov 12, 2025
869216e
Updated Road User UI
mhsuhail00 Nov 13, 2025
366860c
-Updated Calculations and ui
mhsuhail00 Nov 25, 2025
92601c0
-Accident related cost
mhsuhail00 Nov 30, 2025
4fe57ea
updated utils/IRC_SP_30.py for
swas02 Dec 2, 2025
5e9eebc
Added voc calculations
mhsuhail00 Dec 3, 2025
9f23259
Restructured VOT calculations
mhsuhail00 Dec 12, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file.
21 changes: 21 additions & 0 deletions src/osbridgelcca.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Metadata-Version: 2.4
Name: osbridgelcca
Version: 0.1.0
Summary: Life Cycle Cost Analysis for Bridges
Author-email: Your Name <your.email@example.com>
License: MIT
License-File: LICENSE
Requires-Dist: django
Requires-Dist: djangorestframework
Requires-Dist: pyqt5
Requires-Dist: plotly
Requires-Dist: pylatex
Requires-Dist: pytest
Requires-Dist: matplotlib
Requires-Dist: pandas
Requires-Dist: numpy
Requires-Dist: psycopg2-binary
Requires-Dist: requests
Requires-Dist: flask
Requires-Dist: gunicorn
Dynamic: license-file
9 changes: 9 additions & 0 deletions src/osbridgelcca.egg-info/SOURCES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
LICENSE
README.md
pyproject.toml
src/osbridgelcca/__init__.py
src/osbridgelcca.egg-info/PKG-INFO
src/osbridgelcca.egg-info/SOURCES.txt
src/osbridgelcca.egg-info/dependency_links.txt
src/osbridgelcca.egg-info/requires.txt
src/osbridgelcca.egg-info/top_level.txt
1 change: 1 addition & 0 deletions src/osbridgelcca.egg-info/dependency_links.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

13 changes: 13 additions & 0 deletions src/osbridgelcca.egg-info/requires.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
django
djangorestframework
pyqt5
plotly
pylatex
pytest
matplotlib
pandas
numpy
psycopg2-binary
requests
flask
gunicorn
1 change: 1 addition & 0 deletions src/osbridgelcca.egg-info/top_level.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
osbridgelcca
84 changes: 84 additions & 0 deletions src/osbridgelcca/desktop_app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# Python bytecode and cache
**__pycache__/
*.py[cod]
*$py.class

# Virtual environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/
.pytest_cache/
cover/

# Sphinx documentation
docs/_build/

# Jupyter Notebook
.ipynb_checkpoints

# PyCharm
.idea/

# VSCode
.vscode/

# Qt Creator & QML
*.user
*.pro.user
*.qbs.user
*.qmlproject.user
*.autosave

# MacOS
.DS_Store

# Windows
Thumbs.db
ehthumbs.db
Desktop.ini

# Misc
*.log
43 changes: 16 additions & 27 deletions src/osbridgelcca/desktop_app/app.py
Original file line number Diff line number Diff line change
@@ -1,32 +1,21 @@
from PyQt5.QtWidgets import QApplication, QMainWindow, QPushButton, QVBoxLayout, QWidget
from desktop_app.logic.controller import Controller


class MainWindow(QMainWindow):
"""Main application window."""

from PySide6.QtWidgets import QApplication, QMainWindow
from PySide6.QtCore import QCoreApplication, Qt
from main_template import UiMainWindow
import sys

class MyMainWindow(QMainWindow):
"""
The main application window that uses a custom title bar.
"""
def __init__(self):
super().__init__()
self.setWindowTitle("OsBridgeLCCA - Desktop App")
self.setGeometry(100, 100, 800, 600)

layout = QVBoxLayout()
self.run_button = QPushButton("Run LCCA Analysis")
self.run_button.clicked.connect(self.run_analysis)
layout.addWidget(self.run_button)

container = QWidget()
container.setLayout(layout)
self.setCentralWidget(container)

def run_analysis(self):
"""Trigger analysis when button is clicked."""
controller = Controller()
controller.run_calculations()

self.ui = UiMainWindow()
self.ui.setupUi(self)

if __name__ == "__main__":
app = QApplication([])
window = MainWindow()
# Enable mnemonics (underlined shortcuts) for menu items
QCoreApplication.setAttribute(Qt.AA_DontShowIconsInMenus, False)
app = QApplication(sys.argv)
window = MyMainWindow()
window.show()
app.exec_()
sys.exit(app.exec())
1 change: 0 additions & 1 deletion src/osbridgelcca/desktop_app/assets/icons/logo.png

This file was deleted.

1 change: 0 additions & 1 deletion src/osbridgelcca/desktop_app/assets/icons/refresh_icon.svg

This file was deleted.

2 changes: 2 additions & 0 deletions src/osbridgelcca/desktop_app/dependencies/d3js.js

Large diffs are not rendered by default.

Loading