Skip to content

Commit

Permalink
release v1.0 version
Browse files Browse the repository at this point in the history
  • Loading branch information
rconcep committed Sep 11, 2018
1 parent 60b835c commit ad7d4a6
Show file tree
Hide file tree
Showing 182 changed files with 63,001 additions and 407 deletions.
369 changes: 369 additions & 0 deletions CHANGELOG.md

Large diffs are not rendered by default.

366 changes: 366 additions & 0 deletions QuESt.kv
Original file line number Diff line number Diff line change
@@ -0,0 +1,366 @@
#:kivy 1.10.1
#: import SwapTransition kivy.uix.screenmanager.SwapTransition
#: import os os

#:set WELCOME_TITLE_APP '{app_name}: '.format(app_name=APP_NAME)
#:set WELCOME_TITLE_TAG '[font={font}][size={size}][color={color}]{tagline}[/color][/size][/font]'.format(font='Rajdhani', size=int(large_font), color=hex_secondary, tagline=TAGLINE)
#:set WELCOME_TITLE WELCOME_TITLE_APP+WELCOME_TITLE_TAG

<IndexScreen>:
name: 'index'

app_select_sm: app_select_sm

BoxLayout:
orientation: 'vertical'
padding: 15
spacing: 15

AnchorLayout:
anchor_x: 'left'
anchor_y: 'top'
#orientation: 'horizontal'
size_hint_y: 0.15
spacing: 5

BoxLayout:
orientation: 'horizontal'

BoxLayout:
orientation: 'vertical'
size_hint_x: 0.20

Image:
source: os.path.join('es_gui', 'resources', 'logo', 'Quest_Logo_RGB.png')
allow_stretch: False

# TitleTextBase:
# size_hint_x: 0.6
# text: WELCOME_TITLE
# font_name: 'Rajdhani'
# color: C(hex_primary)
# markup: True

BoxLayout:
orientation: 'vertical'
size_hint_x: 0.65

BoxLayout:
size_hint_x: 0.15

Image:
source: os.path.join('es_gui', 'resources', 'images', 'SNL_Stacked_Black_Blue.jpg')
allow_stretch: False

BoxLayout:
orientation: 'horizontal'
size_hint: (1, 0.75)

GridLayout:
size_hint_x: 0.4
cols: 1
spacing: 5
row_force_default: True
row_default_height: self.height/6
padding: (100, 50)

AppSelectionIndexButton:
#state: 'down'
text: ('[font=Modern Pictograms][size=54]_[/font][/size]\nQuESt Data Manager')
on_state: root.app_select_sm.current = 'quest manager'

# AppSelectionIndexButton:
# text: ('[font=Modern Pictograms][size=54]E[/font][/size]\nTechnology Selection')
# on_state: root.app_select_sm.current = 'technology selection'

# AppSelectionIndexButton:
# text: ('[font=Modern Pictograms][size=54]B[/font][/size]\nElectricity Storage Handbook')
# on_state: root.app_select_sm.current = 'handbook'

AppSelectionIndexButton:
#state: 'down'
text: ('[font=Modern Pictograms][size=54]6[/font][/size]\nQuESt Valuation')
on_state: root.app_select_sm.current = 'valuation'

BoxLayout:
size_hint_x: 0.6
orientation: 'vertical'
padding: (70, 0)

ScreenManager:
id: app_select_sm
transition: SwapTransition()

Screen:
name: 'blank start'

Screen:
name: 'quest manager'

AppSelectionDescBox:
AppSelectionDescTitle:
text: 'QuESt Data Manager'

AppSelectionDescBody:
text: 'Manages the acquisition of data from ISOs and other sources for use in QuESt applications.'

AnchorLayout:
anchor_x: 'center'
anchor_y: 'top'

AppIndexGoButton:
text: 'Get started'
on_release: root.manager.current = 'data_manager_home'

Screen:
name: 'valuation'

AppSelectionDescBox:
AppSelectionDescTitle:
text: 'QuESt Valuation'

AppSelectionDescBody:
text: 'Estimates value for a given energy storage system. Uses historical data and a given market structure to determine the maximum amount of revenue that the energy storage device could have generated by providing multiple services (e.g., ancillary services, arbitrage, behind-the-meter).'

AnchorLayout:
anchor_x: 'center'
anchor_y: 'top'

AppIndexGoButton:
text: 'Get started'
on_release: root.manager.launch_valuation()

Screen:
name: 'technology selection'

AppSelectionDescBox:
AppSelectionDescTitle:
text: 'Technology Selection'

AppSelectionDescBody:
text: 'Help users understand and select different energy storage technologies for various applications.'

AnchorLayout:
anchor_x: 'center'
anchor_y: 'top'

AppIndexGoButton:
text: 'Coming soon!'
disabled: True

Screen:
name: 'handbook'

AppSelectionDescBox:
AppSelectionDescTitle:
text: 'Electricity Storage Handbook'

AppSelectionDescBody:
text: 'The Electricity Storage Handbook serves as an information resource for investors and venture capitalists, providing the latest developments in technologies and tools to guide their evaluations of energy storage opportunities. It includes a comprehensive database of the cost of current storage systems in a wide variety of electric utility and customer services, along with interconnection schematics.'

AnchorLayout:
anchor_x: 'center'
anchor_y: 'top'

AppIndexGoButton:
text: 'Coming soon!'
disabled: True

BoxLayout:
orientation: 'horizontal'
size_hint_y: 0.10
spacing: 50

BoxLayout:
orientation: 'vertical'
size_hint_x: 0.75

BodyTextBase:
font_size: sp(18)
text: 'Copyright 2018 National Technology & Engineering Solutions of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S. Government retains certain rights in this software.'

AnchorLayout:
size_hint_x: 0.25
anchor_y: 'center'
anchor_x: 'right'

BoxLayout:
orientation: 'horizontal'
spacing: 10

BoxLayout:
size_hint_x: 0.5

Image:
source: os.path.join('es_gui', 'resources', 'images', 'New_DOE_Logo_Color.jpg')
allow_stretch: False

BoxLayout:
size_hint_x: 0.5

Image:
source: os.path.join('es_gui', 'resources', 'images', 'NNSA Logo 2017_Color.png')
allow_stretch: False

<AppSelectionDescBox@BoxLayout>:
orientation: 'vertical'
spacing: 10

<AppSelectionDescTitle@TitleTextBase>:
size_hint_y: 0.1
color: C(hex_primary)
#text_size: self.size

<AppSelectionDescBody@BodyTextBase>:
size_hint_y: 0.9
valign: 'top'
halign: 'justify'
text_size: self.size
color: C(hex_black)

<AppSelectionIndexButton@ToggleTileButton>:
group: 'apps_index'
allow_no_selection: False
font: stnd_font

<AppIndexGoButton@TileButton>:
background_color: C(hex_primary)
color: C(hex_white)
size_hint_x: 1.0
size_hint_y: 0.15

<IndexBottomButton@TileButton>:
font_size: stnd_font
color: C(hex_black)
background_color: C('#FFFFFF')
halign: 'left'

<HelpPopup>:
#title: 'Open tutorial?'
title: 'Nothing to see here...'

BoxLayout:
orientation: 'vertical'
padding: 10

PopupLabel:
#text: 'This will open a browser.'
text: '"A user interface is like a joke. If you have to explain it, it\'s not that good."\n- Martin LeBlanc'

BoxLayout:
orientation: 'horizontal'
spacing: 10
padding: 0
size_hint_y: 0.2

# Button:
# text: 'Continue'
# on_release:
# import webbrowser
# webbrowser.open('file://' + os.path.realpath('resources/docs/sphinx/build/html/tutorial.html'))
# root.dismiss()
Button:
text: 'Got it'
on_release: root.dismiss()

<AboutScreen>:
about_label: about_label
auto_dismiss: False
size_hint: (0.52, 0.90)

BoxLayout:
orientation: 'vertical'
spacing: 10
padding: (25, 10)

canvas.before:
Color:
rgb: C(hex_white)

Rectangle:
pos: self.pos
size: self.size

BoxLayout:
orientation: 'vertical'
size_hint_y: 0.15
padding: 10

canvas.before:
Color:
rgb: C(hex_primary)

Rectangle:
pos: self.pos
size: self.size

Image:
source: os.path.join('es_gui', 'resources', 'logo', 'Quest_Logo_RGB_Reversed.png')
allow_stretch: False

# TitleTextBase:
# size_hint_y: 0.08

# text: '[b]About[/b]'
# #color: C(hex_dark_blue)
# #font_size: large_font

# markup: True

ScrollView:
size_hint_y: 0.78
size_hint_x: 1
scroll_type: ['bars', 'content']
effect_cls: 'OpacityScrollEffect'

BodyTextBase:
size_hint_y: None
size_hint_x: 1
id: about_label
markup: True
color: C(hex_black)
halign: 'justify'

AnchorLayout:
anchor_x: 'right'
anchor_y: 'bottom'
padding: 5
size_hint_y: 0.07

TileButton:
#background_color: C(hex_warm_gray)
text: 'Got it, thanks!'
#font_size: stnd_font
size_hint_y: 1
size_hint_x: 0.25
on_release: root.dismiss()

<NavigationBar>:
background_image: os.path.join('es_gui', 'resources', 'images', 'white.png')
background_normal: ''
background_color: (0, 83.0/255, 118.0/255, 1)
#background_color: C(hex_black)
size_hint_y: 0.05

ActionView:
use_separator: True

ActionPrevious:
title: ''
#color: C(hex_primary)
with_previous: True
app_icon: os.path.join('es_gui', 'resources', 'logo', 'Quest_App_Icon_50_transparent.png')
on_release: root.go_up_screen()


<NavigationButton>:
#color: C(hex_primary)

<SettingsScreen>:
auto_dismiss: False
size_hint: (0.75, 0.80)
settings_box: settings_box

BoxLayout:
orientation: 'vertical'
id: settings_box
Loading

0 comments on commit ad7d4a6

Please sign in to comment.