Reply
Thread Tools
ossipena's Avatar
Posts: 3,159 | Thanked: 2,023 times | Joined on Feb 2008 @ Finland
#101
new thread created:
http://talk.maemo.org/showthread.php?p=643862

please put your feature request etc there, and all beneath the surface -stuff (code snippets etc) here.
__________________
Want to know something?
K.I.S.S. approach:
wiki category:beginners. Browse it through and you'll be much wiser!
If the link doesn't help, just use
Google Custom Search
 
benik's Avatar
Posts: 7 | Thanked: 35 times | Joined on Dec 2009 @ Russia-Moscow
#102
what about other languages? will they in program?
 
ossipena's Avatar
Posts: 3,159 | Thanked: 2,023 times | Joined on Feb 2008 @ Finland
#103
Originally Posted by raverpol View Post
for me doesnt work with +48xxxxx and all numbers I have in my adress book are with with country prefix. with 0xxxx works fine

I even can't correct that number which was taken from the book
what does the notification say about your number? does it convert it to 0048xxxxx?
__________________
Want to know something?
K.I.S.S. approach:
wiki category:beginners. Browse it through and you'll be much wiser!
If the link doesn't help, just use
Google Custom Search
 
ossipena's Avatar
Posts: 3,159 | Thanked: 2,023 times | Joined on Feb 2008 @ Finland
#104
does someone have some tips with conversations database?

(where it lies?, to which table are all messages written?, .....)

e: nevermind. it is el.db (/home/user/.rtcom-events/el.db)
and table name is events. phone number = remote_uid
__________________
Want to know something?
K.I.S.S. approach:
wiki category:beginners. Browse it through and you'll be much wiser!
If the link doesn't help, just use
Google Custom Search

Last edited by ossipena; 2010-05-05 at 09:28.
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#105
One last thing:

Code:
--- vertsms.py.1	2010-05-04 21:30:01.000000000 +0100
+++ vertsms.py	2010-05-05 15:35:34.000000000 +0100
@@ -330,6 +330,9 @@
         sms.send()
 #        sms.print_pdustring()
 
+def backspace_tap_and_hold(widget):
+    buffer.delete(buffer.get_start_iter(), buffer.get_end_iter())
+
 def main():
     program = hildon.Program.get_instance()
     program.add_window(window)
@@ -440,8 +443,11 @@
     table.attach(button_0, 1, 2, 7, 8)
     table.attach(button_pound, 2, 3, 7, 8)
 
+    button_back.tap_and_hold_setup(None, None, 0)
+
     button_send.connect("clicked", send)
     button_back.connect("clicked", backspace)
+    button_back.connect("tap-and-hold", backspace_tap_and_hold)
     button_to.connect("clicked", addrbook)
     button_1.connect("clicked", number_pressed)
     button_2.connect("clicked", number_pressed)
This patch will delete all of the message text when the backspace is held down. This is somewhat reminiscent of my SE's behaviour, however, I think that people would prefer to have the text deleted character by character when the button is held down so I leave this here for "educational" purposes...
 

The Following 3 Users Say Thank You to qwerty12 For This Useful Post:
MohammadAG's Avatar
Posts: 2,473 | Thanked: 12,265 times | Joined on Oct 2009 @ Jerusalem, PS/IL
#106
Might be a good way to start looking into (py)GTK


Patch:
Edit: see below

bit.ly link redirects to the [ANNOUNCE] thread, I could've made it bit.ly/VertSMS but I'll leave you to decide where that redirects to.
Original talk.maemo.org link would be very long to be shown on one line in a portrait dialog.

Last edited by MohammadAG; 2010-05-05 at 15:59.
 

The Following 2 Users Say Thank You to MohammadAG For This Useful Post:
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#107
Originally Posted by MohammadAG View Post
Might be a good way to start looking into (py)GTK
My name shouldn't be there (my contributions pale in comparision to aspidites'); please leave it out.

Also, personal preference, but I really like thp's HeAboutDialog (a Python version can be found in the gPodder tarball).
 

The Following User Says Thank You to qwerty12 For This Useful Post:
ossipena's Avatar
Posts: 3,159 | Thanked: 2,023 times | Joined on Feb 2008 @ Finland
#108
Originally Posted by qwerty12 View Post
One last thing:

Code:
--- vertsms.py.1    2010-05-04 21:30:01.000000000 +0100
+++ vertsms.py    2010-05-05 15:35:34.000000000 +0100
@@ -330,6 +330,9 @@
         sms.send()
 #        sms.print_pdustring()
 
+def backspace_tap_and_hold(widget):
+    buffer.delete(buffer.get_start_iter(), buffer.get_end_iter())
+
 def main():
     program = hildon.Program.get_instance()
     program.add_window(window)
@@ -440,8 +443,11 @@
     table.attach(button_0, 1, 2, 7, 8)
     table.attach(button_pound, 2, 3, 7, 8)
 
+    button_back.tap_and_hold_setup(None, None, 0)
+
     button_send.connect("clicked", send)
     button_back.connect("clicked", backspace)
+    button_back.connect("tap-and-hold", backspace_tap_and_hold)
     button_to.connect("clicked", addrbook)
     button_1.connect("clicked", number_pressed)
     button_2.connect("clicked", number_pressed)
This patch will delete all of the message text when the backspace is held down. This is somewhat reminiscent of my SE's behaviour, however, I think that people would prefer to have the text deleted character by character when the button is held down so I leave this here for "educational" purposes...
do you know how that tap and hold function works? does its execution stop as soon as pressing is stopped? if not how can I get signal for stopping the deletion char by char?
__________________
Want to know something?
K.I.S.S. approach:
wiki category:beginners. Browse it through and you'll be much wiser!
If the link doesn't help, just use
Google Custom Search
 

The Following User Says Thank You to ossipena For This Useful Post:
MohammadAG's Avatar
Posts: 2,473 | Thanked: 12,265 times | Joined on Oct 2009 @ Jerusalem, PS/IL
#109
Originally Posted by qwerty12 View Post
My name shouldn't be there (my contributions pale in comparision to aspidites'); please leave it out.

Also, personal preference, but I really like thp's HeAboutDialog (a Python version can be found in the gPodder tarball).
I'll have a look at that in a bit.
My patch above is a bit primitive, had a look at the wiki and I think I got it

Had a look at your patch above (for clear all), it might be a good option to have it in the app menu (above the about button).

Code:
def backspace_tap_and_hold(widget):
    buffer.delete(buffer.get_start_iter(), buffer.get_end_iter())
Code:
def create_menu(label):
    menu = hildon.AppMenu()

    for i in xrange(1, 6):
	# Clear all button
        clearall = hildon.GtkButton(gtk.HILDON_SIZE_AUTO)
        command_id = "Clear all"
        clearall.set_label(command_id)
        clearall.connect("clicked", backspace_tap_and_hold, label)
        menu.append(clearall)


        # About button
        aboutbutton = hildon.GtkButton(gtk.HILDON_SIZE_AUTO)
        command_id = "About"
        aboutbutton.set_label(command_id)
        aboutbutton.connect("clicked", about, label)
        menu.append(aboutbutton)
but it keeps throwing TypeError: backspace_tap_and_hold() takes exactly 1 argument (2 given) at me.
I realize I still have a long way ahead of me before I start understanding all this python stuff
 

The Following User Says Thank You to MohammadAG For This Useful Post:
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#110
Originally Posted by ossipena View Post
do you know how that tap and hold function works? does its execution stop as soon as pressing is stopped? if not how can I get signal for stopping the deletion char by char?
The function executes once for each time the button is held; you have to let go and hold again for the function to be called again

Originally Posted by MohammadAG View Post
I'll have a look at that in a bit.
My patch above is a bit primitive, had a look at the wiki and I think I got it

I realize I still have a long way ahead of me before I start understanding all this python stuff
I'm no Python person either (I deal in dodgily-written C and Vala) but there's no need to pass label to backspace_tap_and_hold
Also, I'd remove the "for i in range..." statement - no need to have it running multiple times
 

The Following 2 Users Say Thank You to qwerty12 For This Useful Post:
Reply

Tags
portrait sms, python

Thread Tools

 
Forum Jump


All times are GMT. The time now is 12:13.