# Path: designer/project_window_qt.py
# class Ui_ProjectWindow(object):
#     def setupUi(self, ProjectWindow):
#     def retranslateUi(self, ProjectWindow):
# 
# Path: interface/about_dialog.py
# class AboutDialog(QtWidgets.QDialog, about_dialog_qt.Ui_Dialog):
#     def __init__(self, parent=None):
# 
# Path: interface/battery_window.py
# class BatteryWindow(QtWidgets.QMainWindow, battery_window_qt.Ui_CognitiveBattery):
#     def __init__(self, base_dir, project_dir, res_width, res_height):
#     def set_default_settings(self):
#     def show_documentation(self):
#     def show_license(self):
#     def show_contribute(self):
#     def show_browse_issues(self):
#     def show_new_issue(self):
#     def show_releases(self):
#     def show_settings(self):
#     def show_about(self):
#     def show_update(self):
#     def error_dialog(self, message):
#     def random_order_selected(self):
#     def select_all(self):
#     def deselect_all(self):
#     def move_up(self):
#     def move_down(self):
#     def get_settings(self):
#     def closeEvent(self, event):
#     def start(self):
# 
# Path: interface/project_new_window.py
# class NewProjectWindow(QtWidgets.QDialog, project_new_window_qt.Ui_NewProjectWindow):
#     def __init__(self, base_dir, project_list):
#     def select_file(self):
#     def create_project(self):
# 
# Path: interface/update_dialog.py
# class UpdateDialog(QtWidgets.QDialog, update_dialog_qt.Ui_Dialog):
#     def __init__(self, parent=None):
#     def check_version(self):
#     def show_releases(self):
# 
# Path: utils/values.py
# def get_version():
# def get_links():


import os
import json
from datetime import datetime
from PyQt5 import QtCore, QtGui, QtWidgets
from designer import project_window_qt
from interface import about_dialog, battery_window, project_new_window, update_dialog
from utils import values
        self.refresh_projects()

    # Open web browser to the documentation page
    def show_documentation(self):
        QtGui.QDesktopServices.openUrl(QtCore.QUrl(self.links["github"]))

    # Open web browser to the license page
    def show_license(self):
        QtGui.QDesktopServices.openUrl(QtCore.QUrl(self.links["license"]))

    # Open web browser to the github develop branch for contribution
    def show_contribute(self):
        QtGui.QDesktopServices.openUrl(QtCore.QUrl(self.links["develop"]))

    # Open web browser to the github issues page
    def show_browse_issues(self):
        QtGui.QDesktopServices.openUrl(QtCore.QUrl(self.links["issues"]))

    # Open web browser to the github new issue post
    def show_new_issue(self):
        QtGui.QDesktopServices.openUrl(QtCore.QUrl(self.links["new_issue"]))

    # Open web browser to the github releases page
    def show_releases(self):
        QtGui.QDesktopServices.openUrl(QtCore.QUrl(self.links["releases"]))

    # Create a new AboutDialog object and display it
    def show_about(self):
        # If the about dialog does not exist, create one
        if self.about is None:

# Path: designer/project_window_qt.py
# class Ui_ProjectWindow(object):
#     def setupUi(self, ProjectWindow):
#     def retranslateUi(self, ProjectWindow):
# 
# Path: interface/about_dialog.py
# class AboutDialog(QtWidgets.QDialog, about_dialog_qt.Ui_Dialog):
#     def __init__(self, parent=None):
# 
# Path: interface/battery_window.py
# class BatteryWindow(QtWidgets.QMainWindow, battery_window_qt.Ui_CognitiveBattery):
#     def __init__(self, base_dir, project_dir, res_width, res_height):
#     def set_default_settings(self):
#     def show_documentation(self):
#     def show_license(self):
#     def show_contribute(self):
#     def show_browse_issues(self):
#     def show_new_issue(self):
#     def show_releases(self):
#     def show_settings(self):
#     def show_about(self):
#     def show_update(self):
#     def error_dialog(self, message):
#     def random_order_selected(self):
#     def select_all(self):
#     def deselect_all(self):
#     def move_up(self):
#     def move_down(self):
#     def get_settings(self):
#     def closeEvent(self, event):
#     def start(self):
# 
# Path: interface/project_new_window.py
# class NewProjectWindow(QtWidgets.QDialog, project_new_window_qt.Ui_NewProjectWindow):
#     def __init__(self, base_dir, project_list):
#     def select_file(self):
#     def create_project(self):
# 
# Path: interface/update_dialog.py
# class UpdateDialog(QtWidgets.QDialog, update_dialog_qt.Ui_Dialog):
#     def __init__(self, parent=None):
#     def check_version(self):
#     def show_releases(self):
# 
# Path: utils/values.py
# def get_version():
# def get_links():


# Path: interface/project_window.py
import os
import json
from datetime import datetime
from PyQt5 import QtCore, QtGui, QtWidgets
from designer import project_window_qt
from interface import about_dialog, battery_window, project_new_window, update_dialog
from utils import values

        self.refresh_projects()

    # Open web browser to the documentation page
    def show_documentation(self):
        QtGui.QDesktopServices.openUrl(QtCore.QUrl(self.links["github"]))

    # Open web browser to the license page
    def show_license(self):
        QtGui.QDesktopServices.openUrl(QtCore.QUrl(self.links["license"]))

    # Open web browser to the github develop branch for contribution
    def show_contribute(self):
        QtGui.QDesktopServices.openUrl(QtCore.QUrl(self.links["develop"]))

    # Open web browser to the github issues page
    def show_browse_issues(self):
        QtGui.QDesktopServices.openUrl(QtCore.QUrl(self.links["issues"]))

    # Open web browser to the github new issue post
    def show_new_issue(self):
        QtGui.QDesktopServices.openUrl(QtCore.QUrl(self.links["new_issue"]))

    # Open web browser to the github releases page
    def show_releases(self):
        QtGui.QDesktopServices.openUrl(QtCore.QUrl(self.links["releases"]))

    # Create a new AboutDialog object and display it
    def show_about(self):
        # If the about dialog does not exist, create one
        if self.about is None:

            self.about = about_dialog.AboutDialog(self)