// -*- qml -*- /*! * This file is part of CameraPlus. * * Copyright (C) 2012-2013 Mohammed Sameer * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ import QtQuick 1.1 QtObject { property string standbyIcon: "image://theme/icon-l-camera-standby" property string gpsIndicatorIcon: "image://theme/icon-m-camera-location" property string faceDetectionIndicatorIcon: "image://theme/icon-m-camera-face-detection-screen" property string recordingDurationIcon: "image://theme/icon-m-camera-ongoing-recording" property string cameraTorchOnIconId: "icon-m-camera-torch-on" property string cameraTorchOffIconId: "icon-m-camera-torch-off" property string soundMuteOnIconId: "icon-m-toolbar-volume-off-white-selected" property string soundMuteOffIconId: "icon-m-toolbar-volume-white-selected" property string videoStopIconId: "icon-m-toolbar-mediacontrol-stop-white" property string videoPauseIconId: "icon-m-toolbar-mediacontrol-pause-white" property string videoPlayIconId: "icon-m-toolbar-mediacontrol-play-white" property string cameraManualExposureIconId: "icon-m-camera-manual-exposure" property string cameraVideoIconId: "icon-m-camera-video" property string cameraImageIconId: "icon-m-viewfinder-camera" property string captureButtonImageIconId: "icon-m-camera-shutter" property string captureButtonVideoIconId: "icon-m-camera-video-record" property string captureButtonRecordingIconId: "icon-m-camera-video-record" property string cameraToolBarMenuIcon: "icon-m-toolbar-back-white" property string deleteEnabledIconId: "icon-m-toolbar-delete-white" property string deleteDisabledIconId: "icon-m-toolbar-delete-dimmed-white" property string shareEnabledIconId: "icon-m-toolbar-share-white" property string shareDisabledIconId: "icon-m-toolbar-share-dimmed-white" property string favoriteDisabledIconId: "icon-m-toolbar-favorite-mark-dimmed-white" property string favoriteMarkIconId: "icon-m-toolbar-favorite-mark-white" property string favoriteUnmarkIconId: "icon-m-toolbar-favorite-unmark-white" property string menuIconId: "icon-m-toolbar-view-menu-white" /* property string property string property string property string property string property string property string property string property string property string property string property string property string property string property string property string */ function videoIcon(ratio, res, device) { if (res == "high") { return "icon-m-camera-video-high-resolution" } else if (res == "medium") { return "icon-m-camera-video-fine-resolution" } else if (res == "low") { return "icon-m-camera-video-low-resolution" } else { return "" } } property variant __imageData: [ ["3:2", "low", "icon-m-camera-resolution-3m"], ["3:2", "medium", "icon-m-camera-resolution-6m"], ["3:2", "high", "icon-m-camera-resolution-7m"], ["4:3", "low", "icon-m-camera-resolution-3m"], ["4:3", "medium", "icon-m-camera-resolution-6m"], ["4:3", "high", "icon-m-camera-resolution-8m"], ["16:9", "low", "icon-m-camera-resolution-3m"], ["16:9", "medium", "icon-m-camera-resolution-6m"], ["16:9", "high", "icon-m-camera-resolution-7m"] ] function imageIcon(ratio, res, device) { var x = 0 var len = __imageData.length for (x = 0; x < len; x++) { if (__imageData[x][0] == ratio && __imageData[x][1] == res) { return __imageData[x][2] } } return "" } }