summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/addressbook/TODO4
-rw-r--r--core/pim/addressbook/ablabel.cpp34
-rw-r--r--core/pim/addressbook/version.h2
3 files changed, 27 insertions, 13 deletions
diff --git a/core/pim/addressbook/TODO b/core/pim/addressbook/TODO
index 106747e..da9b9c2 100644
--- a/core/pim/addressbook/TODO
+++ b/core/pim/addressbook/TODO
@@ -4,26 +4,24 @@ Stuff todo until OPIE 1.0 :
4Feature requests: 4Feature requests:
5----------------- 5-----------------
6- Dial by mobile phone by tapping the number.. 6- Dial by mobile phone by tapping the number..
7 (Maybe using gsmtool. And we may 7 (Maybe using gsmtool. And we may
8 add a library class for this) 8 add a library class for this)
9- dial with dtmfdial in case it's installed and there's no mobile 9- dial with dtmfdial in case it's installed and there's no mobile
10- 3rd column for 2. Contact 10- 3rd column for 2. Contact
11- Implementing additional Views (Phonebook, ...) 11- Implementing additional Views (Phonebook, ...)
12- Birthday & Anniversary Reminder 12- Birthday & Anniversary Reminder
13- Beaming of multiple contacts (current list/ by search or by category) 13- Beaming of multiple contacts (current list/ by search or by category)
14- Configure the letter-picker: lastname/fullname search 14- Configure the letter-picker: lastname/fullname search
15- User center of the joypad to switch back from card to listview ! 15- User center of the joypad to switch back from card to listview !
16- Cursor-UP/Down: Should additionally scroll cardview if it is too large
17 (behaviour should be selectable by configuration)
18 16
19Known Bugs: 17Known Bugs:
20----------- 18-----------
21 19
22Bugs but not in addressbook: 20Bugs but not in addressbook:
23----------------------------- 21-----------------------------
24- VCARD: If umlaut (äöüß) in address, the parser gets confused.. 22- VCARD: If umlaut (äöüß) in address, the parser gets confused..
25 23
26 24
27Urgent: 25Urgent:
28-------- 26--------
29- Category is on the wrong position after changing to personal and back to normal 27- Category is on the wrong position after changing to personal and back to normal
@@ -105,12 +103,14 @@ Fixed/Ready:
105 1. Configure nicht übersetzt (alles leer). 103 1. Configure nicht übersetzt (alles leer).
106 2. Contacteditor nur teilweise übersetzt. 104 2. Contacteditor nur teilweise übersetzt.
107 3. Kategorie-Picker geht nicht. 105 3. Kategorie-Picker geht nicht.
108- Plugin for Today for Birthdays and Anniversaries 106- Plugin for Today for Birthdays and Anniversaries
109- Implement a picker/combo for the default email. 107- Implement a picker/combo for the default email.
110- Overview window cleanup needed.. 108- Overview window cleanup needed..
111- Store last settings of combo-boxes 109- Store last settings of combo-boxes
112- Personal and Business Web-page is not editable 110- Personal and Business Web-page is not editable
113- Default Email-button: A lot of problems: 111- Default Email-button: A lot of problems:
114 If on second tab: The combo chooser is on the top left of the screen ! :( 112 If on second tab: The combo chooser is on the top left of the screen ! :(
115- Default Email-Button: Sometimes not hiding the textfields completely 113- Default Email-Button: Sometimes not hiding the textfields completely
116- Fix handling of 3 Firstnames 114- Fix handling of 3 Firstnames
115- Cursor-UP/Down: Should additionally scroll cardview if it is too large
116 (behaviour should be selectable by configuration)
diff --git a/core/pim/addressbook/ablabel.cpp b/core/pim/addressbook/ablabel.cpp
index 80b57ae..6d8de91 100644
--- a/core/pim/addressbook/ablabel.cpp
+++ b/core/pim/addressbook/ablabel.cpp
@@ -81,50 +81,64 @@ bool AbLabel::selectContact( int UID )
81} 81}
82 82
83 83
84 84
85void AbLabel::sync() 85void AbLabel::sync()
86{ 86{
87 QString text = (*m_itCurContact).toRichText(); 87 QString text = (*m_itCurContact).toRichText();
88 setText( text ); 88 setText( text );
89} 89}
90 90
91void AbLabel::keyPressEvent( QKeyEvent *e ) 91void AbLabel::keyPressEvent( QKeyEvent *e )
92{ 92{
93
93 // Commonly handled keys 94 // Commonly handled keys
94 if ( !m_empty ){ 95 if ( !m_empty ){
95 switch( e->key() ) { 96 switch( e->key() ) {
96 case Qt::Key_Left: 97 case Qt::Key_Left:
97 qWarning( "Left.."); 98 qWarning( "Left..");
98 case Qt::Key_Right: 99 case Qt::Key_Right:
99 qWarning( "Right.."); 100 qWarning( "Right..");
100 case Qt::Key_F33: 101 case Qt::Key_F33:
101 qWarning( "OK.."); 102 qWarning( "OK..");
102 emit signalOkPressed(); 103 emit signalOkPressed();
103 break; 104 break;
104 case Qt::Key_Up: 105 case Qt::Key_Up:
105 qWarning( "UP.."); 106 qWarning( "UP..");
106 --m_itCurContact; 107 if ( ( visibleHeight() < contentsHeight() ) &&
107 if ( *m_itCurContact != OContact() ) 108 ( verticalScrollBar()->value() > verticalScrollBar()->minValue() ) )
108 sync(); 109 scrollBy( 0, -(visibleHeight()-20) );
109 else 110 else {
110 m_itCurContact = m_viewList.end(); 111 --m_itCurContact;
112 if ( *m_itCurContact != OContact() )
113 sync();
114 else
115 m_itCurContact = m_viewList.end();
116 }
111 117
112 break; 118 break;
113 case Qt::Key_Down: 119 case Qt::Key_Down:
114 qWarning( "DOWN.."); 120 qWarning( "DOWN..");
115 ++m_itCurContact; 121 // qWarning( "visible: %d, content: %d",visibleHeight(),contentsHeight());
116 if ( *m_itCurContact != OContact() ) 122 // qWarning( "value: %d; barMaxValue: %d", verticalScrollBar()->value()
117 sync(); 123 // , verticalScrollBar()->maxValue() );
118 else 124 if ( ( visibleHeight() < contentsHeight() ) &&
119 m_itCurContact = m_viewList.begin(); 125 ( verticalScrollBar()->value() < verticalScrollBar()->maxValue() ) )
126 scrollBy( 0, visibleHeight()-20 );
127 else {
128 ++m_itCurContact;
129 if ( *m_itCurContact != OContact() )
130 sync();
131 else
132 m_itCurContact = m_viewList.begin();
133 }
120 break; 134 break;
121 case Qt::Key_Return: // fall through 135 case Qt::Key_Return: // fall through
122 case Qt::Key_Space: // fall through 136 case Qt::Key_Space: // fall through
123 case Qt::Key_Enter: // we want to switch back 137 case Qt::Key_Enter: // we want to switch back
124 emit signalOkPressed(); 138 emit signalOkPressed();
125 break; 139 break;
126 default: break; 140 default: break;
127 } 141 }
128 } 142 }
129 143
130} 144}
diff --git a/core/pim/addressbook/version.h b/core/pim/addressbook/version.h
index 0f12bd7..999ce67 100644
--- a/core/pim/addressbook/version.h
+++ b/core/pim/addressbook/version.h
@@ -1,10 +1,10 @@
1#ifndef _VERSION_H_ 1#ifndef _VERSION_H_
2#define _VERSION_H_ 2#define _VERSION_H_
3 3
4#define MAINVERSION "0" 4#define MAINVERSION "0"
5#define SUBVERSION "9" 5#define SUBVERSION "9"
6#define PATCHVERSION "1" 6#define PATCHVERSION "2"
7 7
8#define APPNAME "OPIE_ADDRESSBOOK" 8#define APPNAME "OPIE_ADDRESSBOOK"
9 9
10#endif 10#endif