Add missing files and place ui file in correct location

This commit is contained in:
Shai Seger
2017-10-25 15:29:05 +03:00
committed by Yorik van Havre
parent 2004a7033c
commit 0fccc2b40b
10 changed files with 528 additions and 9 deletions

View File

@@ -13,12 +13,11 @@ if FreeCAD.GuiUp:
from PySide import QtGui, QtCore
#compiled with pyrcc4 -py3 Resources\CAM_Sim.qrc -o CAM_Sim_rc.py
import CAM_Sim_rc
class CAMSimTaskUi:
def __init__(self, parent):
# this will create a Qt widget from our ui file
self.form = FreeCADGui.PySideUic.loadUi(_filePath + "/TaskPathSimulator.ui")
self.form = FreeCADGui.PySideUic.loadUi(":/panels/TaskPathSimulator.ui")
self.parent = parent
def accept(self):

View File

@@ -1,219 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>TaskPathSimulator</class>
<widget class="QDialog" name="TaskPathSimulator">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>266</width>
<height>335</height>
</rect>
</property>
<property name="windowTitle">
<string>Dialog</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QToolButton" name="toolButtonStop">
<property name="toolTip">
<string>Stop running simulation</string>
</property>
<property name="text">
<string>Stop</string>
</property>
<property name="icon">
<iconset resource="Resources/CAM_Sim.qrc">
<normaloff>:/Icons/BStop.svg</normaloff>:/Icons/BStop.svg</iconset>
</property>
<property name="iconSize">
<size>
<width>32</width>
<height>32</height>
</size>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="toolButtonPlay">
<property name="toolTip">
<string>Activate / resume simulation</string>
</property>
<property name="text">
<string>Play</string>
</property>
<property name="icon">
<iconset resource="Resources/CAM_Sim.qrc">
<normaloff>:/Icons/BPlay.svg</normaloff>:/Icons/BPlay.svg</iconset>
</property>
<property name="iconSize">
<size>
<width>32</width>
<height>32</height>
</size>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="toolButtonPause">
<property name="toolTip">
<string>Pause simulation</string>
</property>
<property name="text">
<string>Pause</string>
</property>
<property name="icon">
<iconset resource="Resources/CAM_Sim.qrc">
<normaloff>:/Icons/BPause.svg</normaloff>:/Icons/BPause.svg</iconset>
</property>
<property name="iconSize">
<size>
<width>32</width>
<height>32</height>
</size>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="toolButtonStep">
<property name="toolTip">
<string>Single step simulation</string>
</property>
<property name="text">
<string>Step</string>
</property>
<property name="icon">
<iconset resource="Resources/CAM_Sim.qrc">
<normaloff>:/Icons/BStep.svg</normaloff>:/Icons/BStep.svg</iconset>
</property>
<property name="iconSize">
<size>
<width>32</width>
<height>32</height>
</size>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="toolButtonFF">
<property name="toolTip">
<string>Run simulation till end without animation</string>
</property>
<property name="text">
<string>Fast Forward</string>
</property>
<property name="icon">
<iconset resource="Resources/CAM_Sim.qrc">
<normaloff>:/Icons/BFastForward.svg</normaloff>:/Icons/BFastForward.svg</iconset>
</property>
<property name="iconSize">
<size>
<width>32</width>
<height>32</height>
</size>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<widget class="QProgressBar" name="progressBar">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Maximum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>5</height>
</size>
</property>
<property name="textVisible">
<bool>false</bool>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QLabel" name="label">
<property name="maximumSize">
<size>
<width>50</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>Job:</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="comboJobs"/>
</item>
</layout>
</item>
<item>
<widget class="QListWidget" name="listOperations">
<property name="selectionMode">
<enum>QAbstractItemView::NoSelection</enum>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_2">
<property name="styleSheet">
<string notr="true">QLabel { color: rgb(250, 100, 0) }</string>
</property>
<property name="text">
<string>* Note: Due to inherent CAD engine limitations, inaccuracies may occur</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
<resources>
<include location="Resources/CAM_Sim.qrc"/>
</resources>
<connections/>
<slots>
<slot>SimStop()</slot>
<slot>SimPlay()</slot>
<slot>SimPause()</slot>
<slot>SimStep()</slot>
<slot>SimFF()</slot>
</slots>
</ui>