[longomatch] Improve user interaction when closing a fake live capture project.
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Improve user interaction when closing a fake live capture project.
- Date: Thu, 25 Mar 2010 20:48:49 +0000 (UTC)
commit 7570ab6c7c850915caa6b0e82affae386e8b69ad
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Sun Mar 7 18:40:56 2010 +0100
Improve user interaction when closing a fake live capture project.
LongoMatch/Gui/MainWindow.cs | 23 +++++++++++++++--------
1 files changed, 15 insertions(+), 8 deletions(-)
---
diff --git a/LongoMatch/Gui/MainWindow.cs b/LongoMatch/Gui/MainWindow.cs
index 0b6dbe8..d3b5b75 100644
--- a/LongoMatch/Gui/MainWindow.cs
+++ b/LongoMatch/Gui/MainWindow.cs
@@ -261,22 +261,29 @@ namespace LongoMatch.Gui
return true;
MessageDialog md = new MessageDialog((Gtk.Window)this.Toplevel, DialogFlags.Modal, MessageType.Question, ButtonsType.YesNo,
Catalog.GetString("A capture project is actually running."+
- "This action will stop the ongoing capture and save the project"+"\n"+
+ "This action will stop the ongoing capture and save the project."+"\n"+
"Do you want to proceed?"));
if (md.Run() == (int)ResponseType.Yes){
+ md.Destroy();
CloseActualProyect();
res = true;
- }
- md.Destroy();
+ } else
+ md.Destroy();
return res;
}
private bool SaveFakeLiveProject(Project project){
bool res = false;
- MessagePopup.PopupMessage(this.Toplevel, MessageType.Info,
- Catalog.GetString("The project will be saved to a file. To insert it into the databse, use the "+
- "Import function after adding the associated video file to your computer."));
-
+ MessageDialog md = new MessageDialog((Gtk.Window)this.Toplevel, DialogFlags.Modal, MessageType.Question, ButtonsType.OkCancel,
+ Catalog.GetString("The project will be saved to a file.You can insert it later into the database using the "+
+ "Import function once you copied the video file to your computer.\n"+
+ "If you cancel this action all your changes will be lost!"));
+ if (md.Run() == (int)ResponseType.Cancel){
+ md.Destroy();
+ return true;
+ }else
+ md.Destroy();
+
FileChooserDialog fChooser = new FileChooserDialog(Catalog.GetString("Save Project"),
(Gtk.Window)Toplevel,
FileChooserAction.Save,
@@ -291,7 +298,7 @@ namespace LongoMatch.Gui
if (fChooser.Run() == (int)ResponseType.Accept) {
Project.Export(project, fChooser.Filename);
MessagePopup.PopupMessage(this.Toplevel, MessageType.Info,
- Catalog.GetString("Project saved successfully"));
+ Catalog.GetString("Project saved successfully."));
res = true;
}
fChooser.Destroy();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]