Rename everything "Printer" to either "Cura" or drop the prefix since it is no longer needed

This commit is contained in:
Arjen Hiemstra 2015-05-06 18:41:22 +02:00
parent 0a6562a8f1
commit cc7ce1d408
7 changed files with 18 additions and 24 deletions

6
cura.py Executable file
View file

@ -0,0 +1,6 @@
#!/usr/bin/env python3
from src.CuraApplication import CuraApplication
app = CuraApplication.getInstance()
app.run()

View file

@ -1,6 +0,0 @@
#!/usr/bin/env python3
from src.PrinterApplication import PrinterApplication
app = PrinterApplication.getInstance()
app.run()

View file

@ -190,10 +190,11 @@ UM.MainWindow {
source: UM.ActiveView.valid ? UM.ActiveView.activeViewPanel : "";
}
PrinterButton {
Button {
id: openFileButton;
iconSource: UM.Theme.icons.open;
style: UM.Theme.styles.tool_button;
anchors {
top: parent.top;
@ -220,7 +221,7 @@ UM.MainWindow {
sourceSize.height: height;
}
PrinterButton {
Button {
anchors {
top: parent.top;
topMargin: UM.Theme.sizes.window_margin.height;
@ -232,6 +233,8 @@ UM.MainWindow {
text: qsTr("View Mode");
iconSource: UM.Theme.icons.viewmode;
style: UM.Theme.styles.tool_button;
menu: Menu {
id: viewMenu;
Instantiator {
@ -251,7 +254,7 @@ UM.MainWindow {
}
}
PrinterToolbar {
Toolbar {
id: toolbar;
anchors {
@ -272,7 +275,7 @@ UM.MainWindow {
}
}
PrinterActions {
Actions {
id: actions;
open.onTriggered: openDialog.open();

View file

@ -1,11 +0,0 @@
import QtQuick 2.2
import QtQuick.Controls 1.1
import QtQuick.Controls.Styles 1.1
import QtQuick.Layouts 1.1
import UM 1.0 as UM
Button {
id: base;
style: UM.Theme.styles.tool_button;
}

View file

@ -24,7 +24,7 @@ Item {
model: UM.Models.toolModel
PrinterButton {
Button {
text: model.name;
iconSource: UM.Theme.icons[model.icon];
tooltip: model.description;
@ -32,6 +32,8 @@ Item {
checkable: true;
checked: model.active;
style: UM.Theme.styles.tool_button;
//Workaround since using ToolButton"s onClicked would break the binding of the checked property, instead
//just catch the click so we do not trigger that behaviour.
MouseArea {

View file

@ -37,7 +37,7 @@ import os.path
import numpy
numpy.seterr(all="ignore")
class PrinterApplication(QtApplication):
class CuraApplication(QtApplication):
def __init__(self):
if not hasattr(sys, "frozen"):
Resources.addResourcePath(os.path.join(os.path.abspath(os.path.dirname(__file__)), ".."))
@ -129,7 +129,7 @@ class PrinterApplication(QtApplication):
self.showSplashMessage(self._i18n_catalog.i18nc("Splash screen message", "Loading interface..."))
self.setMainQml(Resources.getPath(Resources.QmlFilesLocation, "Printer.qml"))
self.setMainQml(Resources.getPath(Resources.QmlFilesLocation, "Cura.qml"))
self.initializeEngine()
self.getStorageDevice("LocalFileStorage").removableDrivesChanged.connect(self._removableDrivesChanged)