Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Igniter re-write #1441

Merged
merged 75 commits into from
Apr 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
5336e97
Create draft PR for #1249
antirotor Apr 2, 2021
c52fd49
moved MongoWidget to global scope
iLLiCiTiT Apr 27, 2021
e9ab750
removed pype path selector
iLLiCiTiT Apr 27, 2021
f3a91bb
removed unsued btn variable
iLLiCiTiT Apr 27, 2021
ad5a1cc
don't force size of dialog
iLLiCiTiT Apr 27, 2021
ffe10e2
minor changes of line order
iLLiCiTiT Apr 27, 2021
5d39d00
store widgets and define signal callbacks at one place
iLLiCiTiT Apr 27, 2021
a11934d
renamed attribute `_mongo` to `_mongo_widget`
iLLiCiTiT Apr 27, 2021
9f86aa4
trigger mongo validation outside on ui init
iLLiCiTiT Apr 27, 2021
bf5923e
proper widget parenting
iLLiCiTiT Apr 27, 2021
97fd9cf
removed install and run buttons
iLLiCiTiT Apr 27, 2021
2c111b2
implemented basic of button with options
iLLiCiTiT Apr 27, 2021
4304be1
added single run button
iLLiCiTiT Apr 27, 2021
f0a8f0b
Use stylesheets
iLLiCiTiT Apr 27, 2021
4e441e8
modified Run button styles
iLLiCiTiT Apr 28, 2021
8f4b76e
added style for qmenu
iLLiCiTiT Apr 28, 2021
66a33d3
mongo input does not change stylesheet on focus in
iLLiCiTiT Apr 28, 2021
c62a9c4
removed qlineedit foc styles
iLLiCiTiT Apr 28, 2021
9594eb5
changed styles of run button
iLLiCiTiT Apr 28, 2021
2b2fed6
added styles for exit button
iLLiCiTiT Apr 28, 2021
a7c3083
install thread pass only integer instead of python object
iLLiCiTiT Apr 28, 2021
3cd3b28
reorganized init phase
iLLiCiTiT Apr 28, 2021
c18264b
Run triggers run after successful installation
iLLiCiTiT Apr 28, 2021
1df4970
validate mongo connection only on run click
iLLiCiTiT Apr 28, 2021
3c32544
replaced MongoWidget with MongoUrlInput
iLLiCiTiT Apr 28, 2021
934a462
fixed stylesheet for invalid qlineedit
iLLiCiTiT Apr 28, 2021
5644562
validate existing install thread
iLLiCiTiT Apr 28, 2021
653312f
remove background from buttons widget
iLLiCiTiT Apr 28, 2021
f7fafcd
minor changes
iLLiCiTiT Apr 28, 2021
c104c26
use main btn height instead of frame height
iLLiCiTiT Apr 28, 2021
fee3a24
added warning state for mongo url input
iLLiCiTiT Apr 28, 2021
0e02152
buttons are aligned in specific way
iLLiCiTiT Apr 28, 2021
67576c2
removed unused InstallResult
iLLiCiTiT Apr 28, 2021
36f8848
set openPypeMongo if running from code
iLLiCiTiT Apr 28, 2021
6395af6
modified installation logic to not do double checks
iLLiCiTiT Apr 28, 2021
f1f4f2a
added minimalistic docstring to install thread
iLLiCiTiT Apr 28, 2021
17ae9af
removed current implementation of CollapsibleWidget
iLLiCiTiT Apr 28, 2021
c7a50e3
removed openpype_path_label
iLLiCiTiT Apr 28, 2021
2bee53d
moved label style to stylesheet
iLLiCiTiT Apr 28, 2021
783cf66
added minim resolution
iLLiCiTiT Apr 28, 2021
fc4682e
dedicated widget for console output
iLLiCiTiT Apr 28, 2021
1e21778
specified points of font size
iLLiCiTiT Apr 28, 2021
493c22c
use scale factor
iLLiCiTiT Apr 28, 2021
1620f05
added missing import
iLLiCiTiT Apr 29, 2021
c26112c
changed position of popup menu
iLLiCiTiT Apr 29, 2021
74cbbb9
added disabled styles
iLLiCiTiT Apr 29, 2021
1ad514e
validate mongo connection only once
iLLiCiTiT Apr 29, 2021
483ba3b
cath all exceptions
iLLiCiTiT Apr 29, 2021
707c2b0
fix schema regex
iLLiCiTiT Apr 29, 2021
1993746
be explicit in exception
iLLiCiTiT Apr 29, 2021
c4cb343
show console only on install crash
iLLiCiTiT Apr 29, 2021
df7cd37
added separators
iLLiCiTiT Apr 29, 2021
6bf97e9
moved widget in init_ui
iLLiCiTiT Apr 29, 2021
b8b0a5a
only resize to default size
iLLiCiTiT Apr 29, 2021
d169e07
show label that is trying to connect to mongo
iLLiCiTiT Apr 29, 2021
f9e991e
show percent in progress bar on install start
iLLiCiTiT Apr 29, 2021
5d2fee5
changed styles to match current pype ui
iLLiCiTiT Apr 29, 2021
92dfa58
added nicer progress bar
iLLiCiTiT Apr 29, 2021
e33e68e
remove debug
iLLiCiTiT Apr 29, 2021
5dfba1d
fix mongo validation with lower timeout
iLLiCiTiT Apr 29, 2021
b360b06
remove label margins
iLLiCiTiT Apr 29, 2021
6f38c0f
use separated commands and labels
iLLiCiTiT Apr 29, 2021
adca0ca
remove default value from options menu
iLLiCiTiT Apr 29, 2021
bcad2cd
removed separators
iLLiCiTiT Apr 29, 2021
845747e
only one label for mongo
iLLiCiTiT Apr 29, 2021
98b5909
use spacing
iLLiCiTiT Apr 29, 2021
63504a9
change size and style colour
mkolar Apr 29, 2021
5cc3977
start tray if igniter was executed
iLLiCiTiT Apr 29, 2021
1aa91da
use dialog result instead of global RESULT
iLLiCiTiT Apr 29, 2021
d5d3ec2
fix install thread
iLLiCiTiT Apr 29, 2021
b1f3f8a
change font to poppins
mkolar Apr 29, 2021
64e0880
get rid of warning style
iLLiCiTiT Apr 29, 2021
d124c69
change message in ui
mkolar Apr 29, 2021
f74f062
add more exceptions to catch
iLLiCiTiT Apr 29, 2021
8e46257
change placeholder tooltip
mkolar Apr 29, 2021
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
93 changes: 93 additions & 0 deletions igniter/Poppins/OFL.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
Copyright 2020 The Poppins Project Authors (https://github.com/itfoundry/Poppins)

This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL


-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------

PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.

The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.

DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.

"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).

"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).

"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.

"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.

PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:

1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.

2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.

3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.

4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.

5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.

TERMINATION
This license becomes null and void if any of the above conditions are
not met.

DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
Binary file added igniter/Poppins/Poppins-Black.ttf
Binary file not shown.
Binary file added igniter/Poppins/Poppins-BlackItalic.ttf
Binary file not shown.
Binary file added igniter/Poppins/Poppins-Bold.ttf
Binary file not shown.
Binary file added igniter/Poppins/Poppins-BoldItalic.ttf
Binary file not shown.
Binary file added igniter/Poppins/Poppins-ExtraBold.ttf
Binary file not shown.
Binary file added igniter/Poppins/Poppins-ExtraBoldItalic.ttf
Binary file not shown.
Binary file added igniter/Poppins/Poppins-ExtraLight.ttf
Binary file not shown.
Binary file added igniter/Poppins/Poppins-ExtraLightItalic.ttf
Binary file not shown.
Binary file added igniter/Poppins/Poppins-Italic.ttf
Binary file not shown.
Binary file added igniter/Poppins/Poppins-Light.ttf
Binary file not shown.
Binary file added igniter/Poppins/Poppins-LightItalic.ttf
Binary file not shown.
Binary file added igniter/Poppins/Poppins-Medium.ttf
Binary file not shown.
Binary file added igniter/Poppins/Poppins-MediumItalic.ttf
Binary file not shown.
Binary file added igniter/Poppins/Poppins-Regular.ttf
Binary file not shown.
Binary file added igniter/Poppins/Poppins-SemiBold.ttf
Binary file not shown.
Binary file added igniter/Poppins/Poppins-SemiBoldItalic.ttf
Binary file not shown.
Binary file added igniter/Poppins/Poppins-Thin.ttf
Binary file not shown.
Binary file added igniter/Poppins/Poppins-ThinItalic.ttf
Binary file not shown.
21 changes: 7 additions & 14 deletions igniter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,22 @@
from .version import __version__ as version


RESULT = 0


def get_result(res: int):
"""Sets result returned from dialog."""
global RESULT
RESULT = res


def open_dialog():
"""Show Igniter dialog."""
from Qt import QtWidgets
from Qt import QtWidgets, QtCore
from .install_dialog import InstallDialog

scale_attr = getattr(QtCore.Qt, "AA_EnableHighDpiScaling", None)
if scale_attr is not None:
QtWidgets.QApplication.setAttribute(scale_attr)

app = QtWidgets.QApplication(sys.argv)

d = InstallDialog()
d.finished.connect(get_result)
d.open()

app.exec()

return RESULT
app.exec_()
return d.result()


__all__ = [
Expand Down
Loading