-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #230 from rainemak/optimizePickerCompilation
Optimize picker compilations
- Loading branch information
Showing
10 changed files
with
192 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/**************************************************************************** | ||
** | ||
** Copyright (C) 2014 Jolla Ltd. | ||
** Contact: Raine Makelainen <[email protected]> | ||
** | ||
****************************************************************************/ | ||
|
||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
* You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
import QtQuick 2.1 | ||
import Sailfish.Pickers 1.0 | ||
|
||
ContentPickerPage { | ||
property var creator | ||
|
||
//: For choosing any file (document/image/video/audio) to send to the website from the device | ||
//% "Upload file" | ||
title: qsTrId("sailfish_browser-he-upload_file") | ||
Component.onDestruction: creator.sendResponse(selectedContent) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/**************************************************************************** | ||
** | ||
** Copyright (C) 2014 Jolla Ltd. | ||
** Contact: Raine Makelainen <[email protected]> | ||
** | ||
****************************************************************************/ | ||
|
||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
* You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
import QtQuick 2.1 | ||
import Sailfish.Pickers 1.0 | ||
|
||
ImagePickerPage { | ||
property var creator | ||
|
||
//: For choosing image to send to the website from the device | ||
//% "Upload image" | ||
title: qsTrId("sailfish_browser-he-upload_image") | ||
Component.onDestruction: creator.sendResponse(selectedContent) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/**************************************************************************** | ||
** | ||
** Copyright (C) 2014 Jolla Ltd. | ||
** Contact: Raine Makelainen <[email protected]> | ||
** | ||
****************************************************************************/ | ||
|
||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
* You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
import QtQuick 2.1 | ||
import Sailfish.Pickers 1.0 | ||
|
||
MultiContentPickerDialog { | ||
property var creator | ||
|
||
//: For choosing files (document/image/video/audio) to send to the website from the device | ||
//% "Upload files" | ||
title: qsTrId("sailfish_browser-he-upload_files") | ||
Component.onDestruction: creator.sendResponseList(selectedContent) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/**************************************************************************** | ||
** | ||
** Copyright (C) 2014 Jolla Ltd. | ||
** Contact: Raine Makelainen <[email protected]> | ||
** | ||
****************************************************************************/ | ||
|
||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
* You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
import QtQuick 2.1 | ||
import Sailfish.Pickers 1.0 | ||
|
||
MultiImagePickerDialog { | ||
property var creator | ||
|
||
//: For choosing images to send to the website from the device | ||
//% "Upload images" | ||
title: qsTrId("sailfish_browser-he-upload_images") | ||
Component.onDestruction: creator.sendResponseList(selectedContent) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/**************************************************************************** | ||
** | ||
** Copyright (C) 2014 Jolla Ltd. | ||
** Contact: Raine Makelainen <[email protected]> | ||
** | ||
****************************************************************************/ | ||
|
||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
* You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
import QtQuick 2.1 | ||
import Sailfish.Pickers 1.0 | ||
|
||
MultiMusicPickerDialog { | ||
property var creator | ||
|
||
//: For choosing audio files to send to the website from the device | ||
//% "Upload audio files" | ||
title: qsTrId("sailfish_browser-he-upload_audio_files") | ||
Component.onDestruction: creator.sendResponseList(selectedContent) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/**************************************************************************** | ||
** | ||
** Copyright (C) 2014 Jolla Ltd. | ||
** Contact: Raine Makelainen <[email protected]> | ||
** | ||
****************************************************************************/ | ||
|
||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
* You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
import QtQuick 2.1 | ||
import Sailfish.Pickers 1.0 | ||
|
||
MultiVideoPickerDialog { | ||
property var creator | ||
|
||
//: For choosing videos to send to the website from the device | ||
//% "Upload videos" | ||
title: qsTrId("sailfish_browser-he-upload_videos") | ||
Component.onDestruction: creator.sendResponseList(selectedContent) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/**************************************************************************** | ||
** | ||
** Copyright (C) 2014 Jolla Ltd. | ||
** Contact: Raine Makelainen <[email protected]> | ||
** | ||
****************************************************************************/ | ||
|
||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
* You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
import QtQuick 2.1 | ||
import Sailfish.Pickers 1.0 | ||
|
||
MusicPickerPage { | ||
property var creator | ||
|
||
//: For choosing audio file to send to the website from the device | ||
//% "Upload audio file" | ||
title: qsTrId("sailfish_browser-he-upload_audio") | ||
Component.onDestruction: creator.sendResponse(selectedContent) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/**************************************************************************** | ||
** | ||
** Copyright (C) 2014 Jolla Ltd. | ||
** Contact: Raine Makelainen <[email protected]> | ||
** | ||
****************************************************************************/ | ||
|
||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
* You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
import QtQuick 2.1 | ||
import Sailfish.Pickers 1.0 | ||
|
||
VideoPickerPage { | ||
property var creator | ||
|
||
//: For choosing video to send to the website from the device | ||
//% "Upload video" | ||
title: qsTrId("sailfish_browser-he-upload_video") | ||
Component.onDestruction: creator.sendResponse(selectedContent) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters