OSDN Git Service

Added 'Export JPEG' menu
authorENDO Michiaki <dinosaur@db3.so-net.ne.jp>
Mon, 30 Mar 2015 01:56:29 +0000 (10:56 +0900)
committerENDO Michiaki <dinosaur@db3.so-net.ne.jp>
Mon, 30 Mar 2015 01:56:29 +0000 (10:56 +0900)
KODS_GUI.pro.user
mainwindow.cpp
mainwindow.h
mainwindow.ui

index f20b307..09aa374 100644 (file)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE QtCreatorProject>
-<!-- Written by QtCreator 3.1.2, 2015-03-13T15:56:29. -->
+<!-- Written by QtCreator 3.1.2, 2015-03-30T10:54:16. -->
 <qtcreator>
  <data>
   <variable>ProjectExplorer.Project.ActiveTarget</variable>
index 8368b3f..33389e0 100644 (file)
@@ -1390,6 +1390,14 @@ void MainWindow::slot_actionExport_CODE_V()
 
 }
 
+void MainWindow::slot_actionExport_JPEG()
+{
+
+    proc->write("GRAOUT JPG\n");
+    return;
+
+}
+
 
 //Edit Menu
 
index 317d1e1..f9fef36 100644 (file)
@@ -82,6 +82,7 @@ private slots:
     void slot_actionImport_CODE_V();
     void slot_actionExport_Zemax();
     void slot_actionExport_CODE_V();
+    void slot_actionExport_JPEG();
     void slot_quit2();
 
     void slot_actionInsert_surface();
index c79128e..0bf1409 100644 (file)
     <addaction name="actionImport_Code_V"/>
     <addaction name="actionExport_Zemax"/>
     <addaction name="actionExport_Code_V"/>
+    <addaction name="actionExport_JPEG"/>
     <addaction name="separator"/>
     <addaction name="actionQuit"/>
    </widget>
     <string>Paraxial Chromatic Focus Shift</string>
    </property>
   </action>
+  <action name="actionExport_JPEG">
+   <property name="text">
+    <string>Export JPEG</string>
+   </property>
+  </action>
  </widget>
  <layoutdefault spacing="6" margin="11"/>
  <resources/>
     </hint>
    </hints>
   </connection>
+  <connection>
+   <sender>actionExport_JPEG</sender>
+   <signal>triggered()</signal>
+   <receiver>MainWindow</receiver>
+   <slot>slot_actionExport_JPEG()</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_actionRay_input_angle()</slot>
   <slot>slot_actionPltchrsh()</slot>
   <slot>slot_quit2()</slot>
+  <slot>slot_actionExport_JPEG()</slot>
  </slots>
 </ui>