maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] Queen BeeCon Widget: Super powerful and customizable Widget Generation Engine - Official Thread (https://talk.maemo.org/showthread.php?t=45388)

No!No!No!Yes! 2010-05-25 21:35

Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
 
Quote:

Originally Posted by qwerty12 (Post 676429)
No!No!No!Yes!, if http://slexy.org/view/s2TuPIskK2 looks legit to you, can you include it in 0.18? It adds two buttons to the Advanced dialog re. the buffer: Export from Buffer to File and Import from File to Buffer. I got tired of importing/exporting via Leafpad. :)

Best regards,
Faheem

Gah, crap, I forgot to add "g_clear_error" statements

Quote:

Originally Posted by No!No!No!Yes! (Post 676836)
OK ... I be waiting for new diff file

Never mind ... I managed to stick "g_clear_error" here:

Code:

static void importFileBufferBt_clicked_cb ( HildonButton * button, QueenBeecon *self )
{
        g_warning ("(%p) %s",self, G_STRFUNC);

        GtkWidget *file_chooser = hildon_file_chooser_dialog_new (NULL, GTK_FILE_CHOOSER_ACTION_OPEN);
        //gtk_window_set_title (GTK_WINDOW (file_chooser), "Choose file to import from");
        if (gtk_dialog_run (GTK_DIALOG (file_chooser)) == GTK_RESPONSE_OK)
        {
                GtkTextIter start, end;
                GError *error = NULL;
                gchar *filename = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (file_chooser));

                if (!filename)
                {
                        gtk_widget_destroy (file_chooser);
                        return;
                }

                gchar *contents = NULL;
                if (!g_file_get_contents (filename, &contents, NULL, &error))
                {
                        hildon_banner_show_informationf (NULL, NULL, "Importing failed: %s", error->message);
                        g_free (filename);
                        g_clear_error (&error);
                        gtk_widget_destroy (file_chooser);
                        return;
                }

                gtk_text_buffer_get_bounds (self->priv->importExportBuffer, &start, &end);
                gtk_text_buffer_delete (self->priv->importExportBuffer, &start, &end);
                gtk_text_buffer_insert (self->priv->importExportBuffer, &start, contents, -1);

                g_free (filename);
                g_free (contents);
        }
        gtk_widget_destroy (file_chooser);
}

static void exportFileBufferBt_clicked_cb ( HildonButton * button, QueenBeecon *self )
{
        g_warning ("(%p) %s",self, G_STRFUNC);

        gchar *mydocsdir = g_strdup (g_getenv ("MYDOCSDIR"));
        if (!mydocsdir) mydocsdir = g_build_filename (g_get_home_dir (), "MyDocs", NULL);

        GtkWidget *file_chooser = hildon_file_chooser_dialog_new (NULL, GTK_FILE_CHOOSER_ACTION_SAVE);
        gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER (file_chooser), mydocsdir);
        g_free (mydocsdir);

        if (gtk_dialog_run (GTK_DIALOG (file_chooser)) == GTK_RESPONSE_OK)
        {
                GtkTextIter start, end;
                GError *error = NULL;
                gchar *filename = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (file_chooser));

                if (!filename) {
                        gtk_widget_destroy (file_chooser);
                        return;
                }

                gtk_text_buffer_get_bounds (self->priv->importExportBuffer, &start, &end);

                gchar *contents = gtk_text_buffer_get_text (self->priv->importExportBuffer, &start, &end, FALSE);
                if (!contents) {
                        hildon_banner_show_information (NULL, NULL, "Exporting failed");
                        g_free (filename);
                        gtk_widget_destroy (file_chooser);
                        return;
                }

                if (!g_file_set_contents (filename, contents, -1, &error)) {
                        hildon_banner_show_informationf (NULL, NULL, "Exporting failed: %s", error->message);
                        g_clear_error (&error);
                }
                g_free (filename);
                g_free (contents);
        }
        gtk_widget_destroy (file_chooser);
}

Do you believe it's enough?

No!No!No!Yes! 2010-05-25 21:39

Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
 
And changed buttons layout & captions a little bit:

http://i46.tinypic.com/24gptp4.jpg

qwerty12 2010-05-25 21:39

Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
 
Quote:

Originally Posted by No!No!No!Yes! (Post 677153)
Do you believe it's enough?

Yessir :)

(10-char limit...)

No!No!No!Yes! 2010-05-25 21:57

Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
 
Quote:

Originally Posted by No!No!No!Yes! (Post 676292)
PR1.2 OTA upgrade still not available here (IT), could anybody who has already upgraded, report here for any issue with QBW with new rel? 10x

As soon as PR1.2 is available I'll perform the upgrade and release 0.1.8 in extras-devel.
Ciao.

Quote:

Originally Posted by Sash (Post 676543)
Hi No!No!No!Yes!

I've just flashed to PR 1.2 and I had a few problems when I tried to re-install Queen BeeCon. The widgets were on my desktop but i couldn't see them, only when i click on the gear icon for configuration of the desktop would I see them, but I wouldn't be able to edit them.

I would also get messages saying Hildon-home is not responding.

I'm probably not explaining very well so I'll install it again and get some screenshots.

....

Quote:

Originally Posted by No!No!No!Yes! (Post 676735)
Ok, release is 0.1.4, right?
If you wouldn't bother to give it a shot, I could send you a link to the 0.1.8 version .deb package.
Just to see if a version compiled with PR1.2 aware sdk suffers the same deseases!!!

How about that?

0.1.8-PR1.2compiled + "killall hildon-home" seem to have done the trick ... but I'm curious about why 0.1.4 was not working...

Definitely stay tuned till I upgrade my terminal...

And one other rhetorical question for promotion processes across devel-testing-extra ...

Should we wait >3 weeks to have a working PR1.2-proof QBW 0.2.0 in Extras!?!?!?!?!?
:mad::confused::eek::(

Definitely stay tuned...

No!No!No!Yes! 2010-05-26 13:55

Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
 
Quote:

Originally Posted by qwerty12 (Post 670012)
I'd like to place in a request for replacing that font dialog with http://wiki.maemo.org/Hildon-Extras#HeFontDialog because I also like the Droid Fonts but I'm biased...

Uhm ... no easy way to preserve backward compatibility if I implement this feature with Hildon-Extras extensions.
Especially if exported instances, with extended-fonts functionalities, need to be read by older releases.

Same happens if I change Color (both foreground and background) dialog with extended and more cosmetic one.

Unless it is polite to ask users to check and change fonts/color after import.
:confused::(

BTW, is it possible that HeColorButton is a bit buggy with PR1.2 SDK?
http://wiki.maemo.org/images/7/7f/HeColorButton.png
In scratchbox, if I click on black button frame then color dialogs opens, if I click on orange rectangle nothing happens...

Ciao.

UPDATE:
Also if I compile this:
Code:

                GtkWidget *cmdFontBox = gtk_hbox_new (FALSE, 0);//AP1

                GtkWidget *cmdFontSz;
                if (!g_strcmp0(self->priv->cmdExtFont,"")) {
                        GtkWidget *cmdFontFam = hildon_touch_selector_new_text ();//AP1
                        for(i=0;p_fonts[i]!=NULL;i++) {//AP1
                                int j;
                                for (j=0;j<4;j++) {//AP1
                                        gchar fs[256];//AP1
                                        g_sprintf(fs, "%s %s",p_fonts[i], p_fonts_types[j]);//AP1
                                        hildon_touch_selector_append_text (HILDON_TOUCH_SELECTOR (cmdFontFam), fs);//AP1
                                }//AP1
                        }//AP1
                        hildon_touch_selector_set_active (HILDON_TOUCH_SELECTOR (cmdFontFam), 0, self->priv->cmdFontName);//AP1

                        GtkWidget * cmdFontSelector = hildon_picker_button_new (HILDON_SIZE_AUTO_WIDTH | HILDON_SIZE_THUMB_HEIGHT, HILDON_BUTTON_ARRANGEMENT_VERTICAL);//AP1
                        hildon_button_set_title (HILDON_BUTTON (cmdFontSelector), "Font Face: ");//AP1
                        hildon_button_set_alignment (HILDON_BUTTON (cmdFontSelector), 0, 0.5, 0, 0);//AP1
                        hildon_picker_button_set_selector (HILDON_PICKER_BUTTON (cmdFontSelector), HILDON_TOUCH_SELECTOR (cmdFontFam));//AP1
                        gtk_box_pack_start (GTK_BOX (cmdFontBox), cmdFontSelector, FALSE, FALSE, 0);//AP1

                        cmdFontSz = gtk_hscale_new_with_range ((gdouble)8, (gdouble)72, (gdouble)1);//AP1
                        gtk_range_set_value(GTK_RANGE(cmdFontSz), self->priv->cmdFontSize);//AP1
                        gtk_box_pack_start (GTK_BOX (cmdFontBox), cmdFontSz, TRUE, TRUE, 0);//AP1
                }
                GtkWidget *cmdFontFam = he_font_button_new_with_font (self->priv->cmdExtFont);
                gtk_box_pack_start (GTK_BOX (cmdFontBox), cmdFontFam, TRUE, TRUE, 0);


                gtk_container_add (GTK_CONTAINER (content_area), cmdFontBox);//AP1

Everything goes fine ... if I move the he_font_button before the old font selectors and scales ... H-H dumps

Code:

                GtkWidget *cmdFontBox = gtk_hbox_new (FALSE, 0);//AP1

                GtkWidget *cmdFontSz;
                GtkWidget *cmdFontFam = he_font_button_new_with_font (self->priv->cmdExtFont);
                gtk_box_pack_start (GTK_BOX (cmdFontBox), cmdFontFam, TRUE, TRUE, 0);

                if (!g_strcmp0(self->priv->cmdExtFont,"")) {
                        GtkWidget *cmdFontFam = hildon_touch_selector_new_text ();//AP1
                        for(i=0;p_fonts[i]!=NULL;i++) {//AP1
                                int j;
                                for (j=0;j<4;j++) {//AP1
                                        gchar fs[256];//AP1
                                        g_sprintf(fs, "%s %s",p_fonts[i], p_fonts_types[j]);//AP1
                                        hildon_touch_selector_append_text (HILDON_TOUCH_SELECTOR (cmdFontFam), fs);//AP1
                                }//AP1
                        }//AP1
                        hildon_touch_selector_set_active (HILDON_TOUCH_SELECTOR (cmdFontFam), 0, self->priv->cmdFontName);//AP1

                        GtkWidget * cmdFontSelector = hildon_picker_button_new (HILDON_SIZE_AUTO_WIDTH | HILDON_SIZE_THUMB_HEIGHT, HILDON_BUTTON_ARRANGEMENT_VERTICAL);//AP1
                        hildon_button_set_title (HILDON_BUTTON (cmdFontSelector), "Font Face: ");//AP1
                        hildon_button_set_alignment (HILDON_BUTTON (cmdFontSelector), 0, 0.5, 0, 0);//AP1
                        hildon_picker_button_set_selector (HILDON_PICKER_BUTTON (cmdFontSelector), HILDON_TOUCH_SELECTOR (cmdFontFam));//AP1
                        gtk_box_pack_start (GTK_BOX (cmdFontBox), cmdFontSelector, FALSE, FALSE, 0);//AP1

                        cmdFontSz = gtk_hscale_new_with_range ((gdouble)8, (gdouble)72, (gdouble)1);//AP1
                        gtk_range_set_value(GTK_RANGE(cmdFontSz), self->priv->cmdFontSize);//AP1
                        gtk_box_pack_start (GTK_BOX (cmdFontBox), cmdFontSz, TRUE, TRUE, 0);//AP1
                }

                gtk_container_add (GTK_CONTAINER (content_area), cmdFontBox);//AP1


das_schlumpfie 2010-05-27 01:53

Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
 
hi No!No!No!Yes! (what a name =p)

i saw you made some queen beecon widgets for overclocked device, i saw it in the overlock post, now its not there for some reason.

but still very curious as to how i can get some of those, is it like i can change different configs (profile, frequency etc) right at the desktop?

thanks for the good work btw

No!No!No!Yes! 2010-05-27 05:52

Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
 
Quote:

Originally Posted by das_schlumpfie (Post 681324)
hi No!No!No!Yes! (what a name =p)

i saw you made some queen beecon widgets for overclocked device, i saw it in the overlock post, now its not there for some reason.

but still very curious as to how i can get some of those, is it like i can change different configs (profile, frequency etc) right at the desktop?

thanks for the good work btw

Ciao.
For overclocking See 1st and 3rd beecon here http://wiki.maemo.org/Queen_BeeCon_Widget#Beecons

Other examples are in the wiki
ciao.

das_schlumpfie 2010-05-27 09:30

Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
 
cheers mate

das_schlumpfie 2010-05-27 10:00

Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
 
hi again, so you knows he has those '1 Ghz' and 'Ideal' widgets?

do those actually alter the kernel settings?

thanks

No!No!No!Yes! 2010-05-27 10:42

Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
 
Quote:

Originally Posted by das_schlumpfie (Post 682197)
hi again, so you knows he has those '1 Ghz' and 'Ideal' widgets?

do those actually alter the kernel settings?

thanks

Ciao,
actually I'm not much into this overclocking wisdom I suggest you just drop Jakiman a message and he can point you towards the latest working QBWs he developed (also PR1.2-aware). In fact I heard there were some issues with rootsh/sudo lately which prevented commands to work properly.

Ciao.


All times are GMT. The time now is 23:17.

vBulletin® Version 3.8.8