|
2010-11-22
, 16:34
|
|
Posts: 288 |
Thanked: 113 times |
Joined on Dec 2009
@ Germany
|
#242
|
diff -u original new > my_changes.diff
patch -p0 < my_changes.diff
Also I have a few suggestions
1. Can you please make the contacts sort order selectable (eg, first name, last name or last name, first name, or nick name, etc). This is really bugging me now.
2. For a 2.0 release, can you make it such that, on loading, the app automatically logs in (in the back ground) and opens the compose page? This way, while the user is typing out the message and selecting the contact, the user will be logged in and further time wont be wasted and it will appear very fast! This can also help in prevent repeated logging-ins for sending multiple messages.
The Following User Says Thank You to blubbi For This Useful Post: | ||
|
2010-11-22
, 17:35
|
|
Posts: 395 |
Thanked: 107 times |
Joined on Dec 2009
@ India
|
#243
|
I am uploading a slightly modified version of the 160by2 provider. Changes include
-140 characters limit (only 80 for international, but not implemented yet)
-Removes leading 0 (Domestic) or 00 (international) if any
-Checks if number begins with 9,8,7 or 6 (requisite for Indian mobile numbers and intl' calling codes for supported countries)
-First goes to http://m.160by2.com/index.asp?in=yes instead of http://m.160by2.com so as to save time.
Please test and comment if there are any bugs in this. I have tried only international sms to Kuwait. But it was not working (not the app's problem. something wrong with their site). So please check others and let me know if it is successful.
PS: i can't upload py file here. Also txt file is too big to be uploaded here, apparently (huh?). So i have zipped it and uploaded it.
|
2010-11-26
, 09:05
|
|
Posts: 800 |
Thanked: 957 times |
Joined on Sep 2010
@ India
|
#244
|
|
2010-11-26
, 11:27
|
|
Posts: 288 |
Thanked: 113 times |
Joined on Dec 2009
@ Germany
|
#245
|
I have edited my www2sms.py to show contacts in first name last name order, but I think a better way would be if in the name selection combo box, if we can search both first name and last name simultaneously.
ie, if I search for 'St' I should get a result with both "Stephanopoulos, George" and "Jobs, Steve"
At present, it will only move the list to names starting with St, Is it possible to change that behaviour?
#!/usr/bin/python # -*- coding: utf-8 -*- from PyQt4.QtGui import * from PyQt4.QtCore import * #if you use the validator, transform strings to lowercase before comparing them, and the filterproxymodel can be turned case insenstive with one method call #.setFilterCaseSensitivity(Qt.CaseInsensitive) class ModelPresenceValidator(QValidator): def __init__(self, model, role=Qt.DisplayRole, column=0, parent=None): QValidator.__init__(self, parent) self.model = model self.column = column self.role = role def validate(self, text, pos): lastresort = (QValidator.Invalid, pos) for r in xrange(self.model.rowCount()): d = self.model.data(self.model.index(r, self.column), self.role).toString() print d if d == text: return (QValidator.Acceptable, pos) elif str(d).startswith(str(text)): lastresort = (QValidator.Intermediate, pos) return lastresort a = QApplication([]) cb = QComboBox() cb.addItems(['Albert', 'Alexis', 'Arthur', 'Jane', 'Joe', 'John']) cb.setEditable(True) # so the user can type filterproxy = QSortFilterProxyModel() datmodel = cb.model() filterproxy.setSourceModel(datmodel) # the filter applies to original data datmodel.setParent(a) # segfault without this line cb.setModel(filterproxy) # the combobox will display the filtered content cb.lineEdit().textEdited.connect(filterproxy.setFilterWildcard) # connect the input to the filter cb.setValidator(ModelPresenceValidator(datmodel)) cb.show() a.exec_()
The Following User Says Thank You to blubbi For This Useful Post: | ||
|
2011-01-13
, 21:15
|
|
Posts: 288 |
Thanked: 113 times |
Joined on Dec 2009
@ Germany
|
#246
|
The Following User Says Thank You to blubbi For This Useful Post: | ||
|
2011-02-12
, 09:38
|
Posts: 129 |
Thanked: 32 times |
Joined on Jun 2010
|
#247
|
|
2011-02-14
, 08:58
|
|
Posts: 288 |
Thanked: 113 times |
Joined on Dec 2009
@ Germany
|
#248
|
|
2011-02-23
, 09:17
|
|
Posts: 800 |
Thanked: 957 times |
Joined on Sep 2010
@ India
|
#249
|
|
2011-02-23
, 09:35
|
|
Posts: 288 |
Thanked: 113 times |
Joined on Dec 2009
@ Germany
|
#250
|
Hi Bjoern,
I've installed the CSSU, and noticed that www2sms is not usable in portrait mode. See http://wiki.maemo.org/Portrait_Mode#..._Compatibility.
Can we have a slightly rearranged UI in portrait mode?
Thanks,
Ejas
The Following User Says Thank You to blubbi For This Useful Post: | ||
Also I have a few suggestions
1. Can you please make the contacts sort order selectable (eg, first name, last name or last name, first name, or nick name, etc). This is really bugging me now.
2. For a 2.0 release, can you make it such that, on loading, the app automatically logs in (in the back ground) and opens the compose page? This way, while the user is typing out the message and selecting the contact, the user will be logged in and further time wont be wasted and it will appear very fast! This can also help in prevent repeated logging-ins for sending multiple messages.
BTW, I just love that the sent messages appear in conversation! Brilliant touch! Also selecting the number for each contact is also a good feature.
Thanks for this highly useful app, bjoern!