summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordeva <deva>2005-05-02 19:56:17 +0000
committerdeva <deva>2005-05-02 19:56:17 +0000
commit0755a964c9b2095d31e8c03d7cff00b070831c9d (patch)
treeb9e44f43285b6b101311e9ac654685b57b68eabe
parentb7a993e0d6aebb98c06e88eb9ca0aaa3674dfe78 (diff)
cpr_clicked is now blocked, if a recording session on. A messagebox explains
how to stop before trying to change the cpr number again.
-rw-r--r--src/mainwindow.cc16
-rw-r--r--src/mainwindow.h8
2 files changed, 24 insertions, 0 deletions
diff --git a/src/mainwindow.cc b/src/mainwindow.cc
index f7ba33d..829d0fd 100644
--- a/src/mainwindow.cc
+++ b/src/mainwindow.cc
@@ -27,6 +27,11 @@
*/
/*
* $Log$
+ * Revision 1.22 2005/05/02 19:56:17 deva
+ *
+ * cpr_clicked is now blocked, if a recording session on. A messagebox explains
+ * how to stop before trying to change the cpr number again.
+ *
* Revision 1.21 2005/05/02 18:47:21 deva
*
* Cpr now sent to decoder. And saved prioer to editing, in order to be able
@@ -290,6 +295,17 @@ void MainWindow::cpr_clicked()
char oldcpr[256];
char oldname[256];
+ // If recording, stop recording before changingcpr
+ if(recording) {
+ MessageBox(this,
+ TXT_STOP_RECORDING_TITLE,
+ TXT_STOP_RECORDING,
+ TYPE_OK,
+ ICON_WARNING).exec();
+ return;
+ }
+
+
// Save CPR and name, from the labels.
strcpy(oldname, lbl_name->text().ascii());
strcpy(oldcpr, lbl_cpr->text().ascii());
diff --git a/src/mainwindow.h b/src/mainwindow.h
index 997b9dc..716ca39 100644
--- a/src/mainwindow.h
+++ b/src/mainwindow.h
@@ -27,6 +27,11 @@
*/
/*
* $Log$
+ * Revision 1.9 2005/05/02 19:56:17 deva
+ *
+ * cpr_clicked is now blocked, if a recording session on. A messagebox explains
+ * how to stop before trying to change the cpr number again.
+ *
* Revision 1.8 2005/05/01 09:56:26 deva
* Added Id and Log tags to all files
*
@@ -62,6 +67,9 @@ using namespace std;
#define TXT_CPRDLG_TITLE "CPRQueryDialog"
#define TXT_ASK_SAVE_TITLE "Vil du gemme filmen?"
#define TXT_ASK_SAVE "Vil du gemme filmen permanent?"
+#define TXT_STOP_RECORDING_TITLE "Stop optagelsen"
+#define TXT_STOP_RECORDING "Optagelsen skal standses, inden et nyt cpr nummer kan indtastes.\n\
+Optagelsen standses ved tryk på den røde cirkel med gul streg over."
/**
* Images