widgets

Change Android widget size on upgrade

Hi, I have written a widget with size 74x74 in version 1. In version 2 I want to change the size to 148x74. I want this to happen during upgrade, is this possible? or does the user have to remove and add the widget again? ...

should I call event->accept() on resizeEvent() in Qt4?

I've override resizeEvent(QResizeEvent * /* SizeEvent */) in a custom widget and I'm wondering if I should call SizeEvent->accept() on the event or just let it pass along. Since I'm getting it from the parent widget, I'm assuming I can safely accept it, but I haven't been able to find a definitive answer. Thanks, ...

Desktop Widget using PHP

Hi all, I need to create a desktop widget where the users wants to update their details from the desktop html file.i haved tried with ajax but the value getting stored in the database but the response cannot get back to html file,i have included the remote js file into the html file. Im using Windows OS, php 5, Xampp server. the sa...

Sensing an Action View Helper call in a Zend Controller unit test

I'd like to implement widget-ized Zend controllers in a test-driven way. By widget-ized I mean, for instance, a list controller that outputs elements, calling for each of them $this->action('element', …) view helper in its view script (list.phtml). Thus, the rendering of each element in the list is handled by a dedicated “element” contro...

Wordpress - Show preview of all but current post in sidebar widget

i have 4 posts belonging to "news" category. I've added a this code in single.php to show the title of other posts in the same category in the sidebar. <?php $query = "showposts=10&orderby=rand&cat="; foreach((get_the_category()) as $category) { $query .= $category->cat_ID .","; } query_posts($query); ...

JS to monitor data usage?

I'm building a simple html5 app to monitor the total network traffic that's incoming and outgoing. Is it possible to know your bandwidth usage using js? ...

What are your best practices when developing symfony 1.4 forms/widgets/validators?

I am currently working on some symfony form customisation which includes writing widgets or better still extending existing ones. However this proves to be much more complicated as I thought it would as the functionality for validating, form elements, object saving, dynamic javascripts and so forth seem to be scattered all over the plac...

Program with widget

I want to develop a application with widget. Now i only can find the applicaion in widget but cannot find the application in "all programs" Thank you my AndroidMainfest.xml ...

Intent to launch the clock application on android

Hello, I am facing a problem with a clock widget i made. I want the user to touch the clock and launch the clock app on the phone. this is the code: //this worked on my nexus 2.1 if(VERSION.SDK.equals("7")){ RemoteViews views = new RemoteViews(context.getPackageName(), R.layout.widget); Intent AlarmClockIntent ...

What widget kit / framework is Woopra using?

Hi, If you use Woopra, you probably know that several months ago they released a web based analysis tool. I was surprised by how smooth and well designed it was. Taking a look at the source code, it seemed to be coded using GWT. However, its Mac look and feel reminds me of Sproutcore. I'm not aware of a look and feel like it for GWT. I...

Restart Home programmatically

I'm developing on Android. I have to restart home and all its components (widgets, shortcuts, etc..). For example, when we have a Force Close, the home screen restart and reload all its components. ...

Save state of Widgets in ASP.NET MVC using jQuery and Json

I am using ASP.NET MVC in C# I have a page where the user can move different Widgets around the page, and I now need a method to save the state of the widgets. I am using jQuery in the HTML page, and the jQuery posts the new page layout using JSON. I am unsure how to read the JSON in the controller. The code I'm using is based on this...

How to switch to a different view and controller in GWT?

I have a widget written in GWT. In the implementation of EntryPoint, I have the widget load a controller and a view that is tied to that controller. I add this view to the RootPanel and it works fine. public class EntryImpl implements EntryPoint { SimplePanel simplePanel; View view; Controller controller; public final void ...

Tkinter Global Binding

Is it possible to bind all widgets to one command, with a single line? It would be nice if I could type in one line as opposed to doing each widget individually. ...

Saving checkbox value in wordpress widget issue

I created a custom Flickr Widget for Wordpress and successfully set up an options form for users to enter their Flickr information, but I cannot get the checkbox in the form to save whether or not it is checked. Any help would be greatly appreciated! Here are my widget(), form(), and update() functions: function widget($args, $instance)...

SWT DateTime control used as table editor doesn't extend past bottom of table

I'm having trouble with the SWT DateTime widget. I use DateTime, CCombo, and Text boxes as cell editors. CCombo and DateTime may be (and actually, almost always are) taller than the table itself and should extend past the bottom of the table to allow the user to choose any of the entries. CCombo is doing this fine. If there's a sin...

What are the best practices to generate "widgetized" content in Rails

On my previous projects built with usage of Zend Framework I extensively used Zend_view's "Action View" helper. It basically allows to initiate a separate cycle of request->dispatch ti action->view_rendering from a view script. Here is the link to an appropriate page of zend framework reference guide (search for "Action View Helper"). ...

How to add a widget to an EXTJS application ?

Hello, I downloaded a file upload widget for EXTJS and I don't know how to add it to use it in my project The folder "UploadDialog" contains : -A CSS folder : "css" -An images folder : "images" -A locale folder : "locale" -Two javascript files : "Ext.ux.UploadDialog.js" and "Ext.ux.UploadDialog.packed.js" How to do please T...

developing jmaki widgets

I am developing widgets using JMAKI. In this I have data in JSON file. what I have to do is,I have to read the json data through java script and to display that data in a HTML file as like in JMAKI widgets. ...

Combine values from MultiWidget into one field for POST

I'm using the phone number MultiWidget provided by derek73. Question is: it puts three separate values in the POST - how should I recombine them into one value? class USPhoneNumberMultiWidget(forms.MultiWidget): """ A Widget that splits US Phone number input into three <input type='text'> boxes. """ def __init__(self,attrs=None): wi...