From 64efd74ecfa761c83b70ec2374bf448b6e42e254 Mon Sep 17 00:00:00 2001 From: deva Date: Thu, 2 Jun 2005 20:45:01 +0000 Subject: Added clear button Optimized the frame handling a little (very little!). --- src/mainwindow.h | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'src/mainwindow.h') diff --git a/src/mainwindow.h b/src/mainwindow.h index 1348b5f..790097e 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -31,6 +31,11 @@ /* * $Log$ + * Revision 1.15 2005/06/02 20:45:01 deva + * + * Added clear button + * Optimized the frame handling a little (very little!). + * * Revision 1.14 2005/05/23 19:30:36 deva * Made some cleanup in the status bar. * @@ -71,6 +76,8 @@ using namespace std; #include #include #include +#include +#include #include "videowidget.h" #include "camera.h" @@ -93,7 +100,9 @@ using namespace std; Optagelsen standses ved tryk på den røde cirkel med gul streg over." #define TXT_TIME "Tid:" #define TXT_QUEUELENGTH "Buffer størelse:" - +#define TXT_ASK_CLEAR_SCREEN_TITLE "Tøm billedlisten" +#define TXT_ASK_CLEAR_SCREEN "Er du sikker på at du vil tømme billedlisten?" + /** * Images */ @@ -104,6 +113,7 @@ Optagelsen standses ved tryk p #define PIXMAP_UNFREEZE PIXMAPS"/unfreeze.png" #define PIXMAP_CPR PIXMAPS"/cpr.png" +#define PIXMAP_CLEAR PIXMAPS"/clear.png" #define PIXMAP_SNAPSHOT PIXMAPS"/snapshot.png" #define PIXMAP_DUMMY PIXMAPS"/dummy.png" @@ -120,6 +130,7 @@ public: public slots: void cpr_clicked(); + void clear_clicked(); void rec_clicked(); void shoot_clicked(); void freeze_clicked(); @@ -138,10 +149,12 @@ private: QPixmap *pix_freeze; QPixmap *pix_snapshot; QPixmap *pix_cpr; + QPixmap *pix_clear; QPixmap *pix_record; QPixmap *pix_stop; - QPixmap *pix_dummy; QPixmap *pix_logo; + + QImage *pix_dummy; QLabel *lbl_version; QLabel *lbl_cpr; @@ -159,6 +172,7 @@ private: QLabel *img_history[NUM_HISTORY]; QPushButton *btn_logo; + QPushButton *btn_clear; QPushButton *btn_cpr; QPushButton *btn_rec; QPushButton *btn_shoot; -- cgit v1.2.3