diff options
author | deva <deva> | 2005-06-02 20:45:01 +0000 |
---|---|---|
committer | deva <deva> | 2005-06-02 20:45:01 +0000 |
commit | 64efd74ecfa761c83b70ec2374bf448b6e42e254 (patch) | |
tree | 607ccb672f904dd415a7b589bb80000753e76fe5 /src/mainwindow.h | |
parent | a17e42c900e2709444b12a5db2847e850f3dd6cd (diff) |
Added clear button
Optimized the frame handling a little (very little!).
Diffstat (limited to 'src/mainwindow.h')
-rw-r--r-- | src/mainwindow.h | 18 |
1 files changed, 16 insertions, 2 deletions
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 <qpushbutton.h> #include <qstatusbar.h> #include <qtimer.h> +#include <qpixmap.h> +#include <qimage.h> #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å den røde cirkel med gul streg over." #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; |