CaptureWidget.h 1.8 KB

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