harmattan/cameraplus
5 years agoproximity sensor support implemented. Remove TODO
Mohammed Sameer [Sun, 8 Sep 2013 19:53:38 +0000 (22:53 +0300)]
proximity sensor support implemented. Remove TODO

5 years agoUnset QtCamdevice viewfinder when Viewfinder is being destructed.
Mohammed Sameer [Sun, 8 Sep 2013 18:57:30 +0000 (21:57 +0300)]
Unset QtCamdevice viewfinder when Viewfinder is being destructed.

This fixes the following crash:
pure virtual method called
terminate called without an active exception
Aborted

Viewfinder was being destroyed and QtCamDevice was still holding a pointer
to garbage. It tries to stop viewfinder when the device gets stopped
which leads to the above mentioned crash.

5 years agoTry to revent accidental capture via proximity sensor.
Mohammed Sameer [Sun, 8 Sep 2013 18:31:34 +0000 (21:31 +0300)]
Try to revent accidental capture via proximity sensor.

We will delay the proximity close event by 500ms to try to prevent accidental capture

5 years agoDon't disable GPS when we are obscured by location-ui or conndlgs
Mohammed Sameer [Sun, 8 Sep 2013 17:52:21 +0000 (20:52 +0300)]
Don't disable GPS when we are obscured by location-ui or conndlgs

Achieved by adding a PlatformQuirks QML component which takes care of
forcing camera to be on.

On Harmattan it forces on when we are obscured by location-ui (for positioning terms)
or conndlgs (for connection establishment).

As a side effect, we now prevent display dimming while playing a video in post capture

5 years agoDon't disable all interactions when standby is visible
Mohammed Sameer [Sun, 8 Sep 2013 13:33:40 +0000 (16:33 +0300)]
Don't disable all interactions when standby is visible

This will hopefully allow recovering from any error

5 years agoDon't set close to false when we deactivate ProximitySensor
Mohammed Sameer [Wed, 28 Aug 2013 21:18:55 +0000 (00:18 +0300)]
Don't set close to false when we deactivate ProximitySensor

5 years agoConvert TextSwitch to a platform specific component and rename it to CameraTextSwitch
Mohammed Sameer [Mon, 26 Aug 2013 23:21:33 +0000 (02:21 +0300)]
Convert TextSwitch to a platform specific component and rename it to CameraTextSwitch

Sailfish Silica has a native TextSwitch which can be used directly

5 years agoHandle the case when we have different paths for videos and images
Mohammed Sameer [Mon, 26 Aug 2013 22:29:21 +0000 (01:29 +0300)]
Handle the case when we have different paths for videos and images

5 years agoDon't call pure virtual parent methods
Mohammed Sameer [Mon, 26 Aug 2013 22:10:43 +0000 (01:10 +0300)]
Don't call pure virtual parent methods

5 years agoDon't forget to call base class implementation
Mohammed Sameer [Mon, 26 Aug 2013 21:41:30 +0000 (00:41 +0300)]
Don't forget to call base class implementation

5 years agoRemove PATH and TEMP_PATH
Mohammed Sameer [Mon, 26 Aug 2013 21:23:39 +0000 (00:23 +0300)]
Remove PATH and TEMP_PATH

We don't use them anymore

5 years agoChangelog for 0.0.6
Mohammed Sameer [Sun, 25 Aug 2013 20:01:03 +0000 (23:01 +0300)]
Changelog for 0.0.6

5 years agoReworked PostCaptureModel
Mohammed Sameer [Sun, 25 Aug 2013 19:41:07 +0000 (22:41 +0300)]
Reworked PostCaptureModel

We don't really need to use 2 models. We can simply use QStandardItemModel
and sort the data before we insert them.

5 years agoDim share and delete icons when we have no item shown
Mohammed Sameer [Sun, 25 Aug 2013 19:37:53 +0000 (22:37 +0300)]
Dim share and delete icons when we have no item shown

5 years agoSwitch toolbar animation to opacity
Mohammed Sameer [Sun, 25 Aug 2013 17:41:50 +0000 (20:41 +0300)]
Switch toolbar animation to opacity

This also avoids 'Binding loop detected for property "height"' warning

5 years agoDisable zoom button and proximity sensor if we are not in capture mode
Mohammed Sameer [Sun, 25 Aug 2013 17:19:07 +0000 (20:19 +0300)]
Disable zoom button and proximity sensor if we are not in capture mode

This prevents accidental capture when we are in either post capture or settings views.

5 years agopopulate post capture model when page is current and clear it when we leave
Mohammed Sameer [Sun, 25 Aug 2013 11:31:50 +0000 (14:31 +0300)]
populate post capture model when page is current and clear it when we leave

5 years agoFirst attempt at getting rid of tracker for post capture
Mohammed Sameer [Sat, 24 Aug 2013 22:32:24 +0000 (01:32 +0300)]
First attempt at getting rid of tracker for post capture

5 years agoImplemented capturing via proximity sensor
Mohammed Sameer [Sat, 24 Aug 2013 09:33:55 +0000 (12:33 +0300)]
Implemented capturing via proximity sensor

5 years agoAdded an option to enable using proximity sensor to capture
Mohammed Sameer [Sat, 24 Aug 2013 09:18:00 +0000 (12:18 +0300)]
Added an option to enable using proximity sensor to capture

5 years agoUse UTC time to obtain the date stamp
Mohammed Sameer [Fri, 23 Aug 2013 22:24:00 +0000 (01:24 +0300)]
Use UTC time to obtain the date stamp

6 years agoMake capture buttons always visible even if we use zoom keys for capturing
Mohammed Sameer [Wed, 21 Aug 2013 20:06:51 +0000 (23:06 +0300)]
Make capture buttons always visible even if we use zoom keys for capturing

6 years agoRename ZoomCaptureCancel.qml to CaptureCancel.qml
Mohammed Sameer [Wed, 21 Aug 2013 20:06:18 +0000 (23:06 +0300)]
Rename ZoomCaptureCancel.qml to CaptureCancel.qml

API cleaned up a bit to make it a bit more generic

6 years agoMake sure we don't play camera sounds in silent profile
Mohammed Sameer [Mon, 19 Aug 2013 23:10:49 +0000 (02:10 +0300)]
Make sure we don't play camera sounds in silent profile

6 years agoAdded new line to qtcamera.ini
Mohammed Sameer [Mon, 19 Aug 2013 23:07:49 +0000 (02:07 +0300)]
Added new line to qtcamera.ini

6 years agoUpdated TODO file
Mohammed Sameer [Mon, 19 Aug 2013 22:13:51 +0000 (01:13 +0300)]
Updated TODO file

6 years agoDon't reuse file names
Mohammed Sameer [Mon, 19 Aug 2013 21:37:26 +0000 (00:37 +0300)]
Don't reuse file names

Always keep track of the last used counter and don't just pick the next available file name.

6 years agoFix compile error with latest qt5 libresourceqt
Mohammed Sameer [Sun, 18 Aug 2013 21:13:02 +0000 (00:13 +0300)]
Fix compile error with latest qt5 libresourceqt

DBUSConnectionEventLoop::getInstance() has been removed
It's also not a global static object anymore so it should be fine
to rely on it being instantiated in the right thread

6 years agoAdded NoFaceDetection quirk
Mohammed Sameer [Sun, 18 Aug 2013 19:23:31 +0000 (22:23 +0300)]
Added NoFaceDetection quirk

Enable face detection settings if NoFaceDetection quirk is not present

6 years agoAdded NoTouchFocus quirk
Mohammed Sameer [Sun, 18 Aug 2013 19:18:30 +0000 (22:18 +0300)]
Added NoTouchFocus quirk

Enable touch focus only if device doesn't have NoTouchFocus quirk

6 years agoRemove front camera night mode TODO
Mohammed Sameer [Sun, 18 Aug 2013 11:41:42 +0000 (14:41 +0300)]
Remove front camera night mode TODO

6 years agoFixes for qml/js debugging
Mohammed Sameer [Sun, 18 Aug 2013 02:05:59 +0000 (05:05 +0300)]
Fixes for qml/js debugging

If we are compiled with qmljs debugging then we
initialize it immediately before constructing QApplication

Seems to fail otherwise.

6 years agoChangelog for 0.0.5
Mohammed Sameer [Sat, 17 Aug 2013 21:49:57 +0000 (00:49 +0300)]
Changelog for 0.0.5

6 years agoinstall icons
Mohammed Sameer [Sat, 17 Aug 2013 21:46:57 +0000 (00:46 +0300)]
install icons

6 years agoSet the video resolution when video aspect ratio gets changed
Mohammed Sameer [Sat, 17 Aug 2013 21:11:58 +0000 (00:11 +0300)]
Set the video resolution when video aspect ratio gets changed

This is not used for N9 but it might be used in the future

6 years agoDon't try to change the resolution while we are changing the device.
Mohammed Sameer [Sat, 17 Aug 2013 21:10:58 +0000 (00:10 +0300)]
Don't try to change the resolution while we are changing the device.

This will lead to invalid resolution being set. resetCamera() will
take care of setting the resolution after we are done changing the device

6 years agoresetCamera() will set needed resolution after resetting camera.
Mohammed Sameer [Sat, 17 Aug 2013 21:09:24 +0000 (00:09 +0300)]
resetCamera() will set needed resolution after resetting camera.

No need to do that when either ImageSettings or VideoSettings become ready

6 years agoKill redundant Connecation element for resolution settings
Mohammed Sameer [Sat, 17 Aug 2013 19:31:47 +0000 (22:31 +0300)]
Kill redundant Connecation element for resolution settings

We can do that inside Settings element itself

6 years agoemit deviceChanged() after we are done recreating DeviceSettings
Mohammed Sameer [Sat, 17 Aug 2013 16:00:15 +0000 (19:00 +0300)]
emit deviceChanged() after we are done recreating DeviceSettings

6 years agoPrevent changing any camera properties while device change is in progress
Mohammed Sameer [Sat, 17 Aug 2013 15:59:22 +0000 (18:59 +0300)]
Prevent changing any camera properties while device change is in progress

6 years agoFirst attempt at making Settings class device aware
Mohammed Sameer [Sat, 17 Aug 2013 01:26:33 +0000 (04:26 +0300)]
First attempt at making Settings class device aware

6 years agoRevert "Implemented per device resolution setting and selection"
Mohammed Sameer [Fri, 16 Aug 2013 18:22:26 +0000 (21:22 +0300)]
Revert "Implemented per device resolution setting and selection"

This reverts commit 04e7179e1a1fe4957dd38ccf9b9555f02e9b4b83.

Conflicts:
qml/CameraSettings.qml
qml/ImageOverlay.qml
qml/VideoOverlay.qml

6 years agoReset toolbar when device gets changed
Mohammed Sameer [Thu, 15 Aug 2013 23:36:48 +0000 (02:36 +0300)]
Reset toolbar when device gets changed

6 years agoHide unusable ui parts depending on device quirks
Mohammed Sameer [Thu, 15 Aug 2013 23:26:17 +0000 (02:26 +0300)]
Hide unusable ui parts depending on device quirks

6 years agoAdded QtCamQuirks to libQtCamera and Quirks to libdeclarativeQtCamera
Mohammed Sameer [Tue, 13 Aug 2013 21:42:49 +0000 (00:42 +0300)]
Added QtCamQuirks to libQtCamera and Quirks to libdeclarativeQtCamera

This allows us to specify any device specific quirks to workaround from the UI side.
Also added N9 quirks

6 years agoAdded methods to find VideoResolution and set it
Mohammed Sameer [Tue, 13 Aug 2013 18:19:47 +0000 (21:19 +0300)]
Added methods to find VideoResolution and set it

6 years agoAdded ImageSettings::currentResolution and methods to find ImageResolution and set it
Mohammed Sameer [Tue, 13 Aug 2013 18:19:06 +0000 (21:19 +0300)]
Added ImageSettings::currentResolution and methods to find ImageResolution and set it

6 years agoAdded new QML types to create VideoResolution and ImageResolution from QML
Mohammed Sameer [Tue, 13 Aug 2013 16:04:01 +0000 (19:04 +0300)]
Added new QML types to create VideoResolution and ImageResolution from QML

6 years agoHide video torch setting when front camera is active
Mohammed Sameer [Mon, 12 Aug 2013 18:56:24 +0000 (21:56 +0300)]
Hide video torch setting when front camera is active

6 years agoHide flash settings and indicator when front camera is active
Mohammed Sameer [Mon, 12 Aug 2013 18:55:57 +0000 (21:55 +0300)]
Hide flash settings and indicator when front camera is active

6 years agoDisable auto focus when front camera is active
Mohammed Sameer [Mon, 12 Aug 2013 18:55:33 +0000 (21:55 +0300)]
Disable auto focus when front camera is active

6 years agoWe already reset focus reticle when we move between cameras or change modes
Mohammed Sameer [Mon, 12 Aug 2013 17:14:26 +0000 (20:14 +0300)]
We already reset focus reticle when we move between cameras or change modes

6 years agoSet focus to ContinuousNormal always
Mohammed Sameer [Mon, 12 Aug 2013 16:04:29 +0000 (19:04 +0300)]
Set focus to ContinuousNormal always

6 years agoReworked to allow separate paths for saving images and videos
Mohammed Sameer [Sat, 10 Aug 2013 22:14:58 +0000 (01:14 +0300)]
Reworked to allow separate paths for saving images and videos

6 years agoAdd missing sailfish/sailfish.qrc
Mohammed Sameer [Sat, 10 Aug 2013 13:08:35 +0000 (16:08 +0300)]
Add missing sailfish/sailfish.qrc

6 years agoAdd missing capability.cpp
Mohammed Sameer [Sat, 10 Aug 2013 12:14:59 +0000 (15:14 +0300)]
Add missing capability.cpp

6 years agoInitial sailfish port
Mohammed Sameer [Fri, 9 Aug 2013 19:49:40 +0000 (22:49 +0300)]
Initial sailfish port

6 years agoUse 2.0 instead of 1.1 for QtQuick version
Mohammed Sameer [Fri, 9 Aug 2013 18:47:01 +0000 (21:47 +0300)]
Use 2.0 instead of 1.1 for QtQuick version

6 years agoPrevent flicking from viewfinder to post capture or settings while preview animation...
Mohammed Sameer [Fri, 9 Aug 2013 03:30:38 +0000 (06:30 +0300)]
Prevent flicking from viewfinder to post capture or settings while preview animation is running

6 years agoAdded opacity "animation" when we show/hide toolbar tools
Mohammed Sameer [Fri, 9 Aug 2013 03:25:24 +0000 (06:25 +0300)]
Added opacity "animation" when we show/hide toolbar tools

6 years agoAdded reset button to exposure settings
Mohammed Sameer [Fri, 9 Aug 2013 03:12:09 +0000 (06:12 +0300)]
Added reset button to exposure settings

6 years agoAdded own camera icons instead of relying on the system icons
Mohammed Sameer [Fri, 9 Aug 2013 03:11:28 +0000 (06:11 +0300)]
Added own camera icons instead of relying on the system icons

6 years agoReplace icons with text for image resolution indicator
Mohammed Sameer [Thu, 8 Aug 2013 21:33:58 +0000 (00:33 +0300)]
Replace icons with text for image resolution indicator

6 years agoAdded currentResolutionMegapixel property to ImageSettings
Mohammed Sameer [Thu, 8 Aug 2013 21:33:32 +0000 (00:33 +0300)]
Added currentResolutionMegapixel property to ImageSettings

6 years agoKill post capture menu
Mohammed Sameer [Wed, 7 Aug 2013 20:29:09 +0000 (23:29 +0300)]
Kill post capture menu

- show current image in gallery was not working so removed.
- move launch gallery from menu to the toolbar.

Also cleaned up the C++ code.

6 years agoModify icon opacity instead of using different icons for enabled/disabled states
Mohammed Sameer [Wed, 7 Aug 2013 20:11:39 +0000 (23:11 +0300)]
Modify icon opacity instead of using different icons for enabled/disabled states

6 years agopop toolbar if we start recording and its depth is greater than 1
Mohammed Sameer [Wed, 7 Aug 2013 00:35:16 +0000 (03:35 +0300)]
pop toolbar if we start recording and its depth is greater than 1

This prevents scene mode being visible in recording mode

6 years agoHide indicators corresponding to toolbar-accessible settings if toolbar is expanded
Mohammed Sameer [Wed, 7 Aug 2013 00:26:50 +0000 (03:26 +0300)]
Hide indicators corresponding to toolbar-accessible settings if toolbar is expanded

6 years agounset source for iso indicator if it's not visible
Mohammed Sameer [Wed, 7 Aug 2013 00:19:36 +0000 (03:19 +0300)]
unset source for iso indicator if it's not visible

6 years agoAdd back scene mode indicators
Mohammed Sameer [Tue, 6 Aug 2013 23:03:59 +0000 (02:03 +0300)]
Add back scene mode indicators

6 years agoMove logo away
Mohammed Sameer [Tue, 6 Aug 2013 19:38:13 +0000 (22:38 +0300)]
Move logo away

6 years agoSet applicationName to cameraplus.
Mohammed Sameer [Tue, 6 Aug 2013 18:59:27 +0000 (21:59 +0300)]
Set applicationName to cameraplus.

Not sure it's used anywhere but it doesn't hurt.

6 years agoStop autofocus if we fail to capture the image
Mohammed Sameer [Mon, 5 Aug 2013 00:44:11 +0000 (03:44 +0300)]
Stop autofocus if we fail to capture the image

6 years agoFixed BatteryInfo for Sailfish
Mohammed Sameer [Sun, 4 Aug 2013 20:49:10 +0000 (23:49 +0300)]
Fixed BatteryInfo for Sailfish

6 years agoCopied needed bits blindly from harmattan
Mohammed Sameer [Sun, 4 Aug 2013 16:36:29 +0000 (19:36 +0300)]
Copied needed bits blindly from harmattan

6 years agoRenamed src/nemo to src/sailfish
Mohammed Sameer [Sun, 4 Aug 2013 16:10:33 +0000 (19:10 +0300)]
Renamed src/nemo to src/sailfish

6 years agoAssume sailfish for now if we cannot detect harmattan
Mohammed Sameer [Sun, 4 Aug 2013 15:51:52 +0000 (18:51 +0300)]
Assume sailfish for now if we cannot detect harmattan

6 years agoAdded getter for current resolution
Mohammed Sameer [Sun, 4 Aug 2013 04:29:31 +0000 (07:29 +0300)]
Added getter for current resolution

6 years agoSet night mode frame rate for front camera to -1 (-1 is invalid)
Mohammed Sameer [Sun, 4 Aug 2013 04:28:42 +0000 (07:28 +0300)]
Set night mode frame rate for front camera to -1 (-1 is invalid)

6 years agoStop autofocus when image capture has ended.
Mohammed Sameer [Sun, 4 Aug 2013 00:38:44 +0000 (03:38 +0300)]
Stop autofocus when image capture has ended.

Some pipelines might not support preview generation. If we have such a pipeline
then we will never stop auto focus since we do that when we get the preview.

6 years agoAdded QtCamImageMode captureStarted() and captureEnded() signals. Expose them to...
Mohammed Sameer [Sun, 4 Aug 2013 00:37:00 +0000 (03:37 +0300)]
Added QtCamImageMode captureStarted() and captureEnded() signals. Expose them to QML too.

6 years agoCleanup current mode when Camera emits prepareForDeviceChange()
Mohammed Sameer [Sun, 4 Aug 2013 00:36:18 +0000 (03:36 +0300)]
Cleanup current mode when Camera emits prepareForDeviceChange()

6 years agoQSettings doesn't like a section named "general". It has to be called "%General"
Mohammed Sameer [Sun, 4 Aug 2013 00:34:36 +0000 (03:34 +0300)]
QSettings doesn't like a section named "general". It has to be called "%General"

6 years agoMade sure we pass the property correctly
Mohammed Sameer [Sat, 3 Aug 2013 22:26:16 +0000 (01:26 +0300)]
Made sure we pass the property correctly

6 years agoAdded preview-supported property to qtcamera.ini
Mohammed Sameer [Sat, 3 Aug 2013 22:17:06 +0000 (01:17 +0300)]
Added preview-supported property to qtcamera.ini

If the camera source does not support preview then camerabin2 will
misbehave if we enable preview

6 years agoDon't try to get an icon if we are not visible
Mohammed Sameer [Sat, 3 Aug 2013 22:16:08 +0000 (01:16 +0300)]
Don't try to get an icon if we are not visible

6 years agoNo more construction of icon ids by anything outside CameraTheme
Mohammed Sameer [Sat, 3 Aug 2013 21:53:34 +0000 (00:53 +0300)]
No more construction of icon ids by anything outside CameraTheme

6 years agoKill data.js and move all icons and functions to CameraTheme
Mohammed Sameer [Sat, 3 Aug 2013 21:29:17 +0000 (00:29 +0300)]
Kill data.js and move all icons and functions to CameraTheme

6 years agoReworked how we create items for toolbar.
Mohammed Sameer [Sat, 3 Aug 2013 20:39:45 +0000 (23:39 +0300)]
Reworked how we create items for toolbar.

We use a Repeater to construct the items needed on demand.

6 years agoAdded more icon IDs
Mohammed Sameer [Sat, 3 Aug 2013 20:38:49 +0000 (23:38 +0300)]
Added more icon IDs

6 years agoMove imageIcon and videoIcon to CameraTheme
Mohammed Sameer [Sat, 3 Aug 2013 19:12:33 +0000 (22:12 +0300)]
Move imageIcon and videoIcon to CameraTheme

6 years agoCleaned up unused functions
Mohammed Sameer [Sat, 3 Aug 2013 17:15:37 +0000 (20:15 +0300)]
Cleaned up unused functions

6 years agoAdded a flash indicator
Mohammed Sameer [Sat, 3 Aug 2013 17:04:22 +0000 (20:04 +0300)]
Added a flash indicator

6 years agoCleaned up unused icon ids
Mohammed Sameer [Sat, 3 Aug 2013 16:52:09 +0000 (19:52 +0300)]
Cleaned up unused icon ids

6 years agoCorrected video recording resolution for front camera
Mohammed Sameer [Sat, 3 Aug 2013 05:11:30 +0000 (08:11 +0300)]
Corrected video recording resolution for front camera

Stolen from Aura ;-)

6 years agoImplemented per device resolution setting and selection
Mohammed Sameer [Sat, 3 Aug 2013 05:04:39 +0000 (08:04 +0300)]
Implemented per device resolution setting and selection

6 years agoRenamed ImageSettings.qml and VideoSettings.qml to ImageModeSettings.qml and VideoMod...
Mohammed Sameer [Fri, 2 Aug 2013 23:11:11 +0000 (02:11 +0300)]
Renamed ImageSettings.qml and VideoSettings.qml to ImageModeSettings.qml and VideoModeSettings.qml

Prevent clashing with stuff from declarative QtCamera

6 years agoSome coding style fixes
Mohammed Sameer [Fri, 2 Aug 2013 23:08:46 +0000 (02:08 +0300)]
Some coding style fixes

6 years agoMultiple fixes:
Mohammed Sameer [Fri, 2 Aug 2013 22:09:27 +0000 (01:09 +0300)]
Multiple fixes:

- Drop QtCamViewfinder::setDevice() as it's not really needed
- Added Camera::prepareForDeviceChange() signal to notify about the destruction of device.

Viewfinder will reset QtCamDevice viewfinder when Camera emits prepareForDeviceChange().
This allows us to properly restart the pipeline for the secondary camera.

6 years agoUnset camerabin viewfinder-sink property when we unset viewfinder
Mohammed Sameer [Sun, 14 Apr 2013 01:04:22 +0000 (04:04 +0300)]
Unset camerabin viewfinder-sink property when we unset viewfinder