2009-12-09 17:25:09 +03:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<ui version="4.0">
|
|
|
|
<class>MainWindow</class>
|
|
|
|
<widget class="QMainWindow" name="MainWindow">
|
|
|
|
<property name="geometry">
|
|
|
|
<rect>
|
|
|
|
<x>0</x>
|
|
|
|
<y>0</y>
|
2014-09-14 23:17:27 +04:00
|
|
|
<width>1397</width>
|
2014-05-10 23:36:35 +04:00
|
|
|
<height>586</height>
|
2009-12-09 17:25:09 +03:00
|
|
|
</rect>
|
|
|
|
</property>
|
|
|
|
<widget class="QWidget" name="centralwidget">
|
|
|
|
<layout class="QVBoxLayout" name="verticalLayout_2">
|
2014-05-13 00:47:42 +04:00
|
|
|
<property name="spacing">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
2015-01-07 05:14:46 +03:00
|
|
|
<property name="margin">
|
2009-12-09 17:56:25 +03:00
|
|
|
<number>0</number>
|
|
|
|
</property>
|
2009-12-09 17:25:09 +03:00
|
|
|
<item>
|
2014-05-13 00:47:42 +04:00
|
|
|
<widget class="QWidget" name="mainWidget" native="true">
|
2014-05-10 23:36:35 +04:00
|
|
|
<property name="sizePolicy">
|
|
|
|
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
|
|
|
<horstretch>0</horstretch>
|
|
|
|
<verstretch>0</verstretch>
|
|
|
|
</sizepolicy>
|
2009-12-09 17:25:09 +03:00
|
|
|
</property>
|
2014-05-13 00:47:42 +04:00
|
|
|
<layout class="QVBoxLayout" name="verticalLayout_3">
|
2014-09-14 22:26:31 +04:00
|
|
|
<property name="spacing">
|
2014-09-14 21:51:40 +04:00
|
|
|
<number>0</number>
|
|
|
|
</property>
|
2015-01-07 05:14:46 +03:00
|
|
|
<property name="margin">
|
2014-05-13 00:47:42 +04:00
|
|
|
<number>0</number>
|
2014-02-18 08:49:45 +04:00
|
|
|
</property>
|
2015-01-07 05:14:46 +03:00
|
|
|
<item>
|
|
|
|
<widget class="QFrame" name="frameCompileResult">
|
|
|
|
<property name="frameShape">
|
|
|
|
<enum>QFrame::Box</enum>
|
|
|
|
</property>
|
|
|
|
<property name="frameShadow">
|
|
|
|
<enum>QFrame::Raised</enum>
|
|
|
|
</property>
|
|
|
|
<layout class="QGridLayout" name="gridLayout_2">
|
|
|
|
<property name="leftMargin">
|
|
|
|
<number>9</number>
|
|
|
|
</property>
|
2015-01-09 20:20:07 +03:00
|
|
|
<property name="topMargin">
|
|
|
|
<number>9</number>
|
|
|
|
</property>
|
2015-01-07 05:14:46 +03:00
|
|
|
<property name="rightMargin">
|
2015-01-09 20:20:07 +03:00
|
|
|
<number>9</number>
|
2015-01-07 05:14:46 +03:00
|
|
|
</property>
|
|
|
|
<property name="bottomMargin">
|
2015-01-09 20:20:07 +03:00
|
|
|
<number>6</number>
|
|
|
|
</property>
|
|
|
|
<property name="horizontalSpacing">
|
|
|
|
<number>4</number>
|
2015-01-07 05:14:46 +03:00
|
|
|
</property>
|
|
|
|
<item row="0" column="1">
|
|
|
|
<widget class="QLabel" name="labelCompileResultMessage">
|
|
|
|
<property name="sizePolicy">
|
|
|
|
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
|
|
|
<horstretch>1</horstretch>
|
|
|
|
<verstretch>0</verstretch>
|
|
|
|
</sizepolicy>
|
|
|
|
</property>
|
|
|
|
<property name="font">
|
|
|
|
<font>
|
|
|
|
<weight>75</weight>
|
|
|
|
<bold>true</bold>
|
|
|
|
</font>
|
|
|
|
</property>
|
|
|
|
<property name="text">
|
|
|
|
<string>Message</string>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item row="0" column="2">
|
2015-01-09 20:20:07 +03:00
|
|
|
<widget class="QToolButton" name="toolButtonCompileResultClose">
|
|
|
|
<property name="styleSheet">
|
|
|
|
<string notr="true"/>
|
|
|
|
</property>
|
2015-01-07 05:14:46 +03:00
|
|
|
<property name="text">
|
|
|
|
<string/>
|
|
|
|
</property>
|
|
|
|
<property name="icon">
|
|
|
|
<iconset resource="../openscad.qrc">
|
|
|
|
<normaloff>:/icons/close.png</normaloff>:/icons/close.png</iconset>
|
|
|
|
</property>
|
2015-01-09 20:20:07 +03:00
|
|
|
<property name="iconSize">
|
|
|
|
<size>
|
|
|
|
<width>22</width>
|
|
|
|
<height>22</height>
|
|
|
|
</size>
|
|
|
|
</property>
|
|
|
|
<property name="toolButtonStyle">
|
|
|
|
<enum>Qt::ToolButtonIconOnly</enum>
|
|
|
|
</property>
|
|
|
|
<property name="autoRaise">
|
2015-01-07 05:14:46 +03:00
|
|
|
<bool>true</bool>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
2015-01-09 20:20:07 +03:00
|
|
|
<item row="0" column="0">
|
|
|
|
<widget class="QToolButton" name="toolButtonCompileResultIcon">
|
|
|
|
<property name="styleSheet">
|
|
|
|
<string notr="true">QToolButton { border: none; }</string>
|
|
|
|
</property>
|
|
|
|
<property name="text">
|
|
|
|
<string/>
|
|
|
|
</property>
|
|
|
|
<property name="icon">
|
|
|
|
<iconset resource="../openscad.qrc">
|
|
|
|
<normaloff>:/icons/information-icons-error.png</normaloff>:/icons/information-icons-error.png</iconset>
|
|
|
|
</property>
|
|
|
|
<property name="iconSize">
|
|
|
|
<size>
|
|
|
|
<width>22</width>
|
|
|
|
<height>22</height>
|
|
|
|
</size>
|
|
|
|
</property>
|
|
|
|
<property name="autoRaise">
|
|
|
|
<bool>false</bool>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
2015-01-07 05:14:46 +03:00
|
|
|
</layout>
|
|
|
|
</widget>
|
|
|
|
</item>
|
2014-05-13 00:47:42 +04:00
|
|
|
<item>
|
|
|
|
<widget class="QGLView" name="qglview" native="true">
|
2014-05-10 23:36:35 +04:00
|
|
|
<property name="sizePolicy">
|
|
|
|
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
|
|
|
<horstretch>0</horstretch>
|
|
|
|
<verstretch>0</verstretch>
|
|
|
|
</sizepolicy>
|
|
|
|
</property>
|
2014-05-13 00:47:42 +04:00
|
|
|
<property name="minimumSize">
|
|
|
|
<size>
|
|
|
|
<width>200</width>
|
|
|
|
<height>100</height>
|
|
|
|
</size>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
2014-09-14 22:26:31 +04:00
|
|
|
<item>
|
2014-05-13 00:47:42 +04:00
|
|
|
<widget class="QFrame" name="animate_panel">
|
|
|
|
<property name="enabled">
|
|
|
|
<bool>true</bool>
|
|
|
|
</property>
|
|
|
|
<property name="frameShape">
|
|
|
|
<enum>QFrame::NoFrame</enum>
|
|
|
|
</property>
|
|
|
|
<property name="frameShadow">
|
|
|
|
<enum>QFrame::Raised</enum>
|
|
|
|
</property>
|
|
|
|
<property name="lineWidth">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<layout class="QHBoxLayout" name="horizontalLayoutAnimate">
|
2015-01-07 05:14:46 +03:00
|
|
|
<property name="margin">
|
2014-02-01 14:46:05 +04:00
|
|
|
<number>0</number>
|
|
|
|
</property>
|
2014-05-13 00:47:42 +04:00
|
|
|
<item>
|
|
|
|
<widget class="QLabel" name="label">
|
|
|
|
<property name="text">
|
|
|
|
<string>Time:</string>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item>
|
|
|
|
<widget class="QLineEdit" name="e_tval"/>
|
|
|
|
</item>
|
|
|
|
<item>
|
|
|
|
<widget class="QLabel" name="label_2">
|
|
|
|
<property name="text">
|
|
|
|
<string>FPS:</string>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item>
|
|
|
|
<widget class="QLineEdit" name="e_fps"/>
|
|
|
|
</item>
|
|
|
|
<item>
|
|
|
|
<widget class="QLabel" name="label_3">
|
|
|
|
<property name="text">
|
|
|
|
<string>Steps:</string>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item>
|
|
|
|
<widget class="QLineEdit" name="e_fsteps"/>
|
|
|
|
</item>
|
|
|
|
<item>
|
|
|
|
<widget class="QCheckBox" name="e_dump">
|
|
|
|
<property name="text">
|
|
|
|
<string>Dump Pictures</string>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
</layout>
|
|
|
|
</widget>
|
|
|
|
</item>
|
2014-09-14 22:26:31 +04:00
|
|
|
<item>
|
2014-10-01 01:25:01 +04:00
|
|
|
<widget class="QToolBar" name="viewerToolBar">
|
2014-09-14 23:17:27 +04:00
|
|
|
<addaction name="designActionPreview"/>
|
|
|
|
<addaction name="designActionRender"/>
|
|
|
|
<addaction name="separator"/>
|
2014-09-19 01:14:12 +04:00
|
|
|
<addaction name="viewActionViewAll"/>
|
2014-09-14 23:17:27 +04:00
|
|
|
<addaction name="viewActionZoomIn"/>
|
|
|
|
<addaction name="viewActionZoomOut"/>
|
|
|
|
<addaction name="separator"/>
|
|
|
|
<addaction name="viewActionRight"/>
|
|
|
|
<addaction name="viewActionTop"/>
|
|
|
|
<addaction name="viewActionBottom"/>
|
|
|
|
<addaction name="viewActionLeft"/>
|
|
|
|
<addaction name="viewActionFront"/>
|
|
|
|
<addaction name="viewActionBack"/>
|
|
|
|
<addaction name="separator"/>
|
|
|
|
<addaction name="viewActionPerspective"/>
|
|
|
|
<addaction name="viewActionOrthogonal"/>
|
|
|
|
<addaction name="viewActionShowAxes"/>
|
|
|
|
<addaction name="viewActionShowEdges"/>
|
|
|
|
</widget>
|
2014-09-14 22:26:31 +04:00
|
|
|
</item>
|
2014-05-13 00:47:42 +04:00
|
|
|
</layout>
|
2014-05-10 23:36:35 +04:00
|
|
|
<zorder>animate_panel</zorder>
|
|
|
|
<zorder>qglview</zorder>
|
2014-10-01 00:47:14 +04:00
|
|
|
<zorder>viewerToolBar</zorder>
|
2015-01-07 05:14:46 +03:00
|
|
|
<zorder>frameCompileResult</zorder>
|
2009-12-09 17:25:09 +03:00
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
</layout>
|
|
|
|
</widget>
|
|
|
|
<widget class="QMenuBar" name="menubar">
|
|
|
|
<property name="geometry">
|
|
|
|
<rect>
|
|
|
|
<x>0</x>
|
|
|
|
<y>0</y>
|
2014-10-19 02:50:46 +04:00
|
|
|
<width>1397</width>
|
2015-01-09 21:04:43 +03:00
|
|
|
<height>35</height>
|
2009-12-09 17:25:09 +03:00
|
|
|
</rect>
|
|
|
|
</property>
|
|
|
|
<widget class="QMenu" name="menu_File">
|
|
|
|
<property name="title">
|
|
|
|
<string>&File</string>
|
|
|
|
</property>
|
2009-12-13 23:24:15 +03:00
|
|
|
<widget class="QMenu" name="menuOpenRecent">
|
|
|
|
<property name="title">
|
2014-10-19 02:50:46 +04:00
|
|
|
<string>Recent Files</string>
|
2009-12-13 23:24:15 +03:00
|
|
|
</property>
|
|
|
|
</widget>
|
2010-01-22 18:20:52 +03:00
|
|
|
<widget class="QMenu" name="menuExamples">
|
|
|
|
<property name="title">
|
|
|
|
<string>Examples</string>
|
|
|
|
</property>
|
|
|
|
</widget>
|
2014-02-10 22:28:36 +04:00
|
|
|
<widget class="QMenu" name="menuExport">
|
|
|
|
<property name="title">
|
|
|
|
<string>Export</string>
|
|
|
|
</property>
|
|
|
|
<addaction name="designActionExportSTL"/>
|
|
|
|
<addaction name="designActionExportOFF"/>
|
2014-02-11 02:43:57 +04:00
|
|
|
<addaction name="designActionExportAMF"/>
|
2014-02-10 22:28:36 +04:00
|
|
|
<addaction name="designActionExportDXF"/>
|
2014-03-02 22:26:17 +04:00
|
|
|
<addaction name="designActionExportSVG"/>
|
2014-02-10 22:28:36 +04:00
|
|
|
<addaction name="designActionExportCSG"/>
|
|
|
|
<addaction name="separator"/>
|
|
|
|
<addaction name="designActionExportImage"/>
|
|
|
|
</widget>
|
2009-12-09 17:25:09 +03:00
|
|
|
<addaction name="fileActionNew"/>
|
|
|
|
<addaction name="fileActionOpen"/>
|
2009-12-13 23:24:15 +03:00
|
|
|
<addaction name="menuOpenRecent"/>
|
2010-01-22 18:20:52 +03:00
|
|
|
<addaction name="menuExamples"/>
|
2014-02-10 22:28:36 +04:00
|
|
|
<addaction name="fileActionReload"/>
|
2010-01-07 00:35:01 +03:00
|
|
|
<addaction name="fileActionClose"/>
|
2014-02-10 22:28:36 +04:00
|
|
|
<addaction name="separator"/>
|
2009-12-09 17:25:09 +03:00
|
|
|
<addaction name="fileActionSave"/>
|
|
|
|
<addaction name="fileActionSaveAs"/>
|
2014-02-10 22:28:36 +04:00
|
|
|
<addaction name="separator"/>
|
|
|
|
<addaction name="menuExport"/>
|
|
|
|
<addaction name="separator"/>
|
|
|
|
<addaction name="fileShowLibraryFolder"/>
|
|
|
|
<addaction name="separator"/>
|
2009-12-09 17:25:09 +03:00
|
|
|
<addaction name="fileActionQuit"/>
|
|
|
|
</widget>
|
|
|
|
<widget class="QMenu" name="menu_Edit">
|
|
|
|
<property name="title">
|
|
|
|
<string>&Edit</string>
|
|
|
|
</property>
|
|
|
|
<addaction name="editActionUndo"/>
|
|
|
|
<addaction name="editActionRedo"/>
|
|
|
|
<addaction name="separator"/>
|
|
|
|
<addaction name="editActionCut"/>
|
|
|
|
<addaction name="editActionCopy"/>
|
|
|
|
<addaction name="editActionPaste"/>
|
|
|
|
<addaction name="separator"/>
|
|
|
|
<addaction name="editActionIndent"/>
|
|
|
|
<addaction name="editActionUnindent"/>
|
|
|
|
<addaction name="editActionComment"/>
|
|
|
|
<addaction name="editActionUncomment"/>
|
2014-09-20 01:25:49 +04:00
|
|
|
<addaction name="editActionConvertTabsToSpaces"/>
|
2009-12-09 17:25:09 +03:00
|
|
|
<addaction name="separator"/>
|
|
|
|
<addaction name="editActionPasteVPT"/>
|
|
|
|
<addaction name="editActionPasteVPR"/>
|
|
|
|
<addaction name="separator"/>
|
2014-02-01 14:46:05 +04:00
|
|
|
<addaction name="editActionFind"/>
|
2014-02-01 18:53:18 +04:00
|
|
|
<addaction name="editActionFindAndReplace"/>
|
2014-02-01 14:46:05 +04:00
|
|
|
<addaction name="editActionFindNext"/>
|
|
|
|
<addaction name="editActionFindPrevious"/>
|
|
|
|
<addaction name="editActionUseSelectionForFind"/>
|
|
|
|
<addaction name="separator"/>
|
2009-12-09 17:25:09 +03:00
|
|
|
<addaction name="editActionZoomIn"/>
|
|
|
|
<addaction name="editActionZoomOut"/>
|
2010-01-15 04:00:41 +03:00
|
|
|
<addaction name="editActionPreferences"/>
|
2009-12-09 17:25:09 +03:00
|
|
|
</widget>
|
|
|
|
<widget class="QMenu" name="menu_Design">
|
|
|
|
<property name="title">
|
|
|
|
<string>&Design</string>
|
|
|
|
</property>
|
2010-05-09 17:27:05 +04:00
|
|
|
<addaction name="designActionAutoReload"/>
|
2013-12-22 10:43:08 +04:00
|
|
|
<addaction name="designActionReloadAndPreview"/>
|
|
|
|
<addaction name="designActionPreview"/>
|
|
|
|
<addaction name="designActionRender"/>
|
2013-06-13 18:45:21 +04:00
|
|
|
<addaction name="separator"/>
|
2014-02-10 22:28:36 +04:00
|
|
|
<addaction name="designCheckValidity"/>
|
2009-12-09 17:25:09 +03:00
|
|
|
<addaction name="designActionDisplayAST"/>
|
|
|
|
<addaction name="designActionDisplayCSGTree"/>
|
|
|
|
<addaction name="designActionDisplayCSGProducts"/>
|
2013-06-13 18:45:21 +04:00
|
|
|
<addaction name="separator"/>
|
2010-01-08 00:08:47 +03:00
|
|
|
<addaction name="designActionFlushCaches"/>
|
2009-12-09 17:25:09 +03:00
|
|
|
</widget>
|
|
|
|
<widget class="QMenu" name="menu_View">
|
|
|
|
<property name="title">
|
|
|
|
<string>&View</string>
|
|
|
|
</property>
|
2013-12-22 10:43:08 +04:00
|
|
|
<addaction name="viewActionPreview"/>
|
|
|
|
<addaction name="viewActionSurfaces"/>
|
|
|
|
<addaction name="viewActionWireframe"/>
|
2009-12-09 17:25:09 +03:00
|
|
|
<addaction name="viewActionThrownTogether"/>
|
|
|
|
<addaction name="separator"/>
|
|
|
|
<addaction name="viewActionShowEdges"/>
|
|
|
|
<addaction name="viewActionShowAxes"/>
|
|
|
|
<addaction name="viewActionShowCrosshairs"/>
|
Add optional menu driven scaling tics to the large axes
Tim Deagan 12/26/2014
While add-on rulers can be extremely useful, there are many times that a quick scaling marker would be handy. This feature generates tics every 10 units, driven off the log10 of the l variable defining axes length. As you zoom in or out, the tics automatically re-scale themselves. Every tenth tic is slightly larger. A menu item is added to the view menu to enable or disable the feature.
I experimented with menu driven scaling (.01, .1, 1, 10, etc.), but using small increments when zoomed out brought the app to it's knees. Adding a visual indicator of the current scaling might be nice, but I'm nto sure where to put it (possibly below the small axes,) since it changes as zooming and would clutter the console.
Changes to be committed:
new file: images/scalemarkers.png
modified: openscad.qrc
modified: src/GLView.cc
modified: src/GLView.h
modified: src/MainWindow.h
modified: src/MainWindow.ui
modified: src/QGLView.h
modified: src/mainwin.cc
2014-12-27 06:44:31 +03:00
|
|
|
<addaction name="viewActionShowScaleProportional"/>
|
2009-12-09 17:25:09 +03:00
|
|
|
<addaction name="viewActionAnimate"/>
|
|
|
|
<addaction name="separator"/>
|
|
|
|
<addaction name="viewActionTop"/>
|
|
|
|
<addaction name="viewActionBottom"/>
|
|
|
|
<addaction name="viewActionLeft"/>
|
|
|
|
<addaction name="viewActionRight"/>
|
|
|
|
<addaction name="viewActionFront"/>
|
|
|
|
<addaction name="viewActionBack"/>
|
|
|
|
<addaction name="viewActionDiagonal"/>
|
|
|
|
<addaction name="viewActionCenter"/>
|
2014-06-22 00:12:55 +04:00
|
|
|
<addaction name="viewActionViewAll"/>
|
2009-12-09 17:25:09 +03:00
|
|
|
<addaction name="separator"/>
|
2014-04-11 03:18:08 +04:00
|
|
|
<addaction name="viewActionZoomIn"/>
|
|
|
|
<addaction name="viewActionZoomOut"/>
|
|
|
|
<addaction name="separator"/>
|
2013-11-01 01:54:05 +04:00
|
|
|
<addaction name="viewActionResetView"/>
|
|
|
|
<addaction name="separator"/>
|
2009-12-09 17:25:09 +03:00
|
|
|
<addaction name="viewActionPerspective"/>
|
|
|
|
<addaction name="viewActionOrthogonal"/>
|
2009-12-20 15:48:32 +03:00
|
|
|
<addaction name="separator"/>
|
2014-10-01 01:18:40 +04:00
|
|
|
<addaction name="viewActionHideToolBars"/>
|
|
|
|
<addaction name="viewActionHideEditor"/>
|
|
|
|
<addaction name="viewActionHideConsole"/>
|
2009-12-09 17:25:09 +03:00
|
|
|
</widget>
|
2009-12-13 01:04:32 +03:00
|
|
|
<widget class="QMenu" name="menuHelp">
|
|
|
|
<property name="title">
|
2012-12-04 06:22:39 +04:00
|
|
|
<string>&Help</string>
|
2009-12-13 01:04:32 +03:00
|
|
|
</property>
|
|
|
|
<addaction name="helpActionAbout"/>
|
2010-02-20 13:20:18 +03:00
|
|
|
<addaction name="helpActionHomepage"/>
|
2009-12-13 01:19:53 +03:00
|
|
|
<addaction name="helpActionManual"/>
|
2012-02-15 04:26:38 +04:00
|
|
|
<addaction name="helpActionLibraryInfo"/>
|
2013-11-21 04:01:42 +04:00
|
|
|
<addaction name="helpActionFontInfo"/>
|
2009-12-13 01:04:32 +03:00
|
|
|
</widget>
|
2009-12-09 17:25:09 +03:00
|
|
|
<addaction name="menu_File"/>
|
|
|
|
<addaction name="menu_Edit"/>
|
2013-12-22 10:43:08 +04:00
|
|
|
<addaction name="menu_Design"/>
|
2014-04-01 21:26:32 +04:00
|
|
|
<addaction name="menu_View"/>
|
2009-12-13 01:04:32 +03:00
|
|
|
<addaction name="menuHelp"/>
|
2009-12-09 17:25:09 +03:00
|
|
|
</widget>
|
|
|
|
<widget class="QStatusBar" name="statusbar"/>
|
2014-10-20 02:21:06 +04:00
|
|
|
<widget class="Dock" name="editorDock">
|
2014-05-13 00:47:42 +04:00
|
|
|
<attribute name="dockWidgetArea">
|
|
|
|
<number>1</number>
|
|
|
|
</attribute>
|
|
|
|
<widget class="QWidget" name="editorDockContents">
|
2014-09-14 22:26:31 +04:00
|
|
|
<layout class="QVBoxLayout" name="verticalLayout">
|
|
|
|
<property name="spacing">
|
2014-09-14 21:51:40 +04:00
|
|
|
<number>0</number>
|
|
|
|
</property>
|
2015-01-07 05:14:46 +03:00
|
|
|
<property name="margin">
|
2014-05-13 00:47:42 +04:00
|
|
|
<number>0</number>
|
|
|
|
</property>
|
2014-09-14 22:26:31 +04:00
|
|
|
<item>
|
2014-10-01 01:25:01 +04:00
|
|
|
<widget class="QToolBar" name="editortoolbar">
|
2014-09-14 23:17:27 +04:00
|
|
|
<addaction name="fileActionNew"/>
|
|
|
|
<addaction name="fileActionOpen"/>
|
|
|
|
<addaction name="fileActionSave"/>
|
2014-09-14 23:39:15 +04:00
|
|
|
<addaction name="separator"/>
|
2014-12-25 22:26:31 +03:00
|
|
|
<addaction name="editActionUndo"/>
|
|
|
|
<addaction name="editActionRedo"/>
|
|
|
|
<addaction name="editActionIndent"/>
|
|
|
|
<addaction name="editActionUnindent"/>
|
2014-09-14 23:39:15 +04:00
|
|
|
<addaction name="designActionPreview"/>
|
|
|
|
<addaction name="designActionRender"/>
|
|
|
|
<addaction name="separator"/>
|
|
|
|
<addaction name="designActionExportSTL"/>
|
2014-12-25 22:26:31 +03:00
|
|
|
<addaction name="viewActionResetView"/>
|
2014-09-14 23:17:27 +04:00
|
|
|
</widget>
|
2014-09-14 22:26:31 +04:00
|
|
|
</item>
|
|
|
|
<item>
|
2014-05-13 00:47:42 +04:00
|
|
|
<widget class="QFrame" name="find_panel">
|
|
|
|
<property name="enabled">
|
|
|
|
<bool>true</bool>
|
|
|
|
</property>
|
|
|
|
<property name="sizePolicy">
|
|
|
|
<sizepolicy hsizetype="Preferred" vsizetype="Minimum">
|
|
|
|
<horstretch>0</horstretch>
|
|
|
|
<verstretch>0</verstretch>
|
|
|
|
</sizepolicy>
|
|
|
|
</property>
|
|
|
|
<property name="frameShape">
|
|
|
|
<enum>QFrame::NoFrame</enum>
|
|
|
|
</property>
|
|
|
|
<property name="frameShadow">
|
|
|
|
<enum>QFrame::Raised</enum>
|
|
|
|
</property>
|
|
|
|
<property name="lineWidth">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<layout class="QGridLayout" name="gridLayout">
|
2014-09-03 22:52:41 +04:00
|
|
|
<property name="topMargin">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<property name="bottomMargin">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<property name="verticalSpacing">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
2014-05-13 00:47:42 +04:00
|
|
|
<item row="0" column="0">
|
|
|
|
<widget class="QComboBox" name="findTypeComboBox">
|
|
|
|
<item>
|
|
|
|
<property name="text">
|
|
|
|
<string>Find</string>
|
|
|
|
</property>
|
|
|
|
</item>
|
|
|
|
<item>
|
|
|
|
<property name="text">
|
|
|
|
<string>Replace</string>
|
|
|
|
</property>
|
|
|
|
</item>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item row="0" column="1">
|
|
|
|
<widget class="QLineEdit" name="findInputField">
|
|
|
|
<property name="placeholderText">
|
|
|
|
<string>Search string</string>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item row="0" column="2">
|
|
|
|
<widget class="QPushButton" name="prevButton">
|
|
|
|
<property name="text">
|
|
|
|
<string><</string>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item row="0" column="3">
|
|
|
|
<widget class="QPushButton" name="nextButton">
|
|
|
|
<property name="text">
|
|
|
|
<string>></string>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item row="0" column="4">
|
|
|
|
<widget class="QPushButton" name="hideFindButton">
|
|
|
|
<property name="text">
|
|
|
|
<string>Done</string>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item row="1" column="1">
|
|
|
|
<widget class="QLineEdit" name="replaceInputField">
|
|
|
|
<property name="placeholderText">
|
|
|
|
<string>Replacement string</string>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item row="1" column="2" colspan="2">
|
|
|
|
<widget class="QPushButton" name="replaceButton">
|
|
|
|
<property name="text">
|
|
|
|
<string>Replace</string>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item row="1" column="4">
|
|
|
|
<widget class="QPushButton" name="replaceAllButton">
|
|
|
|
<property name="text">
|
|
|
|
<string>All</string>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
</layout>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
</layout>
|
|
|
|
</widget>
|
|
|
|
</widget>
|
2014-10-20 02:21:06 +04:00
|
|
|
<widget class="Dock" name="consoleDock">
|
2014-05-13 00:47:42 +04:00
|
|
|
<attribute name="dockWidgetArea">
|
|
|
|
<number>8</number>
|
|
|
|
</attribute>
|
|
|
|
<widget class="QWidget" name="consoleDockContents">
|
|
|
|
<layout class="QVBoxLayout" name="verticalLayout_5">
|
2015-01-07 05:14:46 +03:00
|
|
|
<property name="margin">
|
2014-05-13 00:47:42 +04:00
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<item>
|
|
|
|
<widget class="QTextEdit" name="console">
|
2014-11-01 19:24:28 +03:00
|
|
|
<property name="minimumSize">
|
|
|
|
<size>
|
|
|
|
<width>10</width>
|
|
|
|
<height>10</height>
|
|
|
|
</size>
|
|
|
|
</property>
|
2014-05-13 00:47:42 +04:00
|
|
|
<property name="focusPolicy">
|
|
|
|
<enum>Qt::ClickFocus</enum>
|
|
|
|
</property>
|
|
|
|
<property name="readOnly">
|
|
|
|
<bool>true</bool>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
</layout>
|
|
|
|
</widget>
|
|
|
|
</widget>
|
2009-12-09 17:25:09 +03:00
|
|
|
<action name="fileActionNew">
|
2014-09-14 21:51:40 +04:00
|
|
|
<property name="icon">
|
2014-09-14 23:17:27 +04:00
|
|
|
<iconset resource="../openscad.qrc">
|
|
|
|
<normaloff>:/images/blackNew.png</normaloff>:/images/blackNew.png</iconset>
|
2014-09-14 21:51:40 +04:00
|
|
|
</property>
|
2009-12-09 17:25:09 +03:00
|
|
|
<property name="text">
|
|
|
|
<string>&New</string>
|
|
|
|
</property>
|
|
|
|
<property name="shortcut">
|
|
|
|
<string>Ctrl+N</string>
|
|
|
|
</property>
|
|
|
|
</action>
|
|
|
|
<action name="fileActionOpen">
|
2014-09-14 21:51:40 +04:00
|
|
|
<property name="icon">
|
2014-09-14 23:17:27 +04:00
|
|
|
<iconset resource="../openscad.qrc">
|
|
|
|
<normaloff>:/images/Open-32.png</normaloff>:/images/Open-32.png</iconset>
|
2014-09-14 21:51:40 +04:00
|
|
|
</property>
|
2009-12-09 17:25:09 +03:00
|
|
|
<property name="text">
|
|
|
|
<string>&Open...</string>
|
|
|
|
</property>
|
|
|
|
<property name="shortcut">
|
|
|
|
<string>Ctrl+O</string>
|
|
|
|
</property>
|
|
|
|
</action>
|
|
|
|
<action name="fileActionSave">
|
2014-09-14 21:51:40 +04:00
|
|
|
<property name="icon">
|
2014-09-14 23:17:27 +04:00
|
|
|
<iconset resource="../openscad.qrc">
|
|
|
|
<normaloff>:/images/Save-32.png</normaloff>:/images/Save-32.png</iconset>
|
2014-09-14 21:51:40 +04:00
|
|
|
</property>
|
2009-12-09 17:25:09 +03:00
|
|
|
<property name="text">
|
|
|
|
<string>&Save</string>
|
|
|
|
</property>
|
|
|
|
<property name="shortcut">
|
|
|
|
<string>Ctrl+S</string>
|
|
|
|
</property>
|
|
|
|
</action>
|
|
|
|
<action name="fileActionSaveAs">
|
|
|
|
<property name="text">
|
|
|
|
<string>Save &As...</string>
|
|
|
|
</property>
|
|
|
|
<property name="shortcut">
|
|
|
|
<string>Ctrl+Shift+S</string>
|
|
|
|
</property>
|
|
|
|
</action>
|
|
|
|
<action name="fileActionReload">
|
|
|
|
<property name="text">
|
|
|
|
<string>&Reload</string>
|
|
|
|
</property>
|
|
|
|
<property name="shortcut">
|
|
|
|
<string>Ctrl+R</string>
|
|
|
|
</property>
|
|
|
|
</action>
|
|
|
|
<action name="fileActionQuit">
|
|
|
|
<property name="text">
|
|
|
|
<string>&Quit</string>
|
|
|
|
</property>
|
2011-11-28 04:50:15 +04:00
|
|
|
<property name="shortcut">
|
|
|
|
<string>Ctrl+Q</string>
|
|
|
|
</property>
|
2014-12-12 00:58:20 +03:00
|
|
|
<property name="menuRole">
|
|
|
|
<enum>QAction::QuitRole</enum>
|
|
|
|
</property>
|
2009-12-09 17:25:09 +03:00
|
|
|
</action>
|
|
|
|
<action name="editActionUndo">
|
2014-12-25 22:05:13 +03:00
|
|
|
<property name="icon">
|
|
|
|
<iconset resource="../openscad.qrc">
|
|
|
|
<normaloff>:/images/Command-Undo-32.png</normaloff>:/images/Command-Undo-32.png</iconset>
|
|
|
|
</property>
|
2009-12-09 17:25:09 +03:00
|
|
|
<property name="text">
|
|
|
|
<string>&Undo</string>
|
|
|
|
</property>
|
|
|
|
<property name="shortcut">
|
|
|
|
<string>Ctrl+Z</string>
|
|
|
|
</property>
|
2014-04-27 01:04:09 +04:00
|
|
|
<property name="shortcutContext">
|
2014-09-19 23:58:39 +04:00
|
|
|
<enum>Qt::WidgetWithChildrenShortcut</enum>
|
2014-04-27 01:04:09 +04:00
|
|
|
</property>
|
2009-12-09 17:25:09 +03:00
|
|
|
</action>
|
|
|
|
<action name="editActionRedo">
|
2014-12-25 22:05:13 +03:00
|
|
|
<property name="icon">
|
|
|
|
<iconset resource="../openscad.qrc">
|
|
|
|
<normaloff>:/images/Command-Redo-32.png</normaloff>:/images/Command-Redo-32.png</iconset>
|
|
|
|
</property>
|
2009-12-09 17:25:09 +03:00
|
|
|
<property name="text">
|
|
|
|
<string>&Redo</string>
|
|
|
|
</property>
|
|
|
|
<property name="shortcut">
|
|
|
|
<string>Ctrl+Shift+Z</string>
|
|
|
|
</property>
|
2014-04-27 01:04:09 +04:00
|
|
|
<property name="shortcutContext">
|
2014-09-19 23:58:39 +04:00
|
|
|
<enum>Qt::WidgetWithChildrenShortcut</enum>
|
2014-04-27 01:04:09 +04:00
|
|
|
</property>
|
2009-12-09 17:25:09 +03:00
|
|
|
</action>
|
|
|
|
<action name="editActionCut">
|
|
|
|
<property name="text">
|
|
|
|
<string>Cu&t</string>
|
|
|
|
</property>
|
|
|
|
<property name="shortcut">
|
|
|
|
<string>Ctrl+X</string>
|
|
|
|
</property>
|
2014-04-27 01:04:09 +04:00
|
|
|
<property name="shortcutContext">
|
2014-09-19 23:58:39 +04:00
|
|
|
<enum>Qt::WidgetWithChildrenShortcut</enum>
|
2014-04-27 01:04:09 +04:00
|
|
|
</property>
|
2009-12-09 17:25:09 +03:00
|
|
|
</action>
|
|
|
|
<action name="editActionCopy">
|
|
|
|
<property name="text">
|
|
|
|
<string>&Copy</string>
|
|
|
|
</property>
|
|
|
|
<property name="shortcut">
|
|
|
|
<string>Ctrl+C</string>
|
|
|
|
</property>
|
2014-04-27 01:04:09 +04:00
|
|
|
<property name="shortcutContext">
|
2014-09-19 23:58:39 +04:00
|
|
|
<enum>Qt::WidgetWithChildrenShortcut</enum>
|
2014-04-27 01:04:09 +04:00
|
|
|
</property>
|
2009-12-09 17:25:09 +03:00
|
|
|
</action>
|
|
|
|
<action name="editActionPaste">
|
|
|
|
<property name="text">
|
|
|
|
<string>&Paste</string>
|
|
|
|
</property>
|
|
|
|
<property name="shortcut">
|
|
|
|
<string>Ctrl+V</string>
|
|
|
|
</property>
|
2014-04-27 01:04:09 +04:00
|
|
|
<property name="shortcutContext">
|
2014-09-19 23:58:39 +04:00
|
|
|
<enum>Qt::WidgetWithChildrenShortcut</enum>
|
2014-04-27 01:04:09 +04:00
|
|
|
</property>
|
2009-12-09 17:25:09 +03:00
|
|
|
</action>
|
|
|
|
<action name="editActionIndent">
|
2014-12-25 20:42:32 +03:00
|
|
|
<property name="icon">
|
|
|
|
<iconset resource="../openscad.qrc">
|
|
|
|
<normaloff>:/images/Increase-Indent-32.png</normaloff>:/images/Increase-Indent-32.png</iconset>
|
|
|
|
</property>
|
2009-12-09 17:25:09 +03:00
|
|
|
<property name="text">
|
|
|
|
<string>&Indent</string>
|
|
|
|
</property>
|
|
|
|
<property name="shortcut">
|
|
|
|
<string>Ctrl+I</string>
|
|
|
|
</property>
|
|
|
|
</action>
|
|
|
|
<action name="editActionComment">
|
|
|
|
<property name="text">
|
|
|
|
<string>C&omment</string>
|
|
|
|
</property>
|
|
|
|
<property name="shortcut">
|
|
|
|
<string>Ctrl+D</string>
|
|
|
|
</property>
|
|
|
|
</action>
|
|
|
|
<action name="editActionUncomment">
|
|
|
|
<property name="text">
|
|
|
|
<string>Unco&mment</string>
|
|
|
|
</property>
|
|
|
|
<property name="shortcut">
|
|
|
|
<string>Ctrl+Shift+D</string>
|
|
|
|
</property>
|
|
|
|
</action>
|
|
|
|
<action name="editActionPasteVPT">
|
|
|
|
<property name="text">
|
|
|
|
<string>Paste viewport translation</string>
|
|
|
|
</property>
|
|
|
|
<property name="shortcut">
|
|
|
|
<string>Ctrl+T</string>
|
|
|
|
</property>
|
|
|
|
</action>
|
|
|
|
<action name="editActionPasteVPR">
|
|
|
|
<property name="text">
|
|
|
|
<string>Paste viewport rotation</string>
|
|
|
|
</property>
|
|
|
|
</action>
|
|
|
|
<action name="editActionZoomIn">
|
|
|
|
<property name="text">
|
|
|
|
<string>Zoom In</string>
|
|
|
|
</property>
|
|
|
|
<property name="shortcut">
|
|
|
|
<string>Ctrl++</string>
|
|
|
|
</property>
|
|
|
|
</action>
|
|
|
|
<action name="editActionZoomOut">
|
|
|
|
<property name="text">
|
|
|
|
<string>Zoom Out</string>
|
|
|
|
</property>
|
|
|
|
<property name="shortcut">
|
|
|
|
<string>Ctrl+-</string>
|
|
|
|
</property>
|
|
|
|
</action>
|
2014-10-01 01:18:40 +04:00
|
|
|
<action name="viewActionHideEditor">
|
2009-12-20 15:48:32 +03:00
|
|
|
<property name="checkable">
|
|
|
|
<bool>true</bool>
|
|
|
|
</property>
|
|
|
|
<property name="text">
|
|
|
|
<string>Hide editor</string>
|
|
|
|
</property>
|
|
|
|
</action>
|
2013-12-22 10:43:08 +04:00
|
|
|
<action name="designActionReloadAndPreview">
|
2009-12-09 17:25:09 +03:00
|
|
|
<property name="text">
|
2013-12-22 10:43:08 +04:00
|
|
|
<string>&Reload and Preview</string>
|
2009-12-09 17:25:09 +03:00
|
|
|
</property>
|
|
|
|
<property name="shortcut">
|
|
|
|
<string>F4</string>
|
|
|
|
</property>
|
|
|
|
</action>
|
2013-12-22 10:43:08 +04:00
|
|
|
<action name="designActionPreview">
|
2014-09-14 23:17:27 +04:00
|
|
|
<property name="icon">
|
|
|
|
<iconset resource="../openscad.qrc">
|
|
|
|
<normaloff>:/images/Preview-32.png</normaloff>:/images/Preview-32.png</iconset>
|
|
|
|
</property>
|
2009-12-09 17:25:09 +03:00
|
|
|
<property name="text">
|
2013-12-22 10:43:08 +04:00
|
|
|
<string>&Preview</string>
|
2009-12-09 17:25:09 +03:00
|
|
|
</property>
|
|
|
|
<property name="shortcut">
|
|
|
|
<string>F5</string>
|
|
|
|
</property>
|
|
|
|
</action>
|
2013-12-22 10:43:08 +04:00
|
|
|
<action name="designActionRender">
|
2014-09-14 21:51:40 +04:00
|
|
|
<property name="icon">
|
2014-09-14 23:17:27 +04:00
|
|
|
<iconset resource="../openscad.qrc">
|
|
|
|
<normaloff>:/images/blackRender.png</normaloff>:/images/blackRender.png</iconset>
|
2014-09-14 21:51:40 +04:00
|
|
|
</property>
|
2009-12-09 17:25:09 +03:00
|
|
|
<property name="text">
|
2013-12-22 10:43:08 +04:00
|
|
|
<string>&Render</string>
|
2009-12-09 17:25:09 +03:00
|
|
|
</property>
|
|
|
|
<property name="shortcut">
|
|
|
|
<string>F6</string>
|
|
|
|
</property>
|
|
|
|
</action>
|
2014-02-03 18:10:46 +04:00
|
|
|
<action name="designCheckValidity">
|
2014-02-10 22:28:36 +04:00
|
|
|
<property name="text">
|
|
|
|
<string>Check Validity</string>
|
|
|
|
</property>
|
2014-02-03 18:10:46 +04:00
|
|
|
</action>
|
2009-12-09 17:25:09 +03:00
|
|
|
<action name="designActionDisplayAST">
|
|
|
|
<property name="text">
|
|
|
|
<string>Display &AST...</string>
|
|
|
|
</property>
|
|
|
|
</action>
|
|
|
|
<action name="designActionDisplayCSGTree">
|
|
|
|
<property name="text">
|
|
|
|
<string>Display CSG &Tree...</string>
|
|
|
|
</property>
|
|
|
|
</action>
|
|
|
|
<action name="designActionDisplayCSGProducts">
|
|
|
|
<property name="text">
|
|
|
|
<string>Display CSG &Products...</string>
|
|
|
|
</property>
|
|
|
|
</action>
|
|
|
|
<action name="designActionExportSTL">
|
2014-09-14 23:39:15 +04:00
|
|
|
<property name="icon">
|
|
|
|
<iconset resource="../openscad.qrc">
|
|
|
|
<normaloff>:/images/export.png</normaloff>:/images/export.png</iconset>
|
|
|
|
</property>
|
2009-12-09 17:25:09 +03:00
|
|
|
<property name="text">
|
|
|
|
<string>Export as &STL...</string>
|
|
|
|
</property>
|
|
|
|
</action>
|
|
|
|
<action name="designActionExportOFF">
|
|
|
|
<property name="text">
|
|
|
|
<string>Export as &OFF...</string>
|
|
|
|
</property>
|
|
|
|
</action>
|
2013-12-22 10:43:08 +04:00
|
|
|
<action name="viewActionPreview">
|
2009-12-09 17:25:09 +03:00
|
|
|
<property name="checkable">
|
|
|
|
<bool>true</bool>
|
|
|
|
</property>
|
|
|
|
<property name="text">
|
2013-12-22 10:43:08 +04:00
|
|
|
<string>Preview</string>
|
2009-12-09 17:25:09 +03:00
|
|
|
</property>
|
|
|
|
<property name="shortcut">
|
|
|
|
<string>F9</string>
|
|
|
|
</property>
|
|
|
|
</action>
|
2013-12-22 10:43:08 +04:00
|
|
|
<action name="viewActionSurfaces">
|
2009-12-09 17:25:09 +03:00
|
|
|
<property name="checkable">
|
|
|
|
<bool>true</bool>
|
|
|
|
</property>
|
|
|
|
<property name="text">
|
2013-12-22 10:43:08 +04:00
|
|
|
<string>Surfaces</string>
|
2009-12-09 17:25:09 +03:00
|
|
|
</property>
|
|
|
|
<property name="shortcut">
|
|
|
|
<string>F10</string>
|
|
|
|
</property>
|
|
|
|
</action>
|
2013-12-22 10:43:08 +04:00
|
|
|
<action name="viewActionWireframe">
|
2009-12-09 17:25:09 +03:00
|
|
|
<property name="checkable">
|
|
|
|
<bool>true</bool>
|
|
|
|
</property>
|
|
|
|
<property name="text">
|
2013-12-22 10:43:08 +04:00
|
|
|
<string>Wireframe</string>
|
2009-12-09 17:25:09 +03:00
|
|
|
</property>
|
|
|
|
<property name="shortcut">
|
|
|
|
<string>F11</string>
|
|
|
|
</property>
|
|
|
|
</action>
|
|
|
|
<action name="viewActionThrownTogether">
|
|
|
|
<property name="checkable">
|
|
|
|
<bool>true</bool>
|
|
|
|
</property>
|
|
|
|
<property name="text">
|
|
|
|
<string>Thrown Together</string>
|
|
|
|
</property>
|
|
|
|
<property name="shortcut">
|
|
|
|
<string>F12</string>
|
|
|
|
</property>
|
|
|
|
</action>
|
|
|
|
<action name="viewActionShowEdges">
|
2009-12-13 00:02:29 +03:00
|
|
|
<property name="checkable">
|
|
|
|
<bool>true</bool>
|
|
|
|
</property>
|
2014-09-14 21:51:40 +04:00
|
|
|
<property name="icon">
|
2014-09-14 23:17:27 +04:00
|
|
|
<iconset resource="../openscad.qrc">
|
|
|
|
<normaloff>:/images/Rotation-32.png</normaloff>:/images/Rotation-32.png</iconset>
|
2014-09-14 21:51:40 +04:00
|
|
|
</property>
|
2009-12-09 17:25:09 +03:00
|
|
|
<property name="text">
|
|
|
|
<string>Show Edges</string>
|
|
|
|
</property>
|
|
|
|
<property name="shortcut">
|
|
|
|
<string>Ctrl+1</string>
|
|
|
|
</property>
|
|
|
|
</action>
|
|
|
|
<action name="viewActionShowAxes">
|
2009-12-13 00:02:29 +03:00
|
|
|
<property name="checkable">
|
|
|
|
<bool>true</bool>
|
|
|
|
</property>
|
2014-09-14 21:51:40 +04:00
|
|
|
<property name="icon">
|
2014-09-14 23:17:27 +04:00
|
|
|
<iconset resource="../openscad.qrc">
|
|
|
|
<normaloff>:/images/blackaxes.png</normaloff>:/images/blackaxes.png</iconset>
|
2014-09-14 21:51:40 +04:00
|
|
|
</property>
|
2009-12-09 17:25:09 +03:00
|
|
|
<property name="text">
|
|
|
|
<string>Show Axes</string>
|
|
|
|
</property>
|
|
|
|
<property name="shortcut">
|
|
|
|
<string>Ctrl+2</string>
|
|
|
|
</property>
|
|
|
|
</action>
|
|
|
|
<action name="viewActionShowCrosshairs">
|
2009-12-13 00:02:29 +03:00
|
|
|
<property name="checkable">
|
|
|
|
<bool>true</bool>
|
|
|
|
</property>
|
2014-09-14 23:17:27 +04:00
|
|
|
<property name="icon">
|
|
|
|
<iconset resource="../openscad.qrc">
|
|
|
|
<normaloff>:/images/cross.png</normaloff>:/images/cross.png</iconset>
|
|
|
|
</property>
|
2009-12-09 17:25:09 +03:00
|
|
|
<property name="text">
|
|
|
|
<string>Show Crosshairs</string>
|
|
|
|
</property>
|
|
|
|
<property name="shortcut">
|
|
|
|
<string>Ctrl+3</string>
|
|
|
|
</property>
|
|
|
|
</action>
|
Add optional menu driven scaling tics to the large axes
Tim Deagan 12/26/2014
While add-on rulers can be extremely useful, there are many times that a quick scaling marker would be handy. This feature generates tics every 10 units, driven off the log10 of the l variable defining axes length. As you zoom in or out, the tics automatically re-scale themselves. Every tenth tic is slightly larger. A menu item is added to the view menu to enable or disable the feature.
I experimented with menu driven scaling (.01, .1, 1, 10, etc.), but using small increments when zoomed out brought the app to it's knees. Adding a visual indicator of the current scaling might be nice, but I'm nto sure where to put it (possibly below the small axes,) since it changes as zooming and would clutter the console.
Changes to be committed:
new file: images/scalemarkers.png
modified: openscad.qrc
modified: src/GLView.cc
modified: src/GLView.h
modified: src/MainWindow.h
modified: src/MainWindow.ui
modified: src/QGLView.h
modified: src/mainwin.cc
2014-12-27 06:44:31 +03:00
|
|
|
<action name="viewActionShowScaleProportional">
|
|
|
|
<property name="checkable">
|
|
|
|
<bool>true</bool>
|
|
|
|
</property>
|
|
|
|
<property name="icon">
|
|
|
|
<iconset resource="../openscad.qrc">
|
|
|
|
<normaloff>:/images/scalemarkers.png</normaloff>:/images/scalemarkers.png</iconset>
|
|
|
|
</property>
|
|
|
|
<property name="text">
|
|
|
|
<string>Show Scale Markers</string>
|
|
|
|
</property>
|
|
|
|
</action>
|
2009-12-09 17:25:09 +03:00
|
|
|
<action name="viewActionAnimate">
|
|
|
|
<property name="checkable">
|
|
|
|
<bool>true</bool>
|
|
|
|
</property>
|
|
|
|
<property name="text">
|
|
|
|
<string>Animate</string>
|
|
|
|
</property>
|
|
|
|
</action>
|
|
|
|
<action name="viewActionTop">
|
2014-09-14 21:51:40 +04:00
|
|
|
<property name="icon">
|
2014-09-14 23:17:27 +04:00
|
|
|
<iconset resource="../openscad.qrc">
|
|
|
|
<normaloff>:/images/blackUp.png</normaloff>:/images/blackUp.png</iconset>
|
2014-09-14 21:51:40 +04:00
|
|
|
</property>
|
2009-12-09 17:25:09 +03:00
|
|
|
<property name="text">
|
|
|
|
<string>Top</string>
|
|
|
|
</property>
|
|
|
|
<property name="shortcut">
|
|
|
|
<string>Ctrl+4</string>
|
|
|
|
</property>
|
|
|
|
</action>
|
|
|
|
<action name="viewActionBottom">
|
2014-09-14 21:51:40 +04:00
|
|
|
<property name="icon">
|
2014-09-14 23:17:27 +04:00
|
|
|
<iconset resource="../openscad.qrc">
|
|
|
|
<normaloff>:/images/blackbottom.png</normaloff>:/images/blackbottom.png</iconset>
|
2014-09-14 21:51:40 +04:00
|
|
|
</property>
|
2009-12-09 17:25:09 +03:00
|
|
|
<property name="text">
|
|
|
|
<string>Bottom</string>
|
|
|
|
</property>
|
|
|
|
<property name="shortcut">
|
|
|
|
<string>Ctrl+5</string>
|
|
|
|
</property>
|
|
|
|
</action>
|
|
|
|
<action name="viewActionLeft">
|
2014-09-14 21:51:40 +04:00
|
|
|
<property name="icon">
|
2014-09-14 23:17:27 +04:00
|
|
|
<iconset resource="../openscad.qrc">
|
|
|
|
<normaloff>:/images/blackleft (copy).png</normaloff>:/images/blackleft (copy).png</iconset>
|
2014-09-14 21:51:40 +04:00
|
|
|
</property>
|
2009-12-09 17:25:09 +03:00
|
|
|
<property name="text">
|
|
|
|
<string>Left</string>
|
|
|
|
</property>
|
|
|
|
<property name="shortcut">
|
|
|
|
<string>Ctrl+6</string>
|
|
|
|
</property>
|
|
|
|
</action>
|
|
|
|
<action name="viewActionRight">
|
2014-09-14 21:51:40 +04:00
|
|
|
<property name="icon">
|
2014-09-14 23:17:27 +04:00
|
|
|
<iconset resource="../openscad.qrc">
|
|
|
|
<normaloff>:/images/rightright.png</normaloff>:/images/rightright.png</iconset>
|
2014-09-14 21:51:40 +04:00
|
|
|
</property>
|
2009-12-09 17:25:09 +03:00
|
|
|
<property name="text">
|
|
|
|
<string>Right</string>
|
|
|
|
</property>
|
|
|
|
<property name="shortcut">
|
|
|
|
<string>Ctrl+7</string>
|
|
|
|
</property>
|
|
|
|
</action>
|
|
|
|
<action name="viewActionFront">
|
2014-09-14 21:51:40 +04:00
|
|
|
<property name="icon">
|
2014-09-14 23:17:27 +04:00
|
|
|
<iconset resource="../openscad.qrc">
|
|
|
|
<normaloff>:/images/blackfront.png</normaloff>:/images/blackfront.png</iconset>
|
2014-09-14 21:51:40 +04:00
|
|
|
</property>
|
2009-12-09 17:25:09 +03:00
|
|
|
<property name="text">
|
|
|
|
<string>Front</string>
|
|
|
|
</property>
|
|
|
|
<property name="shortcut">
|
|
|
|
<string>Ctrl+8</string>
|
|
|
|
</property>
|
|
|
|
</action>
|
|
|
|
<action name="viewActionBack">
|
2014-09-14 21:51:40 +04:00
|
|
|
<property name="icon">
|
2014-09-14 23:17:27 +04:00
|
|
|
<iconset resource="../openscad.qrc">
|
|
|
|
<normaloff>:/images/blackback.png</normaloff>:/images/blackback.png</iconset>
|
2014-09-14 21:51:40 +04:00
|
|
|
</property>
|
2009-12-09 17:25:09 +03:00
|
|
|
<property name="text">
|
|
|
|
<string>Back</string>
|
|
|
|
</property>
|
|
|
|
<property name="shortcut">
|
|
|
|
<string>Ctrl+9</string>
|
|
|
|
</property>
|
|
|
|
</action>
|
|
|
|
<action name="viewActionDiagonal">
|
|
|
|
<property name="text">
|
|
|
|
<string>Diagonal</string>
|
|
|
|
</property>
|
|
|
|
<property name="shortcut">
|
|
|
|
<string>Ctrl+0</string>
|
|
|
|
</property>
|
|
|
|
</action>
|
|
|
|
<action name="viewActionCenter">
|
|
|
|
<property name="text">
|
|
|
|
<string>Center</string>
|
|
|
|
</property>
|
|
|
|
</action>
|
|
|
|
<action name="viewActionPerspective">
|
|
|
|
<property name="checkable">
|
|
|
|
<bool>true</bool>
|
|
|
|
</property>
|
2014-09-14 23:17:27 +04:00
|
|
|
<property name="icon">
|
|
|
|
<iconset resource="../openscad.qrc">
|
|
|
|
<normaloff>:/images/perspective1.png</normaloff>:/images/perspective1.png</iconset>
|
|
|
|
</property>
|
2009-12-09 17:25:09 +03:00
|
|
|
<property name="text">
|
|
|
|
<string>Perspective</string>
|
|
|
|
</property>
|
|
|
|
</action>
|
|
|
|
<action name="viewActionOrthogonal">
|
|
|
|
<property name="checkable">
|
|
|
|
<bool>true</bool>
|
|
|
|
</property>
|
2014-09-14 23:17:27 +04:00
|
|
|
<property name="icon">
|
|
|
|
<iconset resource="../openscad.qrc">
|
|
|
|
<normaloff>:/images/orthogonal.png</normaloff>:/images/orthogonal.png</iconset>
|
|
|
|
</property>
|
2009-12-09 17:25:09 +03:00
|
|
|
<property name="text">
|
|
|
|
<string>Orthogonal</string>
|
|
|
|
</property>
|
|
|
|
</action>
|
2014-10-01 01:18:40 +04:00
|
|
|
<action name="viewActionHideConsole">
|
2009-12-20 15:48:32 +03:00
|
|
|
<property name="checkable">
|
|
|
|
<bool>true</bool>
|
|
|
|
</property>
|
|
|
|
<property name="text">
|
|
|
|
<string>Hide console</string>
|
|
|
|
</property>
|
|
|
|
</action>
|
2009-12-13 01:04:32 +03:00
|
|
|
<action name="helpActionAbout">
|
2013-02-05 09:36:25 +04:00
|
|
|
<property name="enabled">
|
|
|
|
<bool>true</bool>
|
|
|
|
</property>
|
2009-12-13 01:04:32 +03:00
|
|
|
<property name="text">
|
|
|
|
<string>About</string>
|
|
|
|
</property>
|
2014-12-12 00:58:20 +03:00
|
|
|
<property name="menuRole">
|
|
|
|
<enum>QAction::AboutRole</enum>
|
|
|
|
</property>
|
2009-12-13 01:04:32 +03:00
|
|
|
</action>
|
2009-12-13 01:19:53 +03:00
|
|
|
<action name="helpActionManual">
|
|
|
|
<property name="text">
|
2013-06-18 07:25:01 +04:00
|
|
|
<string>Documentation</string>
|
2009-12-13 01:19:53 +03:00
|
|
|
</property>
|
|
|
|
</action>
|
2009-12-13 23:24:15 +03:00
|
|
|
<action name="fileActionClearRecent">
|
|
|
|
<property name="text">
|
|
|
|
<string>Clear Recent</string>
|
|
|
|
</property>
|
|
|
|
</action>
|
2010-01-06 05:04:49 +03:00
|
|
|
<action name="designActionExportDXF">
|
|
|
|
<property name="text">
|
|
|
|
<string>Export as DXF...</string>
|
|
|
|
</property>
|
|
|
|
</action>
|
2010-01-07 00:35:01 +03:00
|
|
|
<action name="fileActionClose">
|
|
|
|
<property name="text">
|
|
|
|
<string>Close</string>
|
|
|
|
</property>
|
|
|
|
<property name="shortcut">
|
|
|
|
<string>Ctrl+W</string>
|
|
|
|
</property>
|
|
|
|
</action>
|
2010-01-15 04:00:41 +03:00
|
|
|
<action name="editActionPreferences">
|
|
|
|
<property name="text">
|
|
|
|
<string>Preferences</string>
|
|
|
|
</property>
|
2014-12-12 00:58:20 +03:00
|
|
|
<property name="menuRole">
|
|
|
|
<enum>QAction::PreferencesRole</enum>
|
|
|
|
</property>
|
2010-01-15 04:00:41 +03:00
|
|
|
</action>
|
2014-02-01 14:46:05 +04:00
|
|
|
<action name="editActionFind">
|
|
|
|
<property name="text">
|
|
|
|
<string>Find...</string>
|
|
|
|
</property>
|
|
|
|
<property name="shortcut">
|
|
|
|
<string>Ctrl+F</string>
|
|
|
|
</property>
|
|
|
|
</action>
|
2014-02-01 18:53:18 +04:00
|
|
|
<action name="editActionFindAndReplace">
|
|
|
|
<property name="text">
|
|
|
|
<string>Find and Replace...</string>
|
|
|
|
</property>
|
|
|
|
<property name="shortcut">
|
|
|
|
<string>Ctrl+Alt+F</string>
|
|
|
|
</property>
|
|
|
|
</action>
|
2014-02-01 14:46:05 +04:00
|
|
|
<action name="editActionFindNext">
|
|
|
|
<property name="text">
|
|
|
|
<string>Find Next</string>
|
|
|
|
</property>
|
|
|
|
<property name="shortcut">
|
|
|
|
<string>Ctrl+G</string>
|
|
|
|
</property>
|
|
|
|
</action>
|
|
|
|
<action name="editActionFindPrevious">
|
|
|
|
<property name="text">
|
|
|
|
<string>Find Previous</string>
|
|
|
|
</property>
|
|
|
|
<property name="shortcut">
|
|
|
|
<string>Ctrl+Shift+G</string>
|
|
|
|
</property>
|
|
|
|
</action>
|
|
|
|
<action name="editActionUseSelectionForFind">
|
|
|
|
<property name="text">
|
|
|
|
<string>Use Selection for Find</string>
|
|
|
|
</property>
|
|
|
|
<property name="shortcut">
|
|
|
|
<string>Ctrl+E</string>
|
|
|
|
</property>
|
|
|
|
</action>
|
2010-01-08 00:08:47 +03:00
|
|
|
<action name="designActionFlushCaches">
|
|
|
|
<property name="text">
|
|
|
|
<string>Flush Caches</string>
|
|
|
|
</property>
|
|
|
|
</action>
|
2010-02-20 13:20:18 +03:00
|
|
|
<action name="helpActionHomepage">
|
|
|
|
<property name="text">
|
|
|
|
<string>OpenSCAD Homepage</string>
|
|
|
|
</property>
|
|
|
|
</action>
|
2010-05-09 17:27:05 +04:00
|
|
|
<action name="designActionAutoReload">
|
|
|
|
<property name="checkable">
|
|
|
|
<bool>true</bool>
|
|
|
|
</property>
|
|
|
|
<property name="text">
|
2013-12-22 10:43:08 +04:00
|
|
|
<string>Automatic Reload and Preview</string>
|
2010-05-09 17:27:05 +04:00
|
|
|
</property>
|
|
|
|
</action>
|
2011-06-05 22:05:55 +04:00
|
|
|
<action name="designActionExportImage">
|
|
|
|
<property name="text">
|
|
|
|
<string>Export as Image...</string>
|
|
|
|
</property>
|
|
|
|
</action>
|
2011-10-19 19:35:14 +04:00
|
|
|
<action name="designActionExportCSG">
|
|
|
|
<property name="text">
|
|
|
|
<string>Export as CSG...</string>
|
|
|
|
</property>
|
|
|
|
</action>
|
2012-02-15 04:26:38 +04:00
|
|
|
<action name="helpActionLibraryInfo">
|
2011-12-09 06:43:06 +04:00
|
|
|
<property name="text">
|
2012-02-15 04:26:38 +04:00
|
|
|
<string>Library info</string>
|
2011-12-09 06:43:06 +04:00
|
|
|
</property>
|
|
|
|
</action>
|
2013-05-22 02:02:16 +04:00
|
|
|
<action name="fileShowLibraryFolder">
|
|
|
|
<property name="text">
|
|
|
|
<string>Show Library Folder...</string>
|
|
|
|
</property>
|
|
|
|
</action>
|
2013-11-01 01:54:05 +04:00
|
|
|
<action name="viewActionResetView">
|
2014-12-25 22:26:31 +03:00
|
|
|
<property name="icon">
|
|
|
|
<iconset resource="../openscad.qrc">
|
|
|
|
<normaloff>:/images/Command-Reset-32.png</normaloff>:/images/Command-Reset-32.png</iconset>
|
|
|
|
</property>
|
2013-11-01 01:54:05 +04:00
|
|
|
<property name="text">
|
|
|
|
<string>Reset View</string>
|
|
|
|
</property>
|
|
|
|
</action>
|
2013-11-21 04:01:42 +04:00
|
|
|
<action name="helpActionFontInfo">
|
|
|
|
<property name="text">
|
|
|
|
<string>Font List</string>
|
|
|
|
</property>
|
|
|
|
</action>
|
2014-03-02 22:26:17 +04:00
|
|
|
<action name="designActionExportSVG">
|
|
|
|
<property name="text">
|
|
|
|
<string>Export as SVG...</string>
|
|
|
|
</property>
|
|
|
|
</action>
|
2014-02-11 02:43:57 +04:00
|
|
|
<action name="designActionExportAMF">
|
|
|
|
<property name="text">
|
|
|
|
<string>Export as AMF...</string>
|
|
|
|
</property>
|
|
|
|
</action>
|
2014-04-11 03:18:08 +04:00
|
|
|
<action name="viewActionZoomIn">
|
2014-09-14 23:17:27 +04:00
|
|
|
<property name="icon">
|
|
|
|
<iconset resource="../openscad.qrc">
|
|
|
|
<normaloff>:/images/zoomin.png</normaloff>:/images/zoomin.png</iconset>
|
|
|
|
</property>
|
2014-04-11 03:18:08 +04:00
|
|
|
<property name="text">
|
|
|
|
<string>Zoom In</string>
|
|
|
|
</property>
|
|
|
|
<property name="shortcut">
|
|
|
|
<string>Ctrl+]</string>
|
|
|
|
</property>
|
|
|
|
</action>
|
|
|
|
<action name="viewActionZoomOut">
|
2014-09-14 23:17:27 +04:00
|
|
|
<property name="icon">
|
|
|
|
<iconset resource="../openscad.qrc">
|
|
|
|
<normaloff>:/images/zoomout.png</normaloff>:/images/zoomout.png</iconset>
|
|
|
|
</property>
|
2014-04-11 03:18:08 +04:00
|
|
|
<property name="text">
|
|
|
|
<string>Zoom Out</string>
|
|
|
|
</property>
|
|
|
|
<property name="shortcut">
|
|
|
|
<string>Ctrl+[</string>
|
|
|
|
</property>
|
|
|
|
</action>
|
2014-06-22 00:12:55 +04:00
|
|
|
<action name="viewActionViewAll">
|
2014-09-19 01:14:12 +04:00
|
|
|
<property name="icon">
|
|
|
|
<iconset resource="../openscad.qrc">
|
|
|
|
<normaloff>:/images/zoom-all.png</normaloff>:/images/zoom-all.png</iconset>
|
|
|
|
</property>
|
2014-06-22 00:12:55 +04:00
|
|
|
<property name="text">
|
|
|
|
<string>View All</string>
|
|
|
|
</property>
|
|
|
|
</action>
|
2014-09-20 01:25:49 +04:00
|
|
|
<action name="editActionConvertTabsToSpaces">
|
|
|
|
<property name="text">
|
|
|
|
<string>Convert Tabs to Spaces</string>
|
|
|
|
</property>
|
|
|
|
</action>
|
2014-10-01 01:18:40 +04:00
|
|
|
<action name="viewActionHideToolBars">
|
2014-09-14 21:51:40 +04:00
|
|
|
<property name="checkable">
|
|
|
|
<bool>true</bool>
|
|
|
|
</property>
|
|
|
|
<property name="text">
|
2014-09-19 22:17:04 +04:00
|
|
|
<string>Hide toolbars</string>
|
2014-09-14 21:51:40 +04:00
|
|
|
</property>
|
|
|
|
</action>
|
2014-12-25 20:42:32 +03:00
|
|
|
<action name="editActionUnindent">
|
|
|
|
<property name="icon">
|
|
|
|
<iconset resource="../openscad.qrc">
|
2014-12-25 21:04:28 +03:00
|
|
|
<normaloff>:/images/Decrease-Indent-32.png</normaloff>:/images/Decrease-Indent-32.png</iconset>
|
2014-12-25 20:42:32 +03:00
|
|
|
</property>
|
|
|
|
<property name="text">
|
|
|
|
<string>U&nindent</string>
|
|
|
|
</property>
|
|
|
|
<property name="shortcut">
|
|
|
|
<string>Ctrl+Shift+I</string>
|
|
|
|
</property>
|
|
|
|
</action>
|
2009-12-09 17:25:09 +03:00
|
|
|
</widget>
|
|
|
|
<customwidgets>
|
|
|
|
<customwidget>
|
2013-02-21 05:56:30 +04:00
|
|
|
<class>QGLView</class>
|
2009-12-09 17:25:09 +03:00
|
|
|
<extends>QWidget</extends>
|
2013-02-21 05:56:30 +04:00
|
|
|
<header>QGLView.h</header>
|
2009-12-09 17:25:09 +03:00
|
|
|
<container>1</container>
|
|
|
|
</customwidget>
|
2014-10-20 02:21:06 +04:00
|
|
|
<customwidget>
|
|
|
|
<class>Dock</class>
|
|
|
|
<extends>QDockWidget</extends>
|
|
|
|
<header>Dock.h</header>
|
|
|
|
<container>1</container>
|
|
|
|
</customwidget>
|
2009-12-09 17:25:09 +03:00
|
|
|
</customwidgets>
|
2014-09-14 23:17:27 +04:00
|
|
|
<resources>
|
|
|
|
<include location="../openscad.qrc"/>
|
|
|
|
</resources>
|
2009-12-09 17:25:09 +03:00
|
|
|
<connections>
|
2010-01-07 00:35:01 +03:00
|
|
|
<connection>
|
|
|
|
<sender>fileActionClose</sender>
|
|
|
|
<signal>triggered()</signal>
|
|
|
|
<receiver>MainWindow</receiver>
|
|
|
|
<slot>close()</slot>
|
|
|
|
<hints>
|
|
|
|
<hint type="sourcelabel">
|
|
|
|
<x>-1</x>
|
|
|
|
<y>-1</y>
|
|
|
|
</hint>
|
|
|
|
<hint type="destinationlabel">
|
|
|
|
<x>340</x>
|
|
|
|
<y>323</y>
|
|
|
|
</hint>
|
|
|
|
</hints>
|
|
|
|
</connection>
|
2009-12-09 17:25:09 +03:00
|
|
|
</connections>
|
|
|
|
</ui>
|