CaptureWidget.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. #ifndef CAPTUREWIDGET_IMAGEDISPLAY_H
  2. #define CAPTUREWIDGET_IMAGEDISPLAY_H
  3. #include <qvariant.h>
  4. #include <qdialog.h>
  5. #include <QFileDialog>
  6. #include <QLabel>
  7. #include <memory>
  8. class QVBoxLayout;
  9. class QHBoxLayout;
  10. class QGridLayout;
  11. class QSpacerItem;
  12. class QRadioButton;
  13. class QPushButton;
  14. class QCheckBox;
  15. class QLabel;
  16. class QLineEdit;
  17. class QComboBox;
  18. namespace NICE {
  19. class CaptureWidget : public QWidget {
  20. Q_OBJECT
  21. public:
  22. CaptureWidget(QWidget* parent = 0, const char* name = 0, Qt::WFlags fl = 0 );
  23. ~CaptureWidget();
  24. std::string directoryName();
  25. std::string extensionName();
  26. bool isBuffered();
  27. bool isCapturing();
  28. void showCancelButton();
  29. void setDirectoryName(const std::string& dir);
  30. void setExtensionName(const std::string& ext);
  31. void setBuffered(bool buffer);
  32. signals:
  33. void started();
  34. void stopped();
  35. void cancelled();
  36. public slots:
  37. virtual void buttonBrowseClicked();
  38. virtual void buttonStartClicked();
  39. virtual void buttonStopClicked();
  40. protected:
  41. QVBoxLayout* CaptureWidgetLayout;
  42. QHBoxLayout* layout15;
  43. // QVBoxLayout* layout14;
  44. QSpacerItem* spacer5;
  45. QHBoxLayout* layout11;
  46. // QButtonGroup* boxFormat;
  47. // QRadioButton* radioPPM;
  48. // QRadioButton* radioJPG;
  49. // QRadioButton* radioPGM;
  50. // QRadioButton* radioPNG;
  51. QPushButton* buttonStart;
  52. QPushButton* buttonStop;
  53. QPushButton* buttonCancel;
  54. QCheckBox* checkBuffered;
  55. QLabel* textLabel1;
  56. QLabel* textLabel2;
  57. QLineEdit* editDirectory;
  58. QComboBox* editFormat;
  59. QPushButton* buttonBrowse;
  60. protected slots:
  61. virtual void languageChange();
  62. private:
  63. void enableGUI(bool enable);
  64. };
  65. }
  66. #endif // CAPTUREWIDGET_IMAGEDISPLAY_H