diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mainwindow.cc | 16 | ||||
-rw-r--r-- | src/mainwindow.h | 8 |
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 |