- 09-06-2012, 10:03 AM
Thread Author #1
Photo X (BB10 Cascades Photo Viewer)
Built in 1 day with power of Cascades.
[YT]http://www.youtube.com/watch?v=jaypfxeAug8&feature=player_embedded#![/YT]
[Source]
Pretty neat, loving the multitouch !It's Never Too Late to Be Bold
You can find my musing over at BerryFlow.com | @jmznvs
"If you understand what the promise of BlackBerry is to its user base it’s all about getting stuff done.
Games, media, we have to be good at it but we have to support those guys who are ahead of the game." Thorsten HeinsThanked by 4:drjay868 (09-24-2012), FlashFlare11 (09-14-2012), Viktor_Volkov (09-22-2012)
- 09-06-2012, 07:12 PM #4
That's freaking awesome! Power of cascades!
- 09-06-2012, 09:10 PM #5
Sorry for the low-res video. Here are some screenshots that would give some more info about this app (Photo X):







Hope to release it soon.
You can check my other 2 BB10 apps over here:
http://forums.crackberry.com/blackbe...x-bb10-742420/
http://forums.crackberry.com/blackbe...x-bb10-742419/
Hope you like it.
Thanks
- 09-07-2012, 01:49 AM #6
Did you just use RIM's samples and resources on the development website or did you consult other resources? I am looking to learn cascades development and would appreciate any insight you have on getting started.
Thanked by:louis.keeper (09-15-2012)
- 09-07-2012, 02:42 AM #7
Most of the stuff for viewing and interacting with Image I read from RIM's documents and samples along with Nokia's documents.
This Photo X uses QImage, QDir, QFile.... to browse files, read files and write image to file. These are very clear from Nokia Qt sites:
Qt 4.7: QImage Class Reference
Qt 4.7: QFileInfo Class Reference
Qt 4.7: QDir Class Reference
For display/visual, it uses ListView, GroupDataModel, GridListLayout, ImageView, Animation, GestureHandlers, OrientationHandler ... from Cascades using QML.
https://developer.blackberry.com/cas..._listview.html
https://developer.blackberry.com/cas...istlayout.html
https://developer.blackberry.com/cas...datamodel.html
https://developer.blackberry.com/cas...imageview.html
https://developer.blackberry.com/cas...ransition.html
Basically, First, browse and read all the file in a folder into a QFileInfoList. Loop through this list and create a QVariantMap for each photo (ignore file is not photo), then insert this QVariantMap into our GroupDataModel. After finishing preparing data model, set it to the ListView data model. Our ListView is using GridListLayout with predefined columns (Photo X uses 4 for portrait and 6 for landscape mode). Once ListView data model is set, ListView will render automatically everything.
To handle gesture, use GestureHandler (PinchHandler, DoubleTapHandler, TapHandler):
https://developer.blackberry.com/cas...rehandler.html
To handle device orientation, use OrientationHandler:
https://developer.blackberry.com/cas...onhandler.html
To display a busy indicator while the app is working on something which requires a bit of time. I use ActivityIndicator from Cascades:
https://developer.blackberry.com/cas...indicator.html
For brightness and contrast, I use the code from this link:
http://www.qtcentre.org/threads/25346-Image-contrast
and using Slider of Cascades to let user adjust:
https://developer.blackberry.com/cas...s__slider.html
For Twitter integration, it's a bit complicated while we are waiting for the simple one from RIM. Photo X uses 2 approaches:
1. from Kyle Fowler, this is used for getting authentication for the app. (Can post status to Twitter but cannot with image)
https://github.com/kylefowler/twitter-bb10
2. from the Nokia Social Connect QML Plugin, this has issue with authentication(I haven't worked it out yet). I use this for posting message/message with image to Twitter:
https://projects.developer.nokia.com/socialconnect
That's it. Casacades/QML is extremely straightforward. Just try Ctrl+Space all the time if you need to know what can be used inside any component(Cascades calls Control)Last edited by louis.keeper; 09-07-2012 at 02:51 AM.
Thanked by 8:atrpm (12-27-2012), gng11 (09-23-2012), greatwiseone (09-08-2012), jamezalexander (09-07-2012), kdna (09-16-2012), Thunderbuck (09-16-2012), Viktor_Volkov (09-22-2012)
- 09-08-2012, 07:14 PM #8
I want to test this application
Thanked by:louis.keeper (09-15-2012)
- 09-08-2012, 08:44 PM #9Thanked by:
louis.keeper (09-15-2012)
- 09-09-2012, 03:24 PM #10
This is ridiculously awesome and smooth, seriously impressive for one days worth of work. Well done!
Excited is an understatement for the new BB10 device.Thanked by:louis.keeper (09-15-2012)
- 09-12-2012, 11:30 PM #11
WOW that is realllllllllllllllly smooth!!!! Can't wait for BB10!
I Stand By BlackBerry!Thanked by:louis.keeper (09-15-2012)
- 09-13-2012, 07:14 AM #12
Just amazing stuff! Makes me even more excited for BB10!
Does 60fps have anything to do with this? Will all animations be so smooth?Thanked by:louis.keeper (09-15-2012)
- 09-13-2012, 10:53 AM #13
I feel lke someone's kicked me in the nuts. This is so good.
Technological progress is like an axe in the hands of a pathological criminal.
- Albert EinsteinThanked by:louis.keeper (09-15-2012)
- 09-13-2012, 02:15 PM #14
Very nice! Need BB10 soon!
Thanked by:louis.keeper (09-15-2012)
- 09-13-2012, 08:53 PM #15
Let me confirm once again that all these stuff you see is not new. We all know it. Only 1 thing I want people to know is everyone can make it in 1 or 2 days. Everyone. That's how awesome Cascades and BB10 is.
- 09-14-2012, 11:27 AM #16
Wow nice
Cant wait for BB10 !!
Sent from my iPhone 4S using TapatalkThanked by 2:gng11 (09-23-2012), louis.keeper (09-15-2012)
- 09-14-2012, 05:22 PM #17
This is actually pretty sweet!
Thanked by:louis.keeper (09-15-2012)
- 09-16-2012, 12:22 AM #18
Very freaking awesome man
Thanked by:louis.keeper (09-19-2012)
- 09-16-2012, 12:51 AM #19Thanked by:
louis.keeper (09-19-2012)
- 09-16-2012, 12:58 PM #20
Nice work.
Purchase these awesome apps for Z10: Police Scanners: San Diego Police Radio | SFPD Police Scanner | Utilities: Mobile Network | Developer Mode
| Bluetooth | Mobile Hotspot NFC Reference SuperGister.comThanked by:louis.keeper (09-19-2012)
- 09-22-2012, 12:08 AM #21
I stop Photo X. You guys will know the reason when BB10 comes out.
Thanks all
- 09-22-2012, 12:23 AM #22
- 09-22-2012, 01:43 AM #23
BlackBerry10 is gonna be like nothing else. The haters have a wake up call coming. You can't say anything bad about cascades and its beauty.
Well done.
Sent from my BlackBerry 9670 using TapatalkI waited...It launched...Im still waiting...
- 09-22-2012, 12:21 PM #25
Would love to try this on my PlayBook. Nice job.

Reply



















