1 #ifndef CAPTUREVIDEODLG_H
2 #define CAPTUREVIDEODLG_H
3 
4 #include "videocapturedlgbase.uic.h"
5 #include "celestia/oggtheoracapture.h"
6 #include <vector>
7 
8 class QLabel;
9 class KStatusBar;
10 class KdeApp;
11 
12 class VideoCaptureDlg : public VideoCaptureDlgBase, public OggTheoraCapture
13 {
14     Q_OBJECT
15 
16 public:
17     VideoCaptureDlg(QWidget *parent, const QString & dir);
18     virtual ~VideoCaptureDlg();
19     QString getDir() const;
20 
21 
22 public slots:
23     void newAspectRatioSlot(int aspectIdx);
24     void okSlot();
25     void cancelSlot();
26     void newMainWindowSizeSlot(int w, int h);
27     void filenameSlot(const QString& name);
28 
29 private:
30     int currentWidth;
31     int currentHeight;
32     bool accepted;
33 
34     int mainWindowInitialWidth;
35     int mainWindowInitialHeight;
36     std::vector<int> widths;
37     std::vector<int> heights;
38     KdeApp *parent;
39 
40     int getWidth() const;
41     int getHeight() const;
42 
43     void frameCaptured();
44     void recordingStatus(bool started);
45 
46     KStatusBar* statusBar;
47 
48 };
49 
50 #endif
51