File Exit and window closing event handled
[biacv.git] / biacv_mainwindow.ui
index 844088e..37d6511 100644 (file)
     </item>
     <item row="1" column="0" colspan="2">
      <widget class="QTabWidget" name="pages">
+      <property name="autoFillBackground">
+       <bool>false</bool>
+      </property>
       <property name="tabShape">
        <enum>QTabWidget::Rounded</enum>
       </property>
       <property name="currentIndex">
        <number>0</number>
       </property>
+      <property name="usesScrollButtons">
+       <bool>true</bool>
+      </property>
       <property name="documentMode">
        <bool>true</bool>
       </property>
      <addaction name="actionOpenDocument_ODT"/>
     </widget>
     <addaction name="action_New"/>
-    <addaction name="action_Save"/>
+    <addaction name="action_Open"/>
     <addaction name="separator"/>
-    <addaction name="action_Save_2"/>
+    <addaction name="action_Save"/>
     <addaction name="actionSave_As"/>
     <addaction name="menu_Export"/>
     <addaction name="separator"/>
     <string>Create a new file</string>
    </property>
   </action>
-  <action name="action_Save">
+  <action name="action_Open">
    <property name="text">
     <string>&amp;Open...</string>
    </property>
     <string>Open an existing file</string>
    </property>
   </action>
-  <action name="action_Save_2">
+  <action name="action_Save">
    <property name="text">
     <string>&amp;Save</string>
    </property>
    <slot>on_add_lang()</slot>
    <hints>
     <hint type="sourcelabel">
-     <x>468</x>
-     <y>132</y>
+     <x>547</x>
+     <y>155</y>
     </hint>
     <hint type="destinationlabel">
      <x>729</x>
    <slot>on_delete_lang()</slot>
    <hints>
     <hint type="sourcelabel">
-     <x>656</x>
-     <y>132</y>
+     <x>716</x>
+     <y>155</y>
     </hint>
     <hint type="destinationlabel">
      <x>733</x>
    <slot>on_select_lang()</slot>
    <hints>
     <hint type="sourcelabel">
-     <x>94</x>
-     <y>160</y>
+     <x>103</x>
+     <y>189</y>
     </hint>
     <hint type="destinationlabel">
      <x>730</x>
    <slot>on_select_lang()</slot>
    <hints>
     <hint type="sourcelabel">
-     <x>94</x>
-     <y>160</y>
+     <x>103</x>
+     <y>189</y>
     </hint>
     <hint type="destinationlabel">
      <x>730</x>
    <slot>on_update_lang()</slot>
    <hints>
     <hint type="sourcelabel">
-     <x>591</x>
-     <y>132</y>
+     <x>644</x>
+     <y>155</y>
     </hint>
     <hint type="destinationlabel">
      <x>729</x>
    <slot>on_document_modified()</slot>
    <hints>
     <hint type="sourcelabel">
-     <x>480</x>
+     <x>182</x>
      <y>41</y>
     </hint>
     <hint type="destinationlabel">
    <hints>
     <hint type="sourcelabel">
      <x>223</x>
-     <y>186</y>
+     <y>174</y>
     </hint>
     <hint type="destinationlabel">
      <x>538</x>
    <hints>
     <hint type="sourcelabel">
      <x>170</x>
-     <y>265</y>
+     <y>245</y>
     </hint>
     <hint type="destinationlabel">
      <x>196</x>
    <hints>
     <hint type="sourcelabel">
      <x>437</x>
-     <y>268</y>
+     <y>248</y>
     </hint>
     <hint type="destinationlabel">
      <x>88</x>
    <hints>
     <hint type="sourcelabel">
      <x>527</x>
-     <y>264</y>
+     <y>244</y>
     </hint>
     <hint type="destinationlabel">
      <x>165</x>
    <hints>
     <hint type="sourcelabel">
      <x>204</x>
-     <y>305</y>
+     <y>281</y>
     </hint>
     <hint type="destinationlabel">
      <x>-1</x>
    <hints>
     <hint type="sourcelabel">
      <x>409</x>
-     <y>309</y>
+     <y>285</y>
     </hint>
     <hint type="destinationlabel">
      <x>575</x>
    <hints>
     <hint type="sourcelabel">
      <x>588</x>
-     <y>305</y>
+     <y>281</y>
     </hint>
     <hint type="destinationlabel">
      <x>0</x>
    <hints>
     <hint type="sourcelabel">
      <x>93</x>
-     <y>356</y>
+     <y>328</y>
     </hint>
     <hint type="destinationlabel">
      <x>-3</x>
    <hints>
     <hint type="sourcelabel">
      <x>372</x>
-     <y>351</y>
+     <y>323</y>
     </hint>
     <hint type="destinationlabel">
      <x>2</x>
    <hints>
     <hint type="sourcelabel">
      <x>118</x>
-     <y>396</y>
+     <y>364</y>
     </hint>
     <hint type="destinationlabel">
      <x>0</x>
    <hints>
     <hint type="sourcelabel">
      <x>149</x>
-     <y>436</y>
+     <y>400</y>
     </hint>
     <hint type="destinationlabel">
      <x>1</x>
    <hints>
     <hint type="sourcelabel">
      <x>212</x>
-     <y>431</y>
+     <y>395</y>
     </hint>
     <hint type="destinationlabel">
      <x>3</x>
    <hints>
     <hint type="sourcelabel">
      <x>303</x>
-     <y>436</y>
+     <y>400</y>
     </hint>
     <hint type="destinationlabel">
      <x>-2</x>
    <slot>on_document_modified()</slot>
    <hints>
     <hint type="sourcelabel">
-     <x>86</x>
+     <x>90</x>
      <y>297</y>
     </hint>
     <hint type="destinationlabel">
    <slot>on_document_modified()</slot>
    <hints>
     <hint type="sourcelabel">
-     <x>90</x>
+     <x>94</x>
      <y>333</y>
     </hint>
     <hint type="destinationlabel">
     </hint>
    </hints>
   </connection>
+  <connection>
+   <sender>action_Save</sender>
+   <signal>triggered()</signal>
+   <receiver>biacv_mainwindow</receiver>
+   <slot>on_file_save()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>-1</x>
+     <y>-1</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>364</x>
+     <y>248</y>
+    </hint>
+   </hints>
+  </connection>
+  <connection>
+   <sender>action_Open</sender>
+   <signal>triggered()</signal>
+   <receiver>biacv_mainwindow</receiver>
+   <slot>on_file_open()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>-1</x>
+     <y>-1</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>364</x>
+     <y>248</y>
+    </hint>
+   </hints>
+  </connection>
+  <connection>
+   <sender>actionSave_As</sender>
+   <signal>triggered()</signal>
+   <receiver>biacv_mainwindow</receiver>
+   <slot>on_file_save_as()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>-1</x>
+     <y>-1</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>364</x>
+     <y>248</y>
+    </hint>
+   </hints>
+  </connection>
+  <connection>
+   <sender>actionE_xit</sender>
+   <signal>triggered()</signal>
+   <receiver>biacv_mainwindow</receiver>
+   <slot>on_exit()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>-1</x>
+     <y>-1</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>364</x>
+     <y>248</y>
+    </hint>
+   </hints>
+  </connection>
  </connections>
  <slots>
   <slot>on_add_education()</slot>
   <slot>on_update_lang()</slot>
   <slot>on_document_modified()</slot>
   <slot>on_file_new()</slot>
+  <slot>on_file_save()</slot>
+  <slot>on_file_open()</slot>
+  <slot>on_file_save_as()</slot>
+  <slot>on_exit()</slot>
  </slots>
 </ui>