NumberWindow for setting time HH::MM - pebble-sdk

Pebble GUI has this simple Window with a caption and time edit box the HH:MM format. Used for example to set the alarm time.
Is it available to the developer? The closest thing I found is the NumberWindow but id doesn't seem to do the trick...

Sadly, we do not currently make this window available to our 3rd party developers for them to use in their own apps.
(If you do end up recreating it for your own use, you should make it available to other people as an open source library!)

Related

KDE Taskbar Progress

I am trying to show a progress in the taskbar of the plasma desktop using the KDE Frameworks. In short, it want to do the same thing as dolphin, when it copies files:
I'm kinda stuck, because I don't even know where to get started. The only thing I found that could be useful is KStatusBarJobTracker, but I don't know how to use it. I could not find any tutorials or examples how to do this.
So, after digging around, and thanks to the help of #leinir, I was able to find out the following:
Since Plasma 5.6 KDE supports the Unitiy DBus Launcher-API, which can be used, for example, to show progress
I found a post on AskUbuntu that explains how to use the API with Qt
The real problem is: This only works, if you have a valid desktop file in one of the standard locations! You need to pass the file as parameter of the DBus message to make it work.
Based on this information, I figured out how to use it and created a GitHub repository, that supports cross platform taskbar progress, and uses this API for the linux implementation.
However, here is how to do it anyways. It should work for KDE Plasma and the Unity desktop, maybe more (haven't tried any others):
Create a .desktop file for your application. For test purpose, this can be a "dummy" file, that could look like this:
[Desktop Entry]
Type=Application
Version=1.1
Name=MyApp
Exec=<path_to>/MyApp
Copy that file to ~/.local/share/applications/ (or wherever user specific desktop files go on your system)
In your code, all you need to do is execute the following code, to update the taskbar state:
auto message = QDBusMessage::createSignal(QStringLiteral("/com/example/MyApp"),
QStringLiteral("com.canonical.Unity.LauncherEntry"),
QStringLiteral("Update"));
//you don't always have to specify all parameters, just the ones you want to update
QVariantMap properties;
properties.insert(QStringLiteral("progress-visible"), true);// enable the progress
properties.insert(QStringLiteral("progress"), 0.5);// set the progress value (from 0.0 to 1.0)
properties.insert(QStringLiteral("count-visible"), true);// display the "counter badge"
properties.insert(QStringLiteral("count"), 42);// set the counter value
message << QStringLiteral("application://myapp.desktop") //assuming you named the desktop file "myapp.desktop"
<< properties;
QDBusConnection::sessionBus().send(message);
Compile and run your application. You don't have to start it via the desktop file, at least I did not need to. If you want to be sure your application is "connected" to that desktop file, just set a custom icon for the file. Your application should show that icon in the taskbar.
And thats basically it. Note: The system remembers the last state when restarting the application. Thus, you should reset all those parameters once when starting the application.
Right, so as it turns out you are right, there is not currently a tutorial for this. This reviewboard request, however, shows how it was implemented in KDevelop, and it should be possible for you to work it out through that :) https://git.reviewboard.kde.org/r/127050/
ps: that there is no tutorial now might be a nice way for you to hop in and help out, by writing a small, self contained tutorial for it... something i'm sure would be very much welcomed :)

Coded UI execution is extremely slow than usual?

I have coded UI project with five UIMaps.One of the UIMap is very large and it covers several features of the testing application.suddenly the coded UI playback become so slow. I separate some features from the large UIMap into separate UIMaps. But still some of the test methods running very slower than usual.Is there any solutions to fix this issue?
You can use the below settings in your TestInitialize part and check whether this solves your purpose.As now we don’t need to add the annoying Sleep statements whenever a UI Control is busy and not ready to receive input.
By default, the engine checks the UI Thread (foreground thread) to determine if a control is ready.
Playback.PlaybackSettings.WaitForReadyLevel = WaitForReadyLevel.Disabled;
By implementing this you can reduce the execution time.
I can not comment yet so here is an answer.
I had the same problem. see Coded ui Test fails at random times on server
waitforcontrolready was a solution next to PropertyExpressionOperator.Contains to search for a variable title. But also check the controlID of your control in your UIMap. It can change depending which windows are open on screen.
I remove them all unless I am 100% sure it stays the same.
I have figured it out after a search in the net, the class name of the main window is changed because of the latest releases. I have check the latest main window name and add it in the UIMap constructor as instructed in the following link Mathew Aniyan's Blog

Viewing several classes reference info using document organizer

Is there a way to get multiple organizer windows open so I can view reference info about several classes at the same time? It's very tedious to keep doing searches and re-opening the same window. For example I want to have one window showing the NSString class ref, another showing NSCoding, another showing NSCopying, etc., so I can view them at the same time and switch quickly between them (without losing my place on each one's page). OR is there some other equivalent way of browsing multiple classes / info?
After more digging around I have not found any way to do what I was hoping with Organizer. The best suggestions all range around using alternatives such as open web browser on docs, etc. The latter is probably a good solution for most but less convenient for our group because by policy our devel systems are not allowed onto a general network. (So we are copying info to systems on the devel local network.)

Airport ticker effect in Adobe trials

When you run an Adobe product in a trial, a window appears each time asking if you have have a serial number yet or if you would like to continue with the trial. Next to that is a lovely 'number ticker', like the ones they used to have at airports (see image).
Does anyone know where I can get one of these, preferably gratis, to use as a component in a flex application?
As promised an version of the flip clock, ready to use on github free of charge. If anyone has request. By all means - ask.
https://github.com/StrangeMother/Flash-AS3-Flip-Clock-display
edit: Sorry aboutt he broken link. Some how the .git at the end of the URL buggered.
I made an app that uses such a feature. Download the air app and take a look. Its just a super simple poker game timer, but it has the feature you require.
if you like it, then I'll sift the code out.
http://pokerblind.strangemother.com/app/data/application/versions/0.1/air/PokerBlind.air
Its a heady mixture of OOP class code and front end. The numerals are a Numeric item in the library of which are managed by a timer class and number counting class. Extendable enough and the graphics should be easy enough to rip apart.
A while back I started working on a component like this. It's not super sexy yet. Check out the code on github:
https://github.com/jamesward/FlipClock
There are a few decent components available for close to free that I've found at activeden.net. They generally include source code so you can change them to meet your exact need. Here's a good example of what you can find there: http://activeden.net/item/flip-numbers/104628
Hope that helps.
A very good looking component can be found here:
http://www.flashcomponents.net/component/sense_flip_clock_3d.html
It does cost 8$, though. :)

Notes and remarks over the GUI

I am developing a flex application for collaborative data analysis. To present the data my application uses standard and custom components (grids, charts etc.).
I want to deliver the feature that allows users making notes over the GUI of my application. So, other users will see they notes late on.
At the moment my question is: How can be implemented mechanism that allows making notes over the GUI? All suggestions and examples are welcome?
There are a lot of ways to approach this. ( Check out Buzzword, MS Word, and Acrobat all for slightly different approaches of note taking on a document--I assume an application GUI could use any of the same approaches ).
I'd start by saying that the click event bubbles:
http://livedocs.adobe.com/flex/3/langref/flash/display/InteractiveObject.html#event:click
So, listen for the click event on every child of your main application file. When you receive that click event you can provide some business logic as to whether or not you want to add a comment /note on the component that was clicked. Then you just some "note" component for collecting and displaying the note data. You an position them based on the x, y values of the click event.
So, actually my problem is much easier then I expected (thank for great design of Flex).
I decided to utilize PopUpManager functionality for my task. It does everything I need at the moment.

Resources