author | hrw <hrw> | 2005-10-18 13:56:12 (UTC) |
---|---|---|
committer | hrw <hrw> | 2005-10-18 13:56:12 (UTC) |
commit | 0f25331618ea6cac8a59f2c2298a9e1684748b97 (patch) (unidiff) | |
tree | eb734f970761359b4fd61166936b87550e2e1b2d | |
parent | 9f41cd10ef92daa889f86cb43793dc75de18e786 (diff) | |
download | opie-0f25331618ea6cac8a59f2c2298a9e1684748b97.zip opie-0f25331618ea6cac8a59f2c2298a9e1684748b97.tar.gz opie-0f25331618ea6cac8a59f2c2298a9e1684748b97.tar.bz2 |
fixed bug #1647 - Opie-console doesn't respect scroll-bar on left side
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | noncore/apps/opie-console/TEWidget.cpp | 25 |
2 files changed, 16 insertions, 10 deletions
@@ -1,75 +1,76 @@ | |||
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 | * Appearance: Added configuration options to set smallIconSize, bigIconSize, useBigPixmaps (hrw) | 6 | * Appearance: Added configuration options to set smallIconSize, bigIconSize, useBigPixmaps (hrw) |
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 | * #1686 - opie-console lack UI setting for switching scrollbar (hrw) | 11 | * #1686 - opie-console lack UI setting for switching scrollbar (hrw) |
12 | * #1647 - Opie-console doesn't respect scroll-bar on left side (hrw) | ||
12 | * #1624 - Button settngs changes are applied only after restart (hrw) | 13 | * #1624 - Button settngs changes are applied only after restart (hrw) |
13 | * #1492 - Backup and Restore does not show list of backups to restore on start (hrw) | 14 | * #1492 - Backup and Restore does not show list of backups to restore on start (hrw) |
14 | * n.a. - remove hardcoded font size from wellenreiter (hrw) | 15 | * n.a. - remove hardcoded font size from wellenreiter (hrw) |
15 | * n.a. - added patch to build QT/E 2.3.10 with gc 4.x.x (hrw) | 16 | * n.a. - added patch to build QT/E 2.3.10 with gc 4.x.x (hrw) |
16 | 17 | ||
17 | 2005-09-11Opie 1.2.1 | 18 | 2005-09-11Opie 1.2.1 |
18 | 19 | ||
19 | 20 | ||
20 | New Features | 21 | New Features |
21 | ------------ | 22 | ------------ |
22 | * OpieStumbler: Scans WiFi networks using the wireless extension scanning (skyhusker) | 23 | * OpieStumbler: Scans WiFi networks using the wireless extension scanning (skyhusker) |
23 | * Opie-Reader: Support for document formats ArriereGo and Reb, add flite output (tim,pohly) | 24 | * Opie-Reader: Support for document formats ArriereGo and Reb, add flite output (tim,pohly) |
24 | * Opie-Networksettings: Add support for wlan-ng devices and improve WEP handling (Dirk Opfer) | 25 | * Opie-Networksettings: Add support for wlan-ng devices and improve WEP handling (Dirk Opfer) |
25 | * Wellenreiter: Remove Joining networks - use OpieStumbler for that (mickeyl) | 26 | * Wellenreiter: Remove Joining networks - use OpieStumbler for that (mickeyl) |
26 | * Opie-Mobilemsg has gone unsupported - it never really worked and there will be a replacement (mickeyl) | 27 | * Opie-Mobilemsg has gone unsupported - it never really worked and there will be a replacement (mickeyl) |
27 | * Opie-Tabmanager has gone unsupported - it barely works and there is not much of a use of it anyway (mickeyl) | 28 | * Opie-Tabmanager has gone unsupported - it barely works and there is not much of a use of it anyway (mickeyl) |
28 | * Checkbook: Added configuration option to use smaller font for checkbook transaction tab (hrw) | 29 | * Checkbook: Added configuration option to use smaller font for checkbook transaction tab (hrw) |
29 | * ZSafe: Made UI conform to Opie standards (drw) | 30 | * ZSafe: Made UI conform to Opie standards (drw) |
30 | * Today Addressbook plugin: Fixed configuration to show/not show birthdays, use checkboxes for selection (hrw) | 31 | * Today Addressbook plugin: Fixed configuration to show/not show birthdays, use checkboxes for selection (hrw) |
31 | * Opie-Console: Read initial fixed font configuration from qpe.conf (mickeyl) | 32 | * Opie-Console: Read initial fixed font configuration from qpe.conf (mickeyl) |
32 | * Opie-PcmciaApplet: Configure insert/resume actions and bind unsupported cards (mickeyl) | 33 | * Opie-PcmciaApplet: Configure insert/resume actions and bind unsupported cards (mickeyl) |
33 | * SysInfo: Remove CPU tab and add Devices tab instead (mickeyl) | 34 | * SysInfo: Remove CPU tab and add Devices tab instead (mickeyl) |
34 | * Opie-smb: Added Opie front end for Samba (ljp) | 35 | * Opie-smb: Added Opie front end for Samba (ljp) |
35 | * Opie-Bluetooth: Replace obex send implementation and patch libopieobex and the bluetoothapplet (Michael Haynie) | 36 | * Opie-Bluetooth: Replace obex send implementation and patch libopieobex and the bluetoothapplet (Michael Haynie) |
36 | * Opieplayer: rudimentary podcast support (ljp) | 37 | * Opieplayer: rudimentary podcast support (ljp) |
37 | 38 | ||
38 | Fixed Bugs | 39 | Fixed Bugs |
39 | ---------- | 40 | ---------- |
40 | * #1377 - Suspend Powermanagement when switched to another VT (mickeyl) | 41 | * #1377 - Suspend Powermanagement when switched to another VT (mickeyl) |
41 | - We actually suspend the complete Opie now in that case. | 42 | - We actually suspend the complete Opie now in that case. |
42 | * #1384 - Battery status updated improperly when charging (skyhusker) | 43 | * #1384 - Battery status updated improperly when charging (skyhusker) |
43 | * #1476 - Wrong order of application entries in the O-menu (skyhusker) | 44 | * #1476 - Wrong order of application entries in the O-menu (skyhusker) |
44 | * #1514 - Remove usage of cardmon/pcmcia picture in applications. pcmcia is now an inline picture (mickeyl) | 45 | * #1514 - Remove usage of cardmon/pcmcia picture in applications. pcmcia is now an inline picture (mickeyl) |
45 | * #1535- Missing line break and unnecessary location shown with Today-Calendar plugin (deller) | 46 | * #1535- Missing line break and unnecessary location shown with Today-Calendar plugin (deller) |
46 | * #1543 - Time Settings: "predict" tab is displayed twice after reopen (hrw) | 47 | * #1543 - Time Settings: "predict" tab is displayed twice after reopen (hrw) |
47 | * #1546 - Battery applet popup is not always large enough to show jacket remaining info (skyhusker) | 48 | * #1546 - Battery applet popup is not always large enough to show jacket remaining info (skyhusker) |
48 | * #1557 - Light&Power-Settings don't store warning intervall and warning levels (skyhusker) | 49 | * #1557 - Light&Power-Settings don't store warning intervall and warning levels (skyhusker) |
49 | * #1565 - crash-fix in odevice.cpp while scanning the distribution table (deller) | 50 | * #1565 - crash-fix in odevice.cpp while scanning the distribution table (deller) |
50 | * #1614 - Make Opie-console start in $HOME instead of / (skyhusker) | 51 | * #1614 - Make Opie-console start in $HOME instead of / (skyhusker) |
51 | * #1635 - opie-today, datebook-plugin does not show notes (skyhusker) | 52 | * #1635 - opie-today, datebook-plugin does not show notes (skyhusker) |
52 | * #1665 - Opie-IRC displays the host prepended to the message when peer is using and ipv6 address (skyhusker) | 53 | * #1665 - Opie-IRC displays the host prepended to the message when peer is using and ipv6 address (skyhusker) |
53 | * #1666 - Opie-IRC does not allow to add !channels in config asautojoin ones (skyhusker) | 54 | * #1666 - Opie-IRC does not allow to add !channels in config asautojoin ones (skyhusker) |
54 | * #1667 - Opie-IRC does not show messages from !channel (skyhusker) | 55 | * #1667 - Opie-IRC does not show messages from !channel (skyhusker) |
55 | * #1679 - Security PIN plugin is QVGA sized (hrw) | 56 | * #1679 - Security PIN plugin is QVGA sized (hrw) |
56 | * #1682 - Properly resize tab control in OTabWidget (drw) | 57 | * #1682 - Properly resize tab control in OTabWidget (drw) |
57 | * n.a. - always show volume and wireless applet popups inside visible screen (deller) | 58 | * n.a. - always show volume and wireless applet popups inside visible screen (deller) |
58 | * n.a. - scale O-Menu-Applets appropriately (mickeyl) | 59 | * n.a. - scale O-Menu-Applets appropriately (mickeyl) |
59 | * n.a. - libopienet: fix bugs in wireless scanning and setting SSID (skyhusker) | 60 | * n.a. - libopienet: fix bugs in wireless scanning and setting SSID (skyhusker) |
60 | * n.a. - Wellenreiter: relax WE version matching test a bit (mickeyl) | 61 | * n.a. - Wellenreiter: relax WE version matching test a bit (mickeyl) |
61 | * n.a. - scale BluezApplet appropriately and use larger icons (mickeyl) | 62 | * n.a. - scale BluezApplet appropriately and use larger icons (mickeyl) |
62 | * n.a. - memoryapplet: fix crash in memoryapplet on kernels without swap support (seneca cunningham) | 63 | * n.a. - memoryapplet: fix crash in memoryapplet on kernels without swap support (seneca cunningham) |
63 | * n.a. - networksettings: ignore hostap control interfaces wifi* (mickeyl) | 64 | * n.a. - networksettings: ignore hostap control interfaces wifi* (mickeyl) |
64 | * n.a. - Today Addressbook plugin fix configuration to show/not show birthdays, use checkboxes for selection (hrw) | 65 | * n.a. - Today Addressbook plugin fix configuration to show/not show birthdays, use checkboxes for selection (hrw) |
65 | * n.a. - remove hardcoded font size from netsystemtime (hrw) | 66 | * n.a. - remove hardcoded font size from netsystemtime (hrw) |
66 | * n.a. - remove hardcoded font size from checkbook graphs (hrw) | 67 | * n.a. - remove hardcoded font size from checkbook graphs (hrw) |
67 | * n.a. - Dagger - fixes for Sword 1.5.8, morph tag x-refs, closing last tab crash (drw) | 68 | * n.a. - Dagger - fixes for Sword 1.5.8, morph tag x-refs, closing last tab crash (drw) |
68 | 69 | ||
69 | 70 | ||
70 | Internal | 71 | Internal |
71 | -------- | 72 | -------- |
72 | * Make BluezApplet use OTaskbarApplet (mickeyl) | 73 | * Make BluezApplet use OTaskbarApplet (mickeyl) |
73 | * libopiecore: rewrite OFileNotification to use the Linux 2.6 inotify interface (mickeyl) | 74 | * libopiecore: rewrite OFileNotification to use the Linux 2.6 inotify interface (mickeyl) |
74 | * libopiecore: add ODirNotification - recursive directory notifications (mickeyl) | 75 | * libopiecore: add ODirNotification - recursive directory notifications (mickeyl) |
75 | * libopienet: Skip hostap control interfaces 'wifi' and improve robustness in ONetworkInterface (mickeyl) | 76 | * libopienet: Skip hostap control interfaces 'wifi' and improve robustness in ONetworkInterface (mickeyl) |
diff --git a/noncore/apps/opie-console/TEWidget.cpp b/noncore/apps/opie-console/TEWidget.cpp index 1199e4f..117f6dd 100644 --- a/noncore/apps/opie-console/TEWidget.cpp +++ b/noncore/apps/opie-console/TEWidget.cpp | |||
@@ -259,138 +259,143 @@ void TEWidget::fontChange(const QFont &) | |||
259 | font_w = fm.maxWidth(); | 259 | font_w = fm.maxWidth(); |
260 | font_a = fm.ascent(); | 260 | font_a = fm.ascent(); |
261 | //printf("font_h: %d\n",font_h); | 261 | //printf("font_h: %d\n",font_h); |
262 | //printf("font_w: %d\n",font_w); | 262 | //printf("font_w: %d\n",font_w); |
263 | //printf("font_a: %d\n",font_a); | 263 | //printf("font_a: %d\n",font_a); |
264 | //printf("charset: %s\n",QFont::encodingName(font().charSet()).ascii()); | 264 | //printf("charset: %s\n",QFont::encodingName(font().charSet()).ascii()); |
265 | //printf("rawname: %s\n",font().rawName().ascii()); | 265 | //printf("rawname: %s\n",font().rawName().ascii()); |
266 | fontMap = | 266 | fontMap = |
267 | #if QT_VERSION < 0x030000 | 267 | #if QT_VERSION < 0x030000 |
268 | strcmp(QFont::encodingName(font().charSet()).ascii(),"iso10646") | 268 | strcmp(QFont::encodingName(font().charSet()).ascii(),"iso10646") |
269 | ? vt100extended | 269 | ? vt100extended |
270 | : | 270 | : |
271 | #endif | 271 | #endif |
272 | identicalMap; | 272 | identicalMap; |
273 | propagateSize(); | 273 | propagateSize(); |
274 | update(); | 274 | update(); |
275 | } | 275 | } |
276 | 276 | ||
277 | void TEWidget::setVTFont(const QFont& f) | 277 | void TEWidget::setVTFont(const QFont& f) |
278 | { | 278 | { |
279 | QFrame::setFont(f); | 279 | QFrame::setFont(f); |
280 | } | 280 | } |
281 | 281 | ||
282 | QFont TEWidget::getVTFont() { | 282 | QFont TEWidget::getVTFont() { |
283 | return font(); | 283 | return font(); |
284 | } | 284 | } |
285 | 285 | ||
286 | void TEWidget::setFont(const QFont &) | 286 | void TEWidget::setFont(const QFont &) |
287 | { | 287 | { |
288 | // ignore font change request if not coming from konsole itself | 288 | // ignore font change request if not coming from konsole itself |
289 | } | 289 | } |
290 | 290 | ||
291 | /* ------------------------------------------------------------------------- */ | 291 | /* ------------------------------------------------------------------------- */ |
292 | /* */ | 292 | /* */ |
293 | /* Constructor / Destructor */ | 293 | /* Constructor / Destructor */ |
294 | /* */ | 294 | /* */ |
295 | /* ----------------------------------------------------------------------- */ | 295 | /* ----------------------------------------------------------------------- */ |
296 | 296 | ||
297 | 297 | ||
298 | 298 | ||
299 | TEWidget::TEWidget(QWidget *parent, const char *name) : QFrame(parent,name) | 299 | TEWidget::TEWidget(QWidget *parent, const char *name) : QFrame(parent,name) |
300 | { | 300 | { |
301 | #ifndef QT_NO_CLIPBOARD | 301 | #ifndef QT_NO_CLIPBOARD |
302 | cb = QApplication::clipboard(); | 302 | cb = QApplication::clipboard(); |
303 | QObject::connect( (QObject*)cb, SIGNAL(dataChanged()), | 303 | QObject::connect( (QObject*)cb, SIGNAL(dataChanged()), |
304 | this, SLOT(onClearSelection()) ); | 304 | this, SLOT(onClearSelection()) ); |
305 | #endif | 305 | #endif |
306 | 306 | ||
307 | 307 | ||
308 | scrollbar = new QScrollBar( this ); | 308 | scrollbar = new QScrollBar( this ); |
309 | scrollbar->setCursor( arrowCursor ); | 309 | scrollbar->setCursor( arrowCursor ); |
310 | connect(scrollbar, SIGNAL(valueChanged(int)), this, SLOT(scrollChanged(int))); | 310 | connect(scrollbar, SIGNAL(valueChanged(int)), this, SLOT(scrollChanged(int))); |
311 | 311 | ||
312 | hscrollbar = new QScrollBar( Qt::Horizontal, this ); | 312 | hscrollbar = new QScrollBar( Qt::Horizontal, this ); |
313 | hscrollbar->setCursor( arrowCursor ); | 313 | hscrollbar->setCursor( arrowCursor ); |
314 | connect(hscrollbar, SIGNAL(valueChanged(int)), this, SLOT(hscrollChanged(int))); | 314 | connect(hscrollbar, SIGNAL(valueChanged(int)), this, SLOT(hscrollChanged(int))); |
315 | 315 | ||
316 | m_cornerButton = new QPushButton( this ); | 316 | m_cornerButton = new QPushButton( this ); |
317 | m_cornerButton->setPixmap( QPixmap( (const char**)menu_xpm ) ); | 317 | m_cornerButton->setPixmap( QPixmap( (const char**)menu_xpm ) ); |
318 | m_cornerButton->setMaximumSize( 14, 14 ); | 318 | m_cornerButton->setMaximumSize( 14, 14 ); |
319 | m_cornerButton->hide(); | 319 | m_cornerButton->hide(); |
320 | 320 | ||
321 | Config cfg("Konsole"); | 321 | Config cfg("Konsole"); |
322 | cfg.setGroup("ScrollBar"); | 322 | cfg.setGroup("ScrollBar"); |
323 | switch( cfg.readNumEntry("Position",2)){ | 323 | |
324 | case 0: | 324 | scrollLoc = cfg.readNumEntry("Position", -1); |
325 | scrollLoc = SCRNONE; | 325 | |
326 | break; | 326 | // bugfix for #1647 |
327 | case 1: | 327 | // if user set 'show scrollbar on left' then let it be on left |
328 | scrollLoc = SCRLEFT; | 328 | // but only if it is not set in opie-console itself |
329 | break; | 329 | if(scrollLoc == -1) |
330 | case 2: | 330 | { |
331 | scrollLoc = SCRRIGHT; | 331 | Config qpecfg ("qpe"); |
332 | break; | 332 | qpecfg.setGroup("Appearance"); |
333 | scrollLoc = qpecfg.readNumEntry("LeftHand", SCRRIGHT); | ||
334 | if(scrollLoc == 0) // user set LeftHand in past and switched it off later | ||
335 | { | ||
336 | scrollLoc = SCRRIGHT; | ||
337 | } | ||
333 | }; | 338 | }; |
334 | 339 | ||
335 | blinkT = new QTimer(this); | 340 | blinkT = new QTimer(this); |
336 | connect(blinkT, SIGNAL(timeout()), this, SLOT(blinkEvent())); | 341 | connect(blinkT, SIGNAL(timeout()), this, SLOT(blinkEvent())); |
337 | // blinking = FALSE; | 342 | // blinking = FALSE; |
338 | blinking = TRUE; | 343 | blinking = TRUE; |
339 | 344 | ||
340 | resizing = FALSE; | 345 | resizing = FALSE; |
341 | actSel = 0; | 346 | actSel = 0; |
342 | image = 0; | 347 | image = 0; |
343 | lines = 1; | 348 | lines = 1; |
344 | columns = 1; | 349 | columns = 1; |
345 | font_w = 1; | 350 | font_w = 1; |
346 | font_h = 1; | 351 | font_h = 1; |
347 | font_a = 1; | 352 | font_a = 1; |
348 | word_selection_mode = FALSE; | 353 | word_selection_mode = FALSE; |
349 | vcolumns = 0; | 354 | vcolumns = 0; |
350 | hposition = 0; | 355 | hposition = 0; |
351 | 356 | ||
352 | setMouseMarks(TRUE); | 357 | setMouseMarks(TRUE); |
353 | setVTFont( QFont("fixed") ); | 358 | setVTFont( QFont("fixed") ); |
354 | setColorTable(base_color_table); // init color table | 359 | setColorTable(base_color_table); // init color table |
355 | 360 | ||
356 | qApp->installEventFilter( this ); //FIXME: see below | 361 | qApp->installEventFilter( this ); //FIXME: see below |
357 | // KCursor::setAutoHideCursor( this, true ); | 362 | // KCursor::setAutoHideCursor( this, true ); |
358 | 363 | ||
359 | // Init DnD //////////////////////////////////////////////////////////////// | 364 | // Init DnD //////////////////////////////////////////////////////////////// |
360 | currentSession = NULL; | 365 | currentSession = NULL; |
361 | // setAcceptDrops(true); // attempt | 366 | // setAcceptDrops(true); // attempt |
362 | // m_drop = new QPopupMenu(this); | 367 | // m_drop = new QPopupMenu(this); |
363 | // m_drop->insertItem( QString("Paste"), 0); | 368 | // m_drop->insertItem( QString("Paste"), 0); |
364 | // m_drop->insertItem( QString("cd"), 1); | 369 | // m_drop->insertItem( QString("cd"), 1); |
365 | // connect(m_drop, SIGNAL(activated(int)), SLOT(drop_menu_activated(int))); | 370 | // connect(m_drop, SIGNAL(activated(int)), SLOT(drop_menu_activated(int))); |
366 | 371 | ||
367 | // we need focus so that the auto-hide cursor feature works | 372 | // we need focus so that the auto-hide cursor feature works |
368 | setFocus(); | 373 | setFocus(); |
369 | setFocusPolicy( WheelFocus ); | 374 | setFocusPolicy( WheelFocus ); |
370 | } | 375 | } |
371 | 376 | ||
372 | //FIXME: make proper destructor | 377 | //FIXME: make proper destructor |
373 | // Here's a start (David) | 378 | // Here's a start (David) |
374 | TEWidget::~TEWidget() | 379 | TEWidget::~TEWidget() |
375 | { | 380 | { |
376 | qApp->removeEventFilter( this ); | 381 | qApp->removeEventFilter( this ); |
377 | if (image) free(image); | 382 | if (image) free(image); |
378 | } | 383 | } |
379 | 384 | ||
380 | /* ------------------------------------------------------------------------- */ | 385 | /* ------------------------------------------------------------------------- */ |
381 | /* */ | 386 | /* */ |
382 | /* Display Operations */ | 387 | /* Display Operations */ |
383 | /* */ | 388 | /* */ |
384 | /* ------------------------------------------------------------------------- */ | 389 | /* ------------------------------------------------------------------------- */ |
385 | 390 | ||
386 | /*! | 391 | /*! |
387 | attributed string draw primitive | 392 | attributed string draw primitive |
388 | */ | 393 | */ |
389 | 394 | ||
390 | void TEWidget::drawAttrStr(QPainter &paint, QRect rect, | 395 | void TEWidget::drawAttrStr(QPainter &paint, QRect rect, |
391 | QString& str, ca attr, BOOL pm, BOOL clear) | 396 | QString& str, ca attr, BOOL pm, BOOL clear) |
392 | { | 397 | { |
393 | if (pm && color_table[attr.b].transparent) | 398 | if (pm && color_table[attr.b].transparent) |
394 | { | 399 | { |
395 | paint.setBackgroundMode( TransparentMode ); | 400 | paint.setBackgroundMode( TransparentMode ); |
396 | if (clear) erase(rect); | 401 | if (clear) erase(rect); |