OSDN Git Service

Added Export EPS Menu
authorENDO Michiaki <dinosaur@db3.so-net.ne.jp>
Mon, 30 Mar 2015 07:21:15 +0000 (16:21 +0900)
committerENDO Michiaki <dinosaur@db3.so-net.ne.jp>
Mon, 30 Mar 2015 07:21:15 +0000 (16:21 +0900)
KODS_GUI.pro.user
mainwindow.cpp
mainwindow.h
mainwindow.ui

index 09aa374..26222f5 100644 (file)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE QtCreatorProject>
-<!-- Written by QtCreator 3.1.2, 2015-03-30T10:54:16. -->
+<!-- Written by QtCreator 3.1.2, 2015-03-30T16:20:09. -->
 <qtcreator>
  <data>
   <variable>ProjectExplorer.Project.ActiveTarget</variable>
index 33389e0..6f4c857 100644 (file)
@@ -290,6 +290,7 @@ void MainWindow::slot_commandExec()
     }
 
     cmdLine->clear();
+    cmdLine->setFocus();
 
 }
 
@@ -1398,6 +1399,14 @@ void MainWindow::slot_actionExport_JPEG()
 
 }
 
+void MainWindow::slot_actionExport_EPS()
+{
+
+    proc->write("GRAOUT COLEPS\n");
+    return;
+
+}
+
 
 //Edit Menu
 
index f9fef36..7a39809 100644 (file)
@@ -83,6 +83,7 @@ private slots:
     void slot_actionExport_Zemax();
     void slot_actionExport_CODE_V();
     void slot_actionExport_JPEG();
+    void slot_actionExport_EPS();
     void slot_quit2();
 
     void slot_actionInsert_surface();
index 0bf1409..cd41797 100644 (file)
     <addaction name="actionImport_Code_V"/>
     <addaction name="actionExport_Zemax"/>
     <addaction name="actionExport_Code_V"/>
+    <addaction name="separator"/>
     <addaction name="actionExport_JPEG"/>
+    <addaction name="actionExport_EPS"/>
     <addaction name="separator"/>
     <addaction name="actionQuit"/>
    </widget>
     <string>Export JPEG</string>
    </property>
   </action>
+  <action name="actionExport_EPS">
+   <property name="text">
+    <string>Export EPS</string>
+   </property>
+  </action>
  </widget>
  <layoutdefault spacing="6" margin="11"/>
  <resources/>
     </hint>
    </hints>
   </connection>
+  <connection>
+   <sender>actionExport_EPS</sender>
+   <signal>triggered()</signal>
+   <receiver>MainWindow</receiver>
+   <slot>slot_actionExport_EPS()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>-1</x>
+     <y>-1</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>339</x>
+     <y>334</y>
+    </hint>
+   </hints>
+  </connection>
  </connections>
  <slots>
   <signal>actionInput_Variables()</signal>
   <slot>slot_actionPltchrsh()</slot>
   <slot>slot_quit2()</slot>
   <slot>slot_actionExport_JPEG()</slot>
+  <slot>slot_actionExport_EPS()</slot>
  </slots>
 </ui>