Merge branch '2.1'

This commit is contained in:
Arjen Hiemstra 2016-06-04 19:11:59 +02:00
commit a81cab5eac
4 changed files with 12 additions and 12 deletions

View file

@ -6,7 +6,7 @@ include(GNUInstallDirs)
set(URANIUM_SCRIPTS_DIR "${CMAKE_SOURCE_DIR}/../uranium/scripts" CACHE DIRECTORY "The location of the scripts directory of the Uranium repository") set(URANIUM_SCRIPTS_DIR "${CMAKE_SOURCE_DIR}/../uranium/scripts" CACHE DIRECTORY "The location of the scripts directory of the Uranium repository")
set(CURA_VERSION "master" CACHE STRING "Version name of Cura") set(CURA_VERSION "2.1.2" CACHE STRING "Version name of Cura")
configure_file(cura/CuraVersion.py.in CuraVersion.py @ONLY) configure_file(cura/CuraVersion.py.in CuraVersion.py @ONLY)
# Macro needed to list all sub-directory of a directory. # Macro needed to list all sub-directory of a directory.

View file

@ -48,6 +48,7 @@ class ChangeLog(Extension, QObject,):
result += "<h1>" + str(version) + "</h1><br>" result += "<h1>" + str(version) + "</h1><br>"
result += "" result += ""
for change in logs[version]: for change in logs[version]:
if str(change) != "":
result += "<b>" + str(change) + "</b><br>" result += "<b>" + str(change) + "</b><br>"
for line in logs[version][change]: for line in logs[version][change]:
result += str(line) + "<br>" result += str(line) + "<br>"
@ -60,19 +61,20 @@ class ChangeLog(Extension, QObject,):
self._change_logs = collections.OrderedDict() self._change_logs = collections.OrderedDict()
with open(os.path.join(PluginRegistry.getInstance().getPluginPath(self.getPluginId()), "ChangeLog.txt"), "r",-1, "utf-8") as f: with open(os.path.join(PluginRegistry.getInstance().getPluginPath(self.getPluginId()), "ChangeLog.txt"), "r",-1, "utf-8") as f:
open_version = None open_version = None
open_header = None open_header = "" # Initialise to an empty header in case there is no "*" in the first line of the changelog
for line in f: for line in f:
line = line.replace("\n","") line = line.replace("\n","")
if "[" in line and "]" in line: if "[" in line and "]" in line:
line = line.replace("[","") line = line.replace("[","")
line = line.replace("]","") line = line.replace("]","")
open_version = Version(line) open_version = Version(line)
self._change_logs[Version(line)] = collections.OrderedDict() self._change_logs[open_version] = collections.OrderedDict()
elif line.startswith("*"): elif line.startswith("*"):
open_header = line.replace("*","") open_header = line.replace("*","")
self._change_logs[open_version][open_header] = [] self._change_logs[open_version][open_header] = []
else: elif line != "":
if line != "": if open_header not in self._change_logs[open_version]:
self._change_logs[open_version][open_header] = []
self._change_logs[open_version][open_header].append(line) self._change_logs[open_version][open_header].append(line)
def _onEngineCreated(self): def _onEngineCreated(self):
@ -105,4 +107,3 @@ class ChangeLog(Extension, QObject,):
self._changelog_context = QQmlContext(Application.getInstance()._engine.rootContext()) self._changelog_context = QQmlContext(Application.getInstance()._engine.rootContext())
self._changelog_context.setContextProperty("manager", self) self._changelog_context.setContextProperty("manager", self)
self._changelog_window = component.create(self._changelog_context) self._changelog_window = component.create(self._changelog_context)
#print(self._changelog_window)

View file

@ -1,7 +1,6 @@
[2.1.0] [2.1.2]
*2.1 Beta release Cura has been completely reengineered from the ground up for an even more seamless integration between hardware, software and materials. Together with its intuitive new user interface, its now also ready for any future developments. For the beginner Cura makes 3D printing incredibly easy, and for more advanced users, there are over 140 new customisable settings.
Cura has been completely reengineered from the ground up for an even more seamless integration between hardware, software and materials. Together with its intuitive new user interface, its now also ready for any future developments. For the beginner, Cura makes 3D printing incredibly easy, and for more advanced users, there are over 140 new customisable settings.
*Select Multiple Objects *Select Multiple Objects
You now have the freedom to select and manipulate multiple objects at the same time. You now have the freedom to select and manipulate multiple objects at the same time.

View file

@ -41,7 +41,7 @@ class LayerView(View):
self._top_layers_job = None self._top_layers_job = None
self._activity = False self._activity = False
self._solid_layers = 5 self._solid_layers = 1
self._top_layer_timer = QTimer() self._top_layer_timer = QTimer()
self._top_layer_timer.setInterval(50) self._top_layer_timer.setInterval(50)