36 #include <QApplication>
38 #include <QtCore/QHash>
40 #include <QtCore/QRegExp>
41 #include <QtCore/QTextStream>
42 #include <QtCore/QThread>
44 #include <QtCore/QTime>
89 connect(window , SIGNAL(selectionChanged()),
93 window , SLOT(notifyOutputChanged()) );
102 QListIterator<ScreenWindow*> windowIter(
_windows);
104 while (windowIter.hasNext())
106 delete windowIter.next();
126 QListIterator<ScreenWindow*> windowIter(
_windows);
127 while ( windowIter.hasNext() )
164 setCodec( QTextCodec::codecForName(
"utf8") );
166 setCodec( QTextCodec::codecForLocale() );
222 if (!ev->text().isEmpty())
228 emit
sendData(ev->text().toUtf8(),ev->text().length());
255 QString unicodeText =
_decoder->toUnicode(text,length);
258 for (
int i=0;i<unicodeText.length();i++)
281 #define BULK_TIMEOUT1 10
282 #define BULK_TIMEOUT2 40
316 Q_ASSERT( lines > 0 );
317 Q_ASSERT( columns > 0 );
335 for ( ushort i = 0 ; i <
length ; i++ )
337 hash = 31*hash + unicodePoints[i];
347 if ( entry == 0 || entry[0] != length )
351 for (
int i = 0 ; i <
length ; i++ )
353 if ( entry[i+1] != unicodePoints[i] )
383 ushort* buffer =
new ushort[length+1];
385 for (
int i = 0 ; i <
length ; i++ )
386 buffer[i+1] = unicodePoints[i];
418 while ( iter.hasNext() )
421 delete[] iter.value();