+void Constructor::on_quick_btn_save_clicked()
+{
+ if ( ! saved ) {
+ on_main_menu_save();
+ } else {
+ on_btn_file_ok_clicked();
+ }
+}
+
+void Constructor::on_quick_btn_new_clicked()
+{
+ on_quick_btn_delete_all_clicked();
+ saved = false;
+}
+
+void Constructor::on_quick_btn_delete_all_clicked()
+{
+ std::list<CItem *>::iterator i = listaItems.begin();
+ while ( i != listaItems.end() ){
+ CItem *temp = *i;
+ listaItems.erase(i);
+ delete temp;
+ i = listaItems.begin();
+ }
+ i = lista_logic_Items.begin();
+ while ( i != lista_logic_Items.end() ){
+ CItem *temp2 = *i;
+ lista_logic_Items.erase(i);
+ delete temp2;
+ i = lista_logic_Items.begin();
+ }
+ id = 0;
+}
+