maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] ProfilesX (more profiles) (https://talk.maemo.org/showthread.php?t=50266)

zerocool2k 2011-07-18 21:47

Re: [Announce] ProfilesX (more profiles)
 
Now that portrait desktop is available, we need a portrait mode for this one too. Currently it only shows the "Done" button in portrait mode.

brokensmile 2011-07-18 21:48

Re: [Announce] ProfilesX (more profiles)
 
a new update arrived maemo 5 20-2010-36-2
summary ...the maemo update requires nokia pc suite ......
and problems "unable to update maemo 5
application package missing : heldon-desktop (=1:2.2.140-1+Om5)

and is there any method to update if the usb is dead

cutehunk04 2011-07-18 21:58

Re: [Announce] ProfilesX (more profiles)
 
new update ???? what kind of update are you talking about ... you mean to say CSSU got updated ???:eek:

zerocool2k 2011-07-18 23:29

Re: [Announce] ProfilesX (more profiles)
 
He probably used the hildon portrait desktop, then saw this "update" on HAM because hildon desktop is replaced. But why post in this thread lol?

WhiteWolf 2011-08-24 11:20

Re: [Announce] ProfilesX (more profiles)
 
I know that this application is complex ... but would it be possible to add options on / off bluetooth? facilitate profiles for hands free. Saving configuration steps.

Useful would also connect and disconnect the WIFI module (profile office, for example) and overclocking profiles.

Thanks.

reinob 2011-08-24 11:47

Re: [Announce] ProfilesX (more profiles)
 
@Whitewolf,

ProfilesX is only changing the active profile, and the profile settings don't include much (volume, ring tones, etc.)

Still, it would be quite cool if we had something like Nokia Situations (which does what you asked for) for the N900.

PS: I guess one could do all this with Qeen BeeCon.. some day I'll have to find the time to go through all of the documentation.

jpala16 2011-09-11 12:20

Re: [Announce] ProfilesX (more profiles)
 
@Nicolai

What string could we use to blacklist ProfilesX not abling it to be showed in portrait? It would be better to have a working ProfilesX portrait UI, but I'd be quite happy with the first one.

Thanks in advance.

F2thaK 2011-09-11 13:09

Re: [Announce] ProfilesX (more profiles)
 
or, can portrait support be added? that would be much better

nicolai 2011-09-11 22:47

Re: [Announce] ProfilesX (more profiles)
 
Here you go:

http://maemo.org/packages/package_in...profilesx/1.5/

Version 1.5:
Profiles dialog from statusmenu now works
in portrait mode, too.

Nicolai

jpala16 2011-09-12 17:47

Re: [Announce] ProfilesX (more profiles)
 
Wow! How fast man. If I only had to say that words I would have written them even before.

Thanks, working perfectly!

WhiteWolf 2011-09-13 09:14

Re: [Announce] ProfilesX (more profiles)
 
Quote:

Originally Posted by nicolai (Post 1086522)
Here you go:

http://maemo.org/packages/package_in...profilesx/1.5/

Version 1.5:
Profiles dialog from statusmenu now works
in portrait mode, too.

Nicolai

Thanks, thanks and thanks.

WhiteWolf 2011-09-13 09:18

Re: [Announce] ProfilesX (more profiles)
 
Quote:

Originally Posted by reinob (Post 1075717)
@Whitewolf,

ProfilesX is only changing the active profile, and the profile settings don't include much (volume, ring tones, etc.)

Still, it would be quite cool if we had something like Nokia Situations (which does what you asked for) for the N900.

PS: I guess one could do all this with Qeen BeeCon.. some day I'll have to find the time to go through all of the documentation.

Not quite true.

"ProfilesX" added support for receiving a call take down past "x" seconds. In addition also added option to automatically activate the speakerphone N900

Excuse my English but I'm not Anglophone.

reinob 2011-09-13 10:25

Re: [Announce] ProfilesX (more profiles)
 
@whitewolf,

Thanks! I hadn't even seen those options :)

travla 2011-09-14 00:03

Re: [Announce] ProfilesX (more profiles)
 
@nicolai
I know I've asked this before, but I'm not sure if your position has changed. Is it still your intention to promote ProfilesX to Extras-testing?

nicolai 2011-09-14 07:53

Re: [Announce] ProfilesX (more profiles)
 
Thank you for this reminder.
Now in extras-testing, please test and vote!

nicolai 2011-09-20 13:13

Re: [Announce] ProfilesX (more profiles)
 
If you only use extras-devel and not extras-testing repository,
keep in mind profilesx is in both repositories with the same version.

So if you use the latest version from extras-devel/extras-testing (1.5)
consider to vote for this app:

http://maemo.org/packages/package_in...profilesx/1.5/

Thank you!

travla 2011-09-27 16:28

Re: [Announce] ProfilesX (more profiles)
 
I am currently testing ProfilesX v1.5, and was wondering if there is some way it can co-exist with Tweakr and not create duplicate Profile buttons in the Task Menu? I do not have any Profile Presets with Tweakr, but Tweakr does add a button to the Task Menu similar to the way ProfilesX does (first button is ProfilesX, second is Tweakr):

http://media.share.ovi.com/m1/lt/314...b22b07bf95.jpg

Functionality does not seem to be adversely affected (Profiles created with ProfilesX work as expected, and default profiles are also working fine).

@nicolai Thank you for a great app and filling a void in Maemo 5 OS that should not have been there to begin with.

Edit: Typo corrected.

travla 2011-09-28 05:00

Re: [Announce] ProfilesX (more profiles)
 
Hey guys, found a solution to removing the Tweakr button from the task menu:

http://talk.maemo.org/showpost.php?p=616392&postcount=5

You'll need to do a reboot (killall hildon-desktop won't do the trick). I've tested several different profiles and all are performing as expected. Kudos to the original poster.

I've given a thumbs up, 2 more votes needed to promote ProfilesX to Extras. I'll do separate post for potential improvements later on.

neboja 2011-09-30 14:37

Re: [Announce] ProfilesX (more profiles)
 
@nicolai:

there is entry on power button to switch between 2 default profiles... could it be done to set between prifileX profiles maybe (to replace pwrbtn entry???)

another thing: i have 2 icons for "silent" profile ( i set to display icons in profileX) but only in landscape mod.... in portrait one is missing... ??? O_o

travla 2011-10-03 06:55

Re: [Announce] ProfilesX (more profiles)
 
One more vote guys, c'mon, there must be someone else testing this package?

http://maemo.org/packages/package_in...profilesx/1.5/

Harick 2011-10-03 14:19

Re: [Announce] ProfilesX (more profiles)
 
hi nicolai

can you please fix this bug here

i know it's not a major bug, but pure cosmetical, but i find it annoying

also, i think ProfileX its stable enough to replace the default "2 profiles allowed" app.

i still hope to see this app as part of CSSU, but till then maybe you can add an option in the instalation process to remove the default profile app and completely replace it with profileX (status menu and control panel)

thank you for all your work

nicolai 2011-10-04 09:30

Re: [Announce] ProfilesX (more profiles)
 
Oh well, I thought I already fixed this. But you are right
the statusbar plugin doesn't use the localized name.

ivgalvez 2011-10-04 10:11

Re: [Announce] ProfilesX (more profiles)
 
Nicolai,

Although ProfilesX is easily installable as a standalone application, don't you think it could be part of CSSU substituting and extending original profiles support on Maemo?

Thank you for your hard work.

nicolai 2011-10-04 10:32

Re: [Announce] ProfilesX (more profiles)
 
Yes I think we should add this to the CSSU.
Some time ago MohammadAG started with an
OSS replacement for the builtin profiles statusbar plugin
(http://gitorious.org/community-ssu/s...pplet-profiles)
I don't know who is working on this now.

nicolai

hadjistyllis 2011-10-09 19:24

Re: [Announce] ProfilesX (more profiles)
 
Nicolai.
I find a small bug in portrait . In Landscape status bar show Profile but in portrait show nothing. Could you fix it?
Thanks for great job

nicolai 2011-10-09 19:35

Re: [Announce] ProfilesX (more profiles)
 
This should work already, which version do you use?

hadjistyllis 2011-10-11 12:35

Re: [Announce] ProfilesX (more profiles)
 
1.5 the latest in repositories

saponga 2012-01-04 11:21

Re: [Announce] ProfilesX (more profiles)
 
Does exist any possibility of the Profilesx launch a predefined script when i change to a especific profile ? I was thinking about write something that launch musicplayer, python skiptrack, ecoach and bluethooh at the same time and trigger it with profilesx... (like a "cycling profile") Is it possible ?

Edit: or when driving (car profile), open FMtransmiter, roadrunner, musicplayer etc...

Thanks !

zlatko 2012-01-10 20:03

Re: [Announce] ProfilesX (more profiles)
 
@nicolai
Any ideas for autoanswer on N9? This a feature I miss alot this days. Will be great if you can pull something out of your sleeve. ;)

Estel 2012-01-10 22:51

Re: [Announce] ProfilesX (more profiles)
 
Let alone N9, any status update on possible inclusion in CSSU-testing?

AapoRantalainen 2012-01-28 19:19

Re: [Announce] ProfilesX (more profiles)
 
Hi Nicolai, seems bug in comment #159 (and reminded on #221) is still not fixed. Here we go:
Code:

--- a/profilesx-status-panel-plugin.c
+++ b/profilesx-status-panel-plugin.c
@@ -139,7 +139,7 @@ show_profile_selection_dlg(GtkButton* button, ProfilesxStatusPlugin* plugin)
 
  GtkWidget* pannable_area;
  GtkWidget* content_area;
-  GtkWidget* dialog = gtk_dialog_new_with_buttons("Profiles",
+  GtkWidget* dialog = gtk_dialog_new_with_buttons(dgettext ("osso-profiles", "profi_ti_select_profiles"),
                                                  NULL,
                                                  GTK_DIALOG_MODAL,
                                                  dgettext("hildon-libs", "wdgt_bd_done"), GTK_RESPONSE_OK, NULL);

(localized title 'Profiles')

AapoRantalainen 2012-01-28 21:48

Re: [Announce] ProfilesX (more profiles)
 
1 Attachment(s)
This is my 2 cents.
ProfilesX is two components (for user's perspective):
*control-panel entry for editing profiles
*status-bar-applet for selecting which profile is used

For me (personally), 'profile-editor' is so good that I want edit and tweak everything there and nothing on profile-switcher. So my use case is: Create/edit/tweak profiles.
And when I want switch profile I don't want see anything extra.

Here is the initial-patch:
Code:

--- a/profilesx-status-panel-plugin.c
+++ b/profilesx-status-panel-plugin.c
@@ -54,6 +54,8 @@
 
 #define GC_ROOT "/apps/maemo/profilesx"
 
+gboolean only_choosing_mode = TRUE; //TODO: Where this should come?
+
 struct _ProfilesxStatusPluginPrivate
 {
  GtkWidget* button;
@@ -132,6 +134,12 @@ profilesx_dialog_size_changed(GdkScreen* screen,
                                GDK_HINT_MIN_SIZE);
 }
 
+
+static void
+profile_selected(GtkToggleButton* button, GtkDialog* dialog) {
+      gtk_dialog_response (dialog, GTK_RESPONSE_OK);
+}
+
 static void
 show_profile_selection_dlg(GtkButton* button, ProfilesxStatusPlugin* plugin)
 {
@@ -139,10 +147,20 @@ show_profile_selection_dlg(GtkButton* button, ProfilesxStatusPlugin* plugin)
 
  GtkWidget* pannable_area;
  GtkWidget* content_area;
-  GtkWidget* dialog = gtk_dialog_new_with_buttons(dgettext ("osso-profiles", "profi_ti_select_profiles"),
+      GtkWidget* dialog;
+      if (only_choosing_mode) {
+              dialog = gtk_dialog_new_with_buttons(dgettext ("osso-profiles", "profi_ti_select_profiles"),
+                                                NULL,
+                                                GTK_DIALOG_MODAL,
+                                                NULL);
+      }
+      else  {
+              dialog = gtk_dialog_new_with_buttons(dgettext ("osso-profiles", "profi_ti_select_profiles"),
                                                  NULL,
                                                  GTK_DIALOG_MODAL,
                                                  dgettext("hildon-libs", "wdgt_bd_done"), GTK_RESPONSE_OK, NULL);
+      }
+
  gtk_window_set_default_size(GTK_WINDOW(dialog), -1, 300); 
 
  content_area = gtk_hbox_new(FALSE, 3);
@@ -176,7 +194,15 @@ show_profile_selection_dlg(GtkButton* button, ProfilesxStatusPlugin* plugin)
      {
        gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button), TRUE); 
      }
+
+                      if (only_choosing_mode) {
+                              g_signal_connect(button, "toggled", G_CALLBACK(profile_selected), dialog);
+                      }
+
      previousRadioButton = button;
+                      gtk_box_pack_start(GTK_BOX(left_box), button, FALSE, FALSE, 3);
+
+                      if (!only_choosing_mode) {
      GtkWidget* vib_button = hildon_check_button_new(HILDON_SIZE_FINGER_HEIGHT);
      hildon_check_button_set_active(HILDON_CHECK_BUTTON(vib_button), profile_get_value_as_bool(*profilePtr,
                                                                                                PROFILEKEY_VIBRATING_ALERT_ENABLED));
@@ -184,9 +210,9 @@ show_profile_selection_dlg(GtkButton* button, ProfilesxStatusPlugin* plugin)
      idx++;
      gtk_button_set_label(GTK_BUTTON(vib_button),
                          dgettext("osso-profiles", "profi_fi_general_vibrate"));
-
-      gtk_box_pack_start(GTK_BOX(left_box), button, FALSE, FALSE, 3);
      gtk_box_pack_start(GTK_BOX(right_box), vib_button, FALSE, FALSE, 3);
+                      }
+
    }
  }

See screenshot. There are no toggle-buttons for vibration (they belongs to the profile-editor). And then there are no need for separate 'ok'-button. So clicking entry will select it and close dialog. Pressing outside dialog is cancel (as expected). I haven't tested it with more than three profiles.
(And here you can also see localized title)

Estel 2012-01-29 10:06

Re: [Announce] ProfilesX (more profiles)
 
Quote:

Originally Posted by AapoRantalainen (Post 1157131)

For me (personally), 'profile-editor' is so good that I want edit and tweak everything there and nothing on profile-switcher.

It isn't the case of every user. As ProfileX is enhancement to existing thing/possible part of CSSU, it shouldn't 'cripple' existing features.

Personally, I don't like idea of going into profile editor, just to enable or disable vibration, while changing profiles on the go.

/Estel

nicolai 2012-01-29 23:38

Re: [Announce] ProfilesX (more profiles)
 
Quote:

Originally Posted by AapoRantalainen (Post 1157086)
Hi Nicolai, seems bug in comment #159 (and reminded on #221) is still not fixed. Here we go: ....

fixed, thank you!

As for the vibra on/off button. I use it very often.
Most of the time I use the silent profile, but sometimes
I need to turn on/off vibration only. So I am quite happy
to have this option right from the status-menu.

nicolai

kent_autistic 2012-04-15 12:45

Re: [Announce] ProfilesX (more profiles)
 
It would be great to have a version that enables vibration per tone. For example, in general profile, each tone for messages, call, or im, has its own tick box for if you want it to vibrate or not. Reason behind this is i want call to vibrate but leave sms and IMs not to vibrate.

AapoRantalainen 2012-07-21 11:24

Re: [Announce] ProfilesX (more profiles)
 
Feature request / Discussion / Initial patch

General settings for application 'ProfilesX' itself.

This patch adds button 'Settings' above 'modify/new/delete/done'. Clicking it will open new dialog for settings. New dialog is currently empty as I'm not sure where to save modifications.

Code:

--- a/control_panel_plugin_src/profilesx-control-panel-plugin.c
+++ b/control_panel_plugin_src/profilesx-control-panel-plugin.c
@@ -151,6 +151,35 @@ ask_user_for_profile_name(user_data_t* data)
 }
 
 void
+general_settings(GtkButton* button, user_data_t* data)
+{
+
+  GtkWidget* dialog;
+  dialog = gtk_dialog_new_with_buttons("General settings",
+                                      GTK_WINDOW(data->main_dialog),
+                                      GTK_DIALOG_MODAL,
+                                      dgettext("hildon-libs", "wdgt_bd_save"), GTK_RESPONSE_OK,
+                                      NULL);
+  profilesx_dialog_size_changed(gdk_display_get_default_screen(gdk_display_get_default()),
+                                dialog);
+  g_signal_connect(gdk_display_get_default_screen(gdk_display_get_default()),
+                  "size-changed",
+                  G_CALLBACK(profilesx_dialog_size_changed), dialog);
+
+ //Add buttons, sliders...
+  gtk_widget_show_all(dialog);
+
+  int ret = gtk_dialog_run(GTK_DIALOG(dialog));
+  if(ret == GTK_RESPONSE_OK)
+  {
+  //DO SAVING
+  }
+  gtk_widget_destroy(dialog);
+
+}
+
+
+void
 new_profile(GtkButton* button, user_data_t* data)
 {
  gchar* new_profile_name = ask_user_for_profile_name(data);
@@ -210,22 +239,29 @@ void
 add_main_dialog_buttons(user_data_t* data)
 {
  GtkWidget* content_area;
+  GtkWidget* settings_button;
+
  GtkWidget* edit_button;
  GtkWidget* new_button;
  data->profile_delete_button = hildon_gtk_button_new(HILDON_SIZE_AUTO_WIDTH | HILDON_SIZE_FINGER_HEIGHT);
+  settings_button = hildon_gtk_button_new(HILDON_SIZE_AUTO_WIDTH | HILDON_SIZE_FINGER_HEIGHT);
  edit_button = hildon_gtk_button_new(HILDON_SIZE_AUTO_WIDTH | HILDON_SIZE_FINGER_HEIGHT);
  new_button = hildon_gtk_button_new(HILDON_SIZE_AUTO_WIDTH | HILDON_SIZE_FINGER_HEIGHT);
 
+  gtk_button_set_label(GTK_BUTTON(settings_button), "Settings");
  gtk_button_set_label(GTK_BUTTON(data->profile_delete_button), dgettext("hildon-libs", "wdgt_bd_delete"));
  gtk_button_set_label(GTK_BUTTON(edit_button), dgettext("hildon-libs", "wdgt_bd_edit"));
  gtk_button_set_label(GTK_BUTTON(new_button), dgettext("hildon-libs", "wdgt_bd_new"));
 
+  g_signal_connect(settings_button, "clicked", G_CALLBACK(general_settings), data);
  g_signal_connect(edit_button, "clicked", G_CALLBACK(edit_profile), data);
  g_signal_connect(new_button, "clicked", G_CALLBACK(new_profile), data);
  g_signal_connect(data->profile_delete_button, "clicked", G_CALLBACK(delete_profile), data);
 
  content_area = gtk_dialog_get_action_area(GTK_DIALOG(data->main_dialog));
  gtk_box_pack_start(GTK_BOX(content_area),
+                    settings_button, FALSE, FALSE, 0);
+  gtk_box_pack_start(GTK_BOX(content_area),
                    data->profile_delete_button, FALSE, FALSE, 0);
  gtk_box_pack_start(GTK_BOX(content_area),
                    edit_button, FALSE, FALSE, 0);

I'm not asking to merge empty dialog, but I'm asking discussion how to properly save and load settings.

nicolai 2012-07-23 08:31

Re: [Announce] ProfilesX (more profiles)
 
gconf would be a good place to save settings.
What settings would you like to have?

AapoRantalainen 2012-07-23 18:34

Re: [Announce] ProfilesX (more profiles)
 
I know how many profiles I want ever use. Then I made/tuned them perfect on control panel. Now there are no reason to modify them when switching profile on status panel. One place/application for editing, another place/application for switching.
(Edit: seems I have wrote this earlier, just little bit different wording)

I also read and understand that some people want toggle vibration when switching profile.


Code:

--- a/status_panel_plugin_src/profilesx-status-panel-plugin.c
+++ b/status_panel_plugin_src/profilesx-status-panel-plugin.c
@@ -54,6 +54,10 @@
 
 #define GC_ROOT "/apps/maemo/profilesx"
 
+//True = status panel is used only for selecting profile (control panel is used for edit profiles)
+//False = when selecting profile, they can be also edited e.g. vibration
+gboolean only_choosing_mode = TRUE; //Todo: load from settings
+
 struct _ProfilesxStatusPluginPrivate
 {
  GtkWidget* button;
@@ -132,6 +136,12 @@ profilesx_dialog_size_changed(GdkScreen* screen,
                                GDK_HINT_MIN_SIZE);
 }
 
+
+static void
+profile_selected(GtkToggleButton* button, GtkDialog* dialog) {
+      gtk_dialog_response (dialog, GTK_RESPONSE_OK);
+}
+
 static void
 show_profile_selection_dlg(GtkButton* button, ProfilesxStatusPlugin* plugin)
 {
@@ -139,10 +149,20 @@ show_profile_selection_dlg(GtkButton* button, ProfilesxStatusPlugin* plugin)
 
  GtkWidget* pannable_area;
  GtkWidget* content_area;
-  GtkWidget* dialog = gtk_dialog_new_with_buttons(dgettext("osso-profiles", "profi_ti_select_profiles"),
+  GtkWidget* dialog;
+  if (only_choosing_mode) {
+              dialog = gtk_dialog_new_with_buttons(dgettext ("osso-profiles", "profi_ti_select_profiles"),
                                                  NULL,
                                                  GTK_DIALOG_MODAL,
-                                                dgettext("hildon-libs", "wdgt_bd_done"), GTK_RESPONSE_OK, NULL);
+                                                NULL);
+  }
+  else {
+              dialog = gtk_dialog_new_with_buttons(dgettext ("osso-profiles", "profi_ti_select_profiles"),
+                                                  NULL,
+                                                  GTK_DIALOG_MODAL,
+                                                  dgettext("hildon-libs", "wdgt_bd_done"), GTK_RESPONSE_OK, NULL);
+      }
+
  gtk_window_set_default_size(GTK_WINDOW(dialog), -1, 300); 
 
  content_area = gtk_hbox_new(FALSE, 3);
@@ -176,12 +196,23 @@ show_profile_selection_dlg(GtkButton* button, ProfilesxStatusPlugin* plugin)
      {
        gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button), TRUE); 
      }
-      previousRadioButton = button;
+
+                      if (only_choosing_mode) {
+                              g_signal_connect(button, "toggled", G_CALLBACK(profile_selected), dialog);
+                      }
+
+      previousRadioButton = button;
+                      gtk_box_pack_start(GTK_BOX(left_box), button, FALSE, FALSE, 3);
+
+
      GtkWidget* vib_button = hildon_check_button_new(HILDON_SIZE_FINGER_HEIGHT);
      hildon_check_button_set_active(HILDON_CHECK_BUTTON(vib_button), profile_get_value_as_bool(*profilePtr,
                                                                                                PROFILEKEY_VIBRATING_ALERT_ENABLED));
      vibs[idx] = vib_button;
      idx++;
+
+                      if (!only_choosing_mode) {
+
      gtk_button_set_label(GTK_BUTTON(vib_button),
                          dgettext("osso-profiles", "profi_fi_general_vibrate"));
 
@@ -189,6 +220,7 @@ show_profile_selection_dlg(GtkButton* button, ProfilesxStatusPlugin* plugin)
      gtk_box_pack_start(GTK_BOX(right_box), vib_button, FALSE, FALSE, 3);
    }
  }
+      }
 
  gtk_box_pack_start(GTK_BOX(content_area), left_box, TRUE, TRUE, 3);
  gtk_box_pack_start(GTK_BOX(content_area), right_box, FALSE, FALSE, 3);


ForeverYoung 2012-11-16 12:03

Re: [Announce] ProfilesX (more profiles)
 
I didn't use ProfilesX control panel item for long time, since I set up some profiles. Today I decided to change some of them, change ringtone, volume - and I got random crashes when I click save after edit, then Done - and all Settings application crashes.
Anyone got such behavior?

nicolai 2012-11-16 20:35

Re: [Announce] ProfilesX (more profiles)
 
I don't have any problems with profilesx - no crashes.
Do you use any other application for profiles.


All times are GMT. The time now is 08:11.

vBulletin® Version 3.8.8