Diffstat (limited to 'core/apps/embeddedkonsole/TEWidget.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/apps/embeddedkonsole/TEWidget.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/apps/embeddedkonsole/TEWidget.cpp b/core/apps/embeddedkonsole/TEWidget.cpp index c10c7a8..60021f4 100644 --- a/core/apps/embeddedkonsole/TEWidget.cpp +++ b/core/apps/embeddedkonsole/TEWidget.cpp | |||
@@ -311,48 +311,49 @@ TEWidget::TEWidget(QWidget *parent, const char *name) : QFrame(parent,name) | |||
311 | scrollLoc = SCRLEFT; | 311 | scrollLoc = SCRLEFT; |
312 | break; | 312 | break; |
313 | case 2: | 313 | case 2: |
314 | scrollLoc = SCRRIGHT; | 314 | scrollLoc = SCRRIGHT; |
315 | break; | 315 | break; |
316 | }; | 316 | }; |
317 | 317 | ||
318 | useHorzScroll=cfg.readBoolEntry("HorzScroll",0); | 318 | useHorzScroll=cfg.readBoolEntry("HorzScroll",0); |
319 | 319 | ||
320 | blinkT = new QTimer(this); | 320 | blinkT = new QTimer(this); |
321 | connect(blinkT, SIGNAL(timeout()), this, SLOT(blinkEvent())); | 321 | connect(blinkT, SIGNAL(timeout()), this, SLOT(blinkEvent())); |
322 | // blinking = FALSE; | 322 | // blinking = FALSE; |
323 | blinking = TRUE; | 323 | blinking = TRUE; |
324 | 324 | ||
325 | resizing = FALSE; | 325 | resizing = FALSE; |
326 | actSel = 0; | 326 | actSel = 0; |
327 | image = 0; | 327 | image = 0; |
328 | lines = 1; | 328 | lines = 1; |
329 | columns = 1; | 329 | columns = 1; |
330 | font_w = 1; | 330 | font_w = 1; |
331 | font_h = 1; | 331 | font_h = 1; |
332 | font_a = 1; | 332 | font_a = 1; |
333 | word_selection_mode = FALSE; | 333 | word_selection_mode = FALSE; |
334 | hposition = 0; | 334 | hposition = 0; |
335 | vcolumns = 0; | ||
335 | 336 | ||
336 | setMouseMarks(TRUE); | 337 | setMouseMarks(TRUE); |
337 | setVTFont( QFont("fixed") ); | 338 | setVTFont( QFont("fixed") ); |
338 | setColorTable(base_color_table); // init color table | 339 | setColorTable(base_color_table); // init color table |
339 | 340 | ||
340 | qApp->installEventFilter( this ); //FIXME: see below | 341 | qApp->installEventFilter( this ); //FIXME: see below |
341 | // KCursor::setAutoHideCursor( this, true ); | 342 | // KCursor::setAutoHideCursor( this, true ); |
342 | 343 | ||
343 | // Init DnD //////////////////////////////////////////////////////////////// | 344 | // Init DnD //////////////////////////////////////////////////////////////// |
344 | currentSession = NULL; | 345 | currentSession = NULL; |
345 | // setAcceptDrops(true); // attempt | 346 | // setAcceptDrops(true); // attempt |
346 | // m_drop = new QPopupMenu(this); | 347 | // m_drop = new QPopupMenu(this); |
347 | // m_drop->insertItem( QString("Paste"), 0); | 348 | // m_drop->insertItem( QString("Paste"), 0); |
348 | // m_drop->insertItem( QString("cd"), 1); | 349 | // m_drop->insertItem( QString("cd"), 1); |
349 | // connect(m_drop, SIGNAL(activated(int)), SLOT(drop_menu_activated(int))); | 350 | // connect(m_drop, SIGNAL(activated(int)), SLOT(drop_menu_activated(int))); |
350 | 351 | ||
351 | // we need focus so that the auto-hide cursor feature works | 352 | // we need focus so that the auto-hide cursor feature works |
352 | setFocus(); | 353 | setFocus(); |
353 | setFocusPolicy( WheelFocus ); | 354 | setFocusPolicy( WheelFocus ); |
354 | } | 355 | } |
355 | 356 | ||
356 | //FIXME: make proper destructor | 357 | //FIXME: make proper destructor |
357 | // Here's a start (David) | 358 | // Here's a start (David) |
358 | TEWidget::~TEWidget() | 359 | TEWidget::~TEWidget() |
@@ -1382,26 +1383,24 @@ void TEWidget::drop_menu_activated(int item) | |||
1382 | if ( !S_ISDIR(statbuf.st_mode) ) | 1383 | if ( !S_ISDIR(statbuf.st_mode) ) |
1383 | { | 1384 | { |
1384 | /* | 1385 | /* |
1385 | KURL url; | 1386 | KURL url; |
1386 | url.setPath( dropText ); | 1387 | url.setPath( dropText ); |
1387 | dropText = url.directory( true, false ); // remove filename | 1388 | dropText = url.directory( true, false ); // remove filename |
1388 | */ | 1389 | */ |
1389 | } | 1390 | } |
1390 | } | 1391 | } |
1391 | dropText.replace(QRegExp(" "), "\\ "); // escape spaces | 1392 | dropText.replace(QRegExp(" "), "\\ "); // escape spaces |
1392 | currentSession->getEmulation()->sendString(dropText.local8Bit()); | 1393 | currentSession->getEmulation()->sendString(dropText.local8Bit()); |
1393 | currentSession->getEmulation()->sendString("\n"); | 1394 | currentSession->getEmulation()->sendString("\n"); |
1394 | // KWM::activate((Window)this->winId()); | 1395 | // KWM::activate((Window)this->winId()); |
1395 | break; | 1396 | break; |
1396 | } | 1397 | } |
1397 | #endif | 1398 | #endif |
1398 | } | 1399 | } |
1399 | 1400 | ||
1400 | void TEWidget::setWrapAt(int columns) | 1401 | void TEWidget::setWrapAt(int columns) |
1401 | { | 1402 | { |
1402 | vcolumns = columns; | 1403 | vcolumns = columns; |
1403 | propagateSize(); | 1404 | propagateSize(); |
1404 | update(); | 1405 | update(); |
1405 | } | 1406 | } |
1406 | |||
1407 | |||