summaryrefslogtreecommitdiff
path: root/src/qcam/main_window.h
diff options
context:
space:
mode:
authorKieran Bingham <kieran.bingham@ideasonboard.com>2020-02-05 15:12:06 +0000
committerKieran Bingham <kieran.bingham@ideasonboard.com>2020-02-14 12:34:27 +0000
commitfb497899e2c9651022356a2339349d3e7c518687 (patch)
treeb3084c5f80be0e6f87686703e9ce397a8c128854 /src/qcam/main_window.h
parent871879eb7356d532c4ed7791ec22cf5ae9f005e8 (diff)
qcam: Introduce a toolbar and camera switching
Implement a quit button, and a list of cameras. Selecting a different camera from the Toolbar will stop the current stream, and start streaming the chosen camera device if it can be acquired. Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/qcam/main_window.h')
-rw-r--r--src/qcam/main_window.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/qcam/main_window.h b/src/qcam/main_window.h
index d19cda16..12af103f 100644
--- a/src/qcam/main_window.h
+++ b/src/qcam/main_window.h
@@ -41,9 +41,13 @@ public:
~MainWindow();
private Q_SLOTS:
+ void quit();
void updateTitle();
+ void switchCamera(int index);
+
private:
+ int createToolbars();
std::string chooseCamera();
int openCamera();
@@ -71,6 +75,7 @@ private:
uint32_t previousFrames_;
uint32_t framesCaptured_;
+ QToolBar *toolbar_;
ViewFinder *viewfinder_;
std::map<int, std::pair<void *, unsigned int>> mappedBuffers_;
};