summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--ChangeLog1
-rw-r--r--noncore/net/wellenreiter/gui/packetview.cpp7
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 3b0f1d9..ebd9d92 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,106 +1,107 @@
1 2005-??-??Opie 1.2.2 1 2005-??-??Opie 1.2.2
2 2
3 3
4 New Features 4 New Features
5 ------------ 5 ------------
6 6
7 7
8 Fixed Bugs 8 Fixed Bugs
9 ---------- 9 ----------
10 * #1695 - Date selector use too small fontsize on VGA screen (hrw) 10 * #1695 - Date selector use too small fontsize on VGA screen (hrw)
11 * n.a. - remove hardcoded font size from wellenreiter (hrw)
11 12
12 2005-09-11Opie 1.2.1 13 2005-09-11Opie 1.2.1
13 14
14 15
15 New Features 16 New Features
16 ------------ 17 ------------
17 * OpieStumbler: Scans WiFi networks using the wireless extension scanning (skyhusker) 18 * OpieStumbler: Scans WiFi networks using the wireless extension scanning (skyhusker)
18 * Opie-Reader: Support for document formats ArriereGo and Reb, add flite output (tim,pohly) 19 * Opie-Reader: Support for document formats ArriereGo and Reb, add flite output (tim,pohly)
19 * Opie-Networksettings: Add support for wlan-ng devices and improve WEP handling (Dirk Opfer) 20 * Opie-Networksettings: Add support for wlan-ng devices and improve WEP handling (Dirk Opfer)
20 * Wellenreiter: Remove Joining networks - use OpieStumbler for that (mickeyl) 21 * Wellenreiter: Remove Joining networks - use OpieStumbler for that (mickeyl)
21 * Opie-Mobilemsg has gone unsupported - it never really worked and there will be a replacement (mickeyl) 22 * Opie-Mobilemsg has gone unsupported - it never really worked and there will be a replacement (mickeyl)
22 * Opie-Tabmanager has gone unsupported - it barely works and there is not much of a use of it anyway (mickeyl) 23 * Opie-Tabmanager has gone unsupported - it barely works and there is not much of a use of it anyway (mickeyl)
23 * Checkbook: Added configuration option to use smaller font for checkbook transaction tab (hrw) 24 * Checkbook: Added configuration option to use smaller font for checkbook transaction tab (hrw)
24 * ZSafe: Made UI conform to Opie standards (drw) 25 * ZSafe: Made UI conform to Opie standards (drw)
25 * Today Addressbook plugin: Fixed configuration to show/not show birthdays, use checkboxes for selection (hrw) 26 * Today Addressbook plugin: Fixed configuration to show/not show birthdays, use checkboxes for selection (hrw)
26 * Opie-Console: Read initial fixed font configuration from qpe.conf (mickeyl) 27 * Opie-Console: Read initial fixed font configuration from qpe.conf (mickeyl)
27 * Opie-PcmciaApplet: Configure insert/resume actions and bind unsupported cards (mickeyl) 28 * Opie-PcmciaApplet: Configure insert/resume actions and bind unsupported cards (mickeyl)
28 * SysInfo: Remove CPU tab and add Devices tab instead (mickeyl) 29 * SysInfo: Remove CPU tab and add Devices tab instead (mickeyl)
29 * Opie-smb: Added Opie front end for Samba (ljp) 30 * Opie-smb: Added Opie front end for Samba (ljp)
30 * Opie-Bluetooth: Replace obex send implementation and patch libopieobex and the bluetoothapplet (Michael Haynie) 31 * Opie-Bluetooth: Replace obex send implementation and patch libopieobex and the bluetoothapplet (Michael Haynie)
31 * Opieplayer: rudimentary podcast support (ljp) 32 * Opieplayer: rudimentary podcast support (ljp)
32 33
33 Fixed Bugs 34 Fixed Bugs
34 ---------- 35 ----------
35 * #1377 - Suspend Powermanagement when switched to another VT (mickeyl) 36 * #1377 - Suspend Powermanagement when switched to another VT (mickeyl)
36 - We actually suspend the complete Opie now in that case. 37 - We actually suspend the complete Opie now in that case.
37 * #1384 - Battery status updated improperly when charging (skyhusker) 38 * #1384 - Battery status updated improperly when charging (skyhusker)
38 * #1476 - Wrong order of application entries in the O-menu (skyhusker) 39 * #1476 - Wrong order of application entries in the O-menu (skyhusker)
39 * #1514 - Remove usage of cardmon/pcmcia picture in applications. pcmcia is now an inline picture (mickeyl) 40 * #1514 - Remove usage of cardmon/pcmcia picture in applications. pcmcia is now an inline picture (mickeyl)
40 * #1535- Missing line break and unnecessary location shown with Today-Calendar plugin (deller) 41 * #1535- Missing line break and unnecessary location shown with Today-Calendar plugin (deller)
41 * #1543 - Time Settings: "predict" tab is displayed twice after reopen (hrw) 42 * #1543 - Time Settings: "predict" tab is displayed twice after reopen (hrw)
42 * #1546 - Battery applet popup is not always large enough to show jacket remaining info (skyhusker) 43 * #1546 - Battery applet popup is not always large enough to show jacket remaining info (skyhusker)
43 * #1557 - Light&Power-Settings don't store warning intervall and warning levels (skyhusker) 44 * #1557 - Light&Power-Settings don't store warning intervall and warning levels (skyhusker)
44 * #1565 - crash-fix in odevice.cpp while scanning the distribution table (deller) 45 * #1565 - crash-fix in odevice.cpp while scanning the distribution table (deller)
45 * #1614 - Make Opie-console start in $HOME instead of / (skyhusker) 46 * #1614 - Make Opie-console start in $HOME instead of / (skyhusker)
46 * #1635 - opie-today, datebook-plugin does not show notes (skyhusker) 47 * #1635 - opie-today, datebook-plugin does not show notes (skyhusker)
47 * #1665 - Opie-IRC displays the host prepended to the message when peer is using and ipv6 address (skyhusker) 48 * #1665 - Opie-IRC displays the host prepended to the message when peer is using and ipv6 address (skyhusker)
48 * #1666 - Opie-IRC does not allow to add !channels in config asautojoin ones (skyhusker) 49 * #1666 - Opie-IRC does not allow to add !channels in config asautojoin ones (skyhusker)
49 * #1667 - Opie-IRC does not show messages from !channel (skyhusker) 50 * #1667 - Opie-IRC does not show messages from !channel (skyhusker)
50 * #1679 - Security PIN plugin is QVGA sized (hrw) 51 * #1679 - Security PIN plugin is QVGA sized (hrw)
51 * #1682 - Properly resize tab control in OTabWidget (drw) 52 * #1682 - Properly resize tab control in OTabWidget (drw)
52 * n.a. - always show volume and wireless applet popups inside visible screen (deller) 53 * n.a. - always show volume and wireless applet popups inside visible screen (deller)
53 * n.a. - scale O-Menu-Applets appropriately (mickeyl) 54 * n.a. - scale O-Menu-Applets appropriately (mickeyl)
54 * n.a. - libopienet: fix bugs in wireless scanning and setting SSID (skyhusker) 55 * n.a. - libopienet: fix bugs in wireless scanning and setting SSID (skyhusker)
55 * n.a. - Wellenreiter: relax WE version matching test a bit (mickeyl) 56 * n.a. - Wellenreiter: relax WE version matching test a bit (mickeyl)
56 * n.a. - scale BluezApplet appropriately and use larger icons (mickeyl) 57 * n.a. - scale BluezApplet appropriately and use larger icons (mickeyl)
57 * n.a. - memoryapplet: fix crash in memoryapplet on kernels without swap support (seneca cunningham) 58 * n.a. - memoryapplet: fix crash in memoryapplet on kernels without swap support (seneca cunningham)
58 * n.a. - networksettings: ignore hostap control interfaces wifi* (mickeyl) 59 * n.a. - networksettings: ignore hostap control interfaces wifi* (mickeyl)
59 * n.a. - Today Addressbook plugin fix configuration to show/not show birthdays, use checkboxes for selection (hrw) 60 * n.a. - Today Addressbook plugin fix configuration to show/not show birthdays, use checkboxes for selection (hrw)
60 * n.a. - remove hardcoded font size from netsystemtime (hrw) 61 * n.a. - remove hardcoded font size from netsystemtime (hrw)
61 * n.a. - remove hardcoded font size from checkbook graphs (hrw) 62 * n.a. - remove hardcoded font size from checkbook graphs (hrw)
62 * n.a. - Dagger - fixes for Sword 1.5.8, morph tag x-refs, closing last tab crash (drw) 63 * n.a. - Dagger - fixes for Sword 1.5.8, morph tag x-refs, closing last tab crash (drw)
63 64
64 65
65 Internal 66 Internal
66 -------- 67 --------
67 * Make BluezApplet use OTaskbarApplet (mickeyl) 68 * Make BluezApplet use OTaskbarApplet (mickeyl)
68 * libopiecore: rewrite OFileNotification to use the Linux 2.6 inotify interface (mickeyl) 69 * libopiecore: rewrite OFileNotification to use the Linux 2.6 inotify interface (mickeyl)
69 * libopiecore: add ODirNotification - recursive directory notifications (mickeyl) 70 * libopiecore: add ODirNotification - recursive directory notifications (mickeyl)
70 * libopienet: Skip hostap control interfaces 'wifi' and improve robustness in ONetworkInterface (mickeyl) 71 * libopienet: Skip hostap control interfaces 'wifi' and improve robustness in ONetworkInterface (mickeyl)
71 * libopieui: Remove OVersatileView and OVersatileViewItem (mickeyl) 72 * libopieui: Remove OVersatileView and OVersatileViewItem (mickeyl)
72 * libopienet: Miscellaneous API cleanups (mickeyl) 73 * libopienet: Miscellaneous API cleanups (mickeyl)
73 * libopiecore: Add linux pcmcia system abstraction classes (mickeyl) 74 * libopiecore: Add linux pcmcia system abstraction classes (mickeyl)
74 * libopiecore: ODevice now knows the default gfx driver to use (mteira,mickeyl) 75 * libopiecore: ODevice now knows the default gfx driver to use (mteira,mickeyl)
75 * libopiecore: Add support for the Sharp SL-C3100 "Borzoi" (mickeyl) 76 * libopiecore: Add support for the Sharp SL-C3100 "Borzoi" (mickeyl)
76 * libopiecore: Add support for the new Linux Inputsystem Switches type [necessary for auto rotation in 2.6.13] (mickeyl) 77 * libopiecore: Add support for the new Linux Inputsystem Switches type [necessary for auto rotation in 2.6.13] (mickeyl)
77 * Remove assumptions about default gfx driver ("Transformed") all over the place (mteira,mickeyl) 78 * Remove assumptions about default gfx driver ("Transformed") all over the place (mteira,mickeyl)
78 * Fix / Optimize number of scanned directories (ljp) 79 * Fix / Optimize number of scanned directories (ljp)
79 * Use five point mouse calibration to make calibrated mouse drivers work on newer Zaurii (rp,mickeyl) 80 * Use five point mouse calibration to make calibrated mouse drivers work on newer Zaurii (rp,mickeyl)
80 81
81 2005-03-25Opie 1.2.0 82 2005-03-25Opie 1.2.0
82 83
83 Fixed Bugs 84 Fixed Bugs
84 ---------- 85 ----------
85 * #1613 - AdvancedFM - scale toolbar icons appropriately (drw) 86 * #1613 - AdvancedFM - scale toolbar icons appropriately (drw)
86 * #1620 - OFileSelector - show the button on press and not on press on hold (alwin) 87 * #1620 - OFileSelector - show the button on press and not on press on hold (alwin)
87 * #1473 - Opie-Eye - Same as #1620 but we lack a common FileSystem Button class (zecke) 88 * #1473 - Opie-Eye - Same as #1620 but we lack a common FileSystem Button class (zecke)
88 * n.a. - PackageManager - fix bug where messages show up multiple times in install dialog (drw) 89 * n.a. - PackageManager - fix bug where messages show up multiple times in install dialog (drw)
89 * n.a.- make qpeglobal.h include qglobal.h (zecke) 90 * n.a.- make qpeglobal.h include qglobal.h (zecke)
90 91
91 2005-03-20Opie 1.2.0-rc1 92 2005-03-20Opie 1.2.0-rc1
92 93
93 94
94 New Features 95 New Features
95 ------------ 96 ------------
96 * Launcher: Support a static background pixmap (mickeyl) 97 * Launcher: Support a static background pixmap (mickeyl)
97 * LauncherSettings: Choose whether to have a static background pixmap (mickeyl) 98 * LauncherSettings: Choose whether to have a static background pixmap (mickeyl)
98 * PackageManager supports the 'lists_dir' ipkg configuration option (drw) 99 * PackageManager supports the 'lists_dir' ipkg configuration option (drw)
99 * Added hi-res inline images for large resolution devices (drw) 100 * Added hi-res inline images for large resolution devices (drw)
100 * Improved launcher icons for consistency (ar) 101 * Improved launcher icons for consistency (ar)
101 * Datebook: Added plugin system to datebook so holidays and birthdays from contacts may displayed in datebook (alwin) 102 * Datebook: Added plugin system to datebook so holidays and birthdays from contacts may displayed in datebook (alwin)
102 103
103 Fixed Bugs 104 Fixed Bugs
104 ---------- 105 ----------
105 * #1236 - VCards contained empty home and work address entries causing Palms to crash (eilers) 106 * #1236 - VCards contained empty home and work address entries causing Palms to crash (eilers)
106 * #1412 - Launcher Settings - fixed default settings for background in Edit tab dialog (drw) 107 * #1412 - Launcher Settings - fixed default settings for background in Edit tab dialog (drw)
diff --git a/noncore/net/wellenreiter/gui/packetview.cpp b/noncore/net/wellenreiter/gui/packetview.cpp
index d71111f..ffe2f01 100644
--- a/noncore/net/wellenreiter/gui/packetview.cpp
+++ b/noncore/net/wellenreiter/gui/packetview.cpp
@@ -1,150 +1,153 @@
1/********************************************************************** 1/**********************************************************************
2** Copyright (C) 2002-2004 Michael 'Mickey' Lauer. All rights reserved. 2** Copyright (C) 2002-2004 Michael 'Mickey' Lauer. All rights reserved.
3** 3**
4** This file is part of Wellenreiter II. 4** This file is part of Wellenreiter II.
5** 5**
6** This file may be distributed and/or modified under the terms of the 6** This file may be distributed and/or modified under the terms of the
7** GNU General Public License version 2 as published by the Free Software 7** GNU General Public License version 2 as published by the Free Software
8** Foundation and appearing in the file LICENSE.GPL included in the 8** Foundation and appearing in the file LICENSE.GPL included in the
9** packaging of this file. 9** packaging of this file.
10** 10**
11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
13** 13**
14**********************************************************************/ 14**********************************************************************/
15 15
16#include "packetview.h" 16#include "packetview.h"
17 17
18/* OPIE */ 18/* OPIE */
19#include <opie2/opcap.h> 19#include <opie2/opcap.h>
20#include <opie2/odebug.h> 20#include <opie2/odebug.h>
21#include <opie2/olistview.h> 21#include <opie2/olistview.h>
22#include <opie2/oapplication.h> 22#include <opie2/oapplication.h>
23#include <qpe/config.h>
23 24
24/* QT */ 25/* QT */
25#include <qfont.h> 26#include <qfont.h>
26#include <qlabel.h> 27#include <qlabel.h>
27#include <qlayout.h> 28#include <qlayout.h>
28#include <qlist.h> 29#include <qlist.h>
29#include <qlistview.h> 30#include <qlistview.h>
30#include <qobjectlist.h> 31#include <qobjectlist.h>
31#include <qspinbox.h> 32#include <qspinbox.h>
32#include <qtextview.h> 33#include <qtextview.h>
33 34
34using namespace Opie::Net; 35using namespace Opie::Net;
35using namespace Opie::Core; 36using namespace Opie::Core;
36using namespace Opie::Ui; 37using namespace Opie::Ui;
37 38
38PacketView::PacketView( QWidget * parent, const char * name, WFlags f ) 39PacketView::PacketView( QWidget * parent, const char * name, WFlags f )
39 :QFrame( parent, name, f ) 40 :QFrame( parent, name, f )
40{ 41{
42 Config c( "qpe" );
43 c.setGroup( "Appearance" );
44
41 _number = new QSpinBox( this ); 45 _number = new QSpinBox( this );
42 _number->setPrefix( "Pkt# " ); 46 _number->setPrefix( "Pkt# " );
43 _label = new QLabel( this ); 47 _label = new QLabel( this );
44 _list = new OListView( this ); 48 _list = new OListView( this );
45 _list->addColumn( "#" ); 49 _list->addColumn( "#" );
46 _list->addColumn( "Packet Type" ); 50 _list->addColumn( "Packet Type" );
47 _list->setColumnAlignment( 0, Qt::AlignCenter ); 51 _list->setColumnAlignment( 0, Qt::AlignCenter );
48 _list->setColumnAlignment( 1, Qt::AlignLeft ); 52 _list->setColumnAlignment( 1, Qt::AlignLeft );
49 _list->setAllColumnsShowFocus( true ); 53 _list->setAllColumnsShowFocus( true );
50 _list->setFont( QFont( "Fixed", 8 ) );
51 54
52 _hex = new QTextView( this ); 55 _hex = new QTextView( this );
53 _hex->setMargin( 0 ); 56 _hex->setMargin( 0 );
54 _hex->setFont( QFont( "Fixed", 8 ) ); 57 _hex->setFont( QFont( c.readEntry( "FixedFontFamily", "Fixed" ), c.readNumEntry( "FixedFontSize", 8 ) ) );
55 58
56 QVBoxLayout* vb = new QVBoxLayout( this, 2, 2 ); 59 QVBoxLayout* vb = new QVBoxLayout( this, 2, 2 );
57 QHBoxLayout* hb = new QHBoxLayout( vb, 2 ); 60 QHBoxLayout* hb = new QHBoxLayout( vb, 2 );
58 hb->addWidget( _label, 5 ); 61 hb->addWidget( _label, 5 );
59 hb->addWidget( _number, 2 ); 62 hb->addWidget( _number, 2 );
60 vb->addWidget( _list, 3 ); 63 vb->addWidget( _list, 3 );
61 vb->addWidget( _hex, 4 ); // allow a bit (4/3) more space 64 vb->addWidget( _hex, 4 ); // allow a bit (4/3) more space
62 65
63 _packets.setAutoDelete( true ); 66 _packets.setAutoDelete( true );
64 67
65 connect( _number, SIGNAL( valueChanged( int ) ), this, SLOT( showPacket( int ) ) ); 68 connect( _number, SIGNAL( valueChanged( int ) ), this, SLOT( showPacket( int ) ) );
66 connect( parent, SIGNAL( currentChanged( QWidget *) ), this, SLOT( activated( QWidget* ) ) ); 69 connect( parent, SIGNAL( currentChanged( QWidget *) ), this, SLOT( activated( QWidget* ) ) );
67 70
68 clear(); 71 clear();
69 72
70} 73}
71 74
72void PacketView::add( const OPacket* p, int size ) 75void PacketView::add( const OPacket* p, int size )
73{ 76{
74 /* 77 /*
75 * don't scroll away when somebody views packages 78 * don't scroll away when somebody views packages
76 * while scanning 79 * while scanning
77 */ 80 */
78 int value = _number->value(); 81 int value = _number->value();
79 bool last = (value == static_cast<int>( _packets.count() ) ); 82 bool last = (value == static_cast<int>( _packets.count() ) );
80 83
81 odebug << "PacketView::add() size = " << size << oendl; 84 odebug << "PacketView::add() size = " << size << oendl;
82 if ( size == -1 ) // unlimited buffer 85 if ( size == -1 ) // unlimited buffer
83 { 86 {
84 _packets.append( p ); 87 _packets.append( p );
85 } 88 }
86 else 89 else
87 { // limited buffer, limit = size 90 { // limited buffer, limit = size
88 while ( _packets.count() >= static_cast<uint>( size ) ) 91 while ( _packets.count() >= static_cast<uint>( size ) )
89 { 92 {
90 _packets.removeFirst(); 93 _packets.removeFirst();
91 --value; 94 --value;
92 } 95 }
93 96
94 /* check if we lost our packet */ 97 /* check if we lost our packet */
95 last = ( value < 1 ); 98 last = ( value < 1 );
96 _packets.append( p ); 99 _packets.append( p );
97 } 100 }
98 101
99 _number->setMinValue( 1 ); 102 _number->setMinValue( 1 );
100 _number->setMaxValue( _packets.count() ); 103 _number->setMaxValue( _packets.count() );
101 _number->setValue( last ? _packets.count() : value ); 104 _number->setValue( last ? _packets.count() : value );
102} 105}
103 106
104void PacketView::showPacket( int number ) 107void PacketView::showPacket( int number )
105{ 108{
106 _list->clear(); 109 _list->clear();
107 _hex->setText(""); 110 _hex->setText("");
108 const OPacket* p = _packets.at( number-1 ); 111 const OPacket* p = _packets.at( number-1 );
109 112
110 if ( p ) 113 if ( p )
111 { 114 {
112 _doSubPackets( const_cast<QObjectList*>( p->children() ), 0 ); 115 _doSubPackets( const_cast<QObjectList*>( p->children() ), 0 );
113 _doHexPacket( p ); 116 _doHexPacket( p );
114 QDateTime dt; dt.setTime_t( p->timeval().tv_sec ); 117 QDateTime dt; dt.setTime_t( p->timeval().tv_sec );
115 _label->setText( dt.toString() + QString().sprintf( " Len=%d", p->len() ) ); 118 _label->setText( dt.toString() + QString().sprintf( " Len=%d", p->len() ) );
116 } 119 }
117 else 120 else
118 { 121 {
119 odebug << "D'oh! No packet!" << oendl; 122 odebug << "D'oh! No packet!" << oendl;
120 } 123 }
121} 124}
122 125
123void PacketView::activated( QWidget* w ) 126void PacketView::activated( QWidget* w )
124{ 127{
125 if ( ( this == w ) && _packets.count() ) 128 if ( ( this == w ) && _packets.count() )
126 { 129 {
127 _number->setValue( 1 ); 130 _number->setValue( 1 );
128 } 131 }
129} 132}
130 133
131void PacketView::_doSubPackets( QObjectList* l, int counter ) 134void PacketView::_doSubPackets( QObjectList* l, int counter )
132{ 135{
133 if (!l) return; 136 if (!l) return;
134 QObject* o = l->first(); 137 QObject* o = l->first();
135 while ( o ) 138 while ( o )
136 { 139 {
137 new OListViewItem( _list, QString::number( counter++ ), o->name() ); 140 new OListViewItem( _list, QString::number( counter++ ), o->name() );
138 _doSubPackets( const_cast<QObjectList*>( o->children() ), counter ); 141 _doSubPackets( const_cast<QObjectList*>( o->children() ), counter );
139 o = l->next(); 142 o = l->next();
140 } 143 }
141} 144}
142 145
143void PacketView::_doHexPacket( const OPacket* p ) 146void PacketView::_doHexPacket( const OPacket* p )
144{ 147{
145 if ( oApp->desktop()->width() > 320 ) 148 if ( oApp->desktop()->width() > 320 )
146 _hex->setText( p->dump( 16 ) ); 149 _hex->setText( p->dump( 16 ) );
147 else 150 else
148 _hex->setText( p->dump( 8 ) ); 151 _hex->setText( p->dump( 8 ) );
149} 152}
150 153