Skip to content
This repository has been archived by the owner on Nov 10, 2019. It is now read-only.

Commit

Permalink
Merge branch 'release/v0.7.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Nunes committed Jul 10, 2016
2 parents f3776a0 + 8662d7c commit 7d6fe8c
Show file tree
Hide file tree
Showing 83 changed files with 9,594 additions and 1,249 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
language: python
sudo: required
dist: trusty

install:
- chmod +x ./dev/travis-bootstrap.sh
Expand Down
33 changes: 33 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,38 @@
# Changelog

0.7.0 (2016-07-10)

* Fixed rare bug with the validator.
* Added Dependencies Wizard.
* Children box now lists invalid child nodes greyed out instead of deleting them.
* Fixed issues with saving.
* Nodes should now be properly sorted.
* Added specialized child nodes with colours.
* Added auto-completion for flag labels and their values.
* Fixed recent files issues.
* Properties are now ordered.
* Added node-specific metadata.
* Pattern node's names are now editable.
* Improved Setting's dialog.
* Added Defaults section to settings.
* Added Appearance tab to settings dialog.
* Fixed rare bug with xml preview.
* Disabled Wizards.
* Added user-defined noe sorting with drag and drop.
* Improved logos.
* Added copy and paste functionality.
* Added undo and redo functionality.
* Loading ui should now be slightly faster - ui is now pre-compiled.
* Full keyboard navigation is now supported on the node tree.
* Added context menu to the node tree.
* Actions should now be properly disabled/enabled when appropriate.
* All nodes should now be correct on their allowed number.
* Added plain text editor to most simple text properties and html editor to plugin's description text.
* Added install step ui preview.
* Added tutorial at startup. Added setting to re-enable the tutorial.

----------------------------------

0.6.0 (2016-06-13)

* Added check for updates at startup.
Expand Down
12 changes: 9 additions & 3 deletions designer/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,21 @@
# limitations under the License.

import sys
from PyQt5 import QtWidgets
from PyQt5.QtWidgets import QApplication
from PyQt5.QtGui import QPalette, QColor
from .exceptions import excepthook
from .gui import IntroWindow
from .gui import IntroWindow, read_settings


def main():
sys.excepthook = excepthook

app = QtWidgets.QApplication(sys.argv)
settings = read_settings()
if settings["Appearance"]["style"]:
QApplication.setStyle(settings["Appearance"]["style"])
app = QApplication(sys.argv)
if settings["Appearance"]["palette"]:
app.setPalette(QPalette(QColor(settings["Appearance"]["palette"])))
IntroWindow()
sys.exit(app.exec_())

Expand Down
4 changes: 4 additions & 0 deletions designer/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ class MissingFileError(DesignerError):
def __init__(self, fname):
self.title = "I/O Error"
self.message = "{} is missing.".format(fname.capitalize())
self.detailed = ""
self.file = fname
Exception.__init__(self, self.message)

Expand All @@ -81,6 +82,7 @@ class ParserError(DesignerError):
"""
def __init__(self, msg):
self.title = "Parser Error"
self.detailed = ""
if len(msg.split(",")) <= 2:
self.msg = "The parser couldn't read the installer file. If you need help visit " \
"<a href = http://www.w3schools.com/xml/xml_syntax.asp>W3Schools</a>."
Expand All @@ -98,6 +100,7 @@ class TagNotFound(DesignerError):
def __init__(self, element):
self.title = "Tag Lookup Error"
self.message = "Tag {} at line {} could not be matched.".format(element.tag, element.sourceline)
self.detailed = ""
Exception.__init__(self, self.message)


Expand All @@ -108,4 +111,5 @@ class BaseInstanceException(Exception):
def __init__(self, base_instance):
self.title = "Instance Error"
self.message = "{} is not meant to be instanced. A subclass should be used instead.".format(type(base_instance))
self.detailed = ""
Exception.__init__(self, self.message)
Loading

0 comments on commit 7d6fe8c

Please sign in to comment.