Diffstat (limited to 'core/apps/embeddedkonsole/konsole.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/apps/embeddedkonsole/konsole.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/apps/embeddedkonsole/konsole.cpp b/core/apps/embeddedkonsole/konsole.cpp index 3289a04..7812e4c 100644 --- a/core/apps/embeddedkonsole/konsole.cpp +++ b/core/apps/embeddedkonsole/konsole.cpp | |||
@@ -348,49 +348,49 @@ static void sig_handler(int x) | |||
348 | 348 | ||
349 | void Konsole::init(const char* _pgm, QStrList & _args) | 349 | void Konsole::init(const char* _pgm, QStrList & _args) |
350 | { | 350 | { |
351 | 351 | ||
352 | #if 0 | 352 | #if 0 |
353 | for(int i=1; i<=31; i++) | 353 | for(int i=1; i<=31; i++) |
354 | { | 354 | { |
355 | if (i != SIGPIPE && i != SIGPROF && i != SIGSEGV | 355 | if (i != SIGPIPE && i != SIGPROF && i != SIGSEGV |
356 | && i != SIGINT && i != SIGILL && i != SIGTERM | 356 | && i != SIGINT && i != SIGILL && i != SIGTERM |
357 | && i != SIGBUS) | 357 | && i != SIGBUS) |
358 | signal(i,sig_handler); | 358 | signal(i,sig_handler); |
359 | } | 359 | } |
360 | #endif | 360 | #endif |
361 | signal(SIGSTOP, sig_handler); | 361 | signal(SIGSTOP, sig_handler); |
362 | signal(SIGCONT, sig_handler); | 362 | signal(SIGCONT, sig_handler); |
363 | signal(SIGTSTP, sig_handler); | 363 | signal(SIGTSTP, sig_handler); |
364 | 364 | ||
365 | b_scroll = TRUE; // histon; | 365 | b_scroll = TRUE; // histon; |
366 | n_keytab = 0; | 366 | n_keytab = 0; |
367 | n_render = 0; | 367 | n_render = 0; |
368 | startUp=0; | 368 | startUp=0; |
369 | fromMenu = FALSE; | 369 | fromMenu = FALSE; |
370 | fullscreen = false; | 370 | fullscreen = false; |
371 | 371 | ||
372 | setCaption( "Qkonsole" ); | 372 | setCaption( "Konsole" ); |
373 | setIcon( Resource::loadPixmap( "qkonsole/qkonsole" ) ); | 373 | setIcon( Resource::loadPixmap( "qkonsole/qkonsole" ) ); |
374 | 374 | ||
375 | Config cfg( "Konsole" ); | 375 | Config cfg( "Konsole" ); |
376 | cfg.setGroup("Font"); | 376 | cfg.setGroup("Font"); |
377 | QString tmp; | 377 | QString tmp; |
378 | 378 | ||
379 | // initialize the list of allowed fonts /////////////////////////////////// | 379 | // initialize the list of allowed fonts /////////////////////////////////// |
380 | 380 | ||
381 | QString cfgFontName = cfg.readEntry("FontName","Lcfont"); | 381 | QString cfgFontName = cfg.readEntry("FontName","Lcfont"); |
382 | int cfgFontSize = cfg.readNumEntry("FontSize",18); | 382 | int cfgFontSize = cfg.readNumEntry("FontSize",18); |
383 | 383 | ||
384 | cfont = -1; | 384 | cfont = -1; |
385 | 385 | ||
386 | // this code causes repeated access to all the font files | 386 | // this code causes repeated access to all the font files |
387 | // which does slow down startup | 387 | // which does slow down startup |
388 | QFontDatabase fontDB; | 388 | QFontDatabase fontDB; |
389 | QStringList familyNames; | 389 | QStringList familyNames; |
390 | familyNames = fontDB.families( FALSE ); | 390 | familyNames = fontDB.families( FALSE ); |
391 | QString s; | 391 | QString s; |
392 | int fontIndex = 0; | 392 | int fontIndex = 0; |
393 | int familyNum = 0; | 393 | int familyNum = 0; |
394 | fontList = new QPopupMenu( this ); | 394 | fontList = new QPopupMenu( this ); |
395 | 395 | ||
396 | for(uint j = 0; j < (uint)familyNames.count(); j++) | 396 | for(uint j = 0; j < (uint)familyNames.count(); j++) |
@@ -1292,49 +1292,49 @@ void Konsole::switchSession(QWidget* w) | |||
1292 | QFont teFnt = te->getVTFont(); | 1292 | QFont teFnt = te->getVTFont(); |
1293 | int familyNum = -1; | 1293 | int familyNum = -1; |
1294 | 1294 | ||
1295 | for(uint i = 0; i < fonts.count(); i++) | 1295 | for(uint i = 0; i < fonts.count(); i++) |
1296 | { | 1296 | { |
1297 | VTFont *fnt = fonts.at(i); | 1297 | VTFont *fnt = fonts.at(i); |
1298 | bool cf = fnt->getFont() == teFnt; | 1298 | bool cf = fnt->getFont() == teFnt; |
1299 | fontList->setItemChecked(i, cf); | 1299 | fontList->setItemChecked(i, cf); |
1300 | if (cf) | 1300 | if (cf) |
1301 | { | 1301 | { |
1302 | cfont = i; | 1302 | cfont = i; |
1303 | familyNum = fnt->getFamilyNum(); | 1303 | familyNum = fnt->getFamilyNum(); |
1304 | } | 1304 | } |
1305 | } | 1305 | } |
1306 | for(int i = 0; i < (int)fontList->count(); i++) | 1306 | for(int i = 0; i < (int)fontList->count(); i++) |
1307 | { | 1307 | { |
1308 | fontList->setItemChecked(i + 1000, i == familyNum); | 1308 | fontList->setItemChecked(i + 1000, i == familyNum); |
1309 | } | 1309 | } |
1310 | if (! te->currentSession->Title().isEmpty() ) | 1310 | if (! te->currentSession->Title().isEmpty() ) |
1311 | { | 1311 | { |
1312 | setCaption(te->currentSession->Title() + " - QKonsole"); | 1312 | setCaption(te->currentSession->Title() + " - QKonsole"); |
1313 | } | 1313 | } |
1314 | else | 1314 | else |
1315 | { | 1315 | { |
1316 | setCaption( "Qkonsole" ); | 1316 | setCaption( "Konsole" ); |
1317 | } | 1317 | } |
1318 | // colorMenuSelected(te->color_menu_item); | 1318 | // colorMenuSelected(te->color_menu_item); |
1319 | } | 1319 | } |
1320 | 1320 | ||
1321 | 1321 | ||
1322 | void Konsole::toggleFullScreen() | 1322 | void Konsole::toggleFullScreen() |
1323 | { | 1323 | { |
1324 | setFullScreen(! fullscreen); | 1324 | setFullScreen(! fullscreen); |
1325 | } | 1325 | } |
1326 | 1326 | ||
1327 | void Konsole::setFullScreen ( bool b ) | 1327 | void Konsole::setFullScreen ( bool b ) |
1328 | { | 1328 | { |
1329 | static QSize normalsize; | 1329 | static QSize normalsize; |
1330 | static bool listHidden; | 1330 | static bool listHidden; |
1331 | 1331 | ||
1332 | if (b == fullscreen) | 1332 | if (b == fullscreen) |
1333 | { | 1333 | { |
1334 | return; | 1334 | return; |
1335 | } | 1335 | } |
1336 | 1336 | ||
1337 | fullscreen = b; | 1337 | fullscreen = b; |
1338 | 1338 | ||
1339 | if ( b ) | 1339 | if ( b ) |
1340 | { | 1340 | { |